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?