浏览代码

bug #IBVGGT 13版本groovy脚本中使用_meta.cmp.setIsEnd(true)结束流程不生效

everywhere.z 1 月之前
父节点
当前提交
165ea95812
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      liteflow-core/src/main/java/com/yomahub/liteflow/core/ScriptCommonComponent.java

+ 1 - 1
liteflow-core/src/main/java/com/yomahub/liteflow/core/ScriptCommonComponent.java

@@ -48,7 +48,7 @@ public class ScriptCommonComponent extends NodeComponent implements ScriptCompon
 	public boolean isEnd() {
 	public boolean isEnd() {
 		//因为如果在scriptExecutor去执行cmp的super.isEnd()方法,会引起无限循环导致栈溢出
 		//因为如果在scriptExecutor去执行cmp的super.isEnd()方法,会引起无限循环导致栈溢出
 		//这里没有更好的办法,只有硬代码判断下了
 		//这里没有更好的办法,只有硬代码判断下了
-		if (!this.getRefNode().getLanguage().equals(ScriptTypeEnum.JAVA.getDisplayName())){
+		if (!ScriptTypeEnum.JAVA.getDisplayName().equals(this.getRefNode().getLanguage())){
 			return super.isEnd();
 			return super.isEnd();
 		}
 		}
 		ScriptExecuteWrap wrap = this.buildWrap(this);
 		ScriptExecuteWrap wrap = this.buildWrap(this);