new CorrelatorDaoImpl(_sm, hCorrelator).removeRoutes(routeId, target);
}
}
public ProcessInstanceDAO createInstance(CorrelatorDAO correlator) {
HProcessInstance instance = new HProcessInstance();
instance.setInstantiatingCorrelator((HCorrelator)((CorrelatorDaoImpl)correlator).getHibernateObj());
instance.setProcess(_process);
instance.setCreated(new Date());
getSession().save(instance);
_process.getInstances().add(instance);
return new ProcessInstanceDaoImpl(_sm,instance);
}