[jboss-user] [JBoss jBPM] - Re: creating a jsp page to invoke jbpm deployed process
Toriton
do-not-reply at jboss.com
Tue Mar 17 09:07:33 EDT 2009
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#4218632
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218632
More information about the jboss-user
mailing list