cancel
Showing results for 
Search instead for 
Did you mean: 

ProcessDiagramGenerator error

ahmetkara
Champ in-the-making
Champ in-the-making
Hi guys,

I try to use ProcessDiagramGenerator to generate the png of a process but I couldn't yet.
I am getting the error below.

Caused by: java.awt.image.RasterFormatException: (x + width) is outside raster
at sun.awt.image.IntegerInterleavedRaster.createWritableChild(Unknown Source)
at java.awt.image.BufferedImage.getSubimage(Unknown Source)
at org.activiti.engine.impl.bpmn.deployer.ProcessDiagramCanvas.generateImage(ProcessDiagramCanvas.java:161)
at org.activiti.engine.impl.bpmn.deployer.ProcessDiagramGenerator.generateDiagram(ProcessDiagramGenerator.java:205)
at org.activiti.engine.impl.bpmn.deployer.ProcessDiagramGenerator.generatePngDiagram(ProcessDiagramGenerator.java:184

Do you have any idea, what is the reason?
21 REPLIES 21

jbarrez
Star Contributor
Star Contributor
My version of Activiti is 5.10 … anybody can help me?!

I remember fixing a bug for this in 5.11. Any chance you could try with that version?

burn83
Champ in-the-making
Champ in-the-making
In 5.10…


List<ProcessInstance> definitionListexec= runtimeService.createProcessInstanceQuery().active().list();


ProcessDefinitionEntity pde = (ProcessDefinitionEntity) ((RepositoryServiceImpl) repositoryService)
                            .getDeployedProcessDefinition(definitionListexec.get(i).getProcessDefinitionId());
List <String> s = runtimeService.getActiveActivityIds(processelected);
InputStream imageStream_agg = ProcessDiagramGenerator.generateDiagram(pde, "png", s);

this works….Thanks to all for any help!! Smiley Happy)
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.