/** * Method getWorkflowName. * * @param id int * @return String * @see com.percussion.pso.restservice.support.IImportItemSystemInfo#getWorkflowName(int) */ public String getWorkflowName(int id) { initServices(); log.debug("Getting workflow name"); PSWorkflow workflow = wf.loadWorkflow(new PSGuid(PSTypeEnum.WORKFLOW, id)); log.debug("got workflow name " + workflow.getName()); return workflow.getName(); }
/** * Method getStateName. * * @param wfid int * @param stateid int * @return String * @see com.percussion.pso.restservice.support.IImportItemSystemInfo#getStateName(int, int) */ public String getStateName(int wfid, int stateid) { initServices(); log.debug("Getting state name"); PSState state = wf.loadWorkflowState( new PSGuid(PSTypeEnum.WORKFLOW_STATE, stateid), new PSGuid(PSTypeEnum.WORKFLOW, wfid)); log.debug("Got state name" + state.getName()); return state.getName(); }