Full Coverage of DMN FEEL 1.2 starting with Camunda BPM 7.13

We are happy to announce, that Camunda BPM 7.13 (scheduled for the end of May) includes full
coverage of FEEL 1.2
– for more DMN notation elements than before:

  • Input Expressions NEW!
  • Input Entries
  • Output Entries NEW!
  • Literal Expressions NEW!

We achieved these improvements by adding the former Community Extension FEEL Scala Engine,
written by Philipp Ossler, to the official Camunda Stack.

Let’s have a look at the following example to get a better understanding of how FEEL 1.2 integrates
with Camunda BPM.

We want to calculate the maximum credit sum that we can grant to a customer based on the requested
credit type and the customer’s credit score.

When the customer’s credit score is…

  • … weaker than 80% of the average credit score:
    no credit is granted
  • … between 80% and 100% of the average credit score:
    the average credit sum from the past is granted
  • … better than the average credit score:
    1.5 times of the average credit sum from the past is granted

Based on the business context, I created a simple Decision Requirements Diagram.

Decision Requirements Diagram

First, let’s have a closer look at the FEEL expressions used in the child decision “Calculate Credit History Key Figures”.

Literal Expression "Calculate Credit History Key Figures

The variable credit_type represents the customer’s credit type, and the variable credit_history the history of already granted credits from the past.


The JSON-like structure is called Context. It consists of the properties avg_score and avg_granted_sum with expressions as values. The Context is assigned to the variablekey_figures so it can be accessed in the root decision.

Filter Expression

The expression credit_history[type = credit_type] filters the variable credit_history for all credit types which equal the variable credit_type. The evaluated result is a list of Contexts structured as follows:

  [ {"type": "personal-loan", "score": 505, "granted_sum": 1554.30}, ..., ... ]

Read more about the Filter Expression.

Path Expression

With the help of .score and .granted_sum, the values of the Context can be accessed.

Read more about the Path Expression.

Built-in Functions

The function mean(...) calculates the average and is one out of many more Built-in Functions
you can use in your expressions.

Second, let’s get to know the FEEL expressions used in the root decision “Calculate Max Grantable Credit Sum”.

Decision Table Calculate Max Grantable Credit Sum
Mathematical Operators

FEEL allows using Mathematical Operators. You can find an example of multiplication in the first Input Entry: key_figures.avg_score*.8.

Unary Test Comparison

In the first and third Input Entries, the value of the Input Expression credit_score is implicitly compared with the subsequent expressions.

Read more about Unary Test Comparison.

Special Variable

In the second Input Entry, no implicit comparison is performed. Instead, the Special Variable ? is used in conjunction with the x between y and z keyword. The Special Variable represents the value of the Input Expression credit_score.

Try it out!

To try out the example yourself, follow the step-by-step guide below.

Step 0: Run Camunda BPM

Make sure to download Camunda BPM 7.13.0-alpha2 (click on “Preview Release”), unpack it, and start the platform.

Step 1: Deploy Decision Model

Download the decision model calc-credit-sum.dmn (right click & save link as…) and deploy it to Camunda BPM. You can deploy the model quickly with the help of Camunda Modeler.

Step 2: Evaluate Decision

Evaluate the decision by performing the following REST API request:

POST /decision-definition/key/calc-credit-sum/evaluate

         "value":" [{"type":"personal-loan", "score": 505, "granted_sum": 1554.30}, {"type":"mortgage", "score": 931, "granted_sum": 600900.43}, {"type":"mortgage", "score": 754, "granted_sum": 210000.00}, {"type":"personal-loan", "score": 437, "granted_sum": 1900.44}]",
         "type": "Json"
         "value": 800
         "value": "mortgage"

Step 3: Review Decision History

Go to Cockpit and open the decision instance view to see the result:

Camunda Cockpit Decision Instance View

You can find the complete example prepackaged as a Spring Boot application here:
FEEL 1.2 Example on GitHub

More Enhancements

Further Reading

  • You can read more about DMN FEEL 1.2 in the FEEL Scala Documentation
  • Please also see the User Guide to learn more about the Camunda BPM integration
  • When you use a Camunda BPM version <= 7.12, learn how to migrate your FEEL expressions with the
    help of the Migration Guide

Please give us Feedback!

Do you like what we’ve built, or do you want to share some feedback with us?

You can ping us on Twitter @Camunda or reach us out on the Forum.

  • Camunda Cockpit screenshot

    Camunda BPM Runtime 7.15.0-alpha3 Released

    We are pleased to announce the next release of Camunda BPM 7.15, featuring the following improvements: Cockpit: Distinguish Between Canceled and Completed Process Instances (Enterprise) Cockpit: Detailed error message during deployment (Enterprise) Change the Header of your Webapps Tasklist: generic Forms allow Complex Data Types Revamped Unique Task Worker Metric External Task: Throw BPMN errors with expressions External Task REST API: Fail with Variables Skip failed Output Mapping on all Activities Extended OpenAPI documentation 12 Bug Fixes You can Download Camunda for free or Run it with Docker. For a complete list of all improvements, take a look at the release notes. Please also see the list of known issues. If you want to dig deeper, you can find the...

    Read more
  • flow node status screen

    Camunda Optimize 3.4.0-alpha1 Released

    We’re excited to announce the release of Camunda Optimize 3.4.0-alpha1. Camunda Optimize provides business activity monitoring for workflows, supporting continuous process improvement by providing transparency into your automated workflows and decisions. Business-friendly reports, dashboards and alerts make it possible to identify process bottlenecks and improve end-to-end processes. If you’d like to get started with Optimize 3.4.0-alpha1 right away, you can download the release here with your Camunda Enterprise Platform customer credentials. And if you’re not yet a Camunda customer, you can sign up here for a free 30-day trial of the Camunda Enterprise Platform, which includes Camunda Optimize. In the rest of this post, we’ll highlight some of the new capabilities introduced in Optimize 3.4.0-alpha1. New Dashboard Assignee and Candidate...

    Read more
  • version history

    Cawemo Enterprise (On-Premises) 1.5 Released

    We’re happy to announce the 1.5 release of Cawemo Enterprise On-Premises. Cawemo is the BPMN process specification platform of the Camunda stack, enabling all stakeholders to model and collaborate on process diagrams and related files. The main improvements in this release are: New UiPath template editor Cawemo provides a form-based editor for element templates that are tailored specifically to be used with Camunda’s RPA Bridge and UiPath. Template versioning You are able to manage and publish versions of the same template, allowing you to adjust templates to changes in your UiPath scripts or other task implementations. Integration with Camunda’s new identity and access management solution Camunda Account takes over the user management for Cawemo and will enable LDAP support in...

    Read more