I have a DMN that is working fine and after evaluation, it outputs a dishDecision
. I now would like to use this dishDecision
value in another DMN.
I tried setting the input like dishDecision["desiredDish"]
as the input expression in my second DMN but Camunda is saying it can’t find the variable.
What is the correct way of referring to an already executed DMN Decision output if it is using the default camunda:mapDecisionResult
setting (i.e., resultList
)
Here’s the DMN in which I want to use another DMN’s Output:
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:camunda="http://camunda.org/schema/1.0/dmn" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" id="dinnerDecisions" name="Dinner Decisions" namespace="http://camunda.org/schema/1.0/dmn" exporter="Camunda Modeler" exporterVersion="4.8.1">
<decision id="dish" name="Dish" camunda:historyTimeToLive="P180D">
<decisionTable id="decisionTable">
<input id="season" label="Season" camunda:inputVariable="season">
<inputExpression id="inputExpression1" typeRef="string">
<text>season</text>
</inputExpression>
</input>
<input id="guests" label="How many guests" camunda:inputVariable="guests">
<inputExpression id="LiteralExpression_0h5951a" typeRef="integer">
<text>guests</text>
</inputExpression>
</input>
<output id="output1" label="drink" name="desiredDrink" typeRef="string" />
<rule id="row-129502239-1">
<description></description>
<inputEntry id="UnaryTests_0e47zyl">
<text>"Fall"</text>
</inputEntry>
<inputEntry id="UnaryTests_1132erh">
<text>>=8</text>
</inputEntry>
<outputEntry id="LiteralExpression_0wv4x30">
<text>"Gin"</text>
</outputEntry>
</rule>
<rule id="row-129502239-2">
<inputEntry id="UnaryTests_0iwabd6">
<text>"Winter"</text>
</inputEntry>
<inputEntry id="UnaryTests_10qbns7">
<text><= 8</text>
</inputEntry>
<outputEntry id="LiteralExpression_0ysj59c">
<text>"Tonic"</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
</definitions>