IfElse with Rules Sample
This sample shows the use of a rule condition with an IfElseActivity activity.
The sample passes in an OrderValue parameter from the host. The value of the parameter is used in a rule condition on the first branch of the IfElseActivity activity. If the value is less than 10,000, the first branch executes, and the CodeActivity activity in the first branch prints Get Manager Approval to the console. If the value is greater than 10,000, the CodeActivity activity in the second branch executes and prints Get VP Approval.
To build the sample
Download the sample by clicking Download Sample.
This extracts the sample project to your local hard disk.
Click Start, point to Programs, point to Microsoft Windows SDK, and then click CMD Shell.
Go to the source directory of the sample.
At the command prompt, type MSBUILD <Solution file name>.
To run the sample
In the SDK Command Prompt window, run the .exe file in the IfElseWithRules\bin\debug folder (or the IfElseWithRules\bin folder for the Visual Basic version of the sample), which is located below the main folder for the sample.
© 2007 Microsoft Corporation. All rights reserved.