I wanted to get the current taskId of a activiti workflow using Activiti REST.

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

I wanted to get the current taskId of a activiti workflow using Activiti REST.

Hi All,

 

I wanted to get the current taskId of a activiti workflow using Activiti REST. 

 

On high level, my requriement is to run a simple workflow using Activiti REST. So, I develop my workflow in the Activiti App. But I run the workflow from the Spring Boot Application. Starting the workflow is very fine as i found some REST API to start the workflow. Now, here comes my problem. Once the workflow is started and comes to the second stage/task, i have to complete the stage/task. I found one REST API to do it, But it needs Task ID. How can I get the task ID? Is there any REST API to get the current task ID of a workflow?

 

Thanks in Advance,

Naveen

1 Reply
Highlighted
ryandawson
Senior Member II

Re: I wanted to get the current taskId of a activiti workflow using Activiti REST.

I think you can use get endpoint for tasks in the rest api  with the processInstanceId as parameter