Lab 3
Exploring travel discount rules project
Lab Goal
To explore JBoss BRMS project with travel discount rules and rule tests to understand how they work.
ARCHITECTURE
Deploy travel discount rules on OpenShift Container Platform
VIEW PROJECT
- Open project by clicking on menu entry Authoring -> Project Authoring:
DECISION TABLE
Project opens with discount rules in decision table
DISCOUNT RULES
- Table has rules for Flights, Cars and Hotels:
Flights: for diverse asian airport codes gets 10 discount
Cars: for Hertz car rental company gets 15 discount
Hotel: for length of stay six or more days gets 10 discount
RULES TEST
Open the TEST SCENARIOS tab on right in Project Explorer and click on TestDiscountRules to open...
TEST RUN FAILS
Click on Run scenario button top righ to see test fail...
FIX RULE TEST
Note red failure, look where it failed and fix:
WHAT'S NEXT?
Infrastructure automation to deploy applications...
- You understand the discount rules and have tested them
- Going to use Ansible Playbooks to automate container deployments