Bonita and Bonita Rest in the same server
I've found an article and it was very useful for me.
Now I 've tested with a java REST client the exampple and it was succesful
The link is
Optionally, if you want to use the REST API, specific descriptors and classpath configurations for those servers are included in the bonita-server-rest.war.
Copy this as a *.war file to
Server side configuration
Configure the REST user's login and password in the JAAS configuration to be used by the server to authenticate the client's request for access. This configuration must contain the loginContext BonitaRESTServer.
Client side configuration
There are three types of client for the REST server:
- The Bonita User Experience in REST mode. This requires only configuration.
- The Bonita API in REST mode (Java client). This requires configuration and acknowledgment on how to use the Bonita API. (See the series Build your applications with Bonita Runtime on www.bonitasoft.org.)
- A language other than Java (HTTP client): This requires acknowledgment on the Bonita REST API.
Bonita User Experience configuration
If your client is Bonita User Experience or any Java client, configure the loginContext BonitaStore in
The client will use this login and password to request authentication with the server.
You will also have to update your server variable BONITA_OPTS to use the REST API:set "BONITA_OPTS=-DBONITA_HOME=
Test the REST API server
Execute a simple call to the getLightProcesses method (queryDefinitionAPI) using a rest client:Specify URL: http://localhost:8080/bonita-server-rest/API/queryDefinitionAPI/getLight...
Select POST method
Set content type to: application/x-www-form-urlencoded
Insert a header
Select BASIC authentication type
Set username to: restuser
Set password to: restbpm
Run the query. You should get an empty set of processes.