AnsweredAssumed Answered

How can I get CommandContext in OSGi?

Question asked by chaoyy on Mar 8, 2012
Latest reply on Mar 8, 2012 by kirek
I have put the ProcessEngine into Equinox OSGi framework, and have got runtimeService,repositoryService,identityService etc.
In the OSGi framework Activiti can create new user and add new deployment, but when I start processinstance by key, it's error:"org.activiti.engine.ActivitiException: no processes deployed with key 'xxx'", I found that Context.getCommandContext is null in OSGi,so it can't get the ProcessDefinitionManager.

How can I get the current thread's CommandContext is OSGi?

Outcomes