How to Add Outputs for Business Rule

To add outputs for business rule:

  1. 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.

  2. In the Add Output Variable dialog select the scope by selecting the Variables folder under Process.

  3. Right-click and from the dropdown list select Create Variable.... This displays the Create Variable dialog.

  4. In the Create Variable dialog, in the Name field enter the output variable name. For example enter Rating.

  5. 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 type rating.

  6. In the Type Chooser dialog, click OK.

  7. In the Create Variable dialog, click OK.

  8. 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 follows
    Description of "Figure 25-10 Create Business Rules Dialog with Input and Output Variables"