cancel
Showing results for 
Search instead for 
Did you mean: 

Calling web services from Activiti

dgag8090
Champ in-the-making
Champ in-the-making
Read through the user guide, searched here for similar things.
A few questions perhaps someone could shed some light on.

I see in the user guide that Web Service Task is marked as experimental.

If I need to call different external web services (REST and WSDL) from Activiti workflows:
Am I creating Service Tasks and then implementing java to actually make the call to Web Services?
Is that the general MO? 

Or is there functionality built into Activiti for connect to Web Services that I missed?

Thanks
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
You can use the built-in web service approach that activiti has. It's marked as experimental but all features are there to call web-services (it uses CXF).

Offcourse, it's possible to implement a service-task that calls a web service using your own technology. One that is capable of sending REST-requests, you'll have to write anyway, that's not out of the box for now…

jbarrez
Star Contributor
Star Contributor
BPMN has an official way to do webservices, which is implemented in Activiti but not tested enough (hence the 'experimental' mark.
That being said, I think that this way is too cumbersome and requires to much ugly xml to get working.

I personally favorite doing it in your own service task. Spring has easy ways to wrap webservice calls in simple pojo's for example.