* @param workEffortId The WorkEffort entity key for the execution object.
* @param priority The new priority of the execution object.
* @throws WfException If state change is not allowed.
*/
public void setPriority(String workEffortId, long priority) throws WfException {
WfExecutionObject obj = getExecutionObject(workEffortId);
if (obj == null) throw new WfException("Invalid Execution Object (null value)");
obj.setPriority(priority);
if (Debug.verboseOn()) Debug.logVerbose("Current Priority (" + workEffortId + ") => " + obj.priority(), module);
}