cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get CommandContext in OSGi?

chaoyy
Champ in-the-making
Champ in-the-making
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?
1 REPLY 1

kirek
Champ in-the-making
Champ in-the-making
how do you add add a new deployment?