Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getDefaultProcessEngine() return null [closed]

Tags:

java

activiti

ProcessEngines.getDefaultProcessEngine() return me null when I try init a new process in activiti engine.

Do you know what could be the reason ?

like image 500
user2590727 Avatar asked Dec 05 '25 08:12

user2590727


1 Answers

Taken from the Activi forums user frederikheremans:

As stated in the Javadoc for ProcessEngines, this class is used by a ServletContextListener, which calls the ProcessEngines.init(). The init() will scan the classpath for activiti.properties an tries to build a ProcessEngine for each file found.

The getDefaultProcessEngine() only works [if] the ProcessEngines.init() has been called (by org.activiti.impl.servlet.listener.ProcessEnginesServletContextListener or by calling it yourself once) and if a process-engine with name 'default' is available.

The OP of the thread I got that from stated that he too received null from getDefaultProcessEngine. Hope that helps.

like image 185
user2221125 Avatar answered Dec 07 '25 20:12

user2221125