erixx
1
Hi,
when i execute
taskService.deleteTask(task.getId(), true);
i get the following error message :
“The Task cannot be deleted because is part of a running process”.
What is the better way to purge the content of the database of FLowable ?
Regards
erixx
2
i found the solution. Maybe it will be useful for another beginner
runtimeService.deleteProcessInstance(task.getProcessInstanceId()," ");
taskService.deleteTask(task.getId(), true);
Extract from the javadoc
deleteProcessInstance(String processInstanceId, String deleteReason)