AnsweredAssumed Answered

ActivitiEngine object coming as null (prompt response is appreciated)

Question asked by penusila611621 on Mar 15, 2014
Latest reply on Mar 17, 2014 by jbarrez
I am very new to activiti, i have build a simple process in process designer(eclipse plugin) and trying to run the process from java class.

ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();

have attached the java class and the red colord statement as provided above is returning null.

also attched the activiti-cfg file i am trying with this example. Have tried with h2 database properties in xml file and also with out h2 database properties.

In details
………..
1. have downloaded the activiti 5.14 distribution
2. Downloaded eclipse 5.14.1 and setup the activiti project
3. created a simple business process
4. created junit test java class and this had generated the java code as attached
5. commented few lines in the java class to know excatly what's happening step by step
6. but the first step (ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
) where processEngine is null so I am getting NullPointer exception

Please advise is there anything I am missing here

Outcomes