[midPoint] simpleWorkflowNotifier sends 3 emails. How to only send 1 email?
Fabian Noll-Dukiewicz
fabian.noll-dukiewicz at veryfy.gmbh
Tue Nov 22 15:52:38 CET 2022
Hi,
the <simpleWorkflowNotifier> is used to send the default mails. One mail is send to the approver and one mail is send to the requester. I think if there are more than one approver, every approver will receive an email notification. See the documentation: Workflow notifications<https://docs.evolveum.com/midpoint/reference/cases/workflow-3/workflow-notifications/#some-examples>.
Kind regards,
Fabian
Fabian Noll-Dukiewicz
Spezialist Identity & Access Management | Geschäftsführer
Tel.: +49 152 244 63 211
Email: fabian.noll-dukiewicz at veryfy.gmbh
Web: https://veryfy.gmbh
Von: midPoint <midpoint-bounces at lists.evolveum.com> im Auftrag von Hsin-Fang Hsu via midPoint <midpoint at lists.evolveum.com>
Datum: Dienstag, 22. November 2022 um 15:26
An: midPoint General Discussion <midpoint at lists.evolveum.com>
Cc: Hsin-Fang Hsu <hsin-fang.hsu at itconcepts.ch>
Betreff: [midPoint] simpleWorkflowNotifier sends 3 emails. How to only send 1 email?
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/1d8d76de/attachment-0001.htm>
More information about the midPoint
mailing list