Business Process API
This section describes Platform API for business process tools integration.
Core platform configuration has no support of business process or workflow definition inside. The main purpose of this API is to store data of the business process created outside of the platform and handle association between business process and objects stored by Reltio Platform.
Structure
Business process data record stands for description of some business process created outside platform, but associated with objects or resources inside platform.
Property | Required | Description | Type |
---|---|---|---|
objectUris
|
true | Collection of objects participating in workflow. It is object level participation-entities, relationships. | URI array |
URI
|
true | URI of the business process data record. | URI |
resourceUris
|
false | Collection of additional resources participating in workflow. If resources of attributes or crosswalks layer is participating in workflow, they should be listed in this field. | URI array |
businessProcessId
|
false | Business process unique identifier. Information will not be used by API itself, for
business process engine usage and search purposes. It has the same
meaning as shortUri in fact, each business process
data record has a URI -
businessProcesses/businessProcessId . |
String |
tasks
|
false | Collection of tasks associated with business process. Each task has 3 fields:
|
JSON Structure Example:
|
businessProcessEngine
|
true | Business process engine description. | String |
externalInfo
|
false | Additional business process record info, optional to use. | JSON structure with free format |
businessProcessName
|
false | Name of the business process. | String |
businessProcessDueDate
|
false | Due date of the business process. | Milliseconds (long) |
Example
Supported Operations
Create/Update Business Process Data Record
Same REST API endpoint should be used to create or update business process data record inside Reltio Platform or to associate objects and resources with it.
Request
Parameter | Name | Required | Details |
---|---|---|---|
Headers |
Authorization
|
Yes | Information about authentication access token in format "Bearer
<accessToken> " (see details in Authentication API ). |
Content-Type |
Yes | Should be "Content-Type: application/json ".
|
|
Body | Yes | JSON Array with objects representing business object records to be created or updated. |
Example Request
Response
Get Business Process Data Record By Business Process Identifier
(URI)
Request
Parameters
Parameter | Name | Required | Details |
---|---|---|---|
Headers |
Authorization |
Yes | Information about authentication access token in format "Bearer
<accessToken> " (see details in Authentication API ). |
Content-Type
|
Yes | Should be "Content-Type: application/json ".
|
Example
Request
Response
View/Search Business Process Data Records Inside Objects
API user can view business process data records inside every object structure
associated with a corresponding business process. Also API user is able to search by
all properties of the business process. Using entities API, for example, user can
retrieve entities content having associated business process records inside. To
include business process records information inside the entity JSON, user should add
the businessProcessData
option to the selected parameter.
Example 1
Example 2
Sync Business Process Data
Request
Parameter | Name | Required | Details |
---|---|---|---|
Headers |
Authorization
|
Yes | Information about authentication access token in format "Bearer
<accessToken> " (see details in Authentication API ). |
Content-Type |
Yes | Should be "Content-Type: application/json ".
|
|
EnvironmentURL |
Yes | Reltio Environment URL. | |
Body | processType |
Yes | Process definition type. |
objectURIs |
Yes | List of Reltio object URIs (entity/relation) | |
processDefinitionId |
No | Process definition ID. | |
assignee |
No | Assignee of the active task. | |
createdBy |
No | Initiator of the process instance. | |
startedAfter |
No | Time in milliseconds. | |
startedBefore |
No | Time in milliseconds. | |
state |
No | Validation state of the process instance, which will return tasks
of any state; default value=all . |
Response Structure
error
: returned if an error is encountered, contains details of the issue:errorCode
: 5-digit error codeerrorMessage
: error messageerrorData
: details of the error:exception
: exception messagestack
: stack trace
innerError
: details of the error from Reltio API:errorMessage
: Reltio API error messageerrorCode
: Reltio API error codeinnerErrorData
: Reltio API inner error data
status
: result of the operation; possible values areOK
orfailed
Sample Request JSON
Example
Sample Response JSON
Terminate Process Instances
Request
Parameter | Name | Required | Details |
---|---|---|---|
Headers |
Authorization
|
Yes | Information about authentication access token in format "Bearer
<accessToken> " (see details in Authentication API ). |
Content-Type |
Yes | Should be "Content-Type: application/json ".
|
|
EnvironmentURL |
Yes | Reltio Environment URL. | |
Parameters | background |
No | Background false /true . |
Body | processType |
Yes | Process definition type. |
objectURIs |
Yes | List of Reltio object URIs (entity/relation). | |
processDefinitionId |
No | Process definition ID. | |
assignee |
No | Assignee of the active task. | |
createdBy |
No | Initiator of the process instance. | |
startedAfter |
No | Time in milliseconds. | |
startedBefore |
No | Time in milliseconds. | |
state |
No | Validation state of the process instance, which will return tasks
of any state; default value=all . |
Response Structure
error
: returned if an error is encountered, contains details of the issue:errorCode
: 5-digit error codeerrorMessage
: error messageerrorData
: details of the error:exception
: exception messagestack
: stack trace
innerError
: details of the error from Reltio API:errorMessage
: Reltio API error messageerrorCode
: Reltio API error codeinnerErrorData
: Reltio API inner error data
status
: result of the operation; possible values areOK
orfailed
Sample Request JSON
Example
Sample Response JSON
Update Multiple Tasks by Filter
Request
Parameter | Name | Required | Details | |
---|---|---|---|---|
Headers |
Authorization
|
Yes | Information about authentication access token in format "Bearer
<accessToken> " (see details in Authentication API ). |
|
Content-Type |
Yes | Should be "Content-Type: application/json ".
|
||
EnvironmentURL |
Yes | Reltio Environment URL. | ||
Body | filter |
Yes | Filter of the tasks. | |
assignee |
Yes | Assignee of the active task. | ||
processInstanceID |
No | Process instance ID. | ||
processType |
No | Process definition type. | ||
suspended |
No | Boolean state of the tasks; possible true or
false . |
||
createdBy |
No | Initiator of the process instance. | ||
priorityClass |
No | Priority class of the tasks. | ||
taskType |
No | Type of tasks. | ||
createdAfter |
No | Time in milliseconds. | ||
createdBefore |
No | Time in milliseconds. | ||
state |
No | Validation state of the process instance (default
value=all ), which will return tasks with any
state. |
||
objectURIs |
No | List of Reltio object URIs (entity/relation). Filtering by
AND- condition. |
||
changes |
Yes | List of changes. | ||
objectURIs |
No | List of Reltio object URIs (entity/relation). Filtering by
AND- condition. |
||
assignee |
No | Assignee of the active task. | ||
dueDate |
No | Time in milliseconds. | ||
processInstanceComment |
No | Comment in string format. | ||
priority |
No | Priority. | ||
exclude |
No | List of tasks in string format. |
Response Structure
error
: returned if an error is encountered, contains details of the issue:errorCode
: 5-digit error codeerrorMessage
: error messageerrorData
: details of the error:exception
: exception messagestack
: stack trace
innerError
: details of the error from Reltio API:errorMessage
: Reltio API error messageerrorCode
: Reltio API error codeinnerErrorData
: Reltio API inner error data
status
: result of the operation; possible values areOK
orfailed
Sample Request JSON
Example
Sample Response JSON
Validate Task From Tasks Request
Request
Parameter | Name | Required | Details | |
---|---|---|---|---|
Headers |
Authorization
|
Yes | Information about authentication access token in format "Bearer
<accessToken> " (see details in Authentication API ). |
|
Content-Type |
Yes | Should be "Content-Type: application/json ".
|
||
EnvironmentURL |
Yes | Reltio Environment URL. | ||
Body | assignee |
Yes | Assignee of the active task. | |
processInstanceID |
No | Process instance ID. | ||
processType |
No | Process definition type. | ||
suspended |
No | Boolean state of the tasks; possible true or
false . |
||
createdBy |
No | Initiator of the process instance. | ||
priorityClass |
No | Priority class of the tasks. | ||
taskType |
No | Type of tasks. | ||
createdAfter |
No | Time in milliseconds. | ||
createdBefore |
No | Time in milliseconds. | ||
state |
No | Validation state of the process instance (default
value=all ), which will return tasks with any
state. |
||
objectURIs |
No | List of Reltio object URIs (entity/relation). Filtering by
AND- condition. |
Response Structure
error
: returned if an error is encountered, contains details of the issue:errorCode
: 5-digit error codeerrorMessage
: error messageerrorData
: details of the error:exception
: exception messagestack
: stack trace
innerError
: details of the error from Reltio API:errorMessage
: Reltio API error messageerrorCode
: Reltio API error codeinnerErrorData
: Reltio API inner error data
status
: result of the operation; possible values areOK
orfailed
Sample Request JSON
Example
Sample Response JSON