#APIRest

Get process information using the REST API

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

Getting the X-Bonita-API-Token

To Whom it may concern,

I am using Bonitasoft Subscription Version 7.3+.

I am trying to access Bonitasoft information from another application, on a different domain.

I am successfully using the 'loginservice' API. I am getting a status of 200. However I cannot get the X-Bonita-API-Token directly from that response.

I can see that the token is being set correctly in my browser as a cookie under the Bonitasoft server domain. However I am unable to access the cookies on that domain for the obvious reasons.

How can i use PATCH Method in Bonita?

I'm trying to call PATCH service from bonita.
I see bonita only supporting GET,POST,DELETE,PUT methods. Is there any way i can call PATCH method.

Could not resolve artifact org.bonitasoft.web

Get this error if try create Api rest extension:

Apply filter on a variable External API

I would like to know if it is possible to apply a filter to an external API variable of the UI Designer in the field "Avalaible value" so that only data that matches the one selected previously is displayed.

I need this because I am developing a screen where there will be several lines, as if they were items of an order, and for this I need the filter to be made according to what was being selected previously but in that line. I have an example that works exactly as I need it however the content is brought from a JSON variable and not a REST API.

Is it possible to create a CRUD Rest Api extension ?

hi guys,

I would like to developpe a rest api to create / edit / delete data from the business data model.
I tried to use DAO object. but in bonitasoft, DAO are designed only to read data.

Any suggestion or solution to this problem ?

This is an exemple of DAO :

public interface ApprovalDAO
extends BusinessObjectDAO
{

public Approval findByPersistenceId(Long persistenceId);

public List findByApprover(String approver, int startIndex, int maxResults);

public List findByVote(Boolean vote, int startIndex, int maxResults);

Is there another way to bring data from BDM to UI Designer other than through a API REST?

I am using a REST API variable to bring BDM data and display it in the UI Designer, my question is if there is another way to bring the BDM contents to the UI Designer?

Can't upload a case document through /bpm/caseDocument POST request

Hi,
Using bonitaVersion: 7.3.2
I'm not able to upload a document through ../bpm/caseDocument POST request
request_payload is
{"caseId": 38012, "file":"test.doc", "name":"myTestList","fileName":"test_1.doc", "name":"testfiles", "description":""}
and response is
{
"exception": "class java.lang.IllegalArgumentException",
"message": "Can't parse JSon",
"stacktrace": [
"org.bonitasoft.web.rest.server.framework.json.JSonSimpleDeserializer._unserializeTree(JSonSimpleDeserializer.java:62)",

Variable API Rest for popular dropdown with BDM content

Following the example Expense Reports that is made available in the BonitaSoft Site I was able to create a kind of page to select items that come from the bank to create a request with that however I am not able to access the content of what was selected in the first dropdown for then popular the second Dropdown.
https://drive.google.com/file/d/0B8aMiLwwVY0nUXM5LWEwMmFvckE/view?usp=sh...

Perform Select in UI Designer via API REST with a Process Variable

I need to select the data from my BDM according to the contents of a process variable, I have already been able to change the select via API REST with the contents of a UI Designer transitor variable, but now I need the contents to be of a process variable , it is possible?

Notifications