Get process information using the REST API



I want to get the possible paths that process can go from the actual state, per example, my process is in the to approve document step, after this step I have a gateway that goes to two possible steps depending from the user answer in the previous step. Then I need I REST service that give me possible ways of the next step, approve or reprove, I need this because I want to show the buttons dynamically, depending of possible actions that user can do.

Is possible to get this via REST API?

Murilo Faria

1 answer


Probably not the best option but the REST BPM API let you get the diagram XML definition. See "Diagram" section on:

Another solution is maybe to build your own REST API extension that will rely on Java API. Java API offers a method to get a DesignProcessDefinition object that should includes information about tasks that maybe also includes information about transitions.


Submitted by murilofaria on Wed, 08/16/2017 - 14:36

Thanks for your answer antoine.mottier,

I thought in this option, I tried to use this method /bonita/API/bpm/diagram/:processId, but I got 404 error.

Did you ever use this method?

Submitted by antoine.mottier on Wed, 08/23/2017 - 18:16

Sorry I just realized that this API is actually only available in the Subscription edition. Documentation need to be updated to reflect that.