public virtual IProcessInstanceModificationInstantiationBuilder StartTransition(string transitionId) { EnsureUtil.EnsureNotNull(typeof(NotValidException), "transitionId", transitionId); AbstractInstantiationCmd currentInstantiation = new TransitionInstantiationCmd(ProcessInstanceId, transitionId); ModificationOperations.Add(currentInstantiation); return(this); }
public virtual IProcessInstanceModificationInstantiationBuilder StartAfterActivity(string activityId) { EnsureUtil.EnsureNotNull(typeof(NotValidException), "activityId", activityId); AbstractInstantiationCmd currentInstantiation = new ActivityAfterInstantiationCmd(ProcessInstanceId, activityId); ModificationOperations.Add(currentInstantiation); return(this); }
public virtual IProcessInstanceModificationBuilder CancelTransitionInstance(string transitionInstanceId) { EnsureUtil.EnsureNotNull(typeof(NotValidException), "transitionInstanceId", transitionInstanceId); ModificationOperations.Add(new TransitionInstanceCancellationCmd(ProcessInstanceId, transitionInstanceId)); return(this); }
public virtual IProcessInstanceModificationBuilder CancelActivityInstance(string activityInstanceId) { EnsureUtil.EnsureNotNull(typeof(NotValidException), "activityInstanceId", activityInstanceId); ModificationOperations.Add(new ActivityInstanceCancellationCmd(ProcessInstanceId, activityInstanceId)); return(this); }