mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-06-11 14:56:54 +08:00
加入格式化代码插件,并提交格式化后的代码
This commit is contained in:
@@ -3,20 +3,23 @@ package com.yomahub.liteflow.script.javascript;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.yomahub.liteflow.enums.ScriptTypeEnum;
|
||||
import com.yomahub.liteflow.script.jsr223.JSR223ScriptExecutor;
|
||||
|
||||
/**
|
||||
* JavaScript脚本语言的执行器实现
|
||||
*
|
||||
* @author Bryan.Zhang
|
||||
* @since 2.9.1
|
||||
*/
|
||||
public class JavaScriptExecutor extends JSR223ScriptExecutor {
|
||||
|
||||
@Override
|
||||
protected String convertScript(String script) {
|
||||
return StrUtil.format("function process(){{}} process();",script);
|
||||
}
|
||||
@Override
|
||||
protected String convertScript(String script) {
|
||||
return StrUtil.format("function process(){{}} process();", script);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ScriptTypeEnum scriptType() {
|
||||
return ScriptTypeEnum.JS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ScriptTypeEnum scriptType() {
|
||||
return ScriptTypeEnum.JS;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user