API REST

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

Error 401 when instantiating a process using REST API

Hi,

I'm trying to instantiate a process using REST API, but I'm getting 401 Unauthorized error.

I passed the right cookies so much that I get results from the following:

/bonita/API/bpm/process?s=ProcessTest
and
/API/bpm/process/6961608208004836487/contract

I'm using the same user that I start the process from portal, and there it works fine.
My process has no constraints or inputs, then I passed no body data.

Here is the Raw Request:

Setting REST Permissions

I am getting a 403 error (forbidden) when a user with "User" profile try to attach a file to a case.

I have tried unsuccessfully to resolve this error by:

  • Adding profile|User=[document_management] to the custom-permissions-mapping.properties file
  • Setting security.rest.api.authorizations.check.enabled to false in the security-config.properties file

Any help would be appreciated.

Thanks,

Greg Babcock

Parameters for connectors - Validation

I'm trying to use a parameter for a REST client, and I can´t find a way to provide the correct value to the conector.
I't seems that it is validating the parameter VALUE against this regular expression:(^[a-zA-Z]+|^\$)[a-zA-Z0-9$]*

this is the stacktrace:

How to convert code and id in forms bonita?

Hi,

I need to convert the id and code to name. I save the id and code in my main table instead of the name. But when I display the content of table it shows the id and code. I have tables that handle the equivalent of the code and id. How can i convert it in my UI Designer. Please help. Thanks

onno's picture
onno
Category: 

See Repository on Github

Releases for Angular 2 Bonita BPM Rest Api Lib

Total downloads: 685
Version BonitaBPM Version Post date Download Link
1.0.0 7.5.x, 7.4.x 2017-Aug-04 Download
27 downloads
Release note
0.1.0-beta-3 7.4.x 2017-Mar-01 Download
316 downloads
Release note
0.1.0-beta-1 7.4.x 2017-Jan-24 Download
342 downloads
Release note

Unable to login via rest API

I am using the community version to develop a proof on concept. I am trying to create the ability for users to create their own account via a web application. To do this I am planning to create a standalone web service with administrator credentials to create the accounts.

The problem that I am having is that when I try to login to the portal via the API it returns

"Unable to log in. Please check your username and password"

With Interceptor installed I can login via the portal and successfully execute other API calls via Postman.

Getting a group from API Rest

Hi, Im using Bonita 7.3.3

Im using the structure provided by Bonita (organitation, groups, roles...). In a form, I load a selector with the groups information with the call API:

../API/identity/group?p=0&c=100

When the user select one item, the value (id) is saved in a variable and later in a field for a BDM called "X".

In another form, I have a container with a selector. The selector load the records of "X" bdm. I want that when user select a record, in a input show the "displayName" of the "group" saved at "X". I have done this with two vars:

Get human task from existing process

Help please.
I have a process call "WKF" , and in the design, the process have some human task defined, for example
Task 1
Task 2
Task 3....
....
Task N.
My question is, how can i get all the human task names from the process (WKF), independent if the process have human tasks created or not.
Please help
Tnks.

REST API calls with HTTP basic Authentication

Hello,

I'm trying to write a script to init a Bonita server automatically. The aim of this script is to :
- import my organization
- import my bdm
- import processes
- import an application and related pages

Notifications