[GET] /{id}/activities

[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):

Server Code

Activity Enum Value

Description

0x1

initialized

the activity has been initialized.

0x2

started

the activity has been started (e.g. variables have been created).

0x4

startEventExecuted

the start activity event has been executed.

0x8

endEventExecuted

the end activity event has been executed.

0x10

loopConditionChecked

only with loops: The loop condition has been checked.

0x20

loopExecuted

only with loops: The loop body is executed.

0x40

providedToInboxes

only with process steps: The process step is provided in the inboxes.

0x80

personalized

only with process steps: The process step is personalized.

0x100

closureEventExpired

waiting until a closure is expired.

0x400

forwarded

the activity has been executed, e.g. a process step has been forwarded or a loop has been fully executed.

0x800

followUpCalculated

the following activities have been calculated and possibly also been created.

0x1000

endedNoFollowUp

the activity is completed, no follow-up activities have been initiated.

0x2000

stopped

the activity has been stopped by a user.

0x4000

ended

the activity is completed.

0x8000

multiInstanceStarted

only with multi-instance activities: The activity has been created.

0x10000

adHocStarted

only with ad hoc activities: The ad hoc activity has been created.

0x20000

canceled

activity canceled.

0x40000

adHocExecuted

only with ad hoc activities: The ad hoc activity is executed.

0x100000

error

 the activity has been stopped by the system due to an error.

 

unknown

If the value does not have any values ​​from the table, the status is unknown.

Required Systemrole

R_WFADM_START (ID = 20)

Request
Method

GET

Response
Format

JSON

Minimum Version

1.0.0

Request
Example

/api/bpm/processes/F9AE4EF484AA445CB7100804CCC0F319/activities

Result
Example

{ "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 }