/// <summary>
        /// Links this step to the specified other step, effectively discontinuing this step.
        /// </summary>
        /// <param name="other"></param>
        public virtual void LinkTo(ProcedureStep other)
        {
            if (this.State != ActivityStatus.SC)
            {
                throw new WorkflowException("Cannot link to another step because this step has already been started.");
            }

            // link the procedure to the specified other step
            other.LinkProcedure(_procedure);

            // record the step that we linked to
            _linkStep = other;

            // discontinue this step so it doesn't show up in any worklists
            this.Discontinue();
        }
Exemple #2
0
        /// <summary>
		/// Links this step to the specified other step, effectively discontinuing this step.
		/// </summary>
		/// <param name="other"></param>
		public virtual void LinkTo(ProcedureStep other)
		{
			if (this.State != ActivityStatus.SC)
				throw new WorkflowException("Cannot link to another step because this step has already been started.");

			// link the procedure to the specified other step
			other.LinkProcedure(_procedure);

			// record the step that we linked to
			_linkStep = other;

			// discontinue this step so it doesn't show up in any worklists
			this.Discontinue();
		}