cancel
Showing results for 
Search instead for 
Did you mean: 

Resume process through REST API in Activiti Trial

sergey1
Champ in-the-making
Champ in-the-making
Hello,

I’m trying to use REST API to resume a process which is paused on “Intermediate message catching event”. It looks like I need to post a message to http://activiti.alfresco.com/activiti-app/api/enterprise/runtime/executions/execution_id URL.
My problem is inability to get the ID of execution. I’m able to receive correct process definition and process instance for my process. But I receive 404 response when I try to get list of executions. Here is the URL I use to list executions: GET http://activiti.alfresco.com/activiti-app/api/enterprise/runtime/executions.

Could you please explain the correct way to get the list of executions?
Maybe it is bad idea to use message and REST API call to resume the process? Is there alternative way in Activiti Enterprise?

Thank you,
Sergey
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
You will need to add more parameters to the GET http://activiti.alfresco.com/activiti-app/api/enterprise/runtime/executions call, you need to add the process instance id at least: /executions?processInstanceId=xx.
And then use the execution that's currently at that particular activity.