mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 20:22:07 +08:00
enhancement #I6RFOE LiteFlow能否在流程(表达式)添加类似tag字段的属性,提高选择组件的复用率呢
This commit is contained in:
@@ -15,12 +15,7 @@ public class ScriptIfComponent extends NodeIfComponent implements ScriptComponen
|
||||
|
||||
@Override
|
||||
public boolean processIf() throws Exception {
|
||||
ScriptExecuteWrap wrap = new ScriptExecuteWrap();
|
||||
wrap.setCurrChainId(this.getCurrChainId());
|
||||
wrap.setNodeId(this.getNodeId());
|
||||
wrap.setSlotIndex(this.getSlotIndex());
|
||||
wrap.setTag(this.getTag());
|
||||
wrap.setCmpData(this.getCmpData(Map.class));
|
||||
ScriptExecuteWrap wrap = this.buildWrap(this);
|
||||
return (boolean) ScriptExecutorFactory.loadInstance()
|
||||
.getScriptExecutor(this.getRefNode().getLanguage())
|
||||
.execute(wrap);
|
||||
|
||||
@@ -15,12 +15,7 @@ public class ScriptSwitchComponent extends NodeSwitchComponent implements Script
|
||||
|
||||
@Override
|
||||
public String processSwitch() throws Exception {
|
||||
ScriptExecuteWrap wrap = new ScriptExecuteWrap();
|
||||
wrap.setCurrChainId(this.getCurrChainId());
|
||||
wrap.setNodeId(this.getNodeId());
|
||||
wrap.setSlotIndex(this.getSlotIndex());
|
||||
wrap.setTag(this.getTag());
|
||||
wrap.setCmpData(this.getCmpData(Map.class));
|
||||
ScriptExecuteWrap wrap = this.buildWrap(this);
|
||||
return (String) ScriptExecutorFactory.loadInstance()
|
||||
.getScriptExecutor(this.getRefNode().getLanguage())
|
||||
.execute(wrap);
|
||||
|
||||
@@ -15,12 +15,7 @@ public class ScriptWhileComponent extends NodeWhileComponent implements ScriptCo
|
||||
|
||||
@Override
|
||||
public boolean processWhile() throws Exception {
|
||||
ScriptExecuteWrap wrap = new ScriptExecuteWrap();
|
||||
wrap.setCurrChainId(this.getCurrChainId());
|
||||
wrap.setNodeId(this.getNodeId());
|
||||
wrap.setSlotIndex(this.getSlotIndex());
|
||||
wrap.setTag(this.getTag());
|
||||
wrap.setCmpData(this.getCmpData(Map.class));
|
||||
ScriptExecuteWrap wrap = this.buildWrap(this);
|
||||
return (boolean) ScriptExecutorFactory.loadInstance()
|
||||
.getScriptExecutor(this.getRefNode().getLanguage())
|
||||
.execute(wrap);
|
||||
|
||||
Reference in New Issue
Block a user