cancel
Showing results for 
Search instead for 
Did you mean: 

Cancel/Skip running task

r0main
Champ in-the-making
Champ in-the-making
Hi,

I'm trying to find a way to cancel/skip a task that is part of a running process (it could be a user task, an service task, …). I looked into Activiti's functionalities but I only found a function to delete a task (that is not part of a running process).

Let's say that a newser is waiting for a reviewer to validate his news. That reviewer claimed the task, but had an emergency and could not complete it. The newser called the reviewer, and he gave him the green light to go ahead. How can the newser (or more probably an admin) bypass/cancel/skip the running validation task ?

I don't want to use a TimerEvent as the fact that someone will want to skip a part of a process is not automatically related to time.

Thanks & Regards
Romain.
3 REPLIES 3

pmsevestre
Champ in-the-making
Champ in-the-making
Human Tasks can be unclaimed or delegated via API and REST.

Other activity types (system tasks, message tasks, etc) are trickier because they usually change the process instance state and so you cannot simply skip them - unless you model that in your process. In version 5.14 you have a new API that allows you to execute custom commands that can do this kind instance maipulation.

trademak
Star Contributor
Star Contributor
That's custom functionality you would need to implement yourself and expose to your application. The Activiti API allows you to complete the review task so why not just invoke the complete method on that task?

Best regards,

r0main
Champ in-the-making
Champ in-the-making
Hi Tijs,

Thanks for your reply, calling the complete method on the task seems a reasonable option.

Best regards,
Romain.