Activity activity = (Activity) i.next();
try {
this.deleteDeadlines(processId, activity.getId(), trans);
activity.remove();
} catch (GenericEntityException e) {
throw new PersistenceException(e);
}
}
}
try {
delegator.removeByAnd(org.ofbiz.shark.SharkConstants.WfActivity, UtilMisc.toMap(org.ofbiz.shark.SharkConstants.subFlowId, processId));
process.remove();
} catch (Exception e) {
throw new PersistenceException(e);
}
}
}