Get diagram for a process instance
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2014 04:11 AM
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
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
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2014 04:17 AM
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"
GET runtime/process-instances/{processInstanceId}/diagramResource
or
GET runtime/process-instances/{processInstanceId}diagram
I have as result "no router defined"
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2014 08:43 AM
Hi Aurelien,
http://www.activiti.org/userguide/#N16853
do not forget / between {processInstanceId} and diagram.
Regards
Martin
http://www.activiti.org/userguide/#N16853
do not forget / between {processInstanceId} and diagram.
Regards
Martin
