cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between designer and generated image

blezek
Champ on-the-rise
Champ on-the-rise
Hi,

  Not a huge problem, but our graphical representation of a workflow is different in the designer and a generated image through our web page (see snapshots below).  The image as a PNG using this call:

            InputStream definitionImageStream = ProcessDiagramGenerator.generateDiagram(processDefinitionEntity, "png", runtimeService.getActiveActivityIds(processInstance.getId()));

We get the same result using this call:

      ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().deploymentId(deployment.getId()).orderByProcessDefinitionName().asc().singleResult();
      StreamResource diagram = new ProcessDefinitionImageStreamResourceBuilder().buildStreamResource(processDefinition, repositoryService, this.getApplication());

Here is a comparison of Eclipse (left) and our web page (right):

[attachment=0]ActivitiDesignerMissingIcon.png[/attachment]

Again, not a big deal, but would be useful to see if the boundary condition was a timer or an error.

Thanks,
-dan
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
I recently added some additional events to the in-activiti process-diagram generator. Not sure the event you're using is included, should you try using 5.10-snapshot for this or checking trunk to see if event is added. If not, file a jura for this.

The custom icons you're using are only known in the eclipse-designer and currently nothing is planned to support those in the engine.

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
A simple solution for the icons would to add them base64 encoded in the bpmn file. Should not be to difficult…

blezek
Champ on-the-rise
Champ on-the-rise
I recently added some additional events to the in-activiti process-diagram generator. Not sure the event you're using is included, should you try using 5.10-snapshot for this or checking trunk to see if event is added. If not, file a jura for this.

The custom icons you're using are only known in the eclipse-designer and currently nothing is planned to support those in the engine.


This is very helpful, I was not expecting our custom icons to show up, but I thought it odd the boundary signal event icon was missing.  I'll have a look at the latest snapshot if I get some time (this is a minor issue only).

Thanks,
-dan