cancel
Showing results for 
Search instead for 
Did you mean: 

How to name a sequence flow?

jagadesh_doddi
Champ in-the-making
Champ in-the-making
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?
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
In the "properties" view, there is an input-field for the sequence-flow name…

smadhu
Champ in-the-making
Champ in-the-making
Hi,
     Iam facing a similar issue, If I set a name for the sequence flow from the java code, it appears in designer tool, but If I save the diagram to a png file, the name is not getting displayed. can you suggest how to get the sequence flow name to be displayed in the generated png diagram.

I set the sequence flow with the following code
flow.setName(name);

I save the diagram file with the following code
InputStream processDiagram = processEngine.getRepositoryService().getProcessDiagram(processInstance.getProcessDefinitionId());
FileUtils.copyInputStreamToFile(processDiagram, new File(diagramFileName));