Developer Friendly BPMN doesn't remove Pools/Lanes in DI

Description

When creating a process from a model with multiple pools and only the executable Process Engine Pool is used, th Pools and Lanes aren't contained in the BPMN 2.0 XML, but in the DI, which gives an exceptionduring deployment.

See twitter example from camunda:

<bpmndi:BPMNShape bpmnElement="Process_Engine" id="Process_Engine_gui" isHorizontal="false">
<omgdc:Bounds height="266.0" width="782.0" x="105.0" y="270.0"/>
</bpmndi:BPMNShape>

As well Lane_2

Environment

None

Assignee

Daniel Meyer (camunda)

Reporter

Bernd Ruecker (camunda)

Labels

None

Fix versions

Affects versions

Priority

Major
Configure