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
- First Case: I set the DMN result to be a
singleEntry
with atypedValue
. However, the result’s type is an object, and the value is ajava.util.ArrayList
. - 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.