This project is read-only.

Purpose:  Declare that a given Trigger value will result in the state being transitioned to the declared state when the trigger is raised.

The Permit method declares that a given trigger (of type TTrigger) will result in the state value being changed.


   1:  public override void Configure(IWorkflowBuilder<DocumentType, WorkflowState, StateTrigger, IDocumentContext> builder)
   2:  {
   3:      builder.ForWorkflow(DocumentType.Comment, WorkflowState.UnderReview)
   4:          .Permit(StateTrigger.Approve, WorkflowState.Published)


To review, line #4 above declares that an ‘Approve’ trigger will send the state to ‘Published’ when the ‘Comment’ document is in the ‘Under Review’ state.

Last edited Jan 2, 2011 at 6:01 AM by sdhebert, version 1


No comments yet.