[midPoint] globalPolicyRule : how works operation=delete
Pascal PERICHON
pascal.perichon at u-paris.fr
Thu Jun 20 16:44:34 CEST 2024
Hi,
I've got a problem to understand how works the
"<operation>delete</operation>" in the following example : I want to
add/update a field dateOfModificationOfTheMail when we add/update the
field emailAddress, or delete this date when emailAddress is deleted :
/ <globalPolicyRule>
// <focusSelector>
<type>UserType</type>
</focusSelector>
// <policyConstraints>
<modification>
<operation>add</operation>
<operation>modify</operation>
<operation>delete</operation>
<item>emailAddress</item>
</modification>
</policyConstraints>
<policyActions>
<scriptExecution>
<executeScript
xmlns:s="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3">
<s:action>
<s:type>execute-script</s:type>
<s:parameter>
<s:name>script</s:name>
<value
xsi:type="c:ScriptExpressionEvaluatorType">
<code>
log.info("------> I should
add/update the field dateOfModificationOfTheMail or delete this date the
mail is deleted")
</code>
</value>
</s:parameter>
</s:action>
</executeScript>
</scriptExecution>
</policyActions>
</globalPolicyRule>
/
it works fine for operation=add/modify but nothing is triggered for
operation=delete.
I tried to remove all operations tags (supposed to act like if
add/modify/delete tags are all there): same result.
The documentation
/https://docs.evolveum.com/midpoint/devel/design/policy-constraints/#currently-implemented-constraints/
seems to say that's implemented (I use midPoint 4.4.8).
Any ideas ?
Thanks
---
Pascal Périchon
Université Paris Cité
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20240620/40b19469/attachment.htm>
More information about the midPoint
mailing list