Skip to content

Commit

Permalink
delete start API
Browse files Browse the repository at this point in the history
  • Loading branch information
yusu committed Feb 6, 2024
1 parent 16ec867 commit 460862f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ public interface ProcessEngine<T extends FlowModel> {

Map<String, Object> trigger(String code, String tag, String event, Map<String, Object> context);

@Deprecated
Map<String, Object> start(String code, Map<String, Object> context);

void preCompile(String... codes);

void preCompile(ClassLoader classLoader, String... codes);
Expand All @@ -43,6 +40,9 @@ public interface ProcessEngine<T extends FlowModel> {

String getTestCode(String code);

/***
** --- Compared with APIs above, following APIs add content of bpm as input directly ---
*/
Map<String, Object> execute(String code, Map<String, Object> context, String content);

Map<String, Object> trigger(String code, String tag, Map<String, Object> context, String content);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ public Map<String, Object> trigger(String code, String tag, String event, Map<St
return runtime.trigger(tag, event, context);
}

@Override
public Map<String, Object> start(String code, Map<String, Object> context) {
BpmnProcessRuntime runtime = getProcessRuntime(code);
return runtime.start(context);
}

@Override
public Map<String, Object> execute(String code, Map<String, Object> context, String content) {
BpmnProcessRuntime runtime = getProcessRuntime(code, content);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ public Map<String, Object> trigger(String code, String tag, String event, Map<St
return runtime.trigger(tag, event, context);
}

@Override
public Map<String, Object> start(String code, Map<String, Object> context) {
TbbpmProcessRuntime runtime = getProcessRuntime(code);
return runtime.start(context);
}

@Override
public Map<String, Object> execute(String code, Map<String, Object> context, String content) {
TbbpmProcessRuntime runtime = getProcessRuntime(code, content);
Expand Down

0 comments on commit 460862f

Please sign in to comment.