# WorkItemCompletionEventType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

Supertype: WorkItemEventType
Event describing the work item completion.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
timestamp | property dateTime | [1,1] |
initiatorRef | reference ObjectReferenceType | [0,1] | Initiator is the (legal) entity on behalf of whom is the action executed.
attorneyRef | reference ObjectReferenceType | [0,1] | Attorney is the (physical) user who have executed the action.
stageNumber | property int | [0,1] |
iteration | property int | [0,1] |
workItemId | property long | [0,1] |
externalWorkItemId | property string | [0,1] |
originalAssigneeRef | reference ObjectReferenceType | [0,1] | User to which this work item was originally assigned.
escalationLevel | property WorkItemEscalationLevelType | [0,1] |
cause | property WorkItemEventCauseInformationType | [0,1] |
output | container AbstractWorkItemOutputType | [0,1] | TODO

- ### Items

  - #### timestamp

    Flags: RAM,runtime

    Multiplicity: [1,1]

  - #### initiatorRef

    Flags: RAM

    Multiplicity: [0,1]

    Initiator is the (legal) entity on behalf of whom is the action executed. When completing the work item in "attorney mode" the initiator is the user under which authority was the work item approved.

  - #### attorneyRef

    Flags: RAM

    Multiplicity: [0,1]

    Attorney is the (physical) user who have executed the action. This is the user that have logged-in to the user interface. This is the user that pressed the button to execute the action. This is always identity of a user and it will always be a user. It cannot be a company or any other virtual entity.

  - #### stageNumber

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### iteration

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### workItemId

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### externalWorkItemId

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### originalAssigneeRef

    Flags: RAM

    Multiplicity: [0,1]

    User to which this work item was originally assigned.

  - #### escalationLevel

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### cause

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### output

    Flags: RAM,runtime

    Multiplicity: [0,1]

    TODO