07-11-2012 01:51 PM
<serviceTask id="sendQuoteMail" name="Send Quote" activiti:type="mail">
<extensionElements>
<activiti:executionListener event="start" class="delegates.MailSaver"></activiti:executionListener>
<activiti:field name="to" expression="${quote.customer.email}"></activiti:field>
<activiti:field name="from" expression="user@domain.com"></activiti:field>
<activiti:field name="subject" expression="your quote ${quote.businessKey}"></activiti:field>
<activiti:field name="html">
<activiti:expression><![CDATA[${quote.emailString}]]></activiti:expression>
</activiti:field>
</extensionElements>
</serviceTask>
public class MailSaver implements ExecutionListener {
private String from;
private String to;
private String subject;
private String html;
private String text;
@Override
public void notify(DelegateExecution arg0) throws Exception {
…
}
public void setFrom(String from) ….
… and all other public gettrs and setters here…
}
07-11-2012 02:37 PM
07-16-2012 03:39 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.