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?
Probably not the best option but the REST BPM API let you get the diagram XML definition. See "Diagram" section on: https://documentation.bonitasoft.com/?page=bpm-api
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.
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?