Activiti Community Edition - Task to Invoke REST API

cancel
Showing results for 
Search instead for 
Did you mean: 
bsawin
Member II

Activiti Community Edition - Task to Invoke REST API

I'm trying to design a simple workflow. A user task to collect some data. Then a system task to invoke a REST API with the data collected in the first task. I see Alfresco has a REST task. What is the cleanest way to have a task invoke a REST API using Activiti 6 Community Edition? I'd love to do this through native configuration of the business process running a standalone Activiti engine if possible.

3 Replies
abbask01
Senior Member

Re: Activiti Community Edition - Task to Invoke REST API

create a service task and call your java impl that calls your rest API and stores info in variables

Regards,
Abbas
shrunk7byadagi
Member II

Re: Activiti Community Edition - Task to Invoke REST API

can you share some example or if you have some repository link

shrunk7byadagi
Member II

Re: Activiti Community Edition - Task to Invoke REST API

Also please help me how to construct xml payload in script task 

 

Thanks

Shreyank