Red Hat JBoss BRMS - A Shopping Cart Example
Join the DZone community and get the full member experience.
Join For Free![]() |
Red Hat Cool Store |
He put together an example web application based on the popular framework Vaadin which is an example of an online shopping cart. This web application demonstrates interaction between a web front end and a decision table and rules package. This allows the business logic to become externalized from your deployed application and can then be modified as needed at runtime. This application leverages the rules to calculate the shipping costs based on your rules in the table below.
![]() |
Shipping pricing table |
- the price from Tier 1 based on value totaling between $26 - $50 is $5.99
- you can fill your cart with under $25 of materials to validate
- adjust it to $6.99 (as shown in yellow)
- save and commit changes
- build your coolstore package
- clear the shopping cart application
- re-order the same materials and validate the charge to shipping is now $6.99
Published at DZone with permission of Eric D. Schabell, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments