I have the following mule expression in a choice component:
<choice doc:name="Choice">
<when expression="'localhost' == ${environment}">
... Do something
</when>
The environment property is loaded via a property file, and appears to resolve correctly. However, I get the following error:
[Error: unresolvable property or identifier: localhost]
[Near : {... 'localhost' == localhost ....}]
I've also tried wrapping the expression in #[], and reversing the order of the variables in the comparison <when expression="${environment} == 'localhost'">
, but I get the same error.