|
@@ -64,7 +64,9 @@ export default {
|
|
|
asyncBefore: false,
|
|
asyncBefore: false,
|
|
|
exclusive: false
|
|
exclusive: false
|
|
|
},
|
|
},
|
|
|
- loopInstanceForm: {}
|
|
|
|
|
|
|
+ loopInstanceForm: {
|
|
|
|
|
+ completionCondition:''
|
|
|
|
|
+ }
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
@@ -112,12 +114,19 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
changeLoopCharacteristicsType(type) {
|
|
changeLoopCharacteristicsType(type) {
|
|
|
|
|
+ this.loopInstanceForm.completionCondition = ''
|
|
|
// this.loopInstanceForm = { ...this.defaultLoopInstanceForm }; // 切换类型取消原表单配置
|
|
// this.loopInstanceForm = { ...this.defaultLoopInstanceForm }; // 切换类型取消原表单配置
|
|
|
// 取消多实例配置
|
|
// 取消多实例配置
|
|
|
if (type === "Null") {
|
|
if (type === "Null") {
|
|
|
window.bpmnInstances.modeling.updateProperties(this.bpmnElement, { loopCharacteristics: null });
|
|
window.bpmnInstances.modeling.updateProperties(this.bpmnElement, { loopCharacteristics: null });
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+ // 并行
|
|
|
|
|
+ if (type === "ParallelMultiInstance") {
|
|
|
|
|
+ this.loopInstanceForm.completionCondition = '${ nrOfCompletedInstances == 1 }'
|
|
|
|
|
+ this.updateLoopCondition(this.loopInstanceForm.completionCondition)
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
// 配置循环
|
|
// 配置循环
|
|
|
if (type === "StandardLoop") {
|
|
if (type === "StandardLoop") {
|
|
|
const loopCharacteristicsObject = window.bpmnInstances.moddle.create("bpmn:StandardLoopCharacteristics");
|
|
const loopCharacteristicsObject = window.bpmnInstances.moddle.create("bpmn:StandardLoopCharacteristics");
|