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); } }
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)); }