#api #bonita7 #restapi

when I populate a list in uiDesigner 1 value updates all values (EDITED)

Hello,

I'm trying to populate a list of users with their roles, this is the code:

$data.user = 0;

$data.listaTratada=[];

$data.grupo = "";

for( var i = 0; $data.listaUsuariosTotal.length >= i; i++){

$data.apiGetRoles = "../API/identity/membership?p=0&c=10&f=user_id="+$data.listaUsuariosTotal[i].id+"&d=role_id";

$data.listaTratada.unshift({"grupo":$data.RolesPorUsuario[0].role_id.name,

"usuario":$data.listaUsuariosTotal[i].firstname,

"id":$data.listaUsuariosTotal[i].id});

Create json for rest API

Hello, I am trying to create a json body for a rest API call, but it returned error

Body as map output cannot be set. Response content type is not json compliant(application/problem+json; charset=utf-8).

I used import groovy.json.JsonBuilder, and created the json as some examples in Q&A, but it doesn't work

Can I get list of possible outgoing transition of the current element via API?

Hi,

My project has used Bonita to control document workflow, which each element in the process represent each employee level. I'm finding for API that I can send flownode_instance id to get the possible outgoing transition.

Below is the example image:

zYPAe6o.jpeg

From the image, if the flownode_instance is currently at 2501, I want to send flownode_instance id to API to get 2501, 2203, 4501, 4101 in return.

Pass data to a processs through REST API

I was able to authenticate and start a process using the REST API, is it possible to pass some data to that process using the REST API? How to do so?

Is there API available to fetch data from longboard page

Is there API available to fetch data from longboard page.

Noticed that longboard page has good information available regarding task, completion status, timers ..etc

Using api wanted to pull the data into some other application.

Please let me know if api available for longboard

can not call apis multiple time from the front-end

Hello i am new to bonitasoft started working with company that uses this product.

i have to filter through data that requires to make multiple api calls so i wrote it in front-end (i do not know if using groovy script was better but i do not know) the way i do it is i make api calls with fetch in a loop.

the problem is that the response is delayed obviously and the application loads faster.

is there any way to fix this, i looked through the documentation but i could not find anything useful.

P.S i am using bonitasoft 7.8.4

can not call apis multiple time from the front-end

Hello i am new to bonitasoft started working with company that uses this product.

i have to filter through data that requires to make multiple api calls so i wrote it in front-end (i do not know if using groovy script was better but i do not know) the way i do it is i make api calls with fetch in a loop.

the problem is that the response is delayed obviously and the application loads faster.

is there any way to fix this, i looked through the documentation but i could not find anything useful.

P.S i am using bonitasoft 7.8.4

Hosting a Bonita Tomcat Bundle (RESTful API only used) in a small Virtual Machine

Dear BonitaSoft

We are planning to include Bonita BPMN Engine in our architecture, utilizing only its RESTful API for BPMN model execution only (no forms and UI in Bonita, the user experience is handled by our webapps only and they just call Bonita Restful API for BPMN execution purposes).

The computing environment - being a little bit constrained - allows us to dedicate to Bonita Restful API only a single virtual machine with 1 vCPU and 2GB RAM.

Is it possible to start a process with start message thru Rest API?

Hi all,

I am new to Bonita. I want to start a process with "start message" without knowing its process id thru rest api, is it possible? I couldn't find any example on Internet. Many thank in advance.

Send Message via Rest API Bonita 7.10.3 - Community

Hi,

I need to send a message via rest api to a specific instance of a process. I create a CatchMessage called abortPayment with a correlation called processInstanceIdKey (groovy with "processInstanceId"). Via rest api I do the next request:

Notifications