Download OpenAPI specification Download Postman collection
The REST API lets you access the data with HTTP requests; it is useful when implementing rich web forms / pages for a good user experience.
An open source java client is implemented above the HTTP API. It is available on Maven central.
If your application is using a technology other than Java, you can integrate it with the Bonita solution using the Web REST API. This API provides access to all Bonita objects (like processes, tasks, users, connectors etc.), to execute operations on them (create, retrieve, update, delete). You can use these operations to create a workflow with Bonita and integrate it into your application. The Bonita Engine remains responsible for executing the workflow logic (connectors, gateways with conditions, messages, timers etc.) while your application gives access to the workflow. Users can manage processes and tasks, and perform administrative activities.
You can create Rest API Extensions to extend the Rest API by adding missing resources (not provided by the Rest API). It is possible for an extension to interact with the engine (via the API) or with any other external service (for example a database, a directory, or a web service).
Request URL | http://.../API/{API_name}/{resource_name}/ |
---|---|
Request Method | POST |
Request Payload | an item in JSON |
Response | the same item in JSON, containing the values provided in the posted item, completed with default values and identifiers provided by Bonita Engine. |
Request URL | http://.../API/{API_name}/{resource_name}/{id} |
---|---|
Request Method | GET |
Response | an item in JSON |
Example http://.../API/identity/user/5
On some resources, in GET methods the d
(deploy) URL query parameter can be used to extend the response objects. The value of this parameter consists of an attribute for which you want to make an extended request (called a deploy) and retrieve attributes of a linked resource.
This means that instead of retrieving the ID or a parent or referenced resource, you can retrieve the full object.
For example, when you retrieve a task, you can also retrieve the process definition attributes in addition to the process definition ID that is already part of the task resource. The supported deploy values for a task include its process (d=processId).
Specifiy multiple d
parameter to extend several resources. For instance, to retrieve the flow node of id 143 and the associated process, process instance and assigned user, call /API/bpm/flowNode/143?d=processId&d=caseId&d=assigned_id
The order of the identifier parts for each resource type is given in the table above.
Request URL | http://.../API/{API_name}/{resource_name}/{id_part1}/{id_part2} |
---|---|
Request Method | GET |
Response | an item in JSON |
Example http://.../API/identity/membership/5/12/24
Request URL | http://.../API/{API_name}/{resource_name}/{id} |
---|---|
Request Method | PUT |
Request Payload | a map in JSON containing the new values for the attributes you want to change. |
Response | the corresponding item in JSON with new values where you requested a modification |
Example http://.../API/identity/user/5
Response: the corresponding item in JSON with new values where you requested a modification.
Request URL | http://.../API/{API_name}/{resource_name}/{id_part1}/{id_part2} |
---|---|
Request Method | PUT |
Request Payload | a map in JSON containing the new values for the attributes you want to change |
Response | the corresponding item in JSON with new values where you requested a modification |
Example
http://.../API/identity/membership/5/12/24
Use the DELETE request to remove multiple resources.
Request URL | http://.../API/{API_name}/{resource_name}/ |
---|---|
Request Method | DELETE |
Request Payload | A list of identifiers in JSON, for example ["id1","id2","id3"] . Compound identifiers are separated by '/' characters. |
Response | empty |
Example
http://.../API/identity/membership/
The required object is specified with a set of filters in the request URL. The URL parameters must be URL-encoded.
Results are returned in a paged list, so you have to specify the page (counting from zero), and the number of results per page (count), additionally you can define a sort key (order). You can see the total number of matching results in the HTTP response header Content-Range. If you are searching for business data using a custom query, there must be a count query in the BDM. If there is no count query, results from a custom query on business data cannot be paged properly (the header Content-Range will be absent). For business data default queries, the count query is defined automatically.
The available filters are the attributes of the item plus some specific filters defined by each item.
Request URL | http://.../API/{API_name}/{resource_name}?p={page}&c={count}&o={order}&s={query}&f={filter_name}={filter_value}&f=... |
---|---|
Request Method | GET |
Response | an array of items in JSON |
Example
/API/identity/user?p=0&c=10&o=firstname&s=test&f=manager_id=3
For a GET method that retrieves more than one instance of a resource, you can specify the following request parameters:
attributeName ASC
or attributeName DESC
. The final order parameter value must be URL encoded.attributeName=attributeValue
. To filter on more than one attribute, specify an f parameters for each attribute. The final filter parameter value must be URL encoded.
The attributes you can filter on are specific to the resource.s=Valid
returned matches containing the string "valid" at the start of any word in the attribute value word,
such as "Valid address", "Not a valid address", and "Validated request" but not "Invalid request".
If word-based search was disabled, s=Valid
returned matches containing the string "valid" at the start of the attribute value, such as "Valid address" or "Validated request" but not "Not a valid address" or "Invalid request".
Since Bonita 2024.1, the search mode can no longer be configured and a "like-based" algorithm is used. This means all the matching records for which the search term occurs anywhere in a phrase or a word are returned.The API uses standard HTTP status codes to indicate the success or failure of the API call.
If you get a 401
response code :
X-Bonita-API-Token
header is includedX-Bonita-API-Token
header.A call to the /loginservice
will generates a set-cookie header in the response.
The JSESSIONID
cookie must be transfered with each subsequent calls. (If the REST API is used in an application running in a web browser, this is handled automatically by the web browser just like any cookies).
Additional protection agains CSRF attacks is enabled by default for all fresh installations This security relies on X-Bonita-API-Token
information.
The X-Bonita-API-Token
value can be found in the cookie named: X-Bonita-API-Token
.
All the subsequence REST API calls performing changes in the system using DELETE, POST, or PUT HTTP methods must contain the HTTP header below:
X-Bonita-API-Token: example-dummy-not-be-used-value
username required | string the username |
password required | string <password> the password |
tenant | string the user tenant |
redirect | string Default: "false" "true" or "false". "false" indicates that the service should not redirect to Bonita Portal (after a successful login) or to the login page (after a login failure). |
redirectURL | string or null Default: "" the URL of the page to be displayed after login |
# Generate cookie file curl -v -c saved_cookies.txt \ --url 'http://localhost:8080/bonita/loginservice' \ --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'username=install' \ --data-urlencode 'password=install' \ --data-urlencode 'redirect=false' \ --data-urlencode 'redirectURL=' # Reuse the cookie file and set the `X-Bonita-API-Token` header curl -b saved_cookies.txt -X GET \ -- header 'X-Bonita-API-Token: <token>' \ --url 'http://localhost:8080/bonita/API/bpm/process?c=100&p=0'
{- "message": "Bad request"
}
Logout the current user from the system
redirect | string <= 5 characters ^(?:tru|fals)e$ Example: redirect=false Setting the redirect parameter to false indicates that the service should not redirect to the login page after logging out. |
curl -b saved_cookies.txt -X GET --url 'http://localhost:8080/bonita/logoutservice?redirect=false'
{- "message": "Bad request"
}
The username and password are in bonita-platform-community-custom.properties
file.
username | string the username |
password | string <password> the password |
redirect | string "true" or "false". "false" indicates that the service should not redirect to Bonita Portal (after a successful login) or to the login page (after a login failure). |
username=install&password=install&redirect=false
{- "message": "Bad request"
}
Manage applications. This enables you to build a consistent functional applicative environment for users to interact with business processes and business data from one place.
Finds living applications with pagination params and filters
id
,creationDate
, createdBy
, profileId
, token
, displayName
, updatedBy
, lastUpdateDate
, version
, link
token
, displayName
, version
, link
token
, displayName
, version
, link
, profileId
, creationDate
, createdBy
, updatedBy
, lastUpdateDate
, userId
p required | integer <int32> >= 0 Default: 0 Example: p=0 index of the page to display |
c required | integer <int32> >= 1 Default: 20 Example: c=10 maximum number of elements to retrieve |
f | Array of strings[^[A-Za-z0-9%]{0,250}$] Example: f=abc%3d123 can filter on attributes with the format f={filter_name}={filter_value} with the name/value pair as url encoded string. |
o | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ Example: o=myProp%20ASC can order on attributes |
s | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ can search on attributes |
[- {
- "id": "306",
- "link": "true",
- "creationDate": "1411548289900",
- "icon": "",
- "createdBy"": "1",
- "profileId": "2",
- "description": "My application link description",
- "token": "myadvapp",
- "state": "ACTIVATED",
- "displayName": "My app link",
- "updatedBy": "1",
- "visibility": "ALL",
- "editable": "true",
- "lastUpdateDate": "1411548289900",
- "version": "1.0"
}, - {
- "id": "305",
- "link": "false",
- "creationDate": "1411548289900",
- "icon": "",
- "createdBy"": "1",
- "profileId": "2",
- "description": "My application description",
- "token": "myapp",
- "state": "DEACTIVATED",
- "displayName": "My app",
- "updatedBy": "1",
- "visibility": "ALL",
- "editable": "true",
- "lastUpdateDate": "1411548289900",
- "version": "1.0",
- "homePageId": "26",
- "themeId": "1",
- "layoutId": "3"
}
]
Create a living application (legacy application or application link).
Warning: as of 9.0.0, creating a living application using this API is deprecated.
Partial living application description
link | boolean Default: "false" Enum: true false true for an application link, false for a legacy application |
description | string description of the application |
displayName | string display name of the application |
profileId | string profile authorized to access this application |
token | string token of the application used to build the application URL |
version | string version of the application |
{- "link": "false",
- "version": "1.0",
- "profileId": "2",
- "token": "myapp",
- "displayName": "My app",
- "description": "My application description"
}
{- "id": "306",
- "link": "true",
- "creationDate": "1411548289900",
- "icon": "",
- "createdBy"": "1",
- "profileId": "2",
- "description": "My application link description",
- "token": "myadvapp",
- "state": "ACTIVATED",
- "displayName": "My app link",
- "updatedBy": "1",
- "visibility": "ALL",
- "editable": "true",
- "lastUpdateDate": "1411548289900",
- "version": "1.0"
}
Returns a single application for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of application to return |
{- "id": "306",
- "link": "true",
- "creationDate": "1411548289900",
- "icon": "",
- "createdBy"": "1",
- "profileId": "2",
- "description": "My application link description",
- "token": "myadvapp",
- "state": "ACTIVATED",
- "displayName": "My app link",
- "updatedBy": "1",
- "visibility": "ALL",
- "editable": "true",
- "lastUpdateDate": "1411548289900",
- "version": "1.0"
}
Delete a single application for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of application to delete |
{- "message": "Bad request"
}
Update a single application for the given ID (legacy application or application link).
Warning: as of 9.0.0, updating a living application using this API is deprecated.
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of application to return |
Partial living application description
description | string description of the application |
displayName | string display name of the application |
profileId | string profile authorized to access this application |
token | string token of the application used to build the application URL |
version | string version of the application |
themeId | string theme id for the application |
layoutId | string layout id for the application |
{- "version": "1.0",
- "profileId": "2",
- "token": "myapp",
- "displayName": "My app",
- "description": "My application description",
- "themeId": "2",
- "layoutId": "17"
}
{- "id": "306",
- "link": "true",
- "creationDate": "1411548289900",
- "icon": "",
- "createdBy"": "1",
- "profileId": "2",
- "description": "My application link description",
- "token": "myadvapp",
- "state": "ACTIVATED",
- "displayName": "My app link",
- "updatedBy": "1",
- "visibility": "ALL",
- "editable": "true",
- "lastUpdateDate": "1411548289900",
- "version": "1.0"
}
Import a single application
Warning: as of 9.0.0, importing a living application using this service is deprecated.
applicationsDataUpload | string Uploaded file |
importPolicy | string Import policy |
{- "message": "Bad request"
}
Upload application
Warning: as of 9.0.0, uploading a living application using the portal is deprecated.
file | string <binary> |
{- "message": "Bad request"
}
Upload an application configuration file in the bconf
format.
Warning: as of 9.0.0, uploading an application configuration file using this API is deprecated.
configuration required | string <binary> |
{- "message": "Bad request"
}
Manage the set of menus in an application. This set of menus enables a user to navigate to the application pages.
There are two types of menu item:
A top-level item appears in the navigation bar of the application. A top-level item can be clickable, leading to a page, or can be a parent for a menu of clickable items. A child menu item becomes visible in a menu when the parent is selected. A child menu item is clickable and leads to a page. Each menu item has an index that defines the position in the menu. For a top-level menu item, this is the position in the the navigation bar counting from the left. For a child menu item, this is the position in the menu counting from the top.
Returns application menus with pagination params and filters
id
, displayName
, applicationId
, applicationPageId
, menuIndex
, parentMenuId
displayName
id
, displayName
, applicationId
, applicationPageId
, menuIndex
, parentMenuId
p required | integer <int32> >= 0 Default: 0 Example: p=0 index of the page to display |
c required | integer <int32> >= 1 Default: 20 Example: c=10 maximum number of elements to retrieve |
f | Array of strings[^[A-Za-z0-9%]{0,250}$] Example: f=abc%3d123 can filter on attributes with the format f={filter_name}={filter_value} with the name/value pair as url encoded string. |
o | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ Example: o=myProp%20ASC can order on attributes |
s | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ can search on attributes |
[- {
- "id": "8",
- "applicationId": "1",
- "applicationPageId": "5",
- "menuIndex": "1",
- "parentMenuId": "-1",
- "displayName": "menuLabel"
}
]
Create an application menu item
Warning: as of 9.0.0, creating an application menu item using this API is deprecated.
A partial representation of an application menu in JSON
displayName | string display name of the application menu |
applicationPageId | string the application menu page ID |
menuIndex | string the application menu index |
parentMenuId | string the application parent menu ID |
{- "displayName": "My updated label"
}
{- "id": "8",
- "applicationId": "1",
- "applicationPageId": "5",
- "menuIndex": "1",
- "parentMenuId": "-1",
- "displayName": "menuLabel"
}
Returns a single application menu for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of application menu to return |
{- "id": "9823",
- "displayName": "menuLabel",
- "applicationId": "1",
- "applicationPageId": "5",
- "menuIndex": "1",
- "parentMenuId": "-1"
}
Delete a single application menu for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the application menu to delete |
{- "message": "Bad request"
}
Update an application menu for the given ID
Warning: as of 9.0.0, updating an application menu item using this API is deprecated.
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the application menu to return |
Partial application menu description
parentMenuId | string id of the parent menu of this menu item, or -1 for a top-level item |
applicationPageId | string id of the application page targeted by this menu item, or -1 if there is no targeted page (that is, the item is a parent menu) |
applicationId | string id of the application related to this menu item |
menuIndex | string index of the menu item |
displayName | string label to display for this menu in the application navigation bar or menu |
{- "displayName": "menuLabel",
- "applicationId": "1",
- "applicationPageId": "5",
- "menuIndex": "1",
- "parentMenuId": "-1"
}
{- "message": "Bad request"
}
An application page is a custom page that has been associated with an application. Use this resource to manage application pages and define the paths used to access them. This list of pages will be used to build the application menus.
Finds application pages with pagination params and filters
id
, token
, applicationId
, pageId
token
id
, token
, applicationId
, pageId
p required | integer <int32> >= 0 Default: 0 Example: p=0 index of the page to display |
c required | integer <int32> >= 1 Default: 20 Example: c=10 maximum number of elements to retrieve |
f | Array of strings[^[A-Za-z0-9%]{0,250}$] Example: f=abc%3d123 can filter on attributes with the format f={filter_name}={filter_value} with the name/value pair as url encoded string. |
o | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ Example: o=myProp%20ASC can order on attributes |
s | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ can search on attributes |
[- {
- "id": "9876",
- "token": "myPage",
- "applicationId": "1234",
- "pageId": "5678"
}
]
Create an application page
Warning: as of 9.0.0, creating an application page using this API is deprecated.
Partial application page description
token | string token use to access the page using a URL : ../appName/pageToken/ |
applicationId | string id of the application related to this page |
pageId | string id of the custom page to display |
{- "token": "myPage",
- "applicationId": "1234",
- "pageId": "5678"
}
{- "id": "9876",
- "token": "myPage",
- "applicationId": "1234",
- "pageId": "5678"
}
Returns a single application page for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of application page to return |
{- "id": "9876",
- "token": "myPage",
- "applicationId": "1234",
- "pageId": "5678"
}
Delete a single application page for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of application page to delete |
{- "message": "Bad request"
}
Finds FormMappings with pagination params and filters
processDefinitionId
,type
p required | integer <int32> >= 0 Default: 0 Example: p=0 index of the page to display |
c required | integer <int32> >= 1 Default: 20 Example: c=10 maximum number of elements to retrieve |
f | Array of strings[^[A-Za-z0-9%]{0,250}$] Example: f=abc%3d123 can filter on attributes with the format f={filter_name}={filter_value} with the name/value pair as url encoded string. |
o | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ Example: o=myProp%20ASC can order on attributes |
s | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ can search on attributes |
[- {
- "id": 5,
- "processDefinitionId": 7281286536417002000,
- "type": "TASK",
- "target": "URL",
- "task": "Validate Feedback",
- "pageId": null,
- "pageMappingKey": "taskInstance/myProcess/1.0/Validate Feedback",
- "lastUpdatedBy": 4,
- "lastUpdateDate": 1425295012666,
}
]
Update the FormMapping for the given ID
Warning: as of 9.0.0, updating a Form Mapping using this API is deprecated.
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the FormMapping to return |
Representation of the form mapping attribute to update - {'pageId': (long)} or {'url': (string)} or {} to set the mapping type to NONE
pageId | string pageId of the FormMapping |
url | string url of the FormMapping |
{- "pageId": "123",
}
{- "message": "Bad request"
}
Show status or install or update the Business Data Model.
Installing or updating a BDM on your tenant needs to be done in two successive steps:
To do this, your tenant services need to be paused.
In Enterprise editions, if you have an access control file installed on your tenant, you need to delete it before installing or updating your BDM.
Finds business data specified by their identifiers.
businessDataType required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ Example: com.company.model.Employee Business Data Type |
ids required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ Example: ids=1,3,56 list of persistenceIds (comma separated) |
[- {
- "persistenceId_string": "1",
- "persistenceVersion_string": "0",
- "contractName": "contract for Netcom3",
- "terms": [
- {
- "persistenceId": 1,
- "persistenceId_string": "1",
- "persistenceVersion": 0,
- "persistenceVersion_string": "0",
- "termName": "term Name"
}, - {
- "persistenceId": 2,
- "persistenceId_string": "2",
- "persistenceVersion": 0,
- "persistenceVersion_string": "0",
- "termName": "term Name"
}
], - "client": {
- "persistenceId": 13,
- "persistenceId_string": "13",
- "persistenceVersion": 0,
- "persistenceVersion_string": "0",
- "clientName": "client name",
- "description": "n/a",
- "industry": [
- {
- "persistenceId": 2,
- "persistenceId_string": "2",
- "persistenceVersion": 0,
- "persistenceVersion_string": "0",
- "industryName": "Services"
}, - {
- "persistenceId": 3,
- "persistenceId_string": "3",
- "persistenceVersion": 0,
- "persistenceVersion_string": "0",
- "industryName": "Software"
}
]
}
}
]
Finds business data specified by its identifier.
businessDataType required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ Example: com.company.model.Employee Business Data Type |
persistenceId required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ Example: 1 Business data ID |
{- "persistenceId_string": "1",
- "persistenceVersion_string": "0",
- "contractName": "contract for Netcom3",
- "terms": [
- {
- "persistenceId": 1,
- "persistenceId_string": "1",
- "persistenceVersion": 0,
- "persistenceVersion_string": "0",
- "termName": "term Name"
}, - {
- "persistenceId": 2,
- "persistenceId_string": "2",
- "persistenceVersion": 0,
- "persistenceVersion_string": "0",
- "termName": "term Name"
}
], - "client": {
- "persistenceId": 13,
- "persistenceId_string": "13",
- "persistenceVersion": 0,
- "persistenceVersion_string": "0",
- "clientName": "client name",
- "description": "n/a",
- "industry": [
- {
- "persistenceId": 2,
- "persistenceId_string": "2",
- "persistenceVersion": 0,
- "persistenceVersion_string": "0",
- "industryName": "Services"
}, - {
- "persistenceId": 3,
- "persistenceId_string": "3",
- "persistenceVersion": 0,
- "persistenceVersion_string": "0",
- "industryName": "Software"
}
]
}
}
Gets the business data attribute of business data according to its identifier and attribute name. Request url.
businessDataType required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ Example: com.company.model.Employee Business Data Type |
persistenceId required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ Example: 1 Business data ID |
attributeName required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ Example: company Business data attribute name |
{- "persistenceId_string": "1",
- "persistenceVersion_string": "0",
- "company": "The Big Company"
}
Upload file.
NOTE: If this file is a BDM zip, to do this, your tenant services need to be paused. In Enterprise editions, if you have an access control file installed on your tenant, you need to delete it before installing or updating your BDM.
file | string <binary> |
{- "message": "Bad request"
}
Returns the current BDM. Make this call to get the status the BDM.
{- "id": "309",
- "name": "client_bdm.zip",
- "type": "BDM",
- "state": "INSTALLED",
- "lastUpdatedBy": -1,
- "lastUpdateDate": "2018-01-17T17:05:36.671Z"
}
Install a BDM
Warning: as of 9.0.0, importing a BDM using this API is deprecated.
fileUpload | string the temporary file name once uploaded on the server |
{- "fileUpload": "tmp_uploaded_bdm.zip"
}
{- "message": "Bad request"
}
Finds Business Data with pagination params and filters by calling a Named Query
.
The business data query REST API resource is used to call a default or custom business data query. It is available from version 6.5.
Data parameters:
true
or false
.By default, for a Date parameter can use the following formats:
businessDataType required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ Example: com.company.model.Employee Business Data Type |
q required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ Example: q=searchEmployeeByFirstNameAndLastName Named query to use |
p required | integer <int32> >= 0 Default: 0 Example: p=0 index of the page to display |
c required | integer <int32> >= 1 Default: 20 Example: c=10 maximum number of elements to retrieve |
f | Array of strings[^[A-Za-z0-9%]{0,250}$] Example: f=abc%3d123 can filter on attributes with the format f={filter_name}={filter_value} with the name/value pair as url encoded string. |
[- { }
]
BDM Access control is available to protect the tenant BDM. You can use this API to get the access control status (lastUpdatedBy, lastUpdateDate...).
Get the BDM access control status.
{- "id": 4090,
- "name": "bdm_access_control.xml",
- "type": "BDM_ACCESS_CONTROL",
- "state": "INSTALLED",
- "lastUpdatedBy": 4,
- "lastUpdateDate": "2018-01-17T17:05:36.671Z"
}
Upload BDM Access Control
Warning: as of 9.0.0, uploading a BDM Access Control using the portal is deprecated.
file | string <binary> |
tmp_accessControlFileToUpload.xml
Import a BDM Access Control
Warning: as of 9.0.0, importing a BDM Access Control using this service is deprecated.
bdmAccessControlUpload | string The temporary name of the previously uploaded file to install |
bdmAccessControlUpload=tmp_accessControlFileToUpload.xml
{- "message": "Bad request"
}
Finds Activities with pagination params and filters. Activities in states completed, cancelled, or aborted are not retrieved. The search returns an array of activities.
name
, displayName
, state
, processDefinitionId
, parentProcessInstanceId
, parentActivityInstanceId
(order by parent activity id), rootProcessInstanceId
, lastUpdateDate
name
, displayName
, state
, processDefinitionId
, parentProcessInstanceId
, parentActivityInstanceId
(order by parent activity id), rootProcessInstanceId
, lastUpdateDate
name
, state
, processId
, parentProcessInstanceId
, rootProcessInstanceId
, last_update_date
, supervisor_id
(only in Enterprise editions)p required | integer <int32> >= 0 Default: 0 Example: p=0 index of the page to display |
c required | integer <int32> >= 1 Default: 20 Example: c=10 maximum number of elements to retrieve |
f | Array of strings[^[A-Za-z0-9%]{0,250}$] Example: f=abc%3d123 can filter on attributes with the format f={filter_name}={filter_value} with the name/value pair as url encoded string. |
o | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ Example: o=myProp%20ASC can order on attributes |
s | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ can search on attributes |
[- {
- "displayDescription": "validate expense request",
- "executedBySubstitute": "0",
- "caseId": "76539",
- "parentCaseId": "68743",
- "rootCaseId": "65879",
- "processId": "7012",
- "rootContainerId": "7000",
- "state": "completed",
- "type": "the activity type as a string",
- "assigned_id": "304",
- "assigned_date": "2014-10-17 16:05:42.626",
- "id": "809764",
- "executedBy": "0",
- "priority": "the priority of the current activity as a string",
- "actorId": "50",
- "description": "In this step a manager reviews and validates an expense request.",
- "name": "Validate",
- "reached_state_date": "2014-10-18 10:37:05.643",
- "displayName": "Validate expense request",
- "dueDate": "2014-10-21 16:05:42.626",
- "last_update_date": "2014-10-18 10:37:05.643"
}
]
Returns the single Activity for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the Activity to return |
{- "displayDescription": "validate expense request",
- "executedBySubstitute": "0",
- "caseId": "76539",
- "parentCaseId": "68743",
- "rootCaseId": "65879",
- "processId": "7012",
- "rootContainerId": "7000",
- "state": "completed",
- "type": "the activity type as a string",
- "assigned_id": "304",
- "assigned_date": "2014-10-17 16:05:42.626",
- "id": "809764",
- "executedBy": "0",
- "priority": "the priority of the current activity as a string",
- "actorId": "50",
- "description": "In this step a manager reviews and validates an expense request.",
- "name": "Validate",
- "reached_state_date": "2014-10-18 10:37:05.643",
- "displayName": "Validate expense request",
- "dueDate": "2014-10-21 16:05:42.626",
- "last_update_date": "2014-10-18 10:37:05.643"
}
Update the Activity for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the Activity to return |
Partial Activity description
variables | string Activity variables to update. Note: if there is no data with the specified name in the activity, the update will be applied to the process data if a variable with the specified name exists. Note: if the task definition includes a connector that is executed on finish and updates the value of a variable, the value set by the REST API call is overwritten. |
state | string The target state of the activity
|
{- "variables": "[{\"name\":\"foo\",\"value\":\"bar\"}]",
- "state": "completed"
}
{- "message": "Bad request"
}
Finds Archived Activities with pagination params and filters. Activities in states completed, cancelled, or aborted are not retrieved. The search returns an array of activities.
Can order on:
name
: the name of this activitydisplayName
: the display name of this activitystate
: the current state of the activitytype
: the activity typeisTerminal
: say whether or not the activity is in a terminal stateprocessId
: the process this activity is associated tocaseId
: the process instance initiator this activity is associated toreached_state_date
: the date when this activity arrived in this stateCan filter on:
supervisor_id
: retrieve the information the process manager associated to this id has access to (only in Enterprise editions)p required | integer <int32> >= 0 Default: 0 Example: p=0 index of the page to display |
c required | integer <int32> >= 1 Default: 20 Example: c=10 maximum number of elements to retrieve |
f | Array of strings[^[A-Za-z0-9%]{0,250}$] Example: f=abc%3d123 can filter on attributes with the format f={filter_name}={filter_value} with the name/value pair as url encoded string. |
o | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ Example: o=myProp%20ASC can order on attributes |
s | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ can search on attributes |
[- {
- "id": "string",
- "type": "AUTOMATIC_TASK",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "displayDescription": "string",
- "state": "failed",
- "reached_state_date": "string",
- "last_update_date": "string",
- "dueDate": "string",
- "priority": "highest",
- "processId": "string",
- "parentCaseId": "string",
- "rootCaseId": "string",
- "rootContainerId": "string",
- "executedBy": "string",
- "executedBySubstitute": "string",
- "actorId": "string",
- "assigned_id": "string",
- "assigned_date": "string",
- "sourceObjectId": "string",
- "archivedDate": "string"
}
]
Returns the single Archived Activity for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the Archived Activity to return |
{- "id": "string",
- "type": "AUTOMATIC_TASK",
- "name": "string",
- "displayName": "string",
- "description": "string",
- "displayDescription": "string",
- "state": "failed",
- "reached_state_date": "string",
- "last_update_date": "string",
- "dueDate": "string",
- "priority": "highest",
- "processId": "string",
- "parentCaseId": "string",
- "rootCaseId": "string",
- "rootContainerId": "string",
- "executedBy": "string",
- "executedBySubstitute": "string",
- "actorId": "string",
- "assigned_id": "string",
- "assigned_date": "string",
- "sourceObjectId": "string",
- "archivedDate": "string"
}
Finds HumanTasks with pagination params and filters
name
, priority
, dueDate
, state
, processDefinitionId
, processInstanceId
, parentActivityInstanceId
, assigneeId
, parentContainerId
, displayName
, reachedStateDate
assigned_id
, user_id
, show_assigned_to_others
(since 2022.2), state
, name
, displayName
, processDefinitionId
, caseId
, rootProcessInstanceId
, parentProcessInstanceId
p required | integer <int32> >= 0 Default: 0 Example: p=0 index of the page to display |
c required | integer <int32> >= 1 Default: 20 Example: c=10 maximum number of elements to retrieve |
f | Array of strings[^[A-Za-z0-9%]{0,250}$] Example: f=abc%3d123 can filter on attributes with the format f={filter_name}={filter_value} with the name/value pair as url encoded string. |
o | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ Example: o=myProp%20ASC can order on attributes |
s | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ can search on attributes |
[- {
- "displayDescription": null,
- "executedBySubstitute": 0,
- "processId": 5826139717723008000,
- "parentCaseId": 1,
- "state": "ready",
- "rootContainerId": 1002,
- "type": "USER_TASK",
- "assigned_id": null,
- "assigned_date": null,
- "id": 20004,
- "executedBy": 0,
- "caseId": 1002,
- "priority": "normal",
- "actorId": 102,
- "description": null,
- "name": "Analyse case",
- "reached_state_date": "2014-09-05 11:11:30.808",
- "rootCaseId": 1,
- "displayName": "Analyse case",
- "parentTaskId": 40001,
- "dueDate": "2014-09-05 12:11:30.775",
- "last_update_date": "2014-09-05 11:11:30.808"
}
]
Returns the single HumanTask for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the HumanTask to return |
{- "displayDescription": null,
- "executedBySubstitute": 0,
- "processId": 5826139717723008000,
- "parentCaseId": 1,
- "state": "ready",
- "rootContainerId": 1002,
- "type": "USER_TASK",
- "assigned_id": null,
- "assigned_date": null,
- "id": 20004,
- "executedBy": 0,
- "caseId": 1002,
- "priority": "normal",
- "actorId": 102,
- "description": null,
- "name": "Analyse case",
- "reached_state_date": "2014-09-05 11:11:30.808",
- "rootCaseId": 1,
- "displayName": "Analyse case",
- "parentTaskId": 40001,
- "dueDate": "2014-09-05 12:11:30.775",
- "last_update_date": "2014-09-05 11:11:30.808"
}
Update the HumanTask for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the HumanTask to return |
Fields that can be updated are assignedId
and state
. Specify only those fields that you want to change.
assigned_id | string The id of the user to assign this Human task to |
state | string state of the HumanTask |
{- "assigned_id": "1234",
- "state": "new_state"
}
{- "message": "Bad request"
}
Finds ManualTasks with pagination params and filters
You can filter on:
assigned_id={user_id}
: retrieve only the manual tasks assigned to the specified user. For example, retrieve the manual tasks assigned to user with id 1: /API/bpm/manualTask?p=0&c=10&f=assigned_id%3d1
.state=skipped | ready | completed | failed
: retrieve only the manual tasks with the specified state. For example, retrieve the ready tasks: /API/bpm/manualTask?p=0&c=10&f=state%3dready
.caseId={case_id}
: retrieve only the manual tasks created in the specified process instances. For example, retrieve the manual tasks for the case_id 2: /API/bpm/manualTask?p=0&c=10&f=caseId%3d2
.parentTaskId={parentTask_id}
: retrieve only the manual tasks for a specific parentTask. For example, retrieve the manual tasks for the parentTask_id 40001: /API/bpm/manualTask?p=0&c=10&f=parentTaskId%3d40001
.You can search on:
/API/bpm/manualTask?p=0&c=10&s=MySubTask
.p required | integer <int32> >= 0 Default: 0 Example: p=0 index of the page to display |
c required | integer <int32> >= 1 Default: 20 Example: c=10 maximum number of elements to retrieve |
f | Array of strings[^[A-Za-z0-9%]{0,250}$] Example: f=abc%3d123 can filter on attributes with the format f={filter_name}={filter_value} with the name/value pair as url encoded string. |
o | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ Example: o=myProp%20ASC can order on attributes |
s | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ can search on attributes |
[- {
- "displayDescription": "This is my subtask",
- "executedBySubstitute": 1,
- "processId": 8367255255370238000,
- "parentCaseId": 1,
- "state": "ready",
- "rootContainerId": 1,
- "type": "MANUAL_TASK",
- "assigned_id": 1,
- "assigned_date": "2014-12-01 17:39:53.784",
- "id": 40006,
- "executedBy": 1,
- "caseId": 1,
- "priority": "above_normal",
- "actorId": 1,
- "description": "This is my subtask",
- "name": "My subtask",
- "reached_state_date": "2014-12-01 17:39:53.784",
- "rootCaseId": 1,
- "displayName": "My subtask",
- "parentTaskId": 40001,
- "dueDate": "2014-12-25 00:00:00.000",
- "last_update_date": "2014-12-01 17:39:53.784"
}
]
Create the ManualTask. Use a POST method to create a new subtask. A subtask is attached to a parent task and it needs to be immediately assigned to a user.
Partial ManualTask description
parentTaskId | string The parent task ID |
state | string The task state |
name | string The task name |
description | string The task description |
priority | string The task priority |
dueDate | string The task due date |
assigned_id | string The id of the user assigned to the task |
{- "parentTaskId": "40001",
- "state": "ready",
- "name": "My subtask",
- "description": "This is my subtask",
- "priority": "above_normal",
- "dueDate": "2014-12-25 00:00:00.000",
- "assigned_id": "1"
}
{- "displayDescription": "This is my subtask",
- "executedBySubstitute": 1,
- "processId": 8367255255370238000,
- "parentCaseId": 1,
- "state": "ready",
- "rootContainerId": 1,
- "type": "MANUAL_TASK",
- "assigned_id": 1,
- "assigned_date": "2014-12-01 17:39:53.784",
- "id": 40006,
- "executedBy": 1,
- "caseId": 1,
- "priority": "above_normal",
- "actorId": 1,
- "description": "This is my subtask",
- "name": "My subtask",
- "reached_state_date": "2014-12-01 17:39:53.784",
- "rootCaseId": 1,
- "displayName": "My subtask",
- "parentTaskId": 40001,
- "dueDate": "2014-12-25 00:00:00.000",
- "last_update_date": "2014-12-01 17:39:53.784"
}
Returns the single ManualTask for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the ManualTask to return |
{- "displayDescription": "This is my subtask",
- "executedBySubstitute": 1,
- "processId": 8367255255370238000,
- "parentCaseId": 1,
- "state": "ready",
- "rootContainerId": 1,
- "type": "MANUAL_TASK",
- "assigned_id": 1,
- "assigned_date": "2014-12-01 17:39:53.784",
- "id": 40006,
- "executedBy": 1,
- "caseId": 1,
- "priority": "above_normal",
- "actorId": 1,
- "description": "This is my subtask",
- "name": "My subtask",
- "reached_state_date": "2014-12-01 17:39:53.784",
- "rootCaseId": 1,
- "displayName": "My subtask",
- "parentTaskId": 40001,
- "dueDate": "2014-12-25 00:00:00.000",
- "last_update_date": "2014-12-01 17:39:53.784"
}
Update the ManualTask for the given ID. Use a PUT method to execute a subtask. Executing a subtask basically means changing its state to completed and providing an executedBy value.
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the ManualTask to return |
Partial ManualTask description
state | string State of the ManualTask (completed) |
executedBy | string Id of the task executor |
{- "state": "completed",
- "executedBy": "1"
}
{- "message": "Bad request"
}
Finds Tasks with pagination params and filters
caseId
, processId
, state
, type
, supervisor_id
, last_update_date
caseId
, processId
, state
, type
, supervisor_id
, last_update_date
p required | integer <int32> >= 0 Default: 0 Example: p=0 index of the page to display |
c required | integer <int32> >= 1 Default: 20 Example: c=10 maximum number of elements to retrieve |
f | Array of strings[^[A-Za-z0-9%]{0,250}$] Example: f=abc%3d123 can filter on attributes with the format f={filter_name}={filter_value} with the name/value pair as url encoded string. |
o | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ Example: o=myProp%20ASC can order on attributes |
[- {
- "displayDescription": null,
- "executedBySubstitute": 0,
- "processId": 9132099022957911000,
- "parentCaseId": 5,
- "state": "ready",
- "rootContainerId": 5,
- "type": "USER_TASK",
- "assigned_id": 4,
- "assigned_date": "2014-12-01 16:22:54.685",
- "id": 10,
- "executedBy": 0,
- "caseId": 5,
- "priority": "normal",
- "actorId": 6,
- "description": null,
- "name": "Step1",
- "reached_state_date": "2014-12-01 16:22:50.814",
- "rootCaseId": 5,
- "displayName": "Step1",
- "parentTaskId": 40001,
- "dueDate": "2014-12-01 17:22:50.809",
- "last_update_date": "2014-12-01 16:22:50.814"
}
]
Returns the single Task for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the Task to return |
{- "displayDescription": null,
- "executedBySubstitute": 0,
- "processId": 9132099022957911000,
- "parentCaseId": 5,
- "state": "ready",
- "rootContainerId": 5,
- "type": "USER_TASK",
- "assigned_id": 4,
- "assigned_date": "2014-12-01 16:22:54.685",
- "id": 10,
- "executedBy": 0,
- "caseId": 5,
- "priority": "normal",
- "actorId": 6,
- "description": null,
- "name": "Step1",
- "reached_state_date": "2014-12-01 16:22:50.814",
- "rootCaseId": 5,
- "displayName": "Step1",
- "parentTaskId": 40001,
- "dueDate": "2014-12-01 17:22:50.809",
- "last_update_date": "2014-12-01 16:22:50.814"
}
Update the Task for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the Task to return |
Task fields to update (forbidden fields are : caseId
, processId
, name
, executedBy
, type
, id
, reached_state_date
, last_update_date
)
state | string state of the Task (completed) |
displayName | string display name of the Task |
property name* additional property | any |
{- "state": "completed"
}
{- "message": "Bad request"
}
Finds UserTasks with pagination params and filters
id
displayName
displayName
p required | integer <int32> >= 0 Default: 0 Example: p=0 index of the page to display |
c required | integer <int32> >= 1 Default: 20 Example: c=10 maximum number of elements to retrieve |
f | Array of strings[^[A-Za-z0-9%]{0,250}$] Example: f=abc%3d123 can filter on attributes with the format f={filter_name}={filter_value} with the name/value pair as url encoded string. |
o | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ Example: o=myProp%20ASC can order on attributes |
s | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ can search on attributes |
[- {
- "displayDescription": "",
- "executedBySubstitute": 0,
- "processId": 5826139717723008000,
- "parentCaseId": 1,
- "state": "ready",
- "rootContainerId": 1002,
- "type": "USER_TASK",
- "assigned_id": null,
- "assigned_date": "",
- "id": 20004,
- "executedBy": 0,
- "caseId": 1002,
- "priority": "normal",
- "actorId": 102,
- "description": "",
- "name": "Analyse case",
- "reached_state_date": "2014-09-05 11:11:30.808",
- "rootCaseId": 1,
- "displayName": "Analyse case",
- "parentTaskId": 40001,
- "dueDate": "2014-09-05 12:11:30.775",
- "last_update_date": "2014-09-05 11:11:30.808"
}
]
Returns the single UserTask for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the UserTask to return |
{- "displayDescription": "",
- "executedBySubstitute": 0,
- "processId": 5826139717723008000,
- "parentCaseId": 1,
- "state": "ready",
- "rootContainerId": 1002,
- "type": "USER_TASK",
- "assigned_id": null,
- "assigned_date": "",
- "id": 20004,
- "executedBy": 0,
- "caseId": 1002,
- "priority": "normal",
- "actorId": 102,
- "description": "",
- "name": "Analyse case",
- "reached_state_date": "2014-09-05 11:11:30.808",
- "rootCaseId": 1,
- "displayName": "Analyse case",
- "parentTaskId": 40001,
- "dueDate": "2014-09-05 12:11:30.775",
- "last_update_date": "2014-09-05 11:11:30.808"
}
Update the UserTask for the given ID.
Fields that can be updated are assigned_id
and state
. The only value that can be set for the state is skipped
. You only need to specify the fields that are to be updated.
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the UserTask to return |
Partial UserTask description
state | string The UserTask state |
assigned_id | string The id of the user assign to the UserTask |
{- "assigned_id": "1",
- "state": "skipped"
}
{- "message": "Bad request"
}
Returns the Contract for the given UserTask ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the UserTask that has the Contract to return |
{- "constraints": [
- {
- "name": "string",
- "expression": "string",
- "explanation": "string",
- "inputNames": [
- "string"
]
}
], - "inputs": [
- {
- "description": "string",
- "name": "string",
- "multiple": "string",
- "type": "TEXT",
- "inputs": [
- { }
]
}
]
}
Execute the UserTask. In order to execute a task, the task contract values have to be provided.
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the UserTask to execute |
assign | boolean if true, assign the task to the current user and execute the task |
A JSON object matching task contract. Execute a task providing correct contract values.
property name* additional property | any |
{- "ticket_comment": "this is a comment"
}
{- "message": "Bad request"
}
Returns the Context for the given UserTask ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the UserTask that has the Context to return |
{- "myBusinessData_ref": {
- "name": "myBusinessData",
- "type": "com.company.model.BusinessObject1",
- "link": "API/bdm/businessData/com.company.model.BusinessObject1/2",
- "storageId": 2,
- "storageId_string": "2"
}, - "myDocument_ref": {
- "id": 1,
- "processInstanceId": 3,
- "name": "myDocument",
- "author": 104,
- "creationDate": 1434723950847,
- "fileName": "TestCommunity-1.0.bos",
- "contentMimeType": null,
- "contentStorageId": "1",
- "url": "documentDownload?fileName=TestCommunity-1.0.bos&contentStorageId=1",
- "description": "",
- "version": "1",
- "index": -1,
- "contentFileName": "TestCommunity-1.0.bos"
}
}
Finds ArchivedHumanTasks with pagination params and filters
You can filter on:
assigned_id={user_id}
: retrieve only the human tasks assigned to the specified ID. For example, retrieve the human tasks assigned to user with id 2: /API/bpm/archivedHumanTask?p=0&c=10&f=assigned_id%3d2
state=
: retrieve only the archived user tasks with the specified state. For example, retrieve the skipped tasks: /API/bpm/archivedHumanTask?p=0&c=10&f=state=skipped
name=
: retrieve only the human tasks with the specified name. For example, retrieve the human tasks with the name "Analyse ProcessInstance": /API/bpm/archivedHumanTask?p=0&c=10&f=name=Analyse ProcessInstance
displayName=
: retrieve only the archived user tasks with the specified displayName. For example, retrieve the human tasks with the displayName "Analyse ProcessInstance": /API/bpm/archivedHumanTask?p=0&c=10&f=displayName=Analyse ProcessInstance
p required | integer <int32> >= 0 Default: 0 Example: p=0 index of the page to display |
c required | integer <int32> >= 1 Default: 20 Example: c=10 maximum number of elements to retrieve |
f | Array of strings[^[A-Za-z0-9%]{0,250}$] Example: f=abc%3d123 can filter on attributes with the format f={filter_name}={filter_value} with the name/value pair as url encoded string. |
o | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ Example: o=myProp%20ASC can order on attributes |
[- {
- "displayDescription": "",
- "executedBySubstitute": "0",
- "processId": "5826139717723008213",
- "parentCaseId": 1,
- "state": "skipped",
- "rootContainerId": "1002",
- "type": "USER_TASK",
- "assigned_id": "2",
- "assigned_date": "2014-12-01 17:39:53.784",
- "id": "240002",
- "executedBy": "0",
- "caseId": "1002",
- "priority": "normal",
- "actorId": "102",
- "description": "",
- "name": "Analyse case",
- "reached_state_date": "2014-09-09 17:21:51.946",
- "rootCaseId": 1,
- "displayName": "Analyse case",
- "parentTaskId": 40001,
- "dueDate": "2014-09-05 12:11:30.775",
- "last_update_date": "2014-09-09 17:21:51.946",
- "sourceObjectId": "20004",
- "archivedDate": "2014-09-09 17:21:51.986"
}
]
Returns the single ArchivedHumanTask for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the ArchivedHumanTask to return |
{- "displayDescription": "",
- "executedBySubstitute": "0",
- "processId": "5826139717723008213",
- "parentCaseId": 1,
- "state": "skipped",
- "rootContainerId": "1002",
- "type": "USER_TASK",
- "assigned_id": "2",
- "assigned_date": "2014-12-01 17:39:53.784",
- "id": "240002",
- "executedBy": "0",
- "caseId": "1002",
- "priority": "normal",
- "actorId": "102",
- "description": "",
- "name": "Analyse case",
- "reached_state_date": "2014-09-09 17:21:51.946",
- "rootCaseId": 1,
- "displayName": "Analyse case",
- "parentTaskId": 40001,
- "dueDate": "2014-09-05 12:11:30.775",
- "last_update_date": "2014-09-09 17:21:51.946",
- "sourceObjectId": "20004",
- "archivedDate": "2014-09-09 17:21:51.986"
}
Finds ArchivedManualTasks with pagination params and filters
You can filter on:
assigned_id={user_id}
: retrieve only the human tasks assigned to the specified ID. For example, retrieve the human tasks assigned to user with id 2: /API/bpm/archivedHumanTask?p=0&c=10&f=assigned_id%3d2
state=
: retrieve only the archived user tasks with the specified state. For example, retrieve the skipped tasks: /API/bpm/archivedHumanTask?p=0&c=10&f=state=skipped
name=
: retrieve only the human tasks with the specified name. For example, retrieve the human tasks with the name "Analyse ProcessInstance": /API/bpm/archivedHumanTask?p=0&c=10&f=name=Analyse ProcessInstance
displayName=
: retrieve only the archived user tasks with the specified displayName. For example, retrieve the human tasks with the displayName "Analyse ProcessInstance": /API/bpm/archivedHumanTask?p=0&c=10&f=displayName=Analyse ProcessInstance
p required | integer <int32> >= 0 Default: 0 Example: p=0 index of the page to display |
c required | integer <int32> >= 1 Default: 20 Example: c=10 maximum number of elements to retrieve |
f | Array of strings[^[A-Za-z0-9%]{0,250}$] Example: f=abc%3d123 can filter on attributes with the format f={filter_name}={filter_value} with the name/value pair as url encoded string. |
o | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ Example: o=myProp%20ASC can order on attributes |
[- {
- "displayDescription": "this is a test",
- "executedBySubstitute": 1,
- "processId": 8367255255370238000,
- "parentCaseId": 1,
- "state": "completed",
- "rootContainerId": 1,
- "type": "MANUAL_TASK",
- "assigned_id": 1,
- "assigned_date": "2014-12-01 17:39:53.784",
- "id": 160007,
- "executedBy": 1,
- "caseId": 1,
- "priority": "highest",
- "actorId": 1,
- "description": "this is a test",
- "name": "myTest",
- "reached_state_date": "2014-12-01 17:20:47.200",
- "rootCaseId": 1,
- "displayName": "myTest",
- "parentTaskId": 40001,
- "dueDate": "2014-12-17 00:00:00.000",
- "last_update_date": "2014-12-01 17:20:47.200",
- "sourceObjectId": 40003,
- "archivedDate": "2014-12-01 17:20:47.217"
}
]
Returns the single ArchivedManualTask for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the ArchivedManualTask to return |
{- "displayDescription": "this is a test",
- "executedBySubstitute": 1,
- "processId": 8367255255370238000,
- "parentCaseId": 1,
- "state": "completed",
- "rootContainerId": 1,
- "type": "MANUAL_TASK",
- "assigned_id": 1,
- "assigned_date": "2014-12-01 17:39:53.784",
- "id": 160007,
- "executedBy": 1,
- "caseId": 1,
- "priority": "highest",
- "actorId": 1,
- "description": "this is a test",
- "name": "myTest",
- "reached_state_date": "2014-12-01 17:20:47.200",
- "rootCaseId": 1,
- "displayName": "myTest",
- "parentTaskId": 40001,
- "dueDate": "2014-12-17 00:00:00.000",
- "last_update_date": "2014-12-01 17:20:47.200",
- "sourceObjectId": 40003,
- "archivedDate": "2014-12-01 17:20:47.217"
}
Finds ArchivedTasks with pagination params and filters
caseId
, name
, displayName
, processId
, state
, type
, archivedDate
, reached_state_date
, assigned_id
caseId
, name
, displayName
, processId
, state
, type
, archivedDate
, reached_state_date
, assigned_id
, isTerminal
p required | integer <int32> >= 0 Default: 0 Example: p=0 index of the page to display |
c required | integer <int32> >= 1 Default: 20 Example: c=10 maximum number of elements to retrieve |
f | Array of strings[^[A-Za-z0-9%]{0,250}$] Example: f=abc%3d123 can filter on attributes with the format f={filter_name}={filter_value} with the name/value pair as url encoded string. |
o | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ Example: o=myProp%20ASC can order on attributes |
[- {
- "displayDescription": null,
- "executedBySubstitute": 4,
- "processId": 9132099022957911000,
- "parentCaseId": 5,
- "state": "completed",
- "rootContainerId": 5,
- "type": "USER_TASK",
- "assigned_id": 4,
- "assigned_date": "2014-12-01 17:39:53.784",
- "id": 9,
- "executedBy": 4,
- "caseId": 5,
- "priority": "normal",
- "actorId": 6,
- "description": null,
- "name": "Step1",
- "reached_state_date": "2014-12-01 16:24:32.457",
- "rootCaseId": 5,
- "displayName": "Step1",
- "parentTaskId": 40001,
- "dueDate": "2014-12-01 17:22:50.809",
- "last_update_date": "2014-12-01 16:24:32.457",
- "sourceObjectId": 10,
- "archivedDate": "2014-12-01 16:24:32.460"
}
]
Returns the single ArchivedTask for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the ArchivedTask to return |
{- "displayDescription": null,
- "executedBySubstitute": 4,
- "processId": 9132099022957911000,
- "parentCaseId": 5,
- "state": "completed",
- "rootContainerId": 5,
- "type": "USER_TASK",
- "assigned_id": 4,
- "assigned_date": "2014-12-01 17:39:53.784",
- "id": 9,
- "executedBy": 4,
- "caseId": 5,
- "priority": "normal",
- "actorId": 6,
- "description": null,
- "name": "Step1",
- "reached_state_date": "2014-12-01 16:24:32.457",
- "rootCaseId": 5,
- "displayName": "Step1",
- "parentTaskId": 40001,
- "dueDate": "2014-12-01 17:22:50.809",
- "last_update_date": "2014-12-01 16:24:32.457",
- "sourceObjectId": 10,
- "archivedDate": "2014-12-01 16:24:32.460"
}
Finds ArchivedUserTasks with pagination params and filters. An ArchivedUserTask is an executable task that has been performed by a user or skipped and is archived.
You can filter on:
assigned_id={user_id}
: retrieve only the user tasks assigned to the specified ID. For example, retrieve the user tasks assigned to user with id 2: /API/bpm/archivedUserTask?p=0&c=10&f=assigned_id%3d2
state=
: retrieve only the archived user tasks with the specified state. For example, retrieve the skipped tasks: /API/bpm/archivedUserTask?p=0&c=10&f=state=skipped
name=
: retrieve only the user tasks with the specified name. For example, retrieve the user tasks with the name "Analyse ProcessInstance": /API/bpm/archivedUserTask?p=0&c=10&f=name=Analyse ProcessInstance
displayName=
: retrieve only the archived user tasks with the specified displayName. For example, retrieve the user tasks with the displayName "Analyse ProcessInstance": /API/bpm/archivedUserTask?p=0&c=10&f=displayName=Analyse ProcessInstance
p required | integer <int32> >= 0 Default: 0 Example: p=0 index of the page to display |
c required | integer <int32> >= 1 Default: 20 Example: c=10 maximum number of elements to retrieve |
f | Array of strings[^[A-Za-z0-9%]{0,250}$] Example: f=abc%3d123 can filter on attributes with the format f={filter_name}={filter_value} with the name/value pair as url encoded string. |
o | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ Example: o=myProp%20ASC can order on attributes |
[- {
- "displayDescription": null,
- "executedBySubstitute": 0,
- "processId": 5826139717723008000,
- "parentCaseId": 1,
- "state": "skipped",
- "rootContainerId": 1002,
- "type": "USER_TASK",
- "assigned_id": 2,
- "assigned_date": "2014-12-01 17:39:53.784",
- "id": 240002,
- "executedBy": 0,
- "caseId": 1002,
- "priority": "normal",
- "actorId": 102,
- "description": null,
- "name": "Analyse case",
- "reached_state_date": "2014-09-09 17:21:51.946",
- "rootCaseId": 1,
- "displayName": "Analyse case",
- "parentTaskId": 40001,
- "dueDate": "2014-09-05 12:11:30.775",
- "last_update_date": "2014-09-09 17:21:51.946",
- "sourceObjectId": "string",
- "archivedDate": "2014-09-09 17:21:51.986"
}
]
Returns the single ArchivedUserTask for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ ID of the ArchivedUserTask to return |
{- "displayDescription": null,
- "executedBySubstitute": 0,
- "processId": 5826139717723008000,
- "parentCaseId": 1,
- "state": "skipped",
- "rootContainerId": 1002,
- "type": "USER_TASK",
- "assigned_id": 2,
- "assigned_date": "2014-12-01 17:39:53.784",
- "id": 240002,
- "executedBy": 0,
- "caseId": 1002,
- "priority": "normal",
- "actorId": 102,
- "description": null,
- "name": "Analyse case",
- "reached_state_date": "2014-09-09 17:21:51.946",
- "rootCaseId": 1,
- "displayName": "Analyse case",
- "parentTaskId": 40001,
- "dueDate": "2014-09-05 12:11:30.775",
- "last_update_date": "2014-09-09 17:21:51.946",
- "sourceObjectId": "string",
- "archivedDate": "2014-09-09 17:21:51.986"
}
Returns the single ActivityVariable for the given ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ The identifier of the activity from which to retrieve the variable |
variableName required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ The name of the variable to retrieve |
{- "tenantId": 0,
- "tenantId_string": 0,
- "id": 5010,
- "id_string": 5010,
- "name": "RequestValidationData",
- "description": null,
- "transientData": false,
- "className": "java.lang.String",
- "containerId": 20004,
- "containerId_string": 20004,
- "containerType": "ACTIVITY_INSTANCE",
- "value": "Confirmed"
}
Since 2022.1
Returns the single ArchivedActivityVariable for the given activity ID and variable name
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ The identifier of the activity from which to retrieve the variable |
variableName required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ The name of the variable to retrieve |
{- "name": "RequestValidationData",
- "description": null,
- "type": "java.lang.String",
- "containerId": 20004,
- "containerType": "ACTIVITY_INSTANCE",
- "value": "Confirmed",
- "archivedDate": "2021-12-27 23:10:59.342",
- "sourceObjectId": 42
}
Finds ProcessInstance Variables with pagination params and filters
p required | integer <int32> >= 0 Default: 0 Example: p=0 index of the page to display |
c required | integer <int32> >= 1 Default: 20 Example: c=10 maximum number of elements to retrieve |
f | Array of strings[^[A-Za-z0-9%]{0,250}$] Example: f=abc%3d123 can filter on attributes with the format f={filter_name}={filter_value} with the name/value pair as url encoded string. |
o | string <= 250 characters ^[A-Za-z0-9%]{0,250}$ Example: o=myProp%20ASC can order on attributes |
[- {
- "description": "",
- "name": "myInvoiceAmount",
- "value": "14.2",
- "case_id": 1,
- "type": "java.lang.Float"
}
]
Returns the single Variable for the given ProcessInstance ID
id required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ The identifier of the process instance from which to retrieve the variable |
variableName required | string <= 250 characters ^[A-Za-z0-9\_\-\.]{0,250}$ The name of the variable to retrieve |
{- "descripti