When I am trying to delete a task which is part of running process then it throws below error.
(When I used deleteTask(taskId) method from DeleteTaskCmd.java)
“org.activity.engine.ActivitiException: the task cannot be delete because is part of a running process”
My snippet
taskservive.deleteTask(myValidTaskId);
Here i am using java platform and Activiti process engine.
-
I want to delete the task based on taksid without completing the task or getting into workflow.
Also i dont want to delete/complete the process associated to task to be delete. -
Or is there anyway by which i can unmap the task from its process.
can anyone please help on this
I have already tried to delete task using deleteTask(taskId) and wanted to remove from the activity workflow.
Deepraj Bhadane is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.