# ActivityPolicyType (Complex Type)

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

Policy for the activity execution.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
name | property string | [1,1] | Unique identifier of the policy rule.
description | property string | [0,1] | Free-form description of the rule (comment).
enabled | property boolean | [0,1] | Whether the policy rule is enabled.
documentation | property string | [0,1] | Technical documentation for a particular object or construct.
policyConstraints | container ActivityPolicyConstraintsType | [0,1] | Set of governance, risk management, compliance (GRC) and similar policy constraints related to tasks.
policyThreshold | container PolicyThresholdType | [0,1] | Specifies limits when is the action executed.
policyActions | container ActivityPolicyActionsType | [0,1] | Actions to be taken when the activity is executed.
order | property int | [0,1] |

- ### Items

  - #### name

    Flags: RAM,runtime

    Multiplicity: [1,1]

    Display order:

    Unique identifier of the policy rule. It's used for diagnostic purposes

  - #### description

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Free-form description of the rule (comment).

  - #### enabled

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Whether the policy rule is enabled.

  - #### documentation

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    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.

  - #### policyConstraints

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Set of governance, risk management, compliance (GRC) and similar policy constraints related to tasks. These constraints act as triggers for the rules.

  - #### policyThreshold

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Specifies limits when is the action executed.

  - #### policyActions

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Actions to be taken when the activity is executed.

  - #### order

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order: