cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the task count

jorell
Champ in-the-making
Champ in-the-making
I need to be able to uniquely identify every INSTANCE of a node in the life of my process instance. So if my process loops back and performs a task 3 times, I need to know in my delegate whether this current execution is the 1st, 2nd or 3rd instance for this particular node.
I thought I could uniquely identify every instance using the combination of executionId + task Id, since multiInstance loops would create new execution id's. But then realized that an exclusive gateway could also loop back.
Is there anyway to get this info, is it available in the db?

Or if there is any other way to uniquely identify an instance of a task please let me know.
Thanks!
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Yes in the historic activity instance table you can get a full audit trail of the process instance. HistoryService createHistoricActivityInstanceQuery method.

Best regards,

jorell
Champ in-the-making
Champ in-the-making
Awesome, thanks.