Activiti Process Instance JSON
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2014 02:05 AM
As part of the integration of Activiti into our application, we have been looking at replacing the .png generation of a process diagram with the canvas rendering of the process diagram (eg. the ones located at: http://hostname:8080/activiti-explorer/#activeProcessDefinition/processName:10:12345).
We had a look at the Activiti source on Github to get an idea of how it works, and we found that the explorer has its own REST interface, that returns the process instance/definition in JSON form (Which is then used by a js lib to render it)
To simplify deployment, we would like only to deploy the Activiti REST web application, and not the Activiti Explorer web app. However, the new REST application doesn't seem to have an equivalent method to request the JSON of a process. Is this correct? If not, how is it done?
We had a look at the Activiti source on Github to get an idea of how it works, and we found that the explorer has its own REST interface, that returns the process instance/definition in JSON form (Which is then used by a js lib to render it)
To simplify deployment, we would like only to deploy the Activiti REST web application, and not the Activiti Explorer web app. However, the new REST application doesn't seem to have an equivalent method to request the JSON of a process. Is this correct? If not, how is it done?
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2014 03:32 AM
There's an equivalent REST service at:
/repository/process-definitions/{processDefinitionId}/model
Best regards,
/repository/process-definitions/{processDefinitionId}/model
Best regards,
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2014 04:00 AM
Thanks for that, it is almost what we are looking for.
One thing I did notice was that the response to that seems to not have any type attribute for each activity (Either that or it isn't being populated).
One thing I did notice was that the response to that seems to not have any type attribute for each activity (Either that or it isn't being populated).
