# PolicyActionsType (Complex Type)

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

Actions that are executed as reactions to triggered policy rules.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
$itemDefinition.Name.LocalPart | container EnforcementPolicyActionType | [0,1] | Enforcement action.
$itemDefinition.Name.LocalPart | container ApprovalPolicyActionType | [0,-1] | Approval action(s).
$itemDefinition.Name.LocalPart | container RemediationPolicyActionType | [0,1] | Remediation action.
$itemDefinition.Name.LocalPart | container PrunePolicyActionType | [0,1] | Prune action.
$itemDefinition.Name.LocalPart | container CertificationPolicyActionType | [0,1] | Certification action.
$itemDefinition.Name.LocalPart | container NotificationPolicyActionType | [0,-1] | Notification action.
$itemDefinition.Name.LocalPart | container RecordPolicyActionType | [0,1] | Record action.
$itemDefinition.Name.LocalPart | container ScriptExecutionPolicyActionType | [0,-1] | Execute script (bulk action).
$itemDefinition.Name.LocalPart | container SuspendTaskPolicyActionType | [0,1] | Stop action.

- ### Items

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Enforcement action. This action stops the operation and results with the error.

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,-1]

    Approval action(s). The operation will be suspended and the approval workflow will be started. If the workflow ends with success the operation will proceed. If the workflow ends with an error the operation will also end with an error. More approval actions can be specified. They will be eventually merged into one approval process.

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Remediation action. The operation will proceed. A workflow will be started to remediate the result of the operation after the operation is done. This action is ideal for operations that cannot be stopped, e.g. when manager of an organizational unit is deleted because he quits the job. This action starts a workflow. Therefore it is ideal for actions that are not frequent but that require immediate attention. E.g. missing manager for organizational unit.

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Prune action. The operation will proceed. Any other assignments that are in conflict with this assignment that triggered the rule will be "pruned": they will be removed. The removal of the conflicting assignments is automatic and silent. It will not be subject to approvals or other policy constraints. This mechanism can be used for example to implement set of roles where only one of the roles can be assigned at a time.

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Certification action. The operation will proceed. The object will be scheduled for a certification campaign after the operation is done. This action works with certification campaign. Therefore it is ideal for actions that are frequent and can occur on large number of objects. The campaign is an efficient method how to handle mass decisions. However it mat not be started immediately.

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,-1]

    Notification action. The operation will proceed. Notifications are sent at the end of the operation. More notification actions can be specified.

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Record action. The operation will proceed. Policy situation will be recorded for given object or assignment. It can be reported on or certified later on.

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,-1]

    Execute script (bulk action). The operation will proceed. Script(s) are executed at the end of the operation. HIGHLY EXPERIMENTAL. Use at your own risk. No guarantees here.

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Stop action. This action stops the operation after n executions and results with the error.