This project is read-only.

Purpose: Provide state transition information to an entry state task

The EntryStateTaskInfo provides a task with runtime context information.  It provides:

  • The state we are in (CurrentState)
  • The state we transitioned from (PriorState)
  • The trigger value that initiated the state change (Trigger)
  • The context object being passed through the state change (Context)

With this combination of information, the task can act on specifics during the processing and modify the context.

 

   1:   public class EntryStateTaskInfo<TState, TTrigger, TTriggerContext>
   2:  {
   3:      /// <summary>
   4:      /// Gets the workflow context
   5:      /// </summary>
   6:      /// <value>The workflow context.</value>
   7:      public TTriggerContext Context { get; private set; }
   8:   
   9:      /// <summary>
  10:      /// Gets the source state.
  11:      /// </summary>
  12:      /// <value>The source state.</value>
  13:      public TState PriorState { get; private set; }
  14:   
  15:      /// <summary>
  16:      /// Gets the target state.
  17:      /// </summary>
  18:      /// <value>The target state.</value>
  19:      public TState CurrentState { get; private set; }
  20:   
  21:      /// <summary>
  22:      /// Gets the trigger value intiating the state change
  23:      /// </summary>
  24:      /// <value>The trigger value.</value>
  25:      public TTrigger Trigger { get; private set; }

Last edited Jan 1, 2011 at 12:13 PM by sdhebert, version 1

Comments

No comments yet.