Get process information using the REST API

1
0
-1

Hi,

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

1
0
-1

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.

Comments

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?

Notifications