# PolicyRuleType (Complex Type)

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

These rules specify compliance and governance constraints. E.g. role exclusion (SoD), number of assignees, approvals, remediation, etc. This is the form suitable for use in assignments/inducements.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
$itemDefinition.Name.LocalPart | property string | [0,1] | Name of the rule.
$itemDefinition.Name.LocalPart | property string | [0,1] | Free-form description of the rule (comment).
$itemDefinition.Name.LocalPart | container PolicyConstraintsType | [1,1] | Constraints to be applied to selected objects.
$itemDefinition.Name.LocalPart | property anyURI | [0,1] | Policy situation that is the result when this policy rule is triggered.
$itemDefinition.Name.LocalPart | container PolicyThresholdType | [0,1] | Policy threshold specification.
$itemDefinition.Name.LocalPart | container PolicyActionsType | [0,1] | Action(s) that has to be taken as a reaction to this rule being triggered.
$itemDefinition.Name.LocalPart | property PolicyRuleEvaluationTargetType | [0,1] | Whether this rule has to be applied on an object or an assignment.

- ### Items

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Name of the rule. It is used to record processing of the rule in the log files and for similar diagnostic reasons.

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Free-form description of the rule (comment).

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [1,1]

    Constraints to be applied to selected objects.

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Policy situation that is the result when this policy rule is triggered. If the situation is not explicitly stated then default situation will be selected instead. The situation is determined by the constraint that triggered the rule.

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Policy threshold specification. It determines thresholds settings such as count after which the action is beeing executed, refresh interval for counter, ...

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Action(s) that has to be taken as a reaction to this rule being triggered.

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime,AVals:2

    Multiplicity: [0,1]

    Whether this rule has to be applied on an object or an assignment. Normally this is determined by looking at policy constraints. But this setting can be used to override that.