◷ Reading Time: 3 minutes
The expression language of DMN is the Friendly Enough Expression Language (FEEL). FEEL is written to be useable by both business and IT professionals.
FEEL is designed to be easy to read and intuitive, with comparison and logical operators acting how you would think they should.
Take a look in this example written using FEEL:
2 >= 1 and false != true and "string" = "string"As you can see it is easy to tell what is going on. We have three boolean comparisons anded together. Each comparison is true, which gives us true and true and true so the returned result is true
Let’s look at another example:
if (2 >= 1 and false != true and "string" = "string") then "Three True Comparisons" else nullHere we’re using an if else structure. If the three boolean comparisons result in true then return the string “Three True Comparisons” else return null.
After reading this article you’ll be able to open the Interactive Shell and test them out yourself.
Learning FEEL
To understand FEEL and how it is integrated into FlexRule, refer to these resources:
- FEEL Expressions is a great place to start learning how FEEL works. It offers a list of expressions in FEEL with examples
- For FEEL expressions that have to do with Date and Time, check out FEEL Date and Time Expressions
- DMN Functions is a list of DMN functions that can be used with FEEL with expressions
Test it out in the Interactive Shell
Test FEEL expressions and DMN functions out yourself in the interactive shell. Steps to test FEEL in the shell:
- Create a new project in FlexRule Designer and go to Tools>Extensions Manager

- Install the DMN extension by selecting it and clicking the green plus sign

- Go to Tools>Interactive Shell to open the shell

- Expand the Help Menu

- Test out expressions in the shell and functions under the DMN section
