process = (ProcessImpl) ProcessDAO.create(process);
return process;
}
public static CorrelationSet addCorrelation(TwisterProcess process, String correlationName, String correlationProps) throws DBSessionException, FinderException {
CorrelationSetImpl correlationSet = new CorrelationSetImpl();
correlationSet.setName(correlationName);
correlationSet.setPropertiesString(correlationProps);
TwisterProcess persistentProcess = getByName(process.getName(), process.getNamespace());
((ProcessImpl)persistentProcess).addCorrelationSet(correlationSet);
ProcessDAO.create(correlationSet);