Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多实例任务退回问题 #2

Open
tanyo520 opened this issue Aug 28, 2015 · 0 comments
Open

多实例任务退回问题 #2

tanyo520 opened this issue Aug 28, 2015 · 0 comments

Comments

@tanyo520
Copy link

如果当前是一个多实例 其中任何一个任务退回 会删除其他任务,
if(taskList!=null){
for (TaskEntity tk : taskList){
//tk.setExecution(null);
// tk.setExecutionId(null);
tk.getExecution().remove();
executionEntity.removeTask(tk);
commandContext.getTaskEntityManager().deleteTask(tk, rejectOrgin, true);
commandContext.getHistoricTaskInstanceEntityManager().deleteHistoricTaskInstanceById(tk.getId());
}
}
以上删除其他人任务的代码
这样确实可以实现退回需求 哈哈 但是问题来了 流程结束以后这个实例无法归档 流程走完了实例的完成时间还是Null 我查看了这个实例的执行流表 好像被删除的那几个任务的执行流记录无法删除 估计是这个原因导致无法归档 但是我在代码里面明明删除了执行流 求白兄出出主意

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant