cancel
Showing results for 
Search instead for 
Did you mean: 

Process definition diagram and bpmn20.xml issues

tj1
Champ in-the-making
Champ in-the-making
Hi guys.

I am using springboot Activiti. After deployment process definition diagrams are not generated and no exception is thrown. Regarding: http://www.activiti.org/userguide/#generatingProcessDiagram diagram should be generated when link to it is not provided.

REST api query /repository/process-definitions on Windows server:

"resource": "http://localhost:8080/repository/deployments/1/resources/C:\\DEV\\java\\spring-boot-activiti-example..."

"diagramResource": http://localhost:8080/repository/deployments/1/resources/C:\\DEV\\java\\spring-boot-activiti-example...
In that C drive location all processes *.bpmn20.xml exists, but why that path is added? Should they be accesable via network?
Unfortunately diagrams even doesn't exist in that location..

REST api query /repository/process-definitions on Linux server.
         "resource": "http://remoteLinuxServer/repository/deployments/1/resources/testProcess.bpmn20.xml",
         "diagramResource": "http://remoteLinuxServer/repository/deployments/1/resources/testProcess.testProcess.png"

Links looks ok, but neither resource, neither diagramResource are opened (diagramResource  I asume not even generated). Error:
"Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Thu Aug 06 22:39:06 CEST 2015
There was an unexpected error (type=Not Acceptable, status=406).
Not Acceptable"

Maybe someone has an idea what could be wrong? Maybe I lack permissions or I need to define location of *.bpmn20.xml files explicitly? Or it's activiti issue with springboot or something?

P.S. Process instace diagrams are generated well. Does the process definition and process instance diagrams are using different image generation engines?
3 REPLIES 3

vasile_dirla
Star Contributor
Star Contributor
Hi,
it seems you are working for a demo app "spring-boot-activiti-example-master". it would be easier to investigate if you will share the sources.
What do you think is it possible ?

tj1
Champ in-the-making
Champ in-the-making
I prepared little example. Here is it: http://1drv.ms/1hmOwnj

We have also enterprise Activiti solution, just did testing on empty one, to check if we don't messing up with the settings or so.

vasile_dirla
Star Contributor
Star Contributor
Hi,
thanks for the zip it was very useful; now I see the issue you were talking about.
It seems to have an issue here (since the generated URL's are not working, and doesn't look to nice too).

You could have a look here (the involved resources):
<code>
DeploymentResourceDataResource.java
</code>
and also here:
<code>
DeploymentResourceCollectionResource.java
</code>
</code>

if you will have a fix for it don't hesitate and create a PR. Smiley Happy