Rule Conditions

The WF activities that evaluate conditional expressions include the IfElse activity, While activity, Replicator activity, and ConditionedActivityGroup activity. Each of these activities requires you to make a true/false decision. In Chapter 9, we used the Code Condition property setting, which caused Visual Studio to inject an event handler into our workflow code. The event arguments, which are of type ConditionalEventArgs, contained a Result property that we set to true or false, depending on our decision.

However, for each of these conditional decisions, we could have used a Rule Condition instead. Rule Conditions are rules that evaluate to true or false. "The number of purchased items exceeds the free shipping threshold," for ...

Get Microsoft® Windows® Workflow Foundation Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.