Flow variable: difference between: variable.name, {variable.name} and $.variable.name

Not applicable

Hy folks!

I'm wondering what is the difference of the reference of the flow variables. Sometimes I just use normal text, sometimes text inside curly brace and text with prefix .$.
I just miss the point sometimes what are the use cases


can anybody explain me the differences?

Thanks!

Viktor

0 1 254
1 REPLY 1

HI @Viktor Balassa

Depends on where you are using the flow variable. In case of Assign Message or any other policies, if its used as reference, then you dont need curly braces or $

For example within <Ref> or when you are using as ref="variable"

However you will need when you will use when you want to distinguish that with other information you include, for example you will use {} when you want to get the value. Its a way to denote that you are expecting a variable and not text

$ is mainly used for JSONPath in Extract Variables which is syntax itself.

Hope this clarifies