cancel
Showing results for 
Search instead for 
Did you mean: 

ProcessDiagramGenerator not working in 5.16.1

tcheekva
Champ in-the-making
Champ in-the-making
I have confirmed the following code works up thru 5.15.1 but not in 5.16.1. Does not throw any errors.

ProcessEngine processEngine = ProcessEngines.getProcessEngine(dbname);
RepositoryService repositoryService = processEngine.getRepositoryService();
BpmnModel pm = repositoryService.getBpmnModel(processID);
is = ProcessDiagramGenerator.generateDiagram(pm, "png",processEngine.getRuntimeService().getActiveActivityIds(processInstanceID));
   
Any help would be great Thans.   
6 REPLIES 6

trademak
Star Contributor
Star Contributor
If it's not returning an error what's the issue? Is it returning a null value?

Best regards,

tcheekva
Champ in-the-making
Champ in-the-making
Sorry, should have been more clear. It is not returning the diagram.  Returns null.

jbarrez
Star Contributor
Star Contributor
Can you post the process xml which fails? That would help us tremendously.

tcheekva
Champ in-the-making
Champ in-the-making
This is the bpmn file I used.

trademak
Star Contributor
Star Contributor
This XML works fine for me. But you are using the ProcessDiagramGenerator in a static way, that's not correct. I used the following line:

InputStream imageStream = new DefaultProcessDiagramGenerator().
        generateDiagram(pm, "png", runtimeService.getActiveActivityIds(pi.getId()));

Also are you sure the process instance is running?

Best regards,

tcheekva
Champ in-the-making
Champ in-the-making
It works now changing code to use the new DefaultProcessDiagramGenerator().   Everything worked fine up to 5.15.1.  I have been using this same code for awhile now.  This is used in an embedded app with our own front end GUI.


Thanks for the help
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.