How to Send Mail to group of user when State of workitem changes ?
Hi Team,
I have created workitems, now my requirement is I have to automate mail sending to a group of users whenever state of workitem changes to Submitted/final ?
Second requirement is to automate mail sending for Requestor, Request Subscriber and to the group of other users whenever any state changes of workitem ?
I tried writing Java Code but not sure how to implement that code in RTC. Could anyone help me how I can achieve my requirement ? Is RTC already having this type of functionality ,if so from where I can get the source code and do necessary changes as per my requirement ?
2 answers
If you have requirements beyond that, you will have to create
- A follow up action/participant
- An Asynchronous task
- An Event handler
To start with these tasks readhttps://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ the referenced workshop explains how to create a follow up action and how to detect state changes in the server API.
https://rsjazz.wordpress.com/2015/10/16/due-date-notifier-an-asynchronous-task-example/ shows the mail API available in the server API as well as how an asynchronous task works. I have no example for an event handler yet.