<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>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 :<br>
</p>
<p><i> <globalPolicyRule><br>
</i><i> <focusSelector><br>
<type>UserType</type><br>
</focusSelector><br>
</i><i> <policyConstraints><br>
<modification><br>
<operation>add</operation><br>
<operation>modify</operation><br>
<operation>delete</operation><br>
<item>emailAddress</item><br>
</modification><br>
</policyConstraints><br>
<policyActions><br>
<scriptExecution><br>
<executeScript
xmlns:s=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3">"http://midpoint.evolveum.com/xml/ns/public/model/scripting-3"</a>><br>
<s:action><br>
<s:type>execute-script</s:type><br>
<s:parameter><br>
<s:name>script</s:name><br>
<value
xsi:type="c:ScriptExpressionEvaluatorType"><br>
<code><br>
log.info("------> I
should add/update the field dateOfModificationOfTheMail or
delete this date the mail is deleted")<br>
</code><br>
</value><br>
</s:parameter><br>
</s:action><br>
</executeScript><br>
</scriptExecution><br>
</policyActions><br>
</globalPolicyRule><br>
</i></p>
<p>it works fine for operation=add/modify but nothing is triggered
for operation=delete.</p>
<p>I tried to remove all operations tags (supposed to act like if
add/modify/delete tags are all there): same result.</p>
<p>The documentation <i><a class="moz-txt-link-freetext" href="https://docs.evolveum.com/midpoint/devel/design/policy-constraints/#currently-implemented-constraints">https://docs.evolveum.com/midpoint/devel/design/policy-constraints/#currently-implemented-constraints</a></i>
seems to say that's implemented (I use midPoint 4.4.8).</p>
<p>Any ideas ?</p>
<p>Thanks</p>
<p>---<br>
</p>
Pascal Périchon<br>
Université Paris Cité<br>
</body>
</html>