# WorkItemDelegationEventType (Complex Type)

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

Supertype: WorkItemEventType
Event describing the fact of delegation.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
timestamp | property dateTime | [1,1] | Time in which the event occurred.
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] | Number of the stage at which this event occurred (if the case resolution can be conceptually divided into stages).
iteration | property int | [0,1] | Iteration number.
workItemId | property long | [0,1] | MidPoint container ID of the work item.
externalWorkItemId | property string | [0,1] | ID of the work item (case work item) this event is related to.
originalAssigneeRef | reference ObjectReferenceType | [0,1] | User to which this work item was originally assigned.
escalationLevel | property WorkItemEscalationLevelType | [0,1] | TODO
cause | property WorkItemEventCauseInformationType | [0,1] | Cause of the event occurring.
assigneeBefore | reference ObjectReferenceType | [0,-1] |
delegatedTo | reference ObjectReferenceType | [0,-1] |
delegationMethod | property WorkItemDelegationMethodType | [0,1] |
comment | property string | [0,1] |

- ### Items

  - #### timestamp

    Flags: RAM,runtime

    Multiplicity: [1,1]

    Time in which the event occurred.

  - #### 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]

    Number of the stage at which this event occurred (if the case resolution can be conceptually divided into stages). Starts at 1. Null if not applicable.

  - #### iteration

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Iteration number. Currently applicable only to certification cases.

  - #### workItemId

    Flags: RAM,runtime

    Multiplicity: [0,1]

    MidPoint container ID of the work item.

  - #### externalWorkItemId

    Flags: RAM,runtime

    Multiplicity: [0,1]

    ID of the work item (case work item) this event is related to. Will be removed!

  - #### originalAssigneeRef

    Flags: RAM

    Multiplicity: [0,1]

    User to which this work item was originally assigned.

  - #### escalationLevel

    Flags: RAM,runtime

    Multiplicity: [0,1]

    TODO

  - #### cause

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Cause of the event occurring. E.g. user action, timed action (and which one). EXPERIMENTAL; TO BE DECIDED ABOUT THIS BEFORE 3.6 RELEASE

  - #### assigneeBefore

    Flags: RAM

    Multiplicity: [0,-1]

  - #### delegatedTo

    Flags: RAM

    Multiplicity: [0,-1]

  - #### delegationMethod

    Flags: RAM,runtime,AVals:2

    Multiplicity: [0,1]

  - #### comment

    Flags: RAM,runtime

    Multiplicity: [0,1]