Viewing the completed tutorial

You discover how you can import and view tutorial answers.

About this task

When finished, this tutorial contains a complete vocabulary for editing the car rental policy, and extensions to the business object model (BOM).

Step 1: Importing the answer projects

You import the answer projects.

Procedure

  1. Open the Samples Console (see Running samples from the Samples Console).
  2. In the Samples and Tutorials view, navigate to Rule Designer > Tutorials > Defining a vocabulary > answer, and then click Import projects.

    The Rule Explorer view shows two projects. The Java project carrental-xom defines an execution object model for rule execution. The decision service main rule project vocabulary-rules-answer contains a complete vocabulary and a set of business rules. This project references the project carrental-xom.

    Important:

    You cannot run the completed tutorial.

Step 2: Viewing the vocabulary

You view the vocabulary.

Procedure

  1. Make sure you are in the Rule perspective. On the Window menu, click Open Perspective  > Other, and then select Rule.
  2. Double-click vocabulary-rules-answer > bom > model > carrental.
  3. In the Outline view, expand the carrental tree, click Branch > state, and look at the domain definition in the BOM Editor view.
  4. In the Outline view, expand the carrental tree, click RentalAgreement > getCustomerAge, and look at the BOM-to-XOM mapping section in the BOM Editor view.
  5. On the Window menu, click Show View  > Vocabulary.

Results

In the Vocabulary view, look at the verbalization of the elements in the BOM.