This project is read-only.

Purpose: Initiate a state change in FluentWorkflow.  The appropriate state tasks will then be invoked as the transition is made.

The FluentWorkflow state engine exposes a Fire method that allows you to raise a trigger along with the contextual information that will flow through the StateEngine.  The method signature is:

 

   1:  IFluentStateEngine<T0, T1, TTrigger, TContext>.Fire(TTrigger, TContext)
   2:   
   3:  stateEngine.Fire(Triggers.Approve, context);

Line #3 shows the act of setting the Approve trigger and passing along the context that will be passed to the state actions.

Last edited Jan 4, 2011 at 12:40 AM by sdhebert, version 1

Comments

No comments yet.