[GET] /processes
/api/bpm/processes
Description | To retrieve running, suspended, completed or aborted processes for a provided process definition id, a provided user or a provided role. Optionally, an organization id could be sent, if processes for a non-active organization should be retrieved. By default, the active organization will be used. If the When the query parameter When the query parameter For historical and active processes, fetched by a process definition id, paging can be applied with the parameters The
| ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Required Systemrole | R_WFADM_START (ID = 20) | ||||||||||||||||||||
Request | GET | ||||||||||||||||||||
Request Mandatory Query Parameters | One and only one of the following query parameters must be set for a request:
| ||||||||||||||||||||
Request Optional Query Parameters | The following query paramter is optional but can be applied to all of the above mentioned mandatory query parameters:
The following query parameters are optional but can only be applied in combination to the mandatory query parameter processDefinitionId:
| ||||||||||||||||||||
Response | JSON | ||||||||||||||||||||
Minimum Version | 1.0.0 | ||||||||||||||||||||
Request |
| ||||||||||||||||||||
Result | {
"objects": [{
"id": "E0E8AF5991A5401E81DA65AD43D1AC24",
"name": "Standard-Ad-hoc-Workflow 89",
"startTime": "2022-05-13T09:27:05",
"startUserId": "E68A04C8054C4BEA9990995A4D629C7F",
"startUserName": "ROOT",
"processSubject": "mj1234",
"state": "active",
"lastTask": {
"id": "908F03A5BA4646858D161C4160141108",
"name": "Initialisierung",
"endTime": "2022-05-13T09:28:18"
}
},{
"id": "74472B0A1F224257B318801CBAD57392",
"name": "Standard-Ad-hoc-Workflow 2",
"startTime": "2022-11-24T11:28:06",
"startUserId": "B1B5246AA8D64B3D815B68E95AB10E9C",
"startUserName": "SCHMEISSEL",
"processSubject": "asdf",
"state": "active",
"lastTask": {
"id": "00000000000000000000000000000000",
"name": "StartActivity",
"endTime": "2022-11-24T11:28:07"
}
}],
"numItems": 2,
"hasMoreItems": false,
"totalNumItems": 2
} | ||||||||||||||||||||
Result | {
"objects": [{
"id": "3269AAB2CD0F4EB3BAB2C770CA0EC19C",
"name": "SanityTest v.4.1 46",
"startTime": "2022-06-28T13:11:10+02:00",
"startUserName": "SCHMEISSEL",
"endTime": "2022-06-28T13:16:38+02:00",
"processSubject": "Pflichtfeld Wert: Vorbelegung",
"state": "finished"
},{
"id": "32B4238B65234177B9DE1743E5D47B7A",
"name": "SanityTest v.4.1 42",
"startTime": "2022-05-27T12:33:28+02:00",
"startUserName": "SCHMITTBERGER",
"endTime": "2024-11-12T14:35:46+01:00",
"processSubject": "Pflichtfeld Wert: Vorbelegung",
"state": "cancelled"
}],
"numItems": 2,
"hasMoreItems": false,
"totalNumItems": 2
} | ||||||||||||||||||||
Result Example for userId or roleId processes fetching | {
"objects": [{
"id": "0C246A434D5B44FCB21294BA17BF9F87",
"name": "DB-9304 8",
"startTime": "2025-07-02T11:30:53+02:00",
"startUserId": "E68A04C8054C4BEA9990995A4D629C7F",
"startUserName": "ROOT",
"processSubject": "",
"state": "active",
"activeTask": {
"id": "50BE114448CC460EB3454988630F51BA",
"name": "Aktivität",
"state": "personalized",
"createTime": "2025-07-02T11:30:54+02:00",
"claimTime": "2025-07-08T18:56:36+02:00",
"owner": "user10"
}
},{
"id": "9C6344E4CAFE40A49729C89C1731BB7F",
"name": "Standard-Ad-hoc-Workflow 8",
"startTime": "2025-02-03T14:09:02+01:00",
"startUserId": "E68A04C8054C4BEA9990995A4D629C7F",
"startUserName": "ROOT",
"processSubject": "My nice adhoc",
"state": "active",
"activeTask": {
"id": "6BFA52A12BF24BCEA30C49194336CB6A",
"name": "Poll-1",
"state": "personalized",
"createTime": "2025-04-14T11:38:20+02:00",
"reminderTime": "2025-04-16T11:35:22+02:00",
"owner": "user10"
}
}],
"numItems": 2,
"hasMoreItems": false,
"totalNumItems": 2
} | ||||||||||||||||||||
Result Example when locked processes are returned | {
"objects": [
{
"id": "7615794F24D2450F94A2DA560CE545CA",
"name": "lockedProcesses 22",
"server": "WF-System3",
"threadId": "12048",
"lockTime": "2025-10-10T15:03:47+02:00"
}
],
"numItems": 1,
"hasMoreItems": false,
"totalNumItems": 1
} | ||||||||||||||||||||
Result Example when interrupted processes are returned | {
"objects": [{
"id": "022B04F250CE424B98B7572B5F7F8D71",
"name": "lockedProcesses 85",
"startTime": "2025-10-29T11:18:40+01:00",
"startUserId": "E68A04C8054C4BEA9990995A4D629C7F",
"startUserName": "ROOT",
"processSubject": "",
"state": "error",
"lastTask": {
"id": "00000000000000000000000000000000",
"name": "StartActivity",
"endTime": "2025-10-29T11:18:41+01:00"
}
},
{
"id": "022BF0F8057A4CAEA148955D73EB1E4E",
"name": "lockedProcesses 42",
"startTime": "2025-10-23T16:41:53+02:00",
"startUserId": "E68A04C8054C4BEA9990995A4D629C7F",
"startUserName": "ROOT",
"processSubject": "",
"state": "error",
"lastTask": {
"id": "00000000000000000000000000000000",
"name": "StartActivity",
"endTime": "2025-10-23T16:41:54+02:00"
}
}
],
"numItems": 1,
"hasMoreItems": false,
"totalNumItems": 1
} |