[midPoint] Multiple filters for notification

Pavol Mederly mederly at evolveum.com
Wed Apr 29 11:29:43 CEST 2015


Hello Jason,

yes, it seems correct. :-)

Pavol

On 28. 4. 2015 19:21, Jason Everling wrote:
> Hah! So simple, I think I got it, tested it and seems to be working 
> but would like your opinion if it looks correct,
>
> <code>
> event.isRelatedToItem(new 
> com.evolveum.midpoint.prism.path.ItemPath("activation", 
> "administrativeStatus")) &&
> basic.getExtensionPropertyValue(requestee, 
> 'http://www.bshp.edu/xml/ns/public/bshp', 'eduPersonAffiliation') == 
> 'student'
> </code>
>
> JASON
>
> On Tue, Apr 28, 2015 at 11:48 AM, Pavol Mederly <mederly at evolveum.com 
> <mailto:mederly at evolveum.com>> wrote:
>
>     Hello Jason,
>
>     I'm not sure I understand you correctly.
>
>     If you want to add another condition (e.g. eduPersonAffiliation =
>     student), you can simply add it to the <code> section of your
>     existing filter (via "&&" written in XML as &&).
>     Or you can use another <expressionFilter>, just before or after
>     the one you have there.
>
>     Hope this helps,
>     Pavol
>
>
>     On 28. 4. 2015 17:12, Jason Everling wrote:
>>     So into my final setup and 3.1.1 looks like it will be the one we
>>     move to production and when I was setting up notifications I
>>     totally forgot about faculty/staff and how they would be
>>     notified. I have my general new account notifiers filtered out
>>     already but I was looking at the new type that Pavol had created
>>     for itemPath specific,
>>
>>     So here is my notification and I need to only make sure this goes
>>     out for a person with a specific attribute like
>>     eduPersonAffiliation = student . How would I add another filter
>>     on top of what is already there?
>>
>>     Thanks Again!
>>
>>         <handler>
>>        <expressionFilter>
>>                 <script>
>>     <code>
>>     event.isRelatedToItem(new
>>     com.evolveum.midpoint.prism.path.ItemPath("activation",
>>     "administrativeStatus"))
>>                     </code>
>>                 </script>
>>             </expressionFilter>
>>             <simpleUserNotifier>
>>                 <name>Account Modified</name>
>>     <status>success</status>
>>                 <recipientExpression>
>>                     <script>
>>                         <code>
>>     basic.getExtensionPropertyValue(requestee,
>>     'http://www.bshp.edu/xml/ns/public/bshp', 'otherMailbox')
>>     </code>
>>                     </script>
>>                 </recipientExpression>
>>                 <subjectExpression>
>>                     <script>
>>                         <code>"Account Management - Access to
>>     bshp.edu <http://bshp.edu> resources have been modified"</code>
>>                     </script>
>>                 </subjectExpression>
>>     <bodyExpression>
>>
>>
>>
>>     CONFIDENTIALITY NOTICE:
>>     This e-mail together with any attachments is proprietary and
>>     confidential; intended for only the recipient(s) named above and
>>     may contain information that is privileged. You should not
>>     retain, copy or use this e-mail or any attachments for any
>>     purpose, or disclose all or any part of the contents to any
>>     person. Any views or opinions expressed in this e-mail are those
>>     of the author and do not represent those of the Baptist School of
>>     Health Professions. If you have received this e-mail in error, or
>>     are not the named recipient(s), you are hereby notified that any
>>     review, dissemination, distribution or copying of this
>>     communication is prohibited by the sender and to do so might
>>     constitute a violation of the Electronic Communications Privacy
>>     Act, 18 U.S.C. section 2510-2521. Please immediately notify the
>>     sender and delete this e-mail and any attachments from your
>>     computer.
>>
>>
>>     _______________________________________________
>>     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
>
>
>
>
>
> CONFIDENTIALITY NOTICE:
> This e-mail together with any attachments is proprietary and 
> confidential; intended for only the recipient(s) named above and may 
> contain information that is privileged. You should not retain, copy or 
> use this e-mail or any attachments for any purpose, or disclose all or 
> any part of the contents to any person. Any views or opinions 
> expressed in this e-mail are those of the author and do not represent 
> those of the Baptist School of Health Professions. If you have 
> received this e-mail in error, or are not the named recipient(s), you 
> are hereby notified that any review, dissemination, distribution or 
> copying of this communication is prohibited by the sender and to do so 
> might constitute a violation of the Electronic Communications Privacy 
> Act, 18 U.S.C. section 2510-2521. Please immediately notify the sender 
> and delete this e-mail and any attachments from your computer.
>
>
> _______________________________________________
> midPoint mailing list
> 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/20150429/c8378b11/attachment.htm>


More information about the midPoint mailing list