#APIRest

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?

Assign a process variable in a REST API variable in the UI Designer, is it possible?

I have a login screen where according to the user that is logging I need to display only the companies that he / she attends, I was able to assign to a process variable the respective company code to the user who accessed the system and I have a BDM where all the Registered companies are already available to be displayed in the UI Designer but I do not know how to display the companies that have the same code as the user that is accessing, so I thought of creating a API REST variable that would only return companies with the same code , But I can not put a process variable in this query, is

select via API REST variable

How to mount a select via API REST variable with a JSON type variable in UI Designer? I need this so I do not have to be returning to the studio to be able to select.

Notifications