How to get variables in process from `java.util.HashMap` objects?

In bpmn process I have dmn variables output like java.util.HashMap:

In the next script task I try get values of variables:


var dmn_variables = execution.getVariable('dmn_variables');

var captionKey = S(dmn_variables).prop("caption");
var caption = captionKey.value();

execution.setVariable("caption", caption);

But when process start by rest I get error

{
    "type": "IllegalArgumentException",
    "message": "SPIN-01001 Unsupported input of type 'java.util.HashMap'"
}

How can I get variables in process from java.util.HashMap objects?

Solution found.

1 Like

and which is?