# CollectionStatsPolicyConstraintType (Complex Type)

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

Supertype: AbstractPolicyConstraintType

Constraints for collection stats (statistics). Can be used to trigger policy rules on the number of objects in collection, percentage and so on.

Policy rules with this constraint are ignored during normal processing. Evaluation of such policy rules require special handling (e.g. scanner task).

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
name | property string | [0,1] | Identifier of the constraint.
description | property string | [0,1] |
presentation | container PolicyConstraintPresentationType | [0,1] | How should be triggering of this constraint presented, e.
collection | container CollectionSpecificationType | [0,-1] | Refers to "itself" as a collection.

- ### Items

  - #### name

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Identifier of the constraint. It is used when midPoint needs to refer to a specific constraint, e.g. in order to record exception. This element is formally specified as optional, mostly due to the compatibility reasons. But it has to be provided in order for some functionality to work correctly.

  - #### description

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### presentation

    Flags: RAM,runtime

    Multiplicity: [0,1]

    How should be triggering of this constraint presented, e.g. in enforcement messages, in approvals, in certification, in notifications, etc.

  - #### collection

    Flags: RAM,runtime

    Multiplicity: [0,-1]

    Refers to "itself" as a collection. This means that it interprets the object to which the rule applies as a collection. And this element specifies the details how the collection should be interpreted. E.g. whether we mean the list of objects that ObjectCollectionType refers to by filter. Or whether we mean assignees (owners/approvers) of that object.