Dynamic Variables for Modularisation

Hello,

How do we do set a process variable name to contain the string val of an existing property?

e.g.

Process variable name : criteria.<“existing.nested.property.val”>.passes

if <existing.nested.property.val> = “foo”

then the variable name, and associated nested json structure generated, should be criteria.foo.passes