Message Boards

Mail Notification

David Gitonga, modified 9 Years ago.

Mail Notification

Junior Member Posts: 63 Join Date: 7/26/13 Recent Posts
Hi,

I have activiti workflow that is working well except serviceTask which have hard coded to send email
this is what i have
<serviceTask id="mailtask2" name="Service Task" activiti:type="mail">
[indent] <extensionElements>
<activiti:field name="from">
<activiti:string><![CDATA[ notifieremail@gmail.com]]></activiti:string>
</activiti:field>
<activiti:field name="to">
<activiti:string><![CDATA[myemail@gmail.com]]></activiti:string>
</activiti:field>
<activiti:field name="subject">
<activiti:string><![CDATA[Your Request has been approved ]]></activiti:string>
</activiti:field>
<activiti:field name="html">
<activiti:string><![CDATA[<html>
<body>
Hello ,<br/><br/>
Your request has been approved<br>
Kind regards,<br/>

so and so
</body>
</html>]]></activiti:string>
</activiti:field>
</extensionElements>[/indent]
</serviceTask>

this serviceTask is working but i would want to get "to" email address dynamically how do i go about it,

Please help with ideas