[midPoint] HTML in E-mail Notifications
Doler, Alexander Earl (LATCO - Buenos Aires)
adoler at deloitte.com
Thu Apr 13 19:24:30 CEST 2017
Hi Pavol and Jason,
I was able to port the changes from Github as you indicated and recompile the application, and it works perfectly now! I am able to add HTML content to the e-mail notifications. Thank you for your help.
Additionally, I have another question regarding notifications. Some roles in my environment have between one and three levels of approval before being assigned. The first approval goes to the user’s manager, which is assigned directly as a schema-extension object. The approval notification arrives fine to this first approver. However, in the cases where there are 2-3 approvers, these subsequent approvers are members of sub-organizations, and only one member needs to approve the item for it to be approved. The approval request arrives to the users under “items claimable by me,” rather than “My items.” Crrently, no e-mail notification is sent to any of these approvers. I would like all of the members these sub-organizations to receive an e-mail notification to approve the item. I have the notification handler configured as follows:
<handler>
<simpleWorkflowNotifier>
<category>workItemEvent</category>
<operation>add</operation>
<recipientExpression>
<script>
<code>
assignee.getEmailAddress();
</code>
</script>
</recipientExpression>
<transport>mail</transport>
</simpleWorkflowNotifier>
</handler>
Again, only the first approver receives an e-mail notification, but after it is approved, the subsequent approvers are not notified by mail.
Thanks again!
Alex
From: midPoint [mailto:midpoint-bounces at lists.evolveum.com] On Behalf Of Pavol Mederly
Sent: miércoles, 12 de abril de 2017 1:33 p. m.
To: midpoint at lists.evolveum.com
Subject: Re: [midPoint] HTML in E-mail Notifications
Jason,
you are right. But - interestingly enough - Michael did the implementation for version 3.4.x first (because he used this one at that time), so actually the feature is present in 3.4.x and in (prepared) 3.6. :)
See:
https://github.com/Evolveum/midpoint/commit/f367a02a8b2c30b2a5b06036c082af252c533129
https://github.com/Evolveum/midpoint/commit/441f4dc796338b53f704fc5b8d0ea8fd8a2f634c
Alex:
Perhaps it would not be a big issue to port it to 3.5.x (either this one or an independently created implementation that is present here<https://github.com/Evolveum/midpoint/commit/2ebd620b70bff76fcbc5c276ea610ec2d9c55516>). If you like, you can try to build 3.5.x from sources, with one of the above implementations applied. The latter would be perhaps easier to apply, because it is very limited in functionality and basically comprises only a few lines of code.
Best regards,
Pavol Mederly
Software developer
evolveum.com
On 12.04.2017 18:19, Jason Everling wrote:
It was added in 3.6 according to the JIRA entry, https://jira.evolveum.com/browse/MID-2072 <https://jira.evolveum.com/browse/MID-2072> , another reason why I need to get ours updated.
JASON
On Wed, Apr 12, 2017 at 10:37 AM, Doler, Alexander Earl (LATCO - Buenos Aires) <adoler at deloitte.com<mailto:adoler at deloitte.com>> wrote:
Hello,
I was wondering if HTML is currently supported for e-mail notifications as of Midpoint 3.5 or 3.5.1, or if it is planned for an upcoming release?
I have tried adding the tags in the notification configuration as follows, in order to permit the bodyExpression to read HTML.
<contentTypeExpression>
<value>text/html; charset=utf-8</value>
</contentTypeExpression>
However, the contentTypeExpression tag is not recognized when I save the SystemConfiguration XML file. I am currently using version 3.5.1.
Best regards,
Alex
_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com<mailto:midPoint at lists.evolveum.com>
http://lists.evolveum.com/mailman/listinfo/midpoint
_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com<mailto:midPoint at lists.evolveum.com>
http://lists.evolveum.com/mailman/listinfo/midpoint
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20170413/46e58136/attachment.htm>
More information about the midPoint
mailing list