Ejemplo n.º 1
0
        /// <summary>
        /// Creates the running workflow results.
        /// </summary>
        /// <param name="args">The <see cref="System.Workflow.Runtime.WorkflowEventArgs"/> instance containing the event data.</param>
        /// <returns></returns>
        public static WorkflowResults CreateRunningWorkflowResults(WorkflowEventArgs args)
        {
            WorkflowResults results = new WorkflowResults(args);

            results._status = WorkflowStatus.Running;
            return(results);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates the aborted workflow results.
        /// </summary>
        /// <param name="args">The <see cref="System.Workflow.Runtime.WorkflowEventArgs"/> instance containing the event data.</param>
        /// <returns></returns>
        public static WorkflowResults CreateAbortedWorkflowResults(WorkflowEventArgs args)
        {
            WorkflowResults results = new WorkflowResults(args);

            results._status = WorkflowStatus.Aborted;
            return(results);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Creates the terminated workflow results.
        /// </summary>
        /// <param name="args">The <see cref="System.Workflow.Runtime.WorkflowTerminatedEventArgs"/> instance containing the event data.</param>
        /// <returns></returns>
        public static WorkflowResults CreateTerminatedWorkflowResults
            (WorkflowTerminatedEventArgs args)
        {
            WorkflowResults results = new WorkflowResults(args);

            results._status = WorkflowStatus.Terminated;
            return(results);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Creates the completed workflow results.
        /// </summary>
        /// <param name="args">The <see cref="System.Workflow.Runtime.WorkflowCompletedEventArgs"/> instance containing the event data.</param>
        /// <returns></returns>
        public static WorkflowResults CreateCompletedWorkflowResults
            (WorkflowCompletedEventArgs args)
        {
            WorkflowResults results = new WorkflowResults(args);

            results._status = WorkflowStatus.Completed;
            return(results);
        }