AnsweredAssumed Answered

deleting task produces an error

Question asked by r3dge on Jun 4, 2015
Latest reply on Jun 5, 2015 by r3dge

I'm trying to delete a task :

List<Task> tasks = taskService.createTaskQuery().taskDefinitionKey(TaskTypeID).taskAssignee(userID).active().list();

for(Task task : tasks){

And i get the following error message : "The task cannot be deleted because ispart of a running process".

I there a way to delete tasks that are in a user basket ?