Skip to content

Latest commit

 

History

History
 
 

WorkflowCore.Sample11

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

If sample

Illustrates how to implement an If decision within your workflow.

builder
    .StartWith<SayHello>()
    .If(data => data.Counter < 3).Do(then => then
        .StartWith<PrintMessage>()
            .Input(step => step.Message, data => "Value is less than 3")
    )
    .If(data => data.Counter < 5).Do(then => then
        .StartWith<PrintMessage>()
            .Input(step => step.Message, data => "Value is less than 5")
    )
    .Then<SayGoodbye>();