cancel
Showing results for 
Search instead for 
Did you mean: 

XML to PNG problem

evan
Champ in-the-making
Champ in-the-making
Hi All ,
    I saw a video on the internet that when user only upload a XML file to activiti engine with Activiti Probe webapp ,then the engine can automatically create relating PNG file and shown in Activiti Explorer . But when I made a sample with ECLIPSE and only uploade the xml to engine with Activiti Probe webapp ,no PNG created . my sample are no extended JAVA code and user form in XML ,also no error and can work in activiti . why and where am I wrong?

  thanks at all.
  Evan.
11 REPLIES 11

jbarrez
Star Contributor
Star Contributor
Are you using the latest version of the Designer? Only the latest version (0.7) generates the correct diagram interchange element required to display the image.

evan
Champ in-the-making
Champ in-the-making
Hi Jbarrez,
 
    Thank you for your reply.My Activiti is 5.2 and deploy date is 1 February 2011 . Is it last version? if not ,where can I download the last version? If it is the last verstion . why and where am I wrong?

Thanks at all.

Evan

trademak
Star Contributor
Star Contributor
Hi,

Are you using the Activiti Designer (Eclipse plugin) or did you implement the BPMN XML yourself?

Best regards,

evan
Champ in-the-making
Champ in-the-making
Hi ,
  
   thanks for your reply.
   I am using the Activiti Designer (Eclipse plugin) to make BPMN XML . It is no error on eclipse and work nice on Activiti Explorer .  I also upload Activiti demo XML to Activiti . It is same problem with my sample .

  Thanks
 
  Evan.

jbarrez
Star Contributor
Star Contributor
I tried it yesterday, and there seems indeed to be a problem with diagram generation.
The diagram png is in the databasem but the name is incorrect it seems.

I'll look into it.

tiesebarrell
Champ in-the-making
Champ in-the-making
Joram,

this might be related to this issue? http://jira.codehaus.org/browse/ACT-529

I will be looking at whether we can generate an image as the API expects. Would it be used in that case?

jbarrez
Star Contributor
Star Contributor
Tiese: jup, indeed. Now there is in the database something like /yourprocess.diagram.png (or something alike)

The reference in the userguide is 100% correct. So if your process resides in /myprocess.bpmn20.xml, your image should be /myprocess.png

(I added the '/' because the designer seems to add it automatically)

tiesebarrell
Champ in-the-making
Champ in-the-making
What do you mean that Designer adds a slash to the filename? That would be an invalid filename and could not work. In my workspace it creates the file as you described, but to leading slash.

tiesebarrell
Champ in-the-making
Champ in-the-making
I have resolved the issue on the Designer end, see here: http://jira.codehaus.org/browse/ACT-529

The image is now a PNG image and follows the second mentioned convention (for single process) as mentioned in the userguide here: http://www.activiti.org/userguide/index.html#providingProcessDiagram