public void update() { // task setOwner(this.getOwner()); setAssignee(this.getAssignee()); setDelegationState(this.getDelegationState()); setName(this.getName()); setDescription(this.getDescription()); setPriority(this.getPriority()); setCreateTime(this.getCreateTime()); setDueDate(this.getDueDate()); Context.getCommandContext().getTaskManager().update(this); }
/** 重置任务处理者人属性 */ public void resetProperties() { setCreateTime(null); setEndTime(null); setCommandId(null); setCommandType(null); setCommandMessage(null); setTaskComment(null); setAgent(null); setAdmin(null); setDraft(false); setOpen(false); setSuspended(false); setAssignee(null); }