Commit 1cf079fec3eb113c21024543895ae6e9f45cba8f
1 parent
ee5cb237
fix:【BPM 工作流】项目重启后,审批重启前的流程会出现生成的下一待办任务所属人出现缺失
Showing
1 changed file
with
10 additions
and
0 deletions
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/framework/flowable/core/behavior/BpmSequentialMultiInstanceBehavior.java
| ... | ... | @@ -14,6 +14,7 @@ import org.flowable.bpmn.model.UserTask; |
| 14 | 14 | import org.flowable.engine.delegate.DelegateExecution; |
| 15 | 15 | import org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior; |
| 16 | 16 | import org.flowable.engine.impl.bpmn.behavior.SequentialMultiInstanceBehavior; |
| 17 | +import org.flowable.engine.impl.persistence.entity.ExecutionEntity; | |
| 17 | 18 | |
| 18 | 19 | import java.util.List; |
| 19 | 20 | import java.util.Set; |
| ... | ... | @@ -82,4 +83,13 @@ public class BpmSequentialMultiInstanceBehavior extends SequentialMultiInstanceB |
| 82 | 83 | return super.resolveNrOfInstances(execution); |
| 83 | 84 | } |
| 84 | 85 | |
| 86 | + @Override | |
| 87 | + protected void executeOriginalBehavior(DelegateExecution execution, ExecutionEntity multiInstanceRootExecution, int loopCounter) { | |
| 88 | + // 参见 https://gitee.com/zhijiantianya/yudao-cloud/issues/IC239F | |
| 89 | + super.collectionExpression = null; | |
| 90 | + super.collectionVariable = FlowableUtils.formatExecutionCollectionVariable(execution.getCurrentActivityId()); | |
| 91 | + super.collectionElementVariable = FlowableUtils.formatExecutionCollectionElementVariable(execution.getCurrentActivityId()); | |
| 92 | + super.executeOriginalBehavior(execution, multiInstanceRootExecution, loopCounter); | |
| 93 | + } | |
| 94 | + | |
| 85 | 95 | } | ... | ... |