cancel
Showing results for 
Search instead for 
Did you mean: 

Can I call outside REST API(web service) in Activiti's service Task

ashay
Champ on-the-rise
Champ on-the-rise
Hi,

I have requirement to create one business process which contains lots of task which require to call REST API(this is my own API).
Can we do any code in delegate(service task) for call any web service?


If there are other solution,please suggest me?


Regards,
Ashay
3 REPLIES 3

trademak
Star Contributor
Star Contributor
Hi Ashay,

You can always create a service task that performs REST calls.
It's just a Java class, so everything you want to do with Java logic is possible.

Best regards,

pythagean
Champ in-the-making
Champ in-the-making
Hi there, is there an example somewhere of creating a service task which performs REST calls?

Thank you

jbarrez
Star Contributor
Star Contributor
No, but any example online with HttpClient, Spring RestTemplate, etc. works just fine in a JavaDelegate, as long as you include the those libraries on your classpath.