< Previous | Next >

Viewing the completed tutorial

You can load and run the completed version of this tutorial by following these step-by-step instructions.

About this task

When you finish, you can run the ruleflow made with the tutorial, and view its output.

Procedure

To load the completed version of the tutorial and run it:

  1. Load the completed version of the tutorial:
    1. Open the Samples Console in the en-US (American English) locale (see Running samples from the Samples Console).
    2. In the Samples and Tutorials view, navigate to Rule Designer > Tutorials > Creating your first ruleflow > answer, and then click Import projects.

      Two projects appear in the Rule Explorer. The Java™ project carrental-xom defines an execution object model for rule execution. The rule project ruleflow-rules-answer contains a set of business rules and a ruleflow. This rule project references the project carrental-xom. The ruleflow is stored in rules/flow/carreservation.

  2. Run the tutorial:
    1. Make sure you are in the Rule perspective. To open it, go to the Window menu and click Open Perspective  >  Other >  Rule.
    2. To open the ruleflow in the Rule Explorer, double-click ruleflow-rules-answer/rules/flow/carreservation to display this ruleflow:
      Completed ruleflow
    3. On the Run menu, click Run Configurations.
    4. In the Run Configurations dialog, select Decision Operation > ruleflow-answer-configuration, and then click Run.

      The Console view displays the output.

Results

The Console view shows that the rules process requests for rentals, and compute offers based on information about the customers.

< Previous | Next >