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