Collection events = (Collection) result.get(ParamsConst.DATA);
// Se lanza la deteccion para los eventos que tienen alguna relacion establecida
// y que no se encuentren actualmente en ejecucion
for (Iterator iterator = events.iterator(); iterator.hasNext();) {
Event event = (Event) iterator.next();
Set relations = event.getRelationsAvaiable();
if ((activeProcesses.get(event.getId())==null) && (relations!=null) && (relations.size()>0)){
activeProcesses.put(event.getId(), factory.getProcess(event));
}
}
transaction.commit();
new BackgroundEventController(this);
logger.debug("Fin BackgroundEventController");