1
This commit is contained in:
parent
6d31b70a2a
commit
d9b206f625
@ -97,7 +97,7 @@ public class BpmTransformUtil {
|
||||
//解析条件表达式
|
||||
StringBuffer conditionExpression=new StringBuffer();
|
||||
conditionExpression.append("${ ( ");
|
||||
conditionExpression.append(EXPRESSION_CLASS+"numberEquals("+parentNode.getProperty().getConditionKey()+","+parentNode.getProperty().getConditionBranchValue()+") ");
|
||||
conditionExpression.append(EXPRESSION_CLASS+"numberEquals("+parentNode.getProperty().getConditionBranchKey()+","+parentNode.getProperty().getConditionBranchValue()+") ");
|
||||
conditionExpression.append(" ) }");
|
||||
|
||||
flow.setConditionExpression(conditionExpression.toString());
|
||||
@ -205,7 +205,7 @@ public class BpmTransformUtil {
|
||||
//解析条件表达式
|
||||
StringBuffer conditionExpression=new StringBuffer();
|
||||
conditionExpression.append("${ ( ");
|
||||
conditionExpression.append(EXPRESSION_CLASS+"numberEquals("+element.getProperty().getConditionKey()+","+element.getProperty().getConditionBranchValue()+") ");
|
||||
conditionExpression.append(EXPRESSION_CLASS+"numberEquals("+element.getProperty().getConditionBranchKey()+","+element.getProperty().getConditionBranchValue()+") ");
|
||||
conditionExpression.append(" ) }");
|
||||
condition.put("nodeName", nodeName);
|
||||
condition.put("expression", conditionExpression.toString());
|
||||
|
||||
@ -23,8 +23,6 @@ public class BpmJsonNode {
|
||||
private String type; // task, branch,
|
||||
@ApiModelProperty(value = "节点名称", required = true)
|
||||
private String name;
|
||||
@ApiModelProperty(value = "节点描述", required = true)
|
||||
private String desc;
|
||||
// private Map<> properties; //ext : Object; 会签/或签
|
||||
@ApiModelProperty(value = "子节点信息", required = true)
|
||||
private BpmJsonNode children;
|
||||
@ -32,7 +30,7 @@ public class BpmJsonNode {
|
||||
private List<BpmJsonNode> branches;
|
||||
private BpmJsonNodeProperty property;
|
||||
|
||||
/*自己使用,不需要外界传*/
|
||||
/* 内部使用,不需要外界传 */
|
||||
private Map incoming = new HashMap();
|
||||
|
||||
|
||||
@ -71,14 +69,6 @@ public class BpmJsonNode {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public BpmJsonNode getChildren() {
|
||||
return children;
|
||||
}
|
||||
@ -94,8 +84,4 @@ public class BpmJsonNode {
|
||||
public void setBranches(List<BpmJsonNode> branches) {
|
||||
this.branches = branches;
|
||||
}
|
||||
|
||||
class properties {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -7,29 +7,27 @@ import lombok.Data;
|
||||
public class BpmJsonNodeProperty {
|
||||
|
||||
/**
|
||||
* 是否是多实例节点;
|
||||
* 是否是多实例Task节点;
|
||||
* */
|
||||
private Boolean isMultiTask;
|
||||
|
||||
/**
|
||||
* 多实例模式;OR:"或签",AND:"会签"
|
||||
* Task 多实例模式;OR:"或签",AND:"会签"
|
||||
* */
|
||||
private BpmFlowMultiMode multiMode;
|
||||
|
||||
/**
|
||||
* 条件节点中是否是默认分支
|
||||
* 条件节点中是否是默认分支,可以都不传;
|
||||
* */
|
||||
private Boolean defaultCondition;
|
||||
|
||||
/**
|
||||
* 条件分支的Key
|
||||
* */
|
||||
private String conditionKey;
|
||||
private String conditionBranchKey;
|
||||
|
||||
/**
|
||||
* 当ConditionKey的值是多少,走该分支
|
||||
* 条件节点当ConditionKey的值是多少,走该分支
|
||||
* */
|
||||
private Integer conditionBranchValue;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user