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 OVERVIEW

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:

  • Flight Destination (flightTo) change to SIN for Singapore

  • Click on Save button to enter commit message and rerun test



TEST RUN SUCCESS

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


END LAB 3

QUESTIONS?

Eric D. Schabell
Portfolio Architect Director
@ericschabell
http://schabell.org

UP NEXT...

Lab 4 - Automated rule service deployment