Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.
Endpoint Management Community Blog

Workflow Training: Create a Decision Only Project

Created: 14 Apr 2008 • Updated: 14 Apr 2008 • 1 comment
Craig Walker's picture
0 0 Votes
Login to vote

Comparing numbers is simple once you've completed this tutorial. Find the larger of two numbers or compare a range of numbers. So simple... once you learn how to use the CompareNumberRule component and its caching features.

Prerequisites: None

Estimated time to complete: 30 minutes

Exercise 1

Prepare a project to find the larger of two numbers. The logic of the comparison should be done on a different model whereas preliminary validations should be performed on the primary model.

Step 1: Create a new Decision Only project.

Step 2: Set up the Input Data as shown below:

Step 3: Set up the Output Data as shown below:

Step 4: Click on the Model: Primary tab. Drag and drop the CompareNumbersRule component from the Component palette under the Math category.

Step 5: Drag and drop two more End components from Component palette under the Infrastructure category, Flow Control sub-category. Link the CompareNumberRule component with the Start and End components.

Step 6: Right click on the CompareNumberRule component and select Edit Component. Click on the selector button for Value1 and select 'A' as the variable for Value1. Select 'B' as the variable for Value2.

Step 7: Rename the End components as 'LargestB', 'Equal', and 'LargestA'.

Step 8: Right click on the LargestB end component and select Edit Component. Click the selector button next to the Mapping field and select the Create Value radio button. Set the Mapping value as 'Largest is B.'.

Right click on the Equal end component and select Edit Component. Set the Mapping value as 'Both Numbers are the same.'.

Right click on the LargestA end component and select Edit Component. Set the Mapping value as 'Largest is A.'.

Step 9: Save and Run the project. Right click the Execute link and select Invoke. Set the Input Values for A and B. Click OK.

Step 10: The results are shown as below:

Step 11: Finished!

Exercise 2

Prepare a project to find the range of the numbers using the NumberRangeRule component. The logic of the comparison should be done on a different model whereas preliminary validations should be performed in the primary model.

Step 1: Click on the Model Primary tab. Drag and drop the NumberRangeRule component from the Component palette under the Math category. Add three more End components for a total of four.

Step 2: Set up the Input Data as shown below:

Step 3: Set up the Output Data as shown below:

Step 4: Click the Model: Primary tab. Right click on the NumberRangeRule component and select Edit Component. Click on the selector button next to the Compare Variable field and select 'Mark'.

Step 5: Click on the Add button next to the Values field. Enter '40' as the value and click OK in the Edit Object window. Repeat to add '60' and '80'.

Step 6: Link the Start component with the NumberRangeRule and End components. Rename the End components as 'Grade D', 'Grade C', 'Grade B', and 'Grade A'.

Step 7: Right click on the Grade D end component and click the selector button next to the Mapping field. Select the Create Value radio button and set the value as 'Grade D'.

Right click on the Grade C end component and click the selector button next to the Mapping field. Select the Create Value radio button and set the value as 'Grade C'.

Right click on the Grade B end component and click the selector button next to the Mapping field. Select the Create Value radio button and set the value as 'Grade B'.

Right click on the Grade A end component and click the selector button next to the Mapping field. Select the Create Value radio button and set the value as 'Grade A'.

Step 8: Save and Run the project. Select the Run Project button on the toolbar (A bug with an arrow over it) double-click Execute and select Invoke. Set the Input Value and click OK.

Step 9: The Execution Results will be shown as below:

Step 10: Finished!

Comments 1 CommentJump to latest comment

fireeyes's picture

Dear
i think you should change the first diagram becuse you talk about the input data but the diagram shows the the OUTPUT is selected on the LHS, maybe this cofict the new persons whant to learn WF solution.

-1
Login to vote