Get all SequenceFlow between tow task

you have to parse the BPMN and get the connects flow flows connected to the activity.