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)
   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 3, 2011 at 11:40 PM by sdhebert, version 1


No comments yet.