I need one clarification…. how do we call email service task inside 'execution listeners' or 'task listeners' . Or is it that we should write our own Java classes to send the email.
<extensionElements> <activiti:taskListener event="create" class="com.test.poc.DynamicAssignment" /> <activiti:executionListener class="org.activiti.engine.impl.bpmn.MailActivityBehavior" event="start"> <activiti:field name="to" expression="${assigneeemail}"/> <activiti:field name="from" expression="kkrish@ty.com"> </activiti:field> <activiti:field name="html"> <activiti:expression><![CDATA[ <html> <body> Hello ${assignee},<br/><br/> A new order has been allocated to you , the order value is <FONT size="5" COLOR="#0000FF"> ${orderValue}</FONT> <b>please view the same in your inbox</b>.<br/><br/> Kind regards,<br/> TheCompany. </body> </html> ]]></activiti:expression> </activiti:field>