<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Excuse me, I have probably confused your first and last name. :(<br>
</p>
<p>Having looked at the source code I got a feeling that the
allocation event may be (by mistake) not sent even after work item
is claimed...</p>
<p>If you have a little time, you may look at the source code e.g.
here</p>
<p><a moz-do-not-send="true"
href="https://github.com/Evolveum/midpoint/blob/bc09c7d92d03d93f5686aa3d9e301eb1c1a115f1/model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/actions/OpenStageAction.java#L114-L147"
class="moz-txt-link-freetext">https://github.com/Evolveum/midpoint/blob/bc09c7d92d03d93f5686aa3d9e301eb1c1a115f1/model/cases-impl/src/main/java/com/evolveum/midpoint/cases/impl/engine/actions/OpenStageAction.java#L114-L147</a></p>
<p>These are notifications sent when the stage is opened, i.e. at
the moment when work items are created.<br>
</p>
<pre class="moz-signature" cols="72">--
Pavol Mederly
Software developer
evolveum.com</pre>
<div class="moz-cite-prefix">On 08/04/2022 14:43, Pavol Mederly via
midPoint wrote:<br>
</div>
<blockquote type="cite"
cite="mid:0e533ee0-577a-5fcd-0e32-dc1440a29571@evolveum.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Alonso,</p>
<p>it's most probably normal behavior:</p>
<p>There are no "work item allocated" events, because no
allocation took place - yet.</p>
<p>Regards,<br>
</p>
<pre class="moz-signature" cols="72">--
Pavol Mederly
Software developer
evolveum.com</pre>
<div class="moz-cite-prefix">On 08/04/2022 14:21, Ezequiel Alonso
via midPoint wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAORQm43jHEdnYcgu-tY2xmgNhtp_dgUu-on6_JZ_WbwVLbDUsQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<div dir="ltr">Hi guys, <br>
<br>
We have tried a globalPolicyRule with an approval step
containing an approver of type RoleType, and the default
simpleWorkflowNotifier:<br>
<br>
<font face="monospace"><stage><br>
<number>1</number><br>
<name>Approval step 1</name><br>
<approverRef relation="org:default"
type="c:RoleType"><br>
<filter><br>
<q:equal><br>
<q:path>name</q:path><br>
<q:value>Approvers</q:value><br>
</q:equal><br>
</filter><br>
<resolutionTime>run</resolutionTime><br>
</approverRef><br>
<evaluationStrategy>allMustApprove</evaluationStrategy><br>
<outcomeIfNoApprovers>reject</outcomeIfNoApprovers><br>
<groupExpansion>byClaimingWorkItem</groupExpansion><br>
</stage><br>
<br>
<notificationConfiguration><br>
<handler><br>
<simpleWorkflowNotifier><br>
<transport>mail</transport><br>
</simpleWorkflowNotifier><br>
</handler><br>
...<br>
</notificationConfiguration><br>
</font><br>
When we trigger the approval step, notifications are sent only
for workflow process events (workflow started/ended), but not
for workitem allocation events (e.g.: workitem created/work
item allocated to you). Is this the normal behavior or? Or the
members/role emailAddress should be notified?<br>
<br>
If we use a UserType approver, notifications are sent
successfully on workflow process events and on workitem
allocation events. Both UserType and RoleType objects have a
valid emailAddress.<br clear="all">
<div><br>
</div>
<div>Thank you in advance.</div>
<div><br>
</div>
-- <br>
<div dir="ltr" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr"><b>Ezequiel Alonso</b><br>
<span style="color:rgb(102,102,102)">Identicum
S.A.<br>
<a
href="https://goo.gl/maps/CD9awkNypjqr7iCt5"
target="_blank" moz-do-not-send="true">Costa
Rica 5546, Buenos Aires, Argentina</a><br>
<a href="https://www.identicum.com/"
target="_blank" moz-do-not-send="true">www.identicum.com</a></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:midPoint@lists.evolveum.com" moz-do-not-send="true">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="https://lists.evolveum.com/mailman/listinfo/midpoint" moz-do-not-send="true">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
</body>
</html>