add - 添加新版的 JSON 转 BPMN 功能

This commit is contained in:
wangli 2023-10-17 17:43:52 +08:00
parent ea234212e4
commit f15cdab842

View File

@ -117,7 +117,7 @@ public class BpmTransformUtil {
if (BpmFlowNodeType.NODE_CONDITION.equals(parentNode.getType())) {
sequenceFlowId = parentNode.getId();
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();
conditionExpression.append("${ ");
@ -216,7 +216,7 @@ public class BpmTransformUtil {
List<Map> conditions = Lists.newCopyOnWriteArrayList();
for (BpmnJsonNode element : branches) {
if (!ObjectUtils.isEmpty(element.getProperty())) {
Boolean typeElse = element.getProperty().getDefaultCondition();
Boolean typeElse = element.getProperty().getDefaultBranch();
if (Boolean.TRUE.equals(typeElse)) {
exclusiveGateway.setDefaultFlow(element.getId());
}