Task 5: Executing the ruleflow and analyzing the results
You call the ruleflow, define it as the main ruleflow, and then execute it.
About this task
Now that you have defined all the ruleflow tasks, you can call the ruleflow from the application. An application can have several ruleflows, but one of them must be defined as the main ruleflow.
Procedure
To define the car reservation ruleflow as the main ruleflow and execute it:
Results
Check the output for Alice Boorman’s rental agreement in the Console window.
In Rhode Island state, customer must be 25 or more to rent a car
Rejected Rental Agreement for Alice Boorman (Sep 12, 1988) of a FullSize car
from Dec 1, 2011 at Providence (Rhode Island)
to Dec 5, 2011 (4 days) at Providence (Rhode Island)
With the ruleflow, the eligibility rule task determines that Alice is not eligible, so her rental agreement does not meet the condition for the pricing rule task and follows the Else transition to the end of the ruleflow, without computing unneeded rental prices.
You have completed the Creating your first ruleflow tutorial, and learned how to use a ruleflow to control rule execution.