AnsweredAssumed Answered

Process Instance Diagram through Restful API

Question asked by pneudecorb on Aug 27, 2012
Latest reply on Sep 28, 2012 by frederikheremans1
I am trying to retrieve the process instance (not definition) diagram using the restful API, but I am not getting all the byte data back from the activiti calls.

My initial definition deployment consisted only of the definition (bpmn 2.0 xml) with no process definition image data.

I assume (please correct me) that all that is required to generate the process "Instance" diagram is the actual xml definition along with the current runtime state which is found using the passed in process instance id.

If I generate a process "definition" diagram using the activiti services (not restful), I get back roughly 12k bytes which I then render as an image.

When I try to generate a process "instance" diagram over the provided restful API, the resultant response stream (InputStream) contains only 92 bytes of data (garbage?).  I would expect at least 12k bytes and most likely more because of the additional decoration it does to the image for the process runtime state.

Not sure what I am doing wrong here and hoped someone else has exercised the process definition/instance diagram generation over the restful api.

Pneu

Outcomes