cancel
Showing results for 
Search instead for 
Did you mean: 

how to add suspend/resume user task actions

ganeshr
Champ in-the-making
Champ in-the-making
is it possible to add suspend/resume actions to a user task? currently user task is allowing only claim,reassign and complete, so can we add other custom actions to user task?
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
What would happen to a task when it's suspended? Currently, there is no such thing possible in the API.

An alternative is to have such functionality in your own services that use Activiti API. For example, you can use a special marker-variable on a task to mark it as "suspended". If you query for tasks, you can exclude tasks with that variable set to a certain value, for example…

marwahussein
Champ in-the-making
Champ in-the-making
I think we can also suspend the process instance and all the tasks within this process will be also suspended and we can retrieve a list of the suspended tasks. but how can I suspend a process instance from within the source code of Activiti ?