简体   繁体   中英

Mule Expression Language AND OPERATOR

I want to use the Mule Expression Language to send two input parameters to an API (ex: CodePostal and LibelleVoie). I do that :

[payload[1].getAdresseNonNormalisee().getObjetAttributs().getCodePostal()] && #[payload[1].getAdresseNonNormalisee().getObjetAttributs().getLibelleVoie()]]

But it does not work, it returns me a String

have you an idea please ?

You have to write everything in one MEL expression:

#[payload[1].getAdresseNonNormalisee().getObjetAttributs().getCodePostal() && 
 payload[1].getAdresseNonNormalisee().getObjetAttributs().getLibelleVoie()]]

You used two expressions with some String in between: " && "

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM