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);
     }
 }
Beispiel #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);
     }
 }
Beispiel #3
0
 public TransitionInstance loadTransitionInstance(TaskInstance fromTaskInstance, wf_transitionInstance model)
 {
     return new TransitionInstance(fromTaskInstance, this, model);
 }
Beispiel #4
0
 public TransitionInstance loadTransitionInstance(TaskInstance fromTaskInstance, wf_transitionInstance model)
 {
     return(new TransitionInstance(fromTaskInstance, this, model));
 }