<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Hi Pavel,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Yes, but those work item event categories don't work anymore (for filtering), and I still don't understand why the approver receives two mails when the work item is completed? Here is a screenshot with all the mails the approver receives during the process:<br>
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<img style="max-width:100%" class="w-500 h-213" size="32316" contenttype="image/png" data-outlook-trace="F:1|T:1" src="cid:78511279-a364-48a0-883a-e31b65a33a6c"><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<span style="background-color: rgb(255, 255, 0);">​</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Best regards,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Jussi Jokela<br>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> midPoint <midpoint-bounces@lists.evolveum.com> on behalf of Pavol Mederly via midPoint <midpoint@lists.evolveum.com><br>
<b>Sent:</b> Thursday, March 31, 2022 10:10<br>
<b>To:</b> midpoint@lists.evolveum.com <midpoint@lists.evolveum.com><br>
<b>Cc:</b> Pavol Mederly <mederly@evolveum.com><br>
<b>Subject:</b> Re: [midPoint] Workflow notification sending duplicate emails</font>
<div> </div>
</div>
<div>
<p>Jussi,</p>
<p><br>
</p>
<p>have you read this? <a href="https://docs.evolveum.com/midpoint/reference/cases/workflow-3/workflow-notifications/" class="x_moz-txt-link-freetext">
https://docs.evolveum.com/midpoint/reference/cases/workflow-3/workflow-notifications/</a>
<br>
</p>
<p><br>
</p>
<p>It may be slightly out of date but I hope it will answer your questions.</p>
<p><br>
</p>
<p>Best regards,<br>
</p>
<pre class="x_moz-signature" cols="72">-- 
Pavol Mederly
Software developer
evolveum.com</pre>
<div class="x_moz-cite-prefix">On 31/03/2022 09:04, Jussi Jokela via midPoint wrote:<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
Hi Richard,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
With the following configuration, the requester receives mail when the workflow process has started and finished, but the assignee still receives duplicate mails when the work item is started and also when finished (four mails total).</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
</div>
<pre style="background-color:#2b2b2b; color:#a9b7c6; font-family:'JetBrains Mono',monospace; font-size:9.8pt"><span style="color:#e8bf6a"><notificationConfiguration></span><span style="color:#e8bf6a">
</span><span style="color:#e8bf6a">    <handler>
</span><span style="color:#e8bf6a">        <simpleWorkflowNotifier>
</span><span style="color:#e8bf6a">            <transport></span>mail<span style="color:#e8bf6a"></transport>
</span><span style="color:#e8bf6a">        </simpleWorkflowNotifier>
</span><span style="color:#e8bf6a">    </handler></span><span style="color:#e8bf6a">
</span><span style="color:#e8bf6a"></notificationConfiguration></span></pre>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
Seems like the requester receives the mail based on the workflow process ("Workflow process has been started/finished"), and the assignee based on the work item ("Work item has been created/allocated/completed")?<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
And we are using midPoint version 4.3.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
Best regards,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:11pt; color:rgb(0,0,0)">
Jussi Jokela<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Richard Richter
<a class="x_moz-txt-link-rfc2396E" href="mailto:virgo@evolveum.com"><virgo@evolveum.com></a><br>
<b>Sent:</b> Wednesday, March 30, 2022 17:57<br>
<b>To:</b> midPoint General Discussion <a class="x_moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com">
<midpoint@lists.evolveum.com></a><br>
<b>Cc:</b> Jussi Jokela <a class="x_moz-txt-link-rfc2396E" href="mailto:jussi.jokela@fiarone.com">
<jussi.jokela@fiarone.com></a><br>
<b>Subject:</b> Re: [midPoint] Workflow notification sending duplicate emails</font>
<div> </div>
</div>
<div>
<div style="font-family:arial,helvetica,sans-serif; font-size:12pt; color:#000000">
<div>Hi Jussi<br>
</div>
<div><br>
</div>
<div>Please, send the relevant portion of the configuration and also state the version of midPoint used.<br>
</div>
<div><br>
</div>
<div>Thanks<br>
</div>
<div><br>
</div>
<div>Richard Richter<br>
</div>
<div>Software Developer<br>
</div>
<div>Evolveum<br>
</div>
<div><br>
</div>
<hr id="x_x_zwchr">
<div><b>From: </b>"midPoint General Discussion" <a class="x_moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com">
<midpoint@lists.evolveum.com></a><br>
<b>To: </b>"midPoint General Discussion" <a class="x_moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com">
<midpoint@lists.evolveum.com></a><br>
<b>Cc: </b>"Jussi Jokela" <a class="x_moz-txt-link-rfc2396E" href="mailto:jussi.jokela@fiarone.com">
<jussi.jokela@fiarone.com></a><br>
<b>Sent: </b>Wednesday, March 30, 2022 2:12:09 PM<br>
<b>Subject: </b>[midPoint] Workflow notification sending duplicate emails<br>
</div>
<div><br>
<style style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style></div>
<div>
<div style="font-family:'calibri' ,'helvetica' ,sans-serif; font-size:11pt; color:rgb(0 ,0 ,0)">
Hi everyone,</div>
<div style="font-family:'calibri' ,'helvetica' ,sans-serif; font-size:11pt; color:rgb(0 ,0 ,0)">
<br>
</div>
<div style="font-family:'calibri' ,'helvetica' ,sans-serif; font-size:11pt; color:rgb(0 ,0 ,0)">
We want to implement automated emails when users request new role assignments and I have used
<a href="https://docs.evolveum.com/midpoint/reference/misc/notifications/configuration/" target="_blank" rel="nofollow noopener noreferrer" class="x_moz-txt-link-freetext">
https://docs.evolveum.com/midpoint/reference/misc/notifications/configuration/</a> as an example.</div>
<div style="font-family:'calibri' ,'helvetica' ,sans-serif; font-size:11pt; color:rgb(0 ,0 ,0)">
<br>
</div>
<div style="font-family:'calibri' ,'helvetica' ,sans-serif; font-size:11pt; color:rgb(0 ,0 ,0)">
However, when sending requests, the approver receives two different emails per request, titled "A new work item has been created" and "Work item has been allocated to you". also, the requester/requestee receives two emails when the request is approved/rejected,
 titled "Work item has been completed".</div>
<div style="font-family:'calibri' ,'helvetica' ,sans-serif; font-size:11pt; color:rgb(0 ,0 ,0)">
<br>
</div>
<div style="font-family:'calibri' ,'helvetica' ,sans-serif; font-size:11pt; color:rgb(0 ,0 ,0)">
I have tried different status, category, operation etc. filters but without result. Any tips?<br>
</div>
<div>
<div style="font-family:'calibri' ,'helvetica'
                ,sans-serif; font-size:11pt; color:rgb(0 ,0 ,0)">
<br>
</div>
<div id="x_x_Signature">
<div>
<div style="font-family:'calibri' ,'arial'
                    ,'helvetica' ,sans-serif; font-size:12pt; color:rgb(0 ,0 ,0)">
<span lang="EN-US" style="color:black; border:none 1pt; padding:0cm"><br>
</span></div>
<div style="font-family:'calibri' ,'arial'
                    ,'helvetica' ,sans-serif; font-size:12pt; color:rgb(0 ,0 ,0)">
<span lang="EN-US" style="color:black; border:none 1pt; padding:0cm"></span></div>
<span lang="EN-US" style="color:black; border:none 1pt; padding:0cm">Ystävällisin terveisin / best regards,</span>
<p style="background:white"><span lang="EN-US" style="color:black; border:none 1pt; padding:0cm"><br>
</span></p>
<span style="font-family:'calibri' ,'helvetica'
                    ,sans-serif"></span>
<p style="background:white"><b><span lang="EN-US" style="color:black; border:1pt none; padding:0cm; font-size:12pt; font-family:'calibri' ,'helvetica' ,sans-serif">Ju</span><span lang="EN-US" style="color:black; border:1pt none; padding:0cm; font-size:12pt; font-family:'calibri' ,'helvetica' ,sans-serif">ssi
 Jo</span><span lang="EN-US" style="color:black; border:1pt none; padding:0cm; font-size:12pt; font-family:'calibri' ,'helvetica' ,sans-serif">kela</span></b><span lang="EN-US" style="font-size:9pt; font-family:'inherit'
                      ,serif; color:black; border:none 1pt; padding:0cm"></span><span lang="EN-US" style="font-size:9pt; font-family:'inherit' ,serif; color:black; border:none 1pt; padding:0cm"><br>
</span><span lang="EN-US" style="font-size:10pt; font-family:'calibri' ,'helvetica' ,sans-serif; color:black; border:1pt none; padding:0cm">IAM Lead Developer</span><span lang="EN-US" style="font-size:9pt; font-family:'inherit'
                      ,serif; color:black; border:none 1pt; padding:0cm"><br>
</span><span lang="EN-US" style="font-size:10pt; font-family:'calibri' ,'helvetica' ,sans-serif; color:black; border:1pt none; padding:0cm">mobile: +358 50 511 3306</span><span lang="EN-US" style="font-size:9pt; font-family:'inherit'
                      ,serif; color:black; border:none 1pt; padding:0cm"><br>
</span><span lang="EN-US" style="font-size:10pt; font-family:'calibri' ,'helvetica' ,sans-serif; color:black; border:1pt none; padding:0cm">email:
</span><span lang="EN-US" style="font-size:9pt; font-family:'inherit' ,serif; color:black; border:none 1pt; padding:0cm"><a href="mailto:jussi.jokela@fiarone.com" target="_blank" rel="nofollow noopener
                        noreferrer"><span style="font-size:10pt; font-family:'calibri'
                          ,'helvetica' ,sans-serif">jussi.jokela@fiarone.com</span></a><br>
</span></p>
<p style="background:white"><span lang="EN-US" style="font-size:9pt; font-family:'inherit'
                      ,serif; color:black; border:none 1pt; padding:0cm"><br>
</span></p>
<p style="background:white"><b><span lang="EN-US" style="font-size:11pt; font-family:'calibri'
                        ,'helvetica' ,sans-serif; color:black; border:1pt none; padding:0cm">Fiarone Oy</span></b><span lang="en-FI" style="color:#201f1e"></span><span lang="EN-US" style="font-size:9pt; font-family:'inherit' ,serif; color:black; border:none 1pt; padding:0cm"><br>
<a href="https://www.fiarone.com/" rel="noopener
                        noreferrer nofollow noopener noreferrer" target="_blank"><span style="color:rgb(149 ,79 ,114); font-size:10pt; font-family:'calibri'
                          ,'helvetica' ,sans-serif">https://www.fiarone.com</span></a></span><span lang="en-FI" style="color:#201f1e"></span><span lang="en-FI" style="font-size:9pt; font-family:'inherit'
                      ,serif; color:black; border:none 1pt; padding:0cm"><br>
</span><span lang="en-FI" style="font-size:10pt; font-family:'calibri' ,'helvetica' ,sans-serif; color:black; border:1pt none; padding:0cm">Postikatu 2</span><span lang="en-FI" style="font-size:9pt; font-family:'inherit'
                      ,serif; color:black; border:none 1pt; padding:0cm"><br>
</span><span lang="en-FI" style="color:#201f1e"></span><span lang="EN-GB" style="font-size:10pt; font-family:'calibri'
                      ,'helvetica' ,sans-serif; color:black; border:1pt
                      none; padding:0cm">20250 Turku</span><span lang="EN-GB" style="font-size:9pt; font-family:'inherit'
                      ,serif; color:black; border:none 1pt; padding:0cm"><br>
</span></p>
<p style="background:white"><span lang="EN-GB" style="font-size:9pt; font-family:'inherit'
                      ,serif; color:black; border:none 1pt; padding:0cm"></span></p>
<div>
<div>
<div>
<div lang="fi">
<div>
<p style="font-size:11pt; font-family:'calibri' ,sans-serif; background-color:white; margin:0">
<span lang="en-US" style="font-size:9pt"></span></p>
</div>
<div><span lang="en-GB" style="color:black; font-size:9pt"></span><span style="color:#212121; font-size:9pt"></span><img class="" style="max-width:100%" data-outlook-trace="F:2|T:2" src="cid:part1.m1Zxq71x.w0rrC0wF@evolveum.com"></div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
midPoint mailing list<br>
<a class="x_moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a class="x_moz-txt-link-freetext" href="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</div>
</div>
</div>
<br>
<fieldset class="x_moz-mime-attachment-header"></fieldset>
<pre class="x_moz-quote-pre">_______________________________________________
midPoint mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="x_moz-txt-link-freetext" href="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
</div>
</body>
</html>