Using a decision engine to extract business logic and definitions from your workflow reduces the complexity of the process itself and introduces a number of other benefits.

In a couple of previous posts, we discussed why you should not use a Workflow to implement business logic. Business processes (e.g., Workflow, Rule Flow, Data Flow, etc.) are for orchestrating the sequence of tasks to be executed.

In this post, we are going to show you an example on how a decision engine can model a simple workflow rather than chaotic ones, then we are going to discuss other benefits of this approach.

Let's say we have a generic flow that executes tasks based on person's title (i.e., Infant, Kid, Teen, Young, and Adult).

If you are going to model the entire logic as a process, you will end up with something similar to the following flow:

simple workflow


As you can see in this flow, the logic of the business definition for a Person's Title is modeled inside the flow itself. This approach has many issues, including:

  • It makes the process convoluted and less clear. (Hard to understand and Change)
  • This logic implementation does not have anything to do with process goal itself. (Single responsibility violation)
  • Changing the logic (e.g., range of ages for different titles) will require a process change. (Change/Deployment complexity and overhead)
  • The logic is not reusable between different processes and/or applications. (Reusability issue)
  • Logic cannot be tested without running the whole flow. (Testability issue)
  • Testing the logic can be done only by asserting the impact of it on the entire process. (Testability issue)

These will introduce a technical debt, and like any other debt your have to pay it otherwise the consequences of not addressing them become a barrier to operating business.

Book a Custom Demo

First or last name is too short

Solution: Using a Decision Engine

We just need to introduce a decision model to encapsulate the Person's Title decision. This can be simply done by using a Decision Table, as shown below:

Decision Tables are used as part of a Decision Engine

Now by modeling this logic separately, we can reference and use it in the process, and the result will look much better:

A Decision Engine simplifies the workflow

As you can see now, the decision engine (i.e., your business process) is much less complex.

Please note this is just a simple workflow and those are also conditions are mutually exclusive (a person cannot be a teen and an infant). In a real business process, the conditions can be satisfied using multiple different routes and the process itself is more complex. Extracting the business logic from the process will significantly reduce the complexity. So you can model a simple workflow (i.e., business process) and manage it more easily.

Also, if the logic is more complex than a single Decision Table, you can always use Decision Requirement Diagram to handle interaction between decisions.

Book a Custom Demo

First or last name is too short


In this example, we replaced 9 different nodes in the original flow with 1 Decision Table! Using a decision engine – extracting the business logic and definitions from your process model (e.g., flow) will not only significant reduce the complexity of the process itself, but also have the following positive impacts:

  • Logic can be shared between other processes (flows) and applications
  • Quality of logic can be increased and guaranteed as the intention of the logic can be tested
  • Process (e.g., flow) can focus on its goal rather than trying to implement business logic (Design benefit)
  • Process can take advantage of complex decision-making models (Decision model and Notation)

Learn More

  1. What is a Decision Graph?
  2. What is DecisionLang? What are the Benefits?
  3. How to Model Business Decisions
  4. Why Should We Care About Managing Business Decisions?
  5. 2024 Will Be The Year of Decision Intelligence (But The Tech is Already Here)
  6. Understanding and Measuring the Impact of Business Decisions
  7. Challenges of Managing Business Rules in Insurance
  8. Why You Need a DecisionOps Team
  9. The Big Myth in Decision Management and Business Rules Management
  10. How Underwriting Teams Can Rely Less on Software Development and IT Teams

Last updated June 26th, 2024 at 02:28 pm Published September 1st, 2015 at 05:25 pm