1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| //实际只能修改(name、description、priority)这几个属性 //参考源代码WFProcessInstOperateImpl private void setProcInstAttribute(WFProcessInstInternal procInst, String field, String value) throws WFServiceException { if (field.equals("name")) procInst.setProcessInstName(value); else if (field.equals("description")) procInst.setProcessInstDesc(value); else if (field.equals("priority")) if (StringUtil.isNullOrBlank(value)) procInst.setPriority(60); else procInst.setPriority(Integer.parseInt(value)); else throw new WFEngineException("Can not modify specified attributes of the process instance. procInstID=" + procInst.getProcessInstID() + ",field=" + field + ",value=" + value); }
|