I started the execution of one of my processes and in the midle i give up. So it will be in the task menu as a task to be achieve .
Can i cancel this execution ? because i dont want to finish it. On the portal i have just tree possibilities “TAKE”, “RELEASE”, and “HIDE” !
As an administrator, you can delete a case.
Do you have any example for one or both solutions ?
how can we cancel any instance by using API? Example, please
There is no such an option in the Portal for users. You can integrate it in your process model (with a parallel branch and a cancel button, for example), or you can create a process that users will be able to start in order to cancel any instance by using API.
Do you have any example for parrallel branch and cancel button, or for api ?
If you have a human task, you can put two submit buttons, each of them with an action updating a variable with different values (for example “cancel” and “ok”). And then you can have a gateway after your human task, that will decide weather you continue your workflow or you go to an end event (named ‘cancel prematurely’, for example).
And cancelProcessInstance method is here .
I agree, i didn’t think about it. SO i every human task i put an other button Cancel and if we click on it we go to the end of process.
If i use this i am not oblige to use the cancelProcessInstance methode ? am i ?
No, but your process will be archived.