This content has been marked as final.
Show 1 reply
-
1. Re: How to invoke and monitor a Jbpm BPEL process in Java ap
dhanushgopinath Oct 8, 2008 3:52 AM (in response to judyzhifu)Once a BPEL is deployed, it wil be exposed as WS and that can be invoked using a normal WS client. You can use the SOAP UI to test the same.
To start and control the Process Instances you may need to use the BPEL API's exposed.
for eg. to start a process instanceJbpmConfiguration jbpmConfiguration = JbpmConfiguration .getInstance(); JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext(); BpelGraphSession graphSession = BpelGraphSession .getContextInstance(jbpmContext); BpelProcessDefinition bpelProcDef = graphSession .findLatestProcessDefinition(PROCESSNAME, TARGET NAMESPACE URI); ProcessInstance procInstance = bpelProcDef.createProcessInstance(); jbpmContext.close();
similarly there are other API's that are exposed.
I havent tested these completely, but I am sure there is a way.
Please have a look at the API documentation
http://docs.jboss.com/jbpm/v3/javadoc/
Hope this helps
Dhanush