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

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "Let's say that we have the Account bean that has one property called balance."

A block of code will be set as follows:

if (customer.getLevel() == Level.Gold) { // do something for Gold customer } else if (customer.getLevel() == Level.Silver) { if (customer.getAccounts() == null) { // do something else for Silver customer with no accounts } else { for (Account account : customer.getAccounts()) { if (account.getBalance < 0) { // do something for Silver Customer that has // account with negative balance } } } } ...

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