public void setState(String workEffortId, String state) throws WfException {
WfExecutionObject obj = getExecutionObject(workEffortId);
if (obj == null) throw new WfException("Invalid Execution Object (null value)");
obj.changeState(state);
if (Debug.verboseOn()) Debug.logVerbose("Current State (" + workEffortId + ") => " + obj.state(), module);
}
/**
* Gets the priority of the execution object defined by the work effort key.
* @param workEffortId The WorkEffort entity key for the execution object.