public void setListeners(Map<FlowExecutionListener, String> listenersWithCriteria) {
this.listenersWithCriteria = listenersWithCriteria;
}
public void afterPropertiesSet() {
listenerLoader = new ConditionalFlowExecutionListenerLoader();
for (Map.Entry<FlowExecutionListener, String> entry : listenersWithCriteria.entrySet()) {
FlowExecutionListener listener = entry.getKey();
String criteria = entry.getValue();
listenerLoader.addListener(listener, listenerCriteriaFactory.getListenerCriteria(criteria));
}