internal Token(TaskInstance taskInstance, wf_token model = null) { _taskInstance = taskInstance; _model = model; if (_model == null) { var bpmContext = taskInstance.getProcessInstance().getBpmContext(); _model = new wf_token(); _model.TaskInstanceId = taskInstance.getTaskInstanceModel().Id; _model.ProcessInstanceId = taskInstance.getProcessInstance().getProcessInstanceModel().Id; //冗余保存 _model.Id = bpmContext.save(this); } }
public Token loadToken(wf_token model) { return new Token(this, model); }
public Token loadToken(wf_token model) { return(new Token(this, model)); }