public org.iucn.sis.shared.api.models.WorkflowStatus getWorkflowRow(Integer workingSetID) throws WorkflowManagerException { final SelectQuery query = new SelectQuery(); query.select(WorkflowConstants.WORKFLOW_TABLE, "*"); query.constrain( new CanonicalColumnName(WorkflowConstants.WORKFLOW_TABLE, "workingsetid"), QConstraint.CT_EQUALS, workingSetID.toString()); final Row.Loader rl = new Row.Loader(); try { ec.doQuery(query, rl); } catch (DBException e) { throw new WorkflowManagerException("Unexpected server error, please try again later.", e); } org.iucn.sis.shared.api.models.WorkflowStatus model = new org.iucn.sis.shared.api.models.WorkflowStatus(); model.setId(rl.getRow().get("id").getInteger()); model.setStatus(rl.getRow().get("status").toString()); return model; }