Yana
2
Hi @fangfan,
Here is what the rest api is doing:
ProcessDefinition definition = engine.getRepositoryService().getProcessDefinition(processDefinitionId);
InputStream processDiagram = engine.getRepositoryService().getProcessDiagram(processDefinitionId);
String fileName = definition.getDiagramResourceName();
However maybe this post will be interesting to you:
Best regards,
Yana
1 Like