Integrating dmn into bpmn

Hi everyone,

I’m working on a task to integrate DMN and BPMN using bpmn-js and dmn-js. The deployment is successful, but I’m trying to streamline how we use DMN results in BPMN expressions, and I’m hoping for insights.

Scenario

  1. First Case: I set the DMN result to be a singleEntry with a typedValue. However, the result’s type is an object, and the value is a java.util.ArrayList.
  2. Second Case: I chose singleResult(map<string,object>), but the result has the same type and value as in the first case. To make a decision, I have to access the result like this:
${dmnDecision.get(0).get("result") == "poor"}

Here, dmnDecision is the result variable, and result is the output variable from the DMN definition.

Goal

Is there a way to simplify this so I can directly use the result in an expression like:

${result == "poor"}

This would improve readability and reduce complexity, especially for users who don’t need to handle nested expressions.

Extra Info: Here’s a snippet of the DMN table from Cockpit if you need context on the table setup.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.