internal TransitionInstance(TaskInstance fromTaskInstance,Transition transition, wf_transitionInstance model=null)
 {
     _fromTaskInstance = fromTaskInstance;
     _transition = transition;
     if (_model == null)
     {
         var bpmContext = fromTaskInstance.getProcessInstance().getBpmContext();
         _model = new wf_transitionInstance();
         _model.FromTaskInstanceId = fromTaskInstance.getTaskInstanceModel().Id;
         _model.TransitionId = transition.GetId();
         _model.Id = bpmContext.save(this);
     }
 }
Пример #2
0
 internal TransitionInstance(TaskInstance fromTaskInstance, Transition transition, wf_transitionInstance model = null)
 {
     _fromTaskInstance = fromTaskInstance;
     _transition       = transition;
     if (_model == null)
     {
         var bpmContext = fromTaskInstance.getProcessInstance().getBpmContext();
         _model = new wf_transitionInstance();
         _model.FromTaskInstanceId = fromTaskInstance.getTaskInstanceModel().Id;
         _model.TransitionId       = transition.GetId();
         _model.Id = bpmContext.save(this);
     }
 }
Пример #3
0
 public TransitionInstance loadTransitionInstance(TaskInstance fromTaskInstance, wf_transitionInstance model)
 {
     return new TransitionInstance(fromTaskInstance, this, model);
 }
Пример #4
0
 public TransitionInstance loadTransitionInstance(TaskInstance fromTaskInstance, wf_transitionInstance model)
 {
     return(new TransitionInstance(fromTaskInstance, this, model));
 }