< Previous | Next >

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

Procedure

To import the answer projects and view the vocabulary:

  1. Import the answer projects:
    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.

      The vocabulary is viewed through the BOM editor.

  2. View the vocabulary:
    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, double-click Branch > state, and look at the domain definition in the BOM Editor view.
    4. In the Outline view, expand the carrental tree, double-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.

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

Results

Next Start this tutorial: Task 1: Creating a BOM entry.

< Previous | Next >