Welcome to the Jazz Community Forum
How to send out a mail from a participant for all the users of a specific role

Hello,
I would like to know how can we send out a mail from a participant on a state transition for users of a specific role .
For example: On open -state I want to send out mails to some users who belongs to ABC role and when state changes to in -progress I want to send mails to users who belongs to DEF role .
Also,I would like to know where can I best place my role-state mapping ?
Thanks in advance !!
I would like to know how can we send out a mail from a participant on a state transition for users of a specific role .
For example: On open -state I want to send out mails to some users who belongs to ABC role and when state changes to in -progress I want to send mails to users who belongs to DEF role .
Also,I would like to know where can I best place my role-state mapping ?
Thanks in advance !!
3 answers

As this is a Participant you can you Process Configuration XML as a place to get all the configuration data needed for your Participant.
You need to check IMailerService#isMailEnabled to check if the mail notification is enabled on the server or not.
The IMailerService#sendMultipartMail or IMailerService#sendMail to send the mail.
https://jazz.net/forum/questions/55338/using-imailerservice-in-an-operationadvisor has some more information on the usage.