[midPoint] simpleWorkflowNotifier sends 3 emails. How to only send 1 email?

Hsin-Fang Hsu hsin-fang.hsu at itconcepts.ch
Tue Nov 22 15:26:22 CET 2022


Hi,

I set up a <simpleWorkflowNotifier> but it always sends 3 emails every time a role that requires approval is requested.
I tested with <simpleFocalObjectNotifier> for role and it only sends 1 email as expected.

Does anyone know how to make simpleWorkflowNotifier only send 1 email?

Thanks for your help in advance!

Best regards,
Hsin-Fang

Here is the code:
<handler>
    <simpleWorkflowNotifier>
        <name>send update</name>
        <operation>add</operation>
        <recipientExpression>
            <value>idm at example.com</value<mailto:idm at example.com%3c/value>>
        </recipientExpression>
        <subjectExpression>
            <value>case event</value>
        </subjectExpression>
        <bodyExpression>
            <script>
                <code>
                    return "here is send update body"
                </code>
            </script>
        </bodyExpression>
        <transport>mail</transport>
    </simpleWorkflowNotifier>
</handler>


<handler>
    <simpleFocalObjectNotifier>
        <name>role change</name>
        <focusType>RoleType</focusType>
        <recipientExpression>
            <value>idm at example.com</value<mailto:idm at example.com%3c/value>>
        </recipientExpression>
        <subjectExpression>
            <value>role event</value>
        </subjectExpression>
        <bodyExpression>
            <script>
                <code>
                    return "here is role change body"
                </code>
            </script>
        </bodyExpression>
        <transport>mail</transport>
    </simpleFocalObjectNotifier>
</handler>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20221122/bbfbac3e/attachment-0001.htm>


More information about the midPoint mailing list