How to Add Outputs for Business Rule
To add outputs for business rule:
-
In the Create Business Rules dialog, from the dropdown menu next to the Add icon, select Add Output Variable.... This displays the Add Output Variable dialog. Use this dialog to create an output variable. For example, create an output variable for
GetCreditRating
in the same way you created the input variable. -
In the Add Output Variable dialog select the scope by selecting the Variables folder under Process.
-
Right-click and from the dropdown list select Create Variable.... This displays the Create Variable dialog.
-
In the Create Variable dialog, in the Name field enter the output variable name. For example enter
Rating.
-
In the Create Variable dialog, in the Type area select the Browse elements icon and use the Type Chooser dialog to enter the type for the output variable. For example, expand the
CreditRatingTypes.xsd
and select the element typerating
. -
In the Type Chooser dialog, click OK.
-
In the Create Variable dialog, click OK.
-
In the Add Output Variable dialog, click OK.
This displays the Create Business Rules dialog, as shown in Figure 25-10.
Figure 25-10 Create Business Rules Dialog with Input and Output Variables
Description of "Figure 25-10 Create Business Rules Dialog with Input and Output Variables"