DMN with Multiple Output columns

I am trying to integrate a DMN with multiple output columns into a BPMN model but I face errors. I couldn’t find an example or a more detailed tutorial that shows how the output variables can be referred to in the BPMN file. I used “Unique policy” in the DMN file and the SingleResult map decision result in the BMPN file.
In other user tasks, I want to use the variables from the output. If the result variable is “result” and the output variables are “var1” and “var2”, how can I obtain the content of these two variables?
For example, I tried with ${result.var1} but it didn’t work.
Any advice will be very appreciated.

I managed to find an answer here:

Adding the two variables in the Input/Output tab from the DMN box in the BPMN file solved the issue.