fix(bpmnrenderer): 'multiple parallel' event was rendered as 'multiple' event
This commit is contained in:
parent
7cdf82cce1
commit
fd03c02612
|
@ -219,12 +219,14 @@ function BpmnRenderer(events, styles, bpmnRegistry, pathMap) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isTypedEvent(event, 'bpmn:CancelEventDefinition') &&
|
if (isTypedEvent(event, 'bpmn:CancelEventDefinition') &&
|
||||||
isTypedEvent(event, 'bpmn:TerminateEventDefinition', { parallelMultiple: false })) {
|
isTypedEvent(event, 'bpmn:TerminateEventDefinition') &&
|
||||||
|
!bpmnRegistry.getSemantic(data.id).parallelMultiple) {
|
||||||
return renderer('bpmn:MultipleEventDefinition')(p, data, isThrowing);
|
return renderer('bpmn:MultipleEventDefinition')(p, data, isThrowing);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isTypedEvent(event, 'bpmn:CancelEventDefinition') &&
|
if (isTypedEvent(event, 'bpmn:CancelEventDefinition') &&
|
||||||
isTypedEvent(event, 'bpmn:TerminateEventDefinition', { parallelMultiple: true })) {
|
isTypedEvent(event, 'bpmn:TerminateEventDefinition') &&
|
||||||
|
!!bpmnRegistry.getSemantic(data.id).parallelMultiple) {
|
||||||
return renderer('bpmn:ParallelMultipleEventDefinition')(p, data, isThrowing);
|
return renderer('bpmn:ParallelMultipleEventDefinition')(p, data, isThrowing);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue