impr(bpmnrenderer): event type inspection
This commit is contained in:
parent
50ef72e0c8
commit
57a9f49e52
|
@ -259,14 +259,12 @@ function BpmnRenderer(events, styles, bpmnRegistry, pathMap) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isTypedEvent(event, 'bpmn:CancelEventDefinition') &&
|
if (isTypedEvent(event, 'bpmn:CancelEventDefinition') &&
|
||||||
isTypedEvent(event, 'bpmn:TerminateEventDefinition') &&
|
isTypedEvent(event, 'bpmn:TerminateEventDefinition', { parallelMultiple: false })) {
|
||||||
!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') &&
|
isTypedEvent(event, 'bpmn:TerminateEventDefinition', { parallelMultiple: true })) {
|
||||||
!!bpmnRegistry.getSemantic(data.id).parallelMultiple) {
|
|
||||||
return renderer('bpmn:ParallelMultipleEventDefinition')(p, data, isThrowing);
|
return renderer('bpmn:ParallelMultipleEventDefinition')(p, data, isThrowing);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1518,7 +1516,7 @@ function BpmnRenderer(events, styles, bpmnRegistry, pathMap) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return _.any(event.eventDefinitions, function(definition) {
|
return _.any(event.eventDefinitions, function(definition) {
|
||||||
return definition.$type === eventDefinitionType && matches(definition, filter);
|
return definition.$type === eventDefinitionType && matches(event, filter);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue