<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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);">
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"><br></span><span style="color:#e8bf6a">    <handler><br></span><span style="color:#e8bf6a">        <simpleWorkflowNotifier><br></span><span style="color:#e8bf6a">            <transport></span>mail<span style="color:#e8bf6a"></transport><br></span><span style="color:#e8bf6a">        </simpleWorkflowNotifier><br></span><span style="color:#e8bf6a">    </handler></span><span style="color:#e8bf6a"><br></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>
<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> Richard Richter <virgo@evolveum.com><br>
<b>Sent:</b> Wednesday, March 30, 2022 17:57<br>
<b>To:</b> midPoint General Discussion <midpoint@lists.evolveum.com><br>
<b>Cc:</b> Jussi Jokela <jussi.jokela@fiarone.com><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_zwchr">
<div><b>From: </b>"midPoint General Discussion" <midpoint@lists.evolveum.com><br>
<b>To: </b>"midPoint General Discussion" <midpoint@lists.evolveum.com><br>
<b>Cc: </b>"Jussi Jokela" <jussi.jokela@fiarone.com><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">
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_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>
<p></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 style="max-width:100%" data-outlook-trace="F:1|T:1" src="cid:13df82fb-f847-4612-9cc2-0984c3ac8f26"></div>
</div>
</div>
</div>
</div>
<br>
<p></p>
<p></p>
</div>
</div>
</div>
<br>
_______________________________________________<br>
midPoint mailing list<br>
midPoint@lists.evolveum.com<br>
https://lists.evolveum.com/mailman/listinfo/midpoint<br>
</div>
</div>
</div>
</body>
</html>