DMN table groovy

hi ,

is it possible to pass XMLString in VariableMap like

VariableMap variables = Variables
.putValue(“ORDER.UNIT”, inputXML)

and evaluate using grooving in DMN table.
Tried new XmlSlurper().parseText(cellInput), but groovy does not identify cellInput.

Goal
My DMN table has Input and Output defined as Strings.

The Input variables are fetched from a tag value in XMLs. So it is possible using groovy to fetch the tag value directly instead of doing it from code.

@visumalladi could you use SPIN to parse your XML?
https://docs.camunda.org/manual/7.5/reference/spin/xml/02-manipulating-xml/

And then you use an Expression such as ${order.attr('unit').value()}.
https://docs.camunda.org/manual/7.5/reference/spin/xml/02-manipulating-xml/#manipulating-xml-using-a-script-language
https://docs.camunda.org/manual/7.5/reference/spin/xml/01-reading-xml/#reading-xml-using-a-script-language

I did something similar with: Pattern Review: DMN Looping for Array Input