When two tasks are connected, it saves ID, sourceRef and targetRef in the BPMN file.
For ex: <sequenceFlow id="flow1" sourceRef="usertask1" targetRef="usertask2"></sequenceFlow>
if I manually add the attibute name="If amount > 1000" to the bpmn file as shown below and reload the BPMN file in the designer, it shows the name on the connector.
<sequenceFlow id="flow1" sourceRef="usertask1" targetRef="usertask2" name="If amount > 1000"></sequenceFlow>
Is there a way to add the name in the designer tool?