Skip to end of metadata
Go to start of metadata

This feature is available since midPoint 3.6.

Sometimes it is necessary to implement something like this: "When a user appears in an organization, the new manager should certify all his assignments." Since midPoint 3.6 this kind of requirements can be met.

Two mechanisms are to be employed:

  1. policy rules,
  2. certification campaign definitions.

Policy rules can be configured to trigger creation of a new certification campaign (called ad-hoc certification campaign, to distinguish it from standard multi-object scheduled campaigns). Such a rule looks like this:

Policy rule action triggering ad-hoc certification

There are two interesting items here:

  1. A policy constraint (lines 3-5) drives when the rule is triggered. In this case, it is when a new assignment to the holder of this policy rule is created. So, it is expected that this rule should be assigned to organization(s) for which we want to have ad-hoc certifications be started for all newcomers.
  2. Certification policy action (lines 8-10) that tells about the certification campaign that should be started. More specifically, "definitionRef" points to the certification definition that prescribes how the certification should look like; e.g. how many stages should it have, how to select reviewers for these stages, and so on.

An example of such definition:

Ad-hoc certification campaign definition

Note that this definition has no scopeDefinition. It is not necessary, because the scope is defined as a single-object one, containing the object to which particular certification policy action was triggered. But it can be present, if needed. In such case, objectType and searchFilter parts of it are replaced by the type of current object, and single-object OID-based filter, respectively.

There can be more certification policy actions, and each can contain more certification definition references to be started. The current implementation is such that each of these campaigns is started independently. In the future we may implement some composition mechanism, similar to the one used for approval policy actions.

Note: The definition reference must be OID-based. Filter-based ones (evaluated at run time) are not supported now.

Starting certification after property change

This feature is not limited to situations where an assignment is created. A policy rule can be triggered also when one or more object items are modified. The following two examples describe starting ad-hoc campaign when (a) both employeeType and organization are changed, (b) either employeeType or organization (or both) are changed.

Ad-hoc certification when both employeeType and organization are changed
Ad-hoc certification when employeeType and/or organization are changed
  • No labels