REST

How to update BDM row through API Rest?

I need to update a business object of an ongoing case outside of it, for example the user inputs a contract, which is saved in the bdm, then for an unknown reason this needs to be updated, I don't want to have an extra task, I need to update the bdm via API Rest, I can get the model name and persistence id, but can't find a way to update it.

Is there a way to do it? If so, could you give me a hand with this?

Thanks

How can we upload a document to NextCloud CMIS?

Hello,

Currently, I'm using Bonita Community 2022.1 and NextCloud 17.0.6.

My company's expected is define an user task form can upload multi files into NextCloud.

REST api connector usage

Hello!

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.

CORS PROBLEM

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

Hi,

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 :

Use local and process variable in form

Hi, i tried to use process variable in UI Form. To do this i used Bonita REST API for:
localVar ../API/bpm/activityVariable/{{task.id}}/localVar
processVar ../API/bpm/caseVariable/{{task.rootContainerId}}/processVar

[localVar] - Bonita process local variable (for task), of BDM Type.
[processVar] - Bonita process variable, the same type as above.

BDM Type
com.samplepackage.SampleObject
attr1 - string
attr2 - string
attr3 - int
attr4 - string

How to extend Bonita in order to use external XACML policy

I would like to extend functionality of Bonita in order to allow users access to some resources by using external XACML policy point ?
How can I do that and where is the place to put the filter to to intercept all REST calls and enforce authorization ?
I read that one possibilities is ti use groovy script. Is that the best options, or only option ?

Connector wont execute on REST call

Hello, i'm currently developing a C# client where I need to instance some process via REST API. I have no problem executing any task with contracts, but when any userTask has a connector (specifically a rest connector to another server of mine), this won't execute and its skipped while the task is completed sending me a success response (Code: 204). However, if I perform the tasks on the portal every connector works perfectly.
The method i'm expecting to execute both the task and connector is {API/bpm/userTask/:taskId/execution} sending the correspondent json with the contract.

Is it safe to use REST API Login with password in the URL

Hi guys,

The title is pretty clear : we have a doubt concerning security when we see that the Login REST API sends the user's password in the URL.

instantiation form data

is there a way to retrieve the caseId from an instantiation form?

I'm building the following URL:

/portal/resource/process/:processName/:processVersion/content/?id=:processID

with it, I open a browser that shows me the instantiation form for that process. I can complete the form and start a new case.
What I want is to be able to, through a REST GET request in my code, or something like that, be able to retrieve the newly created caseID. Is this even possibel?

Notifications