fix(drilldown): ignore elements without BusinessObject

This commit is contained in:
Martin Stamm 2022-02-18 11:58:54 +01:00 committed by fake-join[bot]
parent 7ff9be7c8a
commit bdf9cf3e75
2 changed files with 8 additions and 0 deletions

View File

@ -68,6 +68,11 @@ SubprocessCompatibility.prototype.createNewDiagrams = function(plane) {
plane.get('planeElement').forEach(function(diElement) {
var bo = diElement.bpmnElement;
if (!bo) {
return;
}
var parent = bo.$parent;
if (is(bo, 'bpmn:SubProcess') && !diElement.isExpanded) {

View File

@ -50,6 +50,9 @@
<bpmndi:BPMNShape id="Activity_1hpaeri_di" bpmnElement="emptyProcess">
<dc:Bounds x="960" y="50" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="ignored_di">
<dc:Bounds x="0" y="0" width="100" height="80" />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>