bpmn.js

Get Property

1
element.businessObject

Update Property

1
2
3
4
5
const modeling = bpmnJS.get('modeling');

modeling.updateProperties(sequenceFlowElement, {
conditionExpression: newCondition
});

Update Color

1
2
3
4
5
const modeling = bpmnJS.get('modeling');
modeling.setColor(sequenceFlowElement, {
fill: '#ccc', // 填充色
stroke: null// 边框色和label色
})

本文作者: 孟 虎
本文链接: https://menghu1994.github.io/blog/2023/10/Packages/bpmn/CustomProperty/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!