ut = beginTransaction(jtaTxm);
//The problem happens here. There is no task "edit", but it should be.
executeTasksByProcessByTaskName(processInstance.getId(), "edit", taskService);
jtaTxm.commit(ut);
ut = beginTransaction(jtaTxm);
executeTasksByProcessByTaskName(processInstance.getId(), "edit", taskService);
jtaTxm.commit(ut);