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);
     }
 }
Example #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);
     }
 }
 public ProcessInstance loadProcessInstance(wf_processInstance model)
 {
     return new ProcessInstance(this, model);
 }
 public ProcessInstance loadProcessInstance(wf_processInstance model)
 {
     return(new ProcessInstance(this, model));
 }