//1.
this.bpmnModeler = new BpmnModeler({...})
// 2.
var modeling = this.bpmnModeler.get("modeling");
const moddle = this.bpmnModeler._moddle;
var conditionExpression = moddle.create("bpmn:FormalExpression", {
body: "*****",
});
modeling.updateProperties(sequenceFlowElement, {
conditionExpression: conditionExpression,
});
效果
<sequenceFlow id="SequenceFlow_0a1jh0i" name="***" sourceRef="ExclusiveGateway_0xnmpvq" targetRef="EndEvent_0oz4jhu" magic:condiation="**">
<conditionExpression xsi:type="tFormalExpression">***</conditionExpression>
</sequenceFlow>
更多推荐
bpmn-js 给sequenceFlow 添加 conditionExpression
发布评论