# ArchetypePolicyType (Complex Type)

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

Definition of archetype policies, such as object template, lifecycle, type display properties and so on.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
$itemDefinition.Name.LocalPart | container DisplayType | [0,1] | Display properties of the archetyped objects.
$itemDefinition.Name.LocalPart | reference ObjectReferenceType | [1,1] | Reference to the template.
$itemDefinition.Name.LocalPart | container PropertyConstraintType | [0,-1] | Definition of a property constraints.
$itemDefinition.Name.LocalPart | container ConflictResolutionType | [0,1] | How to resolve write-write conflicts on focal objects, i.
$itemDefinition.Name.LocalPart | container LifecycleStateModelType | [0,1] | Specification of lifecycle states and state transitions.
$itemDefinition.Name.LocalPart | container ApplicablePoliciesType | [0,1] | Specification of policies that are applicable to this object type.
$itemDefinition.Name.LocalPart | property string | [0,1] | Specifies a profile for expression execution.
$itemDefinition.Name.LocalPart | container ArchetypeAdminGuiConfigurationType | [0,1] | Definition of GUI-related configuration for the archetyped objects.

- ### Items

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display properties of the archetyped objects.

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM

    Multiplicity: [1,1]

    Reference to the template.

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,-1]

    Definition of a property constraints.

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,1]

    How to resolve write-write conflicts on focal objects, i.e. if two threads modify given objects at once.

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Specification of lifecycle states and state transitions.

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Specification of policies that are applicable to this object type. This should refer to all applicable policies, not just those that are applied. The purpose is primarily for presentation purposes, so the user interface can present choice of all policies to the user.

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Specifies a profile for expression execution. The profile mostly specifies restrictions for execution of expressions and scripts. This applies to expressions in archetyped objects. Please note that no expression execution restriction means that all evaluators and scripting langages are allowed and there are no restrictions for evaluation of expressions.

    Implementation note: implementation of those restriction in midPoint 4.0 is very limited. There is no guarantee that this will work for archetypes at all. The only supported option in 4.0 is application of the restricitons to reports (ReportType) and only if it is configured in global system configuration.

  - #### $itemDefinition.Name.LocalPart

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Definition of GUI-related configuration for the archetyped objects. This is using principle similar to adminGuiConfiguration in system configuraiton.