Reputation: 191
I'm trying to evaluate a value in an array using camel el, but this doesn't work. How can I do to get the evaluation right?
<c:choice>
<c:when>
**<c:el>${ in.body.system.id in [34, 35]}</c:el>**
<c:bean ref="transformUtils" method="removeUser(${in.body}, '99999')"/>
</c:when>
<c:otherwise>
<c:to uri="activemq:queue:systemOk"/>
</c:otherwise>
</c:choice>
Upvotes: 0
Views: 659
Reputation: 27018
If you are using java config use
simple("${in.body.system.id} in [34, 35]")
use this for xml config
<c:simple>${in.body.system.id} in '34,35,36'</c:simple>
Upvotes: 2