add - 添加新版的 JSON 转 BPMN 功能
This commit is contained in:
parent
ea234212e4
commit
f15cdab842
@ -117,7 +117,7 @@ public class BpmTransformUtil {
|
|||||||
if (BpmFlowNodeType.NODE_CONDITION.equals(parentNode.getType())) {
|
if (BpmFlowNodeType.NODE_CONDITION.equals(parentNode.getType())) {
|
||||||
sequenceFlowId = parentNode.getId();
|
sequenceFlowId = parentNode.getId();
|
||||||
flow.setName(parentNode.getName());
|
flow.setName(parentNode.getName());
|
||||||
if (!ObjectUtils.isEmpty(parentNode.getProperty()) && !Boolean.TRUE.equals(parentNode.getProperty().getDefaultCondition())) {
|
if (!ObjectUtils.isEmpty(parentNode.getProperty()) && !Boolean.TRUE.equals(parentNode.getProperty().getDefaultBranch())) {
|
||||||
//解析条件表达式
|
//解析条件表达式
|
||||||
StringBuffer conditionExpression = new StringBuffer();
|
StringBuffer conditionExpression = new StringBuffer();
|
||||||
conditionExpression.append("${ ");
|
conditionExpression.append("${ ");
|
||||||
@ -216,7 +216,7 @@ public class BpmTransformUtil {
|
|||||||
List<Map> conditions = Lists.newCopyOnWriteArrayList();
|
List<Map> conditions = Lists.newCopyOnWriteArrayList();
|
||||||
for (BpmnJsonNode element : branches) {
|
for (BpmnJsonNode element : branches) {
|
||||||
if (!ObjectUtils.isEmpty(element.getProperty())) {
|
if (!ObjectUtils.isEmpty(element.getProperty())) {
|
||||||
Boolean typeElse = element.getProperty().getDefaultCondition();
|
Boolean typeElse = element.getProperty().getDefaultBranch();
|
||||||
if (Boolean.TRUE.equals(typeElse)) {
|
if (Boolean.TRUE.equals(typeElse)) {
|
||||||
exclusiveGateway.setDefaultFlow(element.getId());
|
exclusiveGateway.setDefaultFlow(element.getId());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user