Showing where the particular instance is in the workflow

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

Showing where the particular instance is in the workflow

Hi

I have a requirement where i need to show to users where a particular process instance is in workflow.

Is there any API that will provide me with these information?

At the minimum, if i can get:

- all completed tasks

- all active tasks

- all tasks in the future (not active yet pending completed of active tasks)

then maybe i can reconstruct a cheap way of addressing the requirement.

BTW - i need to show this outside of activiti-explorer.

Appreciate any help on this.

3 Replies
Senior Member II

Re: Showing where the particular instance is in the workflow

Yes, the REST APIs can easily return both completed and active tasks (Check Task APIs and History APIs)

Getting the future tasks is a little tricky especially if the process is complex with exclusive/event/inclusive gateways...In order to find that you will need to use one of those process model apis and find out what is not executed yet by comparing it with the task api results and/or historic activity instances

Hope this helps..

Active Member

Re: Showing where the particular instance is in the workflow

would you mind pointing me to the process model apis?

Active Member

Re: Showing where the particular instance is in the workflow

no worries - got it already