最近在尝试使用 camunda 做流程引擎,正常的流程还好。现在遇到边界事件时遇到了困难,新增一个边界事件,去发布的时候,会报
ENGINE-16004 Exception while closing command context: ENGINE-09005 Could not parse BPMN process. Errors:
* Unsupported boundary event type | resource 11.bpmn | line 51 | column 162
然后我还并不清楚这个比如条件边界事件如何去加 condition expression 。麻烦有没有大佬能解决一下。实在搞不明白这个……
BoundaryEvent boundaryEvent = createElement(process, BpmnCons.CONDITION_BOUNDARY_ID_PREFIX + IdUtil.simpleUUID(), BoundaryEvent.class);
boundaryEvent.setAttachedTo(userTask);
boundaryEvent.setCancelActivity(false);
SequenceFlow sequenceFlow1 = createSequenceFlow(process, boundaryEvent);
FlowNode lastUserTask = nodeNameIdMap.get(processDefine.getBoundary());
sequenceFlow1.setId(boundaryEvent.getId()+lastUserTask.getId());
sequenceFlow1.setTarget(lastUserTask);
lastUserTask.getIncoming().add(sequenceFlow1);
1
Jrue0011 2023-09-05 16:27:26 +08:00
没深入用过 camunda ,你把代码生成的 bpmn 导出成文件,然后跟用 camunda modeler 直接画的对比试试?
|
2
flushEvt OP 已经找到啦
|