cancel
Showing results for 
Search instead for 
Did you mean: 

Get diagram for a process instance

aurelienpel
Champ in-the-making
Champ in-the-making
Hello,

I would like, for a process instance, to have its diagram, so according to the UserGuide I am using the following call to the engine :

GET runtime/process-instances/{processInstanceId}

and I have as result the correct form :

{
   "id":"7",
   "url":"http://localhost:8182/runtime/process-instances/7",
   "businessKey":"myBusinessKey",
   "suspended":false,
   "processDefinitionUrl":"http://localhost:8182/repository/process-definitions/processOne%3A1%3A4",
   "activityId":"processTask"
}

BUT I wanted with this call the file with the extension .png
Is it the correct call to the engine or not ? and if so, what can I add to have it please ?

Thanks a lot

Aurelien
2 REPLIES 2

aurelienpel
Champ in-the-making
Champ in-the-making
Also, when I try with
GET runtime/process-instances/{processInstanceId}/diagramResource
or
GET runtime/process-instances/{processInstanceId}diagram

I have as result "no router defined"

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Aurelien,

http://www.activiti.org/userguide/#N16853

do not forget / between {processInstanceId} and diagram.

Regards
Martin