Scripting (bulk actions) variables

Last modified 22 Apr 2021 17:31 +02:00

Variables in bulk actions are implemented, started from midPoint 3.7. See here:

What was originally conceived but not yet implemented, are parameterized deltas:

Modification using parameterized delta
<action>
  <type>modify</type>
  <parameter>
    <name>delta</name>
    <value xsi:type="t:ObjectDeltaType">
      <changeType>modify</changeType>
      <itemDelta>
        <modificationType>replace</modificationType>
        <path>extension/deadline</path>
        <expression>
          <script>
            <code>deadline</code>
          </script>
        </expression>
      </itemDelta>
    </parameter>
  </expression>
</action>

If needed, these deltas can be constructed using groovy scripts with the help of DeltaBuilder or construction methods on delta-related classes.