fix(draw): always render compensation marker

Related to #291
This commit is contained in:
Nico Rehwaldt 2016-01-20 18:30:09 +01:00 committed by pedesen
parent a9d8ea7a20
commit f7a4a21d91
1 changed files with 21 additions and 14 deletions

View File

@ -1426,23 +1426,30 @@ function BpmnRenderer(eventBus, styles, pathMap, priority) {
renderer(marker)(p, element, position); renderer(marker)(p, element, position);
}); });
if (obj.isForCompensation) {
renderer('CompensationMarker')(p, element, position);
}
if (obj.$type === 'bpmn:AdHocSubProcess') { if (obj.$type === 'bpmn:AdHocSubProcess') {
renderer('AdhocMarker')(p, element, position); renderer('AdhocMarker')(p, element, position);
} }
if (obj.loopCharacteristics && obj.loopCharacteristics.isSequential === undefined) {
renderer('LoopMarker')(p, element, position); var loopCharacteristics = obj.loopCharacteristics,
return; isSequential = loopCharacteristics && loopCharacteristics.isSequential;
}
if (obj.loopCharacteristics && if (loopCharacteristics) {
obj.loopCharacteristics.isSequential !== undefined &&
!obj.loopCharacteristics.isSequential) { if (isSequential === undefined) {
renderer('ParallelMarker')(p, element, position); renderer('LoopMarker')(p, element, position);
} }
if (obj.loopCharacteristics && !!obj.loopCharacteristics.isSequential) {
renderer('SequentialMarker')(p, element, position); if (isSequential === false) {
} renderer('ParallelMarker')(p, element, position);
if (!!obj.isForCompensation) { }
renderer('CompensationMarker')(p, element, position);
if (isSequential === true) {
renderer('SequentialMarker')(p, element, position);
}
} }
} }