How do I concatenate a string with a value returned from a mule expression?

StackOverflow https://stackoverflow.com/questions/23398649

  •  13-07-2023
  •  | 
  •  

Вопрос

I am trying something like the following to concatenate a string and a value returned from a mule expression

 <message-properties-transformer scope="session" doc:name="Set value as SessionVar">
        <add-message-property key="someKeyName" value="'Key ' + #[message.inboundProperties['http.query.params']['value']]"/>
  </message-properties-transformer> 

I've tried other variations, as well, without luck. I'll happily post variations, if needed.

Это было полезно?

Решение

Try and use: #['Key ' + message.inboundProperties['http.query.params']['value']]

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top