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:
- Import the answer projects:
- Open the Samples Console (see Running samples from the Samples Console).
- 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.
- View the vocabulary:
- Make sure you are in the Rule perspective. On the Window menu,
click , and then select Rule.
- Double-click .
- In the Outline view, expand the carrental tree,
double-click , and look at the
domain definition in the BOM Editor view.
- In the Outline view, expand the carrental tree,
double-click , and look at the BOM-to-XOM
mapping section in the BOM Editor view.
- On the Window menu, click .
In the Vocabulary
view, look at the verbalization of the elements in the BOM.