# DelegateWorkItemActionType (Complex Type)

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

Supertype: AbstractWorkItemActionType
TODO EXPERIMENTAL

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
name | property string | [0,1] |
displayName | property string | [0,1] |
description | property string | [0,1] |
documentation | property string | [0,1] | Technical documentation for a particular object or construct.
condition | property ExpressionType | [0,1] | Should this action be executed? NOT IMPLEMENTED YET
approverRef | reference ObjectReferenceType | [0,-1] | Specific approver to replace the current one.
approverExpression | property ExpressionType | [0,-1] | Expression giving an approver to replace the current one.
outcomeIfNoApprovers | property anyURI | [0,1] | What is the outcome (of this work item) if there is no approver to delegate/escalate to?
duration | property duration | [0,1] | Duration of the work item after delegation.
delegationMethod | property WorkItemDelegationMethodType | [0,1] | How to delegate the work item? Default is "replace assignees".
notifyBeforeAction | property duration | [0,-1] | If specified, sends a standard "action to be executed" notifications at given times.

- ### Items

  - #### name

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### displayName

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### description

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### documentation

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Technical documentation for a particular object or construct.

    The purpose of this element is to document system configuration and behavior. The documentation will not be presented to end users. In fact, it will probably not be presented at all in midPoint user interface. This documentation element is supposed to be a part of the technical documentation of midPoint deployment. The tools than generate deployment configuration will look for these elements and combine them to compiled documentation document.

    AsciiDoc formatting is assumed for this element. Any leading or trailing whitespace is skipped. Indentation equivalent to he indentation of the first non-blank line of text is also skipped.

  - #### condition

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Should this action be executed? NOT IMPLEMENTED YET

  - #### approverRef

    Flags: RAM

    Multiplicity: [0,-1]

    Specific approver to replace the current one.

  - #### approverExpression

    Flags: RAM,runtime

    Multiplicity: [0,-1]

    Expression giving an approver to replace the current one.

  - #### outcomeIfNoApprovers

    Flags: RAM,runtime

    Multiplicity: [0,1]

    What is the outcome (of this work item) if there is no approver to delegate/escalate to?

  - #### duration

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Duration of the work item after delegation. If not specified, the deadline of the work item is not changed (this is meaningful only if the delegation occurs before the original deadline). TODO other time units, like business days? TODO relative to original start time, original deadline, or current time? It will be relative to the original deadline (if specified); or to the current time otherwise.

  - #### delegationMethod

    Flags: RAM,runtime,AVals:2

    Multiplicity: [0,1]

    How to delegate the work item? Default is "replace assignees".

  - #### notifyBeforeAction

    Flags: RAM,runtime

    Multiplicity: [0,-1]

    If specified, sends a standard "action to be executed" notifications at given times. (Unlike in timed action interval, here a positive time must be specified: just like for notifyBeforeDeadline in certification.) TODO other time units, like business days?