Page tree
Skip to end of metadata
Go to start of metadata

Description

Recomputes (immediately or in scheduled way) input object(s).

Input

Any object.

Output

The same object (original version, not the recomputed one).

Parameters

Parameter nameMeaning
triggered Delays recomputation to later date using a trigger.

The triggered parameter is of TriggerCreationType and can have two properties:

PropertyMeaningExampleDefault
fireAfter 

How long after current time the trigger should be fired. When not specified, trigger is created unconditionally, with the fire time being equal to the current time. If specified, the trigger is created with the fire time in the future; skipping the creation if compatible trigger was created and still has not been fired. This "redundant trigger elimination" is currently implemented per node, i.e. in a cluster with multiple nodes it is possible that some redundant triggers will be created (at most 1 per node).

PT1Mno value, meaning that trigger is created unconditionally
safetyMargin 

What is the safety margin, i.e. how many long before the trigger fire time we need to create a new trigger. This is to avoid (rare but in theory possible) race conditions where we skip creation of a trigger but it fires in the meanwhile.

PT10S-

Examples

<s:recompute xmlns:s="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3"
             xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
    <s:triggered>
        <c:fireAfter>PT1M</c:fireAfter>
    </s:triggered>
</s:recompute>
  • No labels