流程退回可选审批人

流程图显示更多流程信息(节点审批人/当前审批节点)
流程配置过滤不存在的元素的配置
支持子流程多实例的审批(传参isEnd)
This commit is contained in:
yaoyn
2024-12-28 11:46:51 +08:00
parent 2c65b09833
commit ac31c31fe1
6 changed files with 91 additions and 10 deletions

View File

@ -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 });