[midPoint] Email Notification

Ivan Noris ivan.noris at evolveum.com
Wed Oct 29 16:30:20 CET 2014


Hi Jason,

try to escape each & by *&* that should do the trick. I.e. &&
becomes && I see the & in Pavol's email, maybe it got
converted in email clients somewhere between...

Regards,
Ivan

On 10/29/2014 02:48 PM, Jason Everling wrote:
> Thanks for the follow up, the organization attribute would be fine for
> us to use. I had tried this out but I cannot get it to save, I get an
> error when saving
>
> |Caused by: org.xml.sax.SAXParseException; lineNumber: 82;
> columnNumber: 46; The entity name must immediately follow the '&' in
> the entity reference.|
> |
> |
>
> Code:
>
> <notificationConfiguration>
>        <handler>        <!-- branch for department 'A' -->
> <expressionFilter>
> <script>
>                 <code>event.isUserRelated() && 
> requestee.getOrganization().size() == 1 && 
> requestee.getOrganization().get(0).getOrig() == 'GenEd'</code>
> </script>
> </expressionFilter>
> <accountPasswordNotifier>
> <name>New Account Notification</name>
> <operation>add</operation>
> <status>success</status>
> <recipientExpression>
> <script>
> <code>basic.getExtensionPropertyValue(requestee,
> 'http://whatever.com/my', 'otherMailbox')</code>
> </script>
> </recipientExpression>
> <subjectExpression>
> <script>
> <code>"Welcome to the General Education Program"</code>
> </script>
> </subjectExpression>
> <bodyExpression>
> <script>
> <code>"[IDM] Your username is: " + requestee?.getName()?.getOrig()</code>
> </script>
> </bodyExpression>
> <transport>mail</transport>
> </accountPasswordNotifier>
> </handler>
> <handler>    <!-- branch for department 'B' -->
> <expressionFilter>
> <script>
>                 <code>event.isUserRelated() && 
> requestee.getOrganization().size() == 1 && 
> requestee.getOrganization().get(0).getOrig() == 'Info'</code>
> </script>
> </expressionFilter>
> <accountPasswordNotifier>
> <name>New Account Notification</name>
> <operation>add</operation>
> <status>success</status>
> <recipientExpression>
> <script>
> <code>basic.getExtensionPropertyValue(requestee,
> 'http://whatever.com/my', 'otherMailbox')</code>
> </script>
> </recipientExpression>
> <subjectExpression>
> <script>
> <code>"Welcome to the Information Systems Program"</code>
> </script>
> </subjectExpression>
> <bodyExpression>
> <script>
> <code>"[IDM] Your username is: " + requestee?.getName()?.getOrig()</code>
> </script>
> </bodyExpression>
> <transport>mail</transport>
> </accountPasswordNotifier>
> </handler>
> <!-- Universal For All
> <handler>
> <simpleUserNotifier>
>              ... configuration common to all cases ...
> </simpleUserNotifier>
> </handler>
> -->
>   
>         <mail>
>            
> <redirectToFile>/var/log/tomcat7/mail-notifications.log</redirectToFile>
>         </mail>
> </notificationConfiguration>
>
>

-- 
  Ing. Ivan Noris
  Senior Identity Management Engineer
  evolveum.com
  ___________________________________________
           "Idem per idem - semper idem Vix."

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20141029/f105e470/attachment.htm>


More information about the midPoint mailing list