示例#1
0
 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);
     }
 }
示例#2
0
 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);
     }
 }
示例#3
0
 public Token loadToken(wf_token model)
 {
     return new Token(this, model);
 }
示例#4
0
 public Token loadToken(wf_token model)
 {
     return(new Token(this, model));
 }