Slide 23
Slide 23 text
23
How is it done in Java?
@Named("mailDelegate")
public class MailDelegate implements JavaDelegate {
@Inject
private MailSender mailSender;
@Override
public void execute(DelegateExecution execution) throws Exception {
String lastName = (String) execution.getVariable("firstName");
String firstName = (String) execution.getVariable("lastName");
String emailAddress = (String) execution.getVariable("mailAddress");
mailSender.sendLowPrioMail(firstName, lastName, emailAddress);
}
}
MEH