Scripting (bulk actions) variables

Last modified 28 Oct 2021 11:18 +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.

Was this page helpful?
YES NO
Thanks for your feedback