< Previous | Next >

Running the completed tutorial

Describes how to import and run a completed version of the tutorial.

Important:

If you have already imported the loanvalidation-xom and loanvalidation-rules projects into your workspace, delete them or use a new workspace.

When you run the completed tutorial, you generate a customized Excel scenario file template.

To import the answer project and generate an Excel scenario file template:

  1. Import the answer project:
    1. Open the Samples Console in the en_US (American English) locale (see Opening the Samples Console).
    2. In the Samples and Tutorials view, navigate to Rule Designer > Tutorials > Configuring the BOM for Excel testing > answer, and then click Import projects.

      The imported projects are displayed in the Rule Explorer:

      • The Java project loanvalidation-xom defines an execution object model (XOM) with new constructors and classes.
      • The rule project loanvalidation-rules defines the business object model (BOM) with the constructors and classes to generate a customized Excel scenario file.
  2. Generate the Excel scenario file template:
    1. In the Rule Explorer, right-click the loanvalidation-rules project and then click Decision Validation Services > Generate Excel Scenario File Template.

      The Generate Excel Scenario File Template wizard opens.

    2. Make sure that the selected rule project is loanvalidation-rules and then click Next.
    3. Select your version of Excel, make sure Default Excel Format is selected, and then click Next.
    4. On the Expected Results page, expand the loan report, select approved and first message to include these columns in the Expected Results sheet, and then click Next.
    5. Click Finish.

      By default, the Excel scenario file template is generated in the loanvalidation-rules project.

      Note:

      If the Excel scenario file template does not appear in the project, right-click the project and click Refresh.

    6. In the Rule Explorer, double-click testsuite.xls to open it and then check the content:
      • The column headings have meaningful names and are easily identified:
        Scenarios sheet
      • The Scenarios sheet contains columns to enter data on the borrower's property, including the property type column, which is edited using domain values selectable from a list:
        Property info columns
      • The Expected Results sheet contains a column to test whether the loan is approved, and a column to test the first message displayed when testing the rules:
        Expected Results sheet
    7. Close testsuite.xls.
< Previous | Next >