JBoss Community

TaskService.deleteTask(taskId) is not working?

created by Jing Zhang in jBPM - View the full discussion

Is there a way to delete a task in jbpm 4.4? tried using TaskService.deleteTask(taskId), but always got an exception

org.jbpm.api.JbpmException: tasks related to an execution must be completed. they cannot just be deleted
BTW, the reason I want to delete a task is because the ExecutionService.endProcessInstance won't delete the process's task from jbpm4_task table. Is it a bug in this method?
Zhang Jing

Reply to this message by going to Community

Start a new discussion in jBPM at Community