mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
feature #I44FT8 支持脚本语言的组件,并支持动态刷新脚本(版本特性)
This commit is contained in:
@@ -37,13 +37,13 @@ public class QLExpressScriptExecutor implements ScriptExecutor {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(String nodeId, int slotIndex) {
|
||||
public Object execute(String nodeId, int slotIndex) {
|
||||
List<String> errorList = new ArrayList<>();
|
||||
try{
|
||||
Slot slot = DataBus.getSlot(slotIndex);
|
||||
DefaultContext<String, Object> context = new DefaultContext<String, Object>();
|
||||
context.put("slot", slot);
|
||||
expressRunner.executeByExpressName(nodeId, context, errorList, true, false, null);
|
||||
return expressRunner.executeByExpressName(nodeId, context, errorList, true, false, null);
|
||||
}catch (Exception e){
|
||||
for (String scriptErrorMsg : errorList){
|
||||
log.error("\n{}", scriptErrorMsg);
|
||||
|
||||
Reference in New Issue
Block a user