Clem
Clem

Reputation: 21

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 ?

Upvotes: 1

Views: 2048

Answers (1)

Roger Butenuth
Roger Butenuth

Reputation: 546

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: " && "

Upvotes: 3

Related Questions