Kie Base components

We have covered some of the most used components in a knowledge base, such as rules, globals, queries, and channels. It is time to move on to more advanced topics that will allow us to create more concise and reusable knowledge.

In this section, we are going to cover topics such as functions, custom operators, and custom accumulate functions. All these components can be used to model our knowledge in a simpler yet powerful way.

Functions

So far, we have covered three of the most common knowledge declarations that we have in Drools: rules, queries, and declared types. There is another kind of knowledge declaration that can be used to express stateless logic in a knowledge base: functions. Functions in Drools are basically isolated ...

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.