AnsweredAssumed Answered

OSGI BUNDLE ProcessEngine Configuration.

Question asked by mahesh1 on Dec 3, 2014
Latest reply on Dec 5, 2014 by trademak

I am using Activiti Engine(5.16.4) as OSGI bundle in Apache Sling.
This repository is pointed to mysql.
I wrote one more OSGI bundle, here i am using Activiti Engine services like Runtime Service, Task Service, etc.

My question is how to get process engine (Pointed to MySql) while runtime.

if i use  processEngine = ProcessEngines.getDefaultProcessEngine() ;
runtimeService = processEngine.getRuntimeService();, getting NullPointer exception.

please guide me how to resolve the issue.