This is how i invoke JBPM context from a servlet that i use as test.
JBPM and Servlet or your custom webapp are on the same server :).
Getting JBPMContext.
JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
JbpmContext ctx = jbpmConfiguration.createJbpmContext();
Retrieve the last deployed version of the process:
ProcessDefinition def =
ctx.getGraphSession().findLatestProcessDefinition("YourProcessName");
Now create a new instance:
ProcessInstance pInst = null ;
pInst = def.createProcessInstance();
Now browse the ProcessInstance class to see what you can access from the instance. To move
through the process you can use :
pInst.signal();
this work for me with JBPM 3.3.1 GA.
I hope this help :)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218632#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...