cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti Process Instance JSON

mhanrahan
Confirmed Champ
Confirmed Champ
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?
2 REPLIES 2

trademak
Star Contributor
Star Contributor
There's an equivalent REST service at:

/repository/process-definitions/{processDefinitionId}/model

Best regards,

mhanrahan
Confirmed Champ
Confirmed Champ
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).