private void ConnectionAdded(object sender, BpmnElementEvent e) { if (e.Element.Type == "bpmn:SequenceFlow") { _processManager.AddSequenceFlow(e.Element.Id, e.Element.Target, e.Element.Source, e.Element.ProcessId); } }