[jboss-user] [jBPM] - asynchronous web service call process correlation

Tobias Wittur do-not-reply at jboss.com
Mon Aug 8 09:21:29 EDT 2011

Tobias Wittur [http://community.jboss.org/people/tob1as] created the discussion

"asynchronous web service call process correlation"

To view the discussion, visit: http://community.jboss.org/message/619881#619881


I have been fiddling around with jBPM for a bit and still got some questions concerning web services. 

In the given scenario, different jbpm process instances send messages (asynchronous) to one or more ERP systems. 
 http://community.jboss.org/servlet/JiveServlet/showImage/2-619881-16847/Capture.PNG  http://community.jboss.org/servlet/JiveServlet/downloadImage/2-619881-16847/419-359/Capture.PNG 
1) How can I be sure, that the right process instance receives the right message back from the ERP? How does correlation work in jBPM?

2) What is the best practice for web-service calls in jBPM ?
I understood that I would have to define a service task that uses a work items. I guess I would need to import my own webservice class into the work item handler and return an output variable. Is there a webservice runtime layer, that jBoss offers as part of its enterprise stack? Something that manages the previously states problem?

Also, lets imagine the server with jBPM crashs after a web service call was sent away and it reboots. Is there something that makes sure that the web service will be invoked again, once the system is up and running again?

I only found the following: 
 http://community.jboss.org/docs/DOC-13531 http://community.jboss.org/wiki/JBossWS-GuidedTour

3) How can I trigger a process instance through a web service call?
Is there something like a message start event? I understand there is a REST API that exposes the engine. However, if I want to pass a big message body to a process instance creation, how would I do this?

Best regards,


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110808/a6e5b94c/attachment.html 

More information about the jboss-user mailing list