|
|
@ -109,10 +109,10 @@ public class ExecutionFlow { |
|
|
|
EdgeConditionBranchNode edge =(EdgeConditionBranchNode)outs.get(i); //出口边
|
|
|
|
GraphNode nexNode =edge.getOuts().get(0); //出口边指向的节点
|
|
|
|
if(i==0) { |
|
|
|
sb.append("\tif((").append(GroovyExpressionReplacer.groovy(node.getCondition(),null)).append(").equals(").append(GroovyExpressionReplacer.groovy(edge.getValue(),edge.getValueType())).append(")){").append("\n"); |
|
|
|
sb.append("\tif((").append(GroovyExpressionReplacer.groovy(edge.getValue(),edge.getValueType())).append(").equals(").append(GroovyExpressionReplacer.groovy(node.getCondition(),null)).append(")){").append("\n"); |
|
|
|
}else { |
|
|
|
if(edge.getValue()!=null && !edge.getValue().trim().isEmpty()) { |
|
|
|
sb.append("else if((").append(GroovyExpressionReplacer.groovy(node.getCondition(),null)).append(").equals(").append(GroovyExpressionReplacer.groovy(edge.getValue(),edge.getValueType())).append(")){").append("\n"); |
|
|
|
sb.append("else if((").append(GroovyExpressionReplacer.groovy(edge.getValue(),edge.getValueType())).append(").equals(").append(GroovyExpressionReplacer.groovy(node.getCondition(),null)).append(")){").append("\n"); |
|
|
|
}else { |
|
|
|
sb.append("else {").append("\n"); |
|
|
|
} |
|
|
|