流程退回可选审批人
流程图显示更多流程信息(节点审批人/当前审批节点) 流程配置过滤不存在的元素的配置 支持子流程多实例的审批(传参isEnd)
This commit is contained in:
@ -482,6 +482,11 @@
|
||||
const rootElementsJson = bpmnModeler.getDefinitions().rootElements;
|
||||
const rootElementsFlowElementsArr = rootElementsJson[0].flowElements;
|
||||
|
||||
//过滤不存在元素的配置
|
||||
const exitsElements=bpmnModeler.get('elementRegistry').getAll();
|
||||
const exitsElementIds=exitsElements.map(x=>x.id);
|
||||
json.childNodeConfig=json.childNodeConfig.filter(x=>exitsElementIds.indexOf(x.id)>-1);
|
||||
|
||||
if (validateProcessConfig(rootElementsFlowElementsArr, json)) {
|
||||
try {
|
||||
const { svg } = await bpmnModeler.saveSVG({ format: true });
|
||||
|
||||
Reference in New Issue
Block a user