Пример #1
0
 /// <summary>
 /// Runs the provided CaseStep.  The CaseStep requires a reference to 
 /// an instance of the currently executing WorkflowExecutionEngine
 /// to run.
 /// </summary>
 /// <param name="caseStep">The CaseStep instance to run</param>
 /// <param name="context">The workflow context containing workflow state and data.</param>
 /// <param name="stepId">The stepId for the step to start exeuction.  This is only
 /// non null when a workflow has previously run and is restarteing.  The stepId
 /// is used to determine where to restart execution.</param>
 /// <returns>The WorkflowState after execution of the CaseStep.</returns>
 private string RunCase(ICaseStep caseStep, ref WorkflowContext context, string stepId)
 {
     var currentState = caseStep.Run(context, stepId);
     return currentState;
 }
Пример #2
0
        /// <summary>
        /// Runs the provided CaseStep.  The CaseStep requires a reference to
        /// an instance of the currently executing WorkflowExecutionEngine
        /// to run.
        /// </summary>
        /// <param name="caseStep">The CaseStep instance to run</param>
        /// <param name="context">The workflow context containing workflow state and data.</param>
        /// <param name="stepId">The stepId for the step to start exeuction.  This is only
        /// non null when a workflow has previously run and is restarteing.  The stepId
        /// is used to determine where to restart execution.</param>
        /// <returns>The WorkflowState after execution of the CaseStep.</returns>
        private string RunCase(ICaseStep caseStep, ref WorkflowContext context, string stepId)
        {
            var currentState = caseStep.Run(context, stepId);

            return(currentState);
        }