File tree Expand file tree Collapse file tree
flow-engine-framework/src/main/java/com/codingapi/flow Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public CustomAction() {
3636 this .enable = true ;
3737 this .type = ActionType .CUSTOM .name ();
3838 this .display = new ActionDisplay (this .title );
39- this .script = CustomScript .defaultCustomScript ();
39+ this .script = CustomScript .defaultScript ();
4040 }
4141
4242 @ Override
Original file line number Diff line number Diff line change 11package com .codingapi .flow .script .action ;
22
3+ import com .codingapi .flow .script .ScriptDefaultConstants ;
34import com .codingapi .flow .script .runtime .ScriptRuntimeContext ;
45import com .codingapi .flow .session .FlowSession ;
56import lombok .AllArgsConstructor ;
1112@ AllArgsConstructor
1213public class CustomScript {
1314
14- public static final String SCRIPT_DEFAULT = "def run(session){return 'PASS'}" ;
15-
1615 @ Getter
1716 private final String script ;
1817
@@ -26,8 +25,8 @@ public String execute(FlowSession session) {
2625 /**
2726 * 默认节点脚本
2827 */
29- public static CustomScript defaultCustomScript () {
30- return new CustomScript (SCRIPT_DEFAULT );
28+ public static CustomScript defaultScript () {
29+ return new CustomScript (ScriptDefaultConstants . SCRIPT_DEFAULT_ACTION_CUSTOM );
3130 }
3231
3332}
You can’t perform that action at this time.
0 commit comments