Пример #1
0
        public virtual IProcessInstanceModificationInstantiationBuilder StartTransition(string transitionId)
        {
            EnsureUtil.EnsureNotNull(typeof(NotValidException), "transitionId", transitionId);
            AbstractInstantiationCmd currentInstantiation = new TransitionInstantiationCmd(ProcessInstanceId,
                                                                                           transitionId);

            ModificationOperations.Add(currentInstantiation);
            return(this);
        }
Пример #2
0
        public virtual IProcessInstanceModificationInstantiationBuilder StartAfterActivity(string activityId)
        {
            EnsureUtil.EnsureNotNull(typeof(NotValidException), "activityId", activityId);
            AbstractInstantiationCmd currentInstantiation = new ActivityAfterInstantiationCmd(ProcessInstanceId,
                                                                                              activityId);

            ModificationOperations.Add(currentInstantiation);
            return(this);
        }
Пример #3
0
 public virtual IProcessInstanceModificationBuilder CancelTransitionInstance(string transitionInstanceId)
 {
     EnsureUtil.EnsureNotNull(typeof(NotValidException), "transitionInstanceId", transitionInstanceId);
     ModificationOperations.Add(new TransitionInstanceCancellationCmd(ProcessInstanceId, transitionInstanceId));
     return(this);
 }
Пример #4
0
 public virtual IProcessInstanceModificationBuilder CancelActivityInstance(string activityInstanceId)
 {
     EnsureUtil.EnsureNotNull(typeof(NotValidException), "activityInstanceId", activityInstanceId);
     ModificationOperations.Add(new ActivityInstanceCancellationCmd(ProcessInstanceId, activityInstanceId));
     return(this);
 }