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

This commit is contained in:
everywhere.z
2025-03-26 00:07:31 +08:00
parent 3083e89cd7
commit 165ea95812

View File

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