fix(bpmnrenderer): 'multiple parallel' event was rendered as 'multiple' event

This commit is contained in:
jdotzki 2014-05-15 10:23:48 +02:00
parent 7cdf82cce1
commit fd03c02612
1 changed files with 4 additions and 2 deletions

View File

@ -219,12 +219,14 @@ function BpmnRenderer(events, styles, bpmnRegistry, pathMap) {
}
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);
}
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);
}