Chapter 5. From Guvnor to JBoss IDE

In the previous chapter, we wrote our first real rule using the guided editor in Guvnor. Although the guided editor is very useful, the rule that we wrote could do with a few enhancements. We also had a glimpse of the behind-the-scenes text rules, but they were for read-only purposes. As a part of our enhancements, it would be good to use the additional power of these text rules. We'll look at using variables in our rules by using rule attributes to provide extra information about our rules, and editing text-based rules using Guvnor and the JBoss IDE.

A more powerful rule

Our business rule from the last chapter was a bit silly. In real life there is no such thing as 'negative sales'. It would confuse not only ...

Get JBoss Drools Business Rules now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.