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