AnsweredAssumed Answered

How to send mail to all users of a certain group

Question asked by f_lombardo on Dec 3, 2012
Latest reply on Dec 5, 2012 by jbarrez
Hi all,

I'm looking for a little suggestion about a process I'm designing.
I'm trying to create a mail task that sends an email to all users of a certain group.

I'd like to write an expression like this:

<serviceTask id="mailtaskXX" name="MailXX" activiti:type="mail">
      <extensionElements>
          <activiti:field name="to" expression="${mySmartObject.getAddressesForGroup("myFunnyGroup")}/>

But I'm not smart enough to write mySmartObject! :-) This object should connect to the IdentityService of the Activiti Engine in which the process is running and query it to obtain all the addresses for the group it receives as a parameter.

Could you help me?

Thank you very much!!!

Bye

Franco

Outcomes