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

This commit is contained in:
wangli 2023-10-17 17:51:45 +08:00
parent f15cdab842
commit 022f57f3fa

View File

@ -120,8 +120,12 @@ public class BpmTransformUtil {
if (!ObjectUtils.isEmpty(parentNode.getProperty()) && !Boolean.TRUE.equals(parentNode.getProperty().getDefaultBranch())) {
//解析条件表达式
StringBuffer conditionExpression = new StringBuffer();
conditionExpression.append("${ ");
conditionExpression.append("var:eq('" + parentNode.getProperty().getConditionBranchKey() + "', " + parentNode.getProperty().getConditionBranchValue() + ")");
conditionExpression.append("${ ")
.append("var:eq('")
.append(parentNode.getProperty().getConditionBranchKey())
.append("', ")
.append(parentNode.getProperty().getConditionBranchValue())
.append(")");
conditionExpression.append(" }");
flow.setConditionExpression(conditionExpression.toString());