Debugging the left-hand side of a rule

From all the different components of a KIE Base (rules, functions, globals, and so on), the most difficult one to debug/troubleshoot is the left-hand side of a rule.

Unlike the right-hand side of a rule, the left-hand side translation to Java is not straightforward. As we will see in the next chapter, a first glance of this was already introduced in Chapter 1, Rules Declarative Nature—the left-hand side of all the rules in a KIE Base is compiled into a network of nodes (which is also known as the PHREAK network). Inside this network, the relation between a pattern, or even conditions inside a pattern, and the individual rule that it belongs to can't be determined most of the time. A single pattern or condition ...

Get Mastering JBoss Drools 6 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.