We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如果当前是一个多实例 其中任何一个任务退回 会删除其他任务, 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 我查看了这个实例的执行流表 好像被删除的那几个任务的执行流记录无法删除 估计是这个原因导致无法归档 但是我在代码里面明明删除了执行流 求白兄出出主意
The text was updated successfully, but these errors were encountered:
No branches or pull requests
如果当前是一个多实例 其中任何一个任务退回 会删除其他任务,
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 我查看了这个实例的执行流表 好像被删除的那几个任务的执行流记录无法删除 估计是这个原因导致无法归档 但是我在代码里面明明删除了执行流 求白兄出出主意
The text was updated successfully, but these errors were encountered: