public WorkflowHistory findWorkFlowHistoryById(String id) throws DotDataException {
final HibernateUtil hu = new HibernateUtil(WorkflowHistory.class);
hu.setQuery("from workflow_history in class com.dotmarketing.portlets.workflows.model.WorkflowHistory where id = ?");
hu.setParam(id);
return (WorkflowHistory) hu.load();
}
public WorkflowTask findWorkFlowTaskById(String id) throws DotDataException {
final HibernateUtil hu = new HibernateUtil(WorkflowTask.class);
hu.setQuery("from workflow_task in class com.dotmarketing.portlets.workflows.model.WorkflowTask where id = ?");