if (packageVersion != null) finder.put("packageVersion", packageVersion);
if (processVersion != null) finder.put("processVersion", processVersion);
try {
List processes = delegator.findByAnd("WorkflowProcess", finder, order);
if (processes.size() == 0)
throw new WfException("No process definition found for the specified processId");
else
processDef = EntityUtil.getFirst(processes);
} catch (GenericEntityException e) {
throw new WfException("Problems getting the process definition from the WorkflowProcess entity");
}
buildSignatures();
buildInitialContext();
processList = new ArrayList();