O'Reilly logo

Drools JBoss Rules 5.X Developer's Guide by Michal Bali

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Analysis

By reading the problem definition from the earlier content, it seems that each line from the list represents a single rule. The rules are simple; they include few conditions and a consequence. The consequence will report a customer who failed a validation rule. The two types of messages that will be used include an error and a warning.

We'll now define a report model that will store this information. The model might look like this:

Analysis

Figure 2: Validation reporting model with validation service

As can be seen in in the previous screenshot, we have the Message and ValidationReport interfaces. This validation report is then used by the BankingValidationService ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required