<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Jussi,</p>
    <p><br>
    </p>
    <p>have you read this? <a moz-do-not-send="true"
href="https://docs.evolveum.com/midpoint/reference/cases/workflow-3/workflow-notifications/"
        class="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="moz-signature" cols="72">-- 
Pavol Mederly
Software developer
evolveum.com</pre>
    <div class="moz-cite-prefix">On 31/03/2022 09:04, Jussi Jokela via
      midPoint wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:DU0PR10MB51940ECE3C442DB002D426E893E19@DU0PR10MB5194.EURPRD10.PROD.OUTLOOK.COM">
      <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>
      <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 style="display:inline-block;width:98%" tabindex="-1">
      <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
          face="Calibri, sans-serif" color="#000000"><b>From:</b>
          Richard Richter <a class="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="moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com"><midpoint@lists.evolveum.com></a><br>
          <b>Cc:</b> Jussi Jokela <a class="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_zwchr">
          <div><b>From: </b>"midPoint General Discussion"
            <a class="moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com"><midpoint@lists.evolveum.com></a><br>
            <b>To: </b>"midPoint General Discussion"
            <a class="moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com"><midpoint@lists.evolveum.com></a><br>
            <b>Cc: </b>"Jussi Jokela" <a class="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"
                moz-do-not-send="true" class="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_Signature">
                <div>
                  <div style="font-family:'calibri' ,'arial'
                    ,'helvetica' ,sans-serif; font-size:12pt;
                    color:rgb(0 ,0 ,0)">
                    <span style="color:black; border:none 1pt;
                      padding:0cm" lang="EN-US"><br>
                    </span></div>
                  <div style="font-family:'calibri' ,'arial'
                    ,'helvetica' ,sans-serif; font-size:12pt;
                    color:rgb(0 ,0 ,0)">
                    <span style="color:black; border:none 1pt;
                      padding:0cm" lang="EN-US"></span></div>
                  <span style="color:black; border:none 1pt;
                    padding:0cm" lang="EN-US">Ystävällisin terveisin /
                    best regards,</span>
                  <p style="background:white"><span style="color:black;
                      border:none 1pt; padding:0cm" lang="EN-US"><br>
                    </span></p>
                  <span style="font-family:'calibri' ,'helvetica'
                    ,sans-serif"></span>
                  <p style="background:white"><b><span
                        style="color:black; border:1pt none;
                        padding:0cm; font-size:12pt;
                        font-family:'calibri' ,'helvetica' ,sans-serif"
                        lang="EN-US">Ju</span><span style="color:black;
                        border:1pt none; padding:0cm; font-size:12pt;
                        font-family:'calibri' ,'helvetica' ,sans-serif"
                        lang="EN-US">ssi Jo</span><span
                        style="color:black; border:1pt none;
                        padding:0cm; font-size:12pt;
                        font-family:'calibri' ,'helvetica' ,sans-serif"
                        lang="EN-US">kela</span></b><span
                      style="font-size:9pt; font-family:'inherit'
                      ,serif; color:black; border:none 1pt; padding:0cm"
                      lang="EN-US"></span><span style="font-size:9pt;
                      font-family:'inherit' ,serif; color:black;
                      border:none 1pt; padding:0cm" lang="EN-US"><br>
                    </span><span style="font-size:10pt;
                      font-family:'calibri' ,'helvetica' ,sans-serif;
                      color:black; border:1pt none; padding:0cm"
                      lang="EN-US">IAM Lead Developer</span><span
                      style="font-size:9pt; font-family:'inherit'
                      ,serif; color:black; border:none 1pt; padding:0cm"
                      lang="EN-US"><br>
                    </span><span style="font-size:10pt;
                      font-family:'calibri' ,'helvetica' ,sans-serif;
                      color:black; border:1pt none; padding:0cm"
                      lang="EN-US">mobile: +358 50 511 3306</span><span
                      style="font-size:9pt; font-family:'inherit'
                      ,serif; color:black; border:none 1pt; padding:0cm"
                      lang="EN-US"><br>
                    </span><span style="font-size:10pt;
                      font-family:'calibri' ,'helvetica' ,sans-serif;
                      color:black; border:1pt none; padding:0cm"
                      lang="EN-US">email:
                    </span><span style="font-size:9pt;
                      font-family:'inherit' ,serif; color:black;
                      border:none 1pt; padding:0cm" lang="EN-US"><a
                        href="mailto:jussi.jokela@fiarone.com"
                        target="_blank" rel="nofollow noopener
                        noreferrer" moz-do-not-send="true"><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
                      style="font-size:9pt; font-family:'inherit'
                      ,serif; color:black; border:none 1pt; padding:0cm"
                      lang="EN-US"><br>
                    </span></p>
                  <p style="background:white"><b><span
                        style="font-size:11pt; font-family:'calibri'
                        ,'helvetica' ,sans-serif; color:black;
                        border:1pt none; padding:0cm" lang="EN-US">Fiarone
                        Oy</span></b><span style="color:#201f1e"
                      lang="en-FI"></span><span style="font-size:9pt;
                      font-family:'inherit' ,serif; color:black;
                      border:none 1pt; padding:0cm" lang="EN-US"><br>
                      <a href="https://www.fiarone.com/" rel="noopener
                        noreferrer nofollow noopener noreferrer"
                        target="_blank" moz-do-not-send="true"><span
                          style="color:rgb(149 ,79 ,114);
                          font-size:10pt; font-family:'calibri'
                          ,'helvetica' ,sans-serif">https://www.fiarone.com</span></a></span><span
                      style="color:#201f1e" lang="en-FI"></span><span
                      style="font-size:9pt; font-family:'inherit'
                      ,serif; color:black; border:none 1pt; padding:0cm"
                      lang="en-FI"><br>
                    </span><span style="font-size:10pt;
                      font-family:'calibri' ,'helvetica' ,sans-serif;
                      color:black; border:1pt none; padding:0cm"
                      lang="en-FI">Postikatu 2</span><span
                      style="font-size:9pt; font-family:'inherit'
                      ,serif; color:black; border:none 1pt; padding:0cm"
                      lang="en-FI"><br>
                    </span><span style="color:#201f1e" lang="en-FI"></span><span
                      style="font-size:10pt; font-family:'calibri'
                      ,'helvetica' ,sans-serif; color:black; border:1pt
                      none; padding:0cm" lang="EN-GB">20250 Turku</span><span
                      style="font-size:9pt; font-family:'inherit'
                      ,serif; color:black; border:none 1pt; padding:0cm"
                      lang="EN-GB"><br>
                    </span></p>
                  <p style="background:white"><span
                      style="font-size:9pt; font-family:'inherit'
                      ,serif; color:black; border:none 1pt; padding:0cm"
                      lang="EN-GB"></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 style="font-size:9pt" lang="en-US"></span></p>
                          </div>
                          <div><span style="color:black; font-size:9pt"
                              lang="en-GB"></span><span
                              style="color:#212121; font-size:9pt"></span><img
                              style="max-width:100%"
                              data-outlook-trace="F:1|T:1"
                              src="cid:part1.m1Zxq71x.w0rrC0wF@evolveum.com"
                              class=""></div>
                        </div>
                      </div>
                    </div>
                  </div>
                  <br>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            midPoint mailing list<br>
            <a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
            <a class="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="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>