diff --git a/src/main/java/com/alibaba/compileflow/engine/process/preruntime/generator/impl/action/support/SubBpmActionGenerator.java b/src/main/java/com/alibaba/compileflow/engine/process/preruntime/generator/impl/action/support/SubBpmActionGenerator.java index 56c5596..827a7fd 100644 --- a/src/main/java/com/alibaba/compileflow/engine/process/preruntime/generator/impl/action/support/SubBpmActionGenerator.java +++ b/src/main/java/com/alibaba/compileflow/engine/process/preruntime/generator/impl/action/support/SubBpmActionGenerator.java @@ -67,7 +67,7 @@ public void generateCode(CodeTargetSupport codeTargetSupport) { codeTargetSupport.addBodyLine("_spContext.put(\"" + param.getName() + "\", " + var + ");"); } - String noReturnCode = "ProcessEngineFactory.getProcessEngine().start(\"" + getSubBpmCode() + String noReturnCode = "ProcessEngineFactory.getProcessEngine().execute(\"" + getSubBpmCode() + "\", _spContext)"; if (returnVar != null) { diff --git a/src/main/java/com/alibaba/compileflow/engine/process/preruntime/generator/impl/tbbpm/SubBpmGenerator.java b/src/main/java/com/alibaba/compileflow/engine/process/preruntime/generator/impl/tbbpm/SubBpmGenerator.java index cc078f8..8f795a8 100644 --- a/src/main/java/com/alibaba/compileflow/engine/process/preruntime/generator/impl/tbbpm/SubBpmGenerator.java +++ b/src/main/java/com/alibaba/compileflow/engine/process/preruntime/generator/impl/tbbpm/SubBpmGenerator.java @@ -102,7 +102,7 @@ protected void doGenerateSubBpmMethodCode(CodeTargetSupport codeTargetSupport) { codeTargetSupport.addBodyLine("_spContext.put(\"" + param.getName() + "\", " + var + ");"); } - String noReturnCode = "ProcessEngineFactory.getProcessEngine().start(\"" + String noReturnCode = "ProcessEngineFactory.getProcessEngine().execute(\"" + flowNode.getSubBpmCode() + "\", _spContext)"; if (returnVar != null) {