GetDefaultProcessEngine () return null
1 answer
Taken from the Activi frederikheremans user forum:
As stated in the Javadoc for ProcessEngines, this class is used by the ServletContextListener, which calls ProcessEngines.init (). init () scans the classpath for activiti.properties and tries to create a ProcessEngine for each file it finds.
The getDefaultProcessEngine () function only works [if] ProcessEngines.init () has been called (by org.activiti.impl.servlet.listener.ProcessEnginesServletContextListener or by calling it once), and if the process engine named "Default" is available.
The OP of the thread I got said that he got null from getDefaultProcessEngine too . Hope it helps.
+1
source to share