#api #bonita7 #restapi

How to retrieve the local files on server side with file name from front pages?

Hi everyone,

I currently encountered a problem. I have a form where users can select several file names among a lot of names, then we'll lead users to another application page with the selected name(s). Since this redirection does not reflect a process or a task at backend( the pool), I have no way to do some operations( like retrieving the files in my repository by names via Groovy) to manage the documents variable, which means I can't display the files by document_ref in my file viewer.

So is there any method that can help me to realize that?

CORS problem

Hello Community,

Ive been trying to consume the Bonita rest API from another domain, I followed the documentation to enable CORS in Bonita Server and used the example that appear here:


When the page load I get the following error:

Changing the group membership of a user in bonitasoft portal doesn't show effect in the REST API calls

I was trying to change the group membership of the user using the administrator role on the portal, and i changed the role of one of the user and the tasks showing up for him changed accordingly on the portal under the tasks tab, but when i do REST API calls,I am receiving tasks of the previous group of the user only, can you please help me out with this bug?

Is there any way to know the total amount of elements that the API call will return without executing the call or calling only a part of the elements

Is there any way to know the total amount of elements that the API call will return without executing the call or calling only a part of the elements? I just need to know the quantity, not the content.

Empty set After Bonita REST api is used

ok as requested i create a new Question

Here we go. Now it looks like this , i have written the API using the maven REST api extension i used it like this


Now the API converted to JSON here and the JSON looks like this :

Saving REST API JSON to database

How do you save JSON Data to Database? (H2 Database) ? I have a REST API i used which was actually a REST API extension now i want to save the value from the input widget in the database. How can i Do that?

Using Custom REST API inside UI designer

So now i have been able to get the API running 100% working fine and i want to use the API inside the UI designer

API looks like this http://localhost:8080/bonita/API/extension/sqlExample?queryId=getPersona... it shows the complete REST API info like this


and i want to use inside UI Designer , so i added a new variable and i used the API like this

Rest API wont display information from PostgreSQL

I followed the steps on here https://github.com/Bonitasoft-Community/rest-api-sql-data-source and somehow i was able to compile the maven from command line and have the zip created , however i noticed some few changes (Judging by what i have and what is on here hence i decided to talk about it here )

Now I run the maven command (After i have edited the several files which look like this ) this happens to be the configuration where i would run the Sql queries from (datasource.properties)

create REST API in java and use in Bonita

Ok Good evening ,

I followed this tutorial today https://documentation.bonitasoft.com/bonita/7.5/rest-api-extensions
and i must say i enjoyed every bit of it, shows I can create my own REST api and use in bonita. Now there is something i want to be sure of, can i code the REST API in java as well and ask it to show its result in json? then register in bonita? i just need to be clear of certain things thats all.

Get information from REST API and use in UI designer form

How do you use a REST API to programmatically populate forms on UI designer? I have some information on my active directory and i want to use the data in my UI form and save to the database later on, how do i go about something like this