예제 #1
0
 internal ProcessInstance(ProcessDefinition processDefinition,wf_processInstance model=null)
 {
     _processDefinition = processDefinition;
     _model = model;
     if (_model == null) //create new
     {
         _model = new wf_processInstance();
         //_model.ProcessDefinitionId = processDefinition.GetId();
         _model.Id = _processDefinition.getBpmContext().save(this);
     }
 }
예제 #2
0
 internal ProcessInstance(ProcessDefinition processDefinition, wf_processInstance model = null)
 {
     _processDefinition = processDefinition;
     _model             = model;
     if (_model == null) //create new
     {
         _model = new wf_processInstance();
         //_model.ProcessDefinitionId = processDefinition.GetId();
         _model.Id = _processDefinition.getBpmContext().save(this);
     }
 }
예제 #3
0
 public ProcessInstance loadProcessInstance(wf_processInstance model)
 {
     return new ProcessInstance(this, model);
 }
예제 #4
0
 public ProcessInstance loadProcessInstance(wf_processInstance model)
 {
     return(new ProcessInstance(this, model));
 }