Add listeners at start/end of any process or task. Sample listener code at process level is: public class MyListener implements ExecutionListener { private static final long serialVersionUID = 1L;
@Override public void notify(DelegateExecution execution) throws Exception { String value1Id = (String)execution.getVariable("value1"); … //your code to email goes here. }