cancel
Showing results for 
Search instead for 
Did you mean: 

Notification by email

fbaldo
Champ in-the-making
Champ in-the-making
It is possible to be notified by email whenever a new job is created? Or I need create this functionality manually?

tnks
2 REPLIES 2

pushpindersingh
Champ in-the-making
Champ in-the-making
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.
              
}

jbarrez
Star Contributor
Star Contributor
The previous answer is not correct: what you need is an Event listener and listen to new entity created events for jobs.