cancel
Showing results for 
Search instead for 
Did you mean: 

Display current task within a process instance

mikepoole
Champ in-the-making
Champ in-the-making
I think this question has been asked before but I have never managed to track down an answer

Is there any way to display the process diagram AND show which task the user is currently on. I have seen mention of the ProcessDiagramImageGenerator API but cannot find anything that shows the way to show the current task

Any help would be very much appreciated

Many thanks

Mike
11 REPLIES 11

raviksoni25
Champ in-the-making
Champ in-the-making

Hi , Is there any way to get current task and next task?

I would prefer any  REST API if available.

Thanks

daisuke-yoshimo
Star Collaborator
Star Collaborator

Please use this rest api to get current task.

Activiti User Guide

If you need to get next task too, you need to make custom logic useing ProcessDiagramGenerator.

Activiti/modules/activiti-image-generator/src/main/java/org/activiti/image at 6.x · Activiti/Activit... 

The following url is my sample using ProcessDiagramGenerator.

In addition to this sample, it is necessary to add custom logic to acquire an activity ID to be independently connected.

generateDiagram/GenerateDiagramSample.java at master · daisuke-yoshimoto/generateDiagram · GitHub