Get WF State programmatically

オフライン
Hello all I have a problem to get the state of Workflow of an Item. I can get the state of lifecycle but do not know how to get the WF-State? Any hint which can help me?   Thanks Mahmoud
Parents
  • replace {itemID} with the id of your Item Item wfObj = this.getInnovator().newItem("Workflow", "get"); wfObj.setAttribute("select", "keyed_name, source_type(name, keyed_name), source_id,related_id(*)"); wfObj.setProperty("source_id", {itemID}); wfObj = wfObj.apply(); Item wfpObj = (!wfObj .isError()) ? wfObj .getRelatedItem() : null;  
Reply
  • replace {itemID} with the id of your Item Item wfObj = this.getInnovator().newItem("Workflow", "get"); wfObj.setAttribute("select", "keyed_name, source_type(name, keyed_name), source_id,related_id(*)"); wfObj.setProperty("source_id", {itemID}); wfObj = wfObj.apply(); Item wfpObj = (!wfObj .isError()) ? wfObj .getRelatedItem() : null;  
Children
No Data