String concatenation in an Expression

I want to dynamically create a String in an Expression for an Input Variable.

I tried different things that did not work:

  • ${"prefix/" + myDynamicPart + ".postfix"}
  • prefix/${myDynamicPart}.postfix

The Result on runtime should look then for the variable myDynamicPart = hello:
“prefix/hello.postfix”

How is this done?

There are 2 ways:

  • ${“prefix/”.concat(myDynamicPart).concat(".postfix")}
  • prefix/${myDynamicPart}.postfix (this is exactly the same as you tried, but it works fine for me and it’s useful only for Input and Output parameters)

Modeller settings & result in Cocpit:

1 Like