Blog Posts BPMN DMN

Exceptional rules, with Drools and Kogito

Blog: Drools & jBPM Blog

Managing exceptional rules is easy, thanks to Drools and Kogito!

In this use-case, we have a base business process and a default knowledge base with rules, which can be overridden by specific entities or departments as needed.

We actually have several architectural options we could implement!

The simplest architectural option I can think about, draws inspiration from this book by Alan Fish:

“Knowledge Automation: How to Implement Decision Management in Business Processes”
Book by Alan N. Fish

which is a great book by the way if you also want to understand the main ideas prequel to the DMN standard!

Exceptional rules using only DMN

In a decision node in DMN, we check if any exception is applicable, and we collect the exceptions in a list.

You may substitute the BKM nodes with Decision Service, say coming from other DMN models!

Another option is to model this with a combination of BPMN and DMN and rules, the idea is similar:

Managing exceptional rules with BPMN and DMN

The default branch applies the default knowledge base and would be followed, unless in the predetermination task we have evaluated we must follow one of the exceptional types of branches.

A final option would be to deploy each knowledge base –the default one, the different exceptional ones– each as its own Kogito microservice on a cloud native environment such as Kubernetes:

Then, you can orchestrate them using a Serverless Workflow, which will be in charge of invoking the needed cloud-native decision service.

As you have seen, managing exceptional rules is easy, thanks to Drools and Kogito!

The post Exceptional rules, with Drools and Kogito appeared first on KIE Community.

Leave a Comment

Get the BPI Web Feed

Using the HTML code below, you can display this Business Process Incubator page content with the current filter and sorting inside your web site for FREE.

Copy/Paste this code in your website html code:

<iframe src="https://www.businessprocessincubator.com/content/exceptional-rules-with-drools-and-kogito/?feed=html" frameborder="0" scrolling="auto" width="100%" height="700">

Customizing your BPI Web Feed

You can click on the Get the BPI Web Feed link on any of our page to create the best possible feed for your site. Here are a few tips to customize your BPI Web Feed.

Customizing the Content Filter
On any page, you can add filter criteria using the MORE FILTERS interface:

Customizing the Content Filter

Customizing the Content Sorting
Clicking on the sorting options will also change the way your BPI Web Feed will be ordered on your site:

Get the BPI Web Feed

Some integration examples

BPMN.org

XPDL.org

×