[GET] /{id}/activities
/api/bpm/processes/{id}/activities
Description | To retrieve activities for the forwarded process identified by id. For each activity, the following are displayed: instance ID of the activity, ID of the activity definition (or model) that this activity is based on, name of the activity, creation time of the activity on the server, time when the activity ended - if none exists the parameter is empty, time when the activity was last accessed - if none exists the parameter is empty, activity status, ID of the parent - if none exists the parameter is empty, the index of the parent task's iteration in a loop - if none exists the parameter is empty. The state property has the following values according to enaio server manual (Job: wfm.AdminGetProcessActivities):
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Required Systemrole | R_WFADM_START (ID = 20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request | GET | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response | JSON | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Minimum Version | 1.0.0 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Result | {
"objects": [
{
"id": "489D17B6BDD64DCB9F7D8E17F1F58482",
"taskDefinitionId": "00000000000000000000000000000000",
"name": "StartActivity",
"createTime": "2019-11-26T16:15:24+01:00",
"endTime": "2019-11-26T16:15:25+01:00",
"state": "ended"
},
{
"id": "BEDB3046BD924417AC0348AE3551640A",
"taskDefinitionId": "32DEE1D3902E4C2EBD08B23ADE79FCA7",
"name": "Schleife",
"createTime": "2019-11-26T16:15:25+01:00",
"state": "loopExecuted"
},
{
"id": "237A1C3CFB4442C29D847D903582C7E9",
"taskDefinitionId": "C04C78AFD96B48C9BA162D5CE1792015",
"name": "I'll be back",
"createTime": "2019-11-26T16:15:27+01:00",
"endTime": "2019-11-26T16:21:04+01:00",
"claimTime": "2019-11-26T16:21:03+01:00",
"state": "ended",
"parentTaskId": "BEDB3046BD924417AC0348AE3551640A",
"parentLoopCount": 1
},
{
"id": "7C8F4EDDCA9A458181142034AABCD57D",
"taskDefinitionId": "C04C78AFD96B48C9BA162D5CE1792015",
"name": "I'll be back",
"createTime": "2019-11-26T16:21:06+01:00",
"endTime": "2022-09-21T12:10:31+02:00",
"claimTime": "2022-09-21T12:10:31+02:00",
"state": "ended",
"parentTaskId": "BEDB3046BD924417AC0348AE3551640A",
"parentLoopCount": 2
},
{
"id": "3FA45AACC2ED4705B1CC36D065B4EDFA",
"taskDefinitionId": "C04C78AFD96B48C9BA162D5CE1792015",
"name": "I'll be back",
"createTime": "2022-09-21T12:10:32+02:00",
"endTime": "2022-09-21T12:15:40+02:00",
"claimTime": "2022-09-21T12:15:39+02:00",
"state": "ended",
"parentTaskId": "BEDB3046BD924417AC0348AE3551640A",
"parentLoopCount": 3
},
{
"id": "CE1AC835537D4125883E4066E5D08DBA",
"taskDefinitionId": "C04C78AFD96B48C9BA162D5CE1792015",
"name": "I'll be back",
"createTime": "2022-09-21T12:15:41+02:00",
"state": "providedToInboxes",
"parentTaskId": "BEDB3046BD924417AC0348AE3551640A",
"parentLoopCount": 4
}
],
"numItems": 6,
"hasMoreItems": false,
"totalNumItems": 6
} |