Implement Bonita into Java EE Application


I am very new to Bonita.

I am trying to implement a Bonita process into a Java EE Application and deploy it to the Bonita Wildfly.

I have found the simple Example that connects to the running Bonita instance but when I deploy it as an ear file to my wildfly instance nothing happens. I cant see any output logs. Thats why I am curious if my Program is even running.

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;

How can I do to accept POST and GET method in my API.

Hi everyone,
Im building an API but I have a problem, how can i do to accept POST and GET method.

I added in page.properties but its does not works.


send multiple messages Via APi ?

How we can send multiple messages via the APi?

with send message task, there is no connector to add API ?

Problem with REST API Extension after restarting Bonita in the server

Hi, I have some REST API Extension and they work as well as.

But all of them doesn't work after I restarting Bonita! because of that, I have to upload them again!

What is the cause of this problem? Is there any way to fix it?

I'm using Bonita community version 7.8


REST api connector usage


I came here to ask about how to use the REST api connector in Bonita 7.10. I was looking through the contributions to see a project that uses it as a connector, however, I couldn't find any. I tried the community projects, such as the official vacation management project and the procurement one.

If you guys happen to know any project or a tutorial that teaches how to use it, I would appreciate it.

Thank you.

How can I log into bonita engine from external java application with APIClient?

I have a program in a different server but i need to acces some of the API-s of the bonita engine. How can i do that?

I already tried:

parameters.put("server.url", "http://URL:PORT");
parameters.put("application.name", "bonita");
APITypeManager.setAPITypeAndParams(ApiAccessType.HTTP, parameters);

org.bonitasoft.engine.api.APIClient apiClient = new APIClient();
apiClient.login("user", "password");

But I always get some error like:


Access to XMLHttpRequest at 'http://localhost:50129/bonita/API/bpm/humanTask/40098/execution' from origin has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.

Im trying to execute a task using Form External URL using another HTML5 framework , but that's what I get when I send the POST Request , what is the problem ?

how to download a csv file when clicking on a button widget


I'm trying to send some data in csv format from an application page when the user press a button.

I have a rest API method which is called when pressing the button. The code formats some data and should send them through the browser so that the user can download it.

I'm stuck when trying to send back the data, how should I format the response?

I get the following error right now :

login api

hello everyone

my code is :

Retrieve all tasks with their BDM values in one API


I have a list of tasks (~1000) and I'm trying to sort them with respect to their BDM values and a comparator function. For this, I'm iterating through each task, through an API for each task I'm retrieving it's BDM data, and with respect to this I'm sorting it. This takes a lot of time and is not practical. Is there a way I can decrease the number of API calls, get all tasks with their BDM values in one API call itself which could help me out?