cancel
Showing results for 
Search instead for 
Did you mean: 

How task lifecycle is managed

rohitagrawal
Champ on-the-rise
Champ on-the-rise
Hi,

I am using the taskService to create the tasks. At some point of a time,
I want to know the status of the task.
How can i get it?

e.g. If task is created, status of the task is NEW or CREATED.
when we claim the task, it changes to new state e.g. INPROCESS etc.

How life cycle of the task is managed? how to get the state/status of the task?
1 REPLY 1

trademak
Star Contributor
Star Contributor
From the TaskService you can retrieve the task instance and see if it's claimed and/or completed. So you can determine the status based on that. In Activiti 5.15 we're adding a new event listener implementation that allows you to listen on all task actions.

Best regards,