From 460862fd87f7f45e642a151a338db8be48010d14 Mon Sep 17 00:00:00 2001 From: yusu Date: Tue, 6 Feb 2024 17:21:17 +0800 Subject: [PATCH] delete start API --- .../java/com/alibaba/compileflow/engine/ProcessEngine.java | 6 +++--- .../engine/process/impl/BpmnProcessEngineImpl.java | 6 ------ .../engine/process/impl/TbbpmProcessEngineImpl.java | 6 ------ 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/alibaba/compileflow/engine/ProcessEngine.java b/src/main/java/com/alibaba/compileflow/engine/ProcessEngine.java index 0bd6dd4..0635edc 100644 --- a/src/main/java/com/alibaba/compileflow/engine/ProcessEngine.java +++ b/src/main/java/com/alibaba/compileflow/engine/ProcessEngine.java @@ -30,9 +30,6 @@ public interface ProcessEngine { Map trigger(String code, String tag, String event, Map context); - @Deprecated - Map start(String code, Map context); - void preCompile(String... codes); void preCompile(ClassLoader classLoader, String... codes); @@ -43,6 +40,9 @@ public interface ProcessEngine { String getTestCode(String code); + /*** + ** --- Compared with APIs above, following APIs add content of bpm as input directly --- + */ Map execute(String code, Map context, String content); Map trigger(String code, String tag, Map context, String content); diff --git a/src/main/java/com/alibaba/compileflow/engine/process/impl/BpmnProcessEngineImpl.java b/src/main/java/com/alibaba/compileflow/engine/process/impl/BpmnProcessEngineImpl.java index 3251dec..f304a8f 100644 --- a/src/main/java/com/alibaba/compileflow/engine/process/impl/BpmnProcessEngineImpl.java +++ b/src/main/java/com/alibaba/compileflow/engine/process/impl/BpmnProcessEngineImpl.java @@ -34,12 +34,6 @@ public Map trigger(String code, String tag, String event, Map start(String code, Map context) { - BpmnProcessRuntime runtime = getProcessRuntime(code); - return runtime.start(context); - } - @Override public Map execute(String code, Map context, String content) { BpmnProcessRuntime runtime = getProcessRuntime(code, content); diff --git a/src/main/java/com/alibaba/compileflow/engine/process/impl/TbbpmProcessEngineImpl.java b/src/main/java/com/alibaba/compileflow/engine/process/impl/TbbpmProcessEngineImpl.java index 66572aa..2bbaabc 100644 --- a/src/main/java/com/alibaba/compileflow/engine/process/impl/TbbpmProcessEngineImpl.java +++ b/src/main/java/com/alibaba/compileflow/engine/process/impl/TbbpmProcessEngineImpl.java @@ -35,12 +35,6 @@ public Map trigger(String code, String tag, String event, Map start(String code, Map context) { - TbbpmProcessRuntime runtime = getProcessRuntime(code); - return runtime.start(context); - } - @Override public Map execute(String code, Map context, String content) { TbbpmProcessRuntime runtime = getProcessRuntime(code, content);