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));