-
1. Re: How to integrate web services in jBPM5
salaboy21 Nov 14, 2011 7:22 AM (in response to ram.biradar)Hi Ram,
If you want to do that you can use the concept of WorkItemHandler to do the web service call.
There is a generic WorkItemHandler to call web services, but I strongly recommend you to read the documentation and try to implement a simple WorkItemHandler that uses an Stub of your web service to interact.
Cheers
-
2. Re: How to integrate web services in jBPM5
ram.biradar Nov 15, 2011 4:24 AM (in response to salaboy21)Hi Mauricio,
Thank you very much for the reply. Is there any option that we can configure web services in ESB and access the same using jbpm. Is there any videos or documents which includes the steps to complete the configuration of web services in JBPM5.
It will be really usefull to us.
Regards,
Ram
-
3. Re: How to integrate web services in jBPM5
salaboy21 Nov 15, 2011 8:08 AM (in response to ram.biradar)Hi Ram,
What kind of web service do you have? Which ESB are you using?
Can you test your web service creating a Java Client? If you can do this you need to wrap that java client inside an implementation of the WorkItemHandler interface. This specific implementation that will call your web service can be attached to a Service Task inside your BPMN processes.
Cheers
-
4. Re: How to integrate web services in jBPM5
sridhar532 Nov 16, 2011 4:55 AM (in response to salaboy21)Hi Ram / Mauricio,
Can you share me a sample work handler and BPMN process file regarding how to call a web service from service task. Thanks
-
5. Re: How to integrate web services in jBPM5
salaboy21 Nov 16, 2011 5:31 AM (in response to sridhar532)Hi Sridhar,
You should do your homework, that's the best way to learn. If I share a bpmn process with a call to a web service you will need also the web service to test it and you will see that it's just calling the stub of the web service inside an implementation of the WorkItemHandler interface. Try to do that and get back to us if you have any trouble, we will be glad to help.
Cheers
-
6. Re: How to integrate web services in jBPM5
dme Nov 17, 2011 2:53 PM (in response to salaboy21)Hi Mauricio,
You mentioned that there is a Generic WorkItemHandler to call web services. Could you please point me to that, I have implemented one myself using the WorkItemHandlers which serves as a generic webservice handler to be used across various processes. However if there is one that comes with jBPM I would like to see if that fits my needs.
Thanks.