Browse Source

规则增加流程实例id

fanxp 1 month ago
parent
commit
ed8952534a

+ 1 - 0
src/main/java/com/xjrsoft/module/workflow/listener/ExecutionDelegate.java

@@ -913,6 +913,7 @@ public class ExecutionDelegate implements ExecutionListener {
                 LiteFlowChainELBuilder.createChain().setChainName(chain.getChainName()).setEL(chain.getElData()).build();
                 // 执行规则
                 varMap.put("processDefinitionId", execution.getProcessDefinitionId());
+                varMap.put("processInstanceId", execution.getProcessInstanceId());
                 flowExecutor.execute2Resp(chain.getChainName(), null,varMap);
             }