Commit 52f067cdfb3475fc14a1d2e6eaa5249dca24f74a
1 parent
853afd21
fix: 屏蔽解析器覆写, 避免解析 ${coll_userList} 变量报错
Showing
1 changed file
with
18 additions
and
0 deletions
yudao-module-bpm/src/main/java/cn/iocoder/yudao/module/bpm/framework/flowable/core/behavior/BpmSequentialMultiInstanceBehavior.java
| @@ -8,6 +8,7 @@ import cn.iocoder.yudao.module.bpm.framework.flowable.core.util.BpmnModelUtils; | @@ -8,6 +8,7 @@ import cn.iocoder.yudao.module.bpm.framework.flowable.core.util.BpmnModelUtils; | ||
| 8 | import cn.iocoder.yudao.module.bpm.framework.flowable.core.util.FlowableUtils; | 8 | import cn.iocoder.yudao.module.bpm.framework.flowable.core.util.FlowableUtils; |
| 9 | import lombok.Setter; | 9 | import lombok.Setter; |
| 10 | import org.flowable.bpmn.model.*; | 10 | import org.flowable.bpmn.model.*; |
| 11 | +import org.flowable.common.engine.api.delegate.Expression; | ||
| 11 | import org.flowable.engine.delegate.DelegateExecution; | 12 | import org.flowable.engine.delegate.DelegateExecution; |
| 12 | import org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior; | 13 | import org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior; |
| 13 | import org.flowable.engine.impl.bpmn.behavior.SequentialMultiInstanceBehavior; | 14 | import org.flowable.engine.impl.bpmn.behavior.SequentialMultiInstanceBehavior; |
| @@ -90,4 +91,21 @@ public class BpmSequentialMultiInstanceBehavior extends SequentialMultiInstanceB | @@ -90,4 +91,21 @@ public class BpmSequentialMultiInstanceBehavior extends SequentialMultiInstanceB | ||
| 90 | super.executeOriginalBehavior(execution, multiInstanceRootExecution, loopCounter); | 91 | super.executeOriginalBehavior(execution, multiInstanceRootExecution, loopCounter); |
| 91 | } | 92 | } |
| 92 | 93 | ||
| 94 | + // ========== 屏蔽解析器覆写 ========== | ||
| 95 | + | ||
| 96 | + @Override | ||
| 97 | + public void setCollectionExpression(Expression collectionExpression) { | ||
| 98 | + // 保持自定义变量名,忽略解析器写入的 collection 表达式 | ||
| 99 | + } | ||
| 100 | + | ||
| 101 | + @Override | ||
| 102 | + public void setCollectionVariable(String collectionVariable) { | ||
| 103 | + // 保持自定义变量名,忽略解析器写入的 collection 变量名 | ||
| 104 | + } | ||
| 105 | + | ||
| 106 | + @Override | ||
| 107 | + public void setCollectionElementVariable(String collectionElementVariable) { | ||
| 108 | + // 保持自定义变量名,忽略解析器写入的单元素变量名 | ||
| 109 | + } | ||
| 110 | + | ||
| 93 | } | 111 | } |