Deleting an gateway does not delete the associated sequence flows

Description

If an activiti model is created with a gateway, but then the gateway deleted, the corresponsing sequence flows seems to still exist. This results in the error 'SequenceFlow has no target activity'

To recreate:

Create a model with a gateway (either type) and add sequence flows
Export to BPMN 2.0 XML (all fine)
Delete the gateway
Export to BPMN 2.0 XML (results in error)

Even if you recreate it with a new gateway, this doesn't solve the error which leaves you with a broken model that can't be fixed

(screenshots and model attached)

Possibly related to bug

Environment

None

Assignee

Tijs Rademakers

Reporter

Antony Lees

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure