How to send out a mail from a participant for all the users of a specific role
![]()
Sai Hema (11●1●1)
| asked Mar 21 '13, 4:26 a.m.
retagged Mar 21 '13, 4:30 a.m. by Aradhya K (1.4k●5●43●45)
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 !! |
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.
|
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Mar 21 '13, 4:53 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Adding to Aradhya, http://rsjazz.wordpress.com/2012/11/30/a-create-approval-work-item-save-participant/ shows how to analyze users and roles in a participant.
|
![]()
If your do not code for a living:
https://jazz.net/jazz/web/projects/Jazz%20Collaborative%20ALM#action=com.ibm.team.workitem.viewWorkItem&id=216962
:-)
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.