Access Keys:
Skip to content (Access Key - 0)
Cancel    
Cancel   
 

Contents

JIRA Issue

MULE-5992

What is the Mule Expression Evaluator?

The Mule Expression Evaluator aims to provide an expression language for querying Mule information at runtime, such as message properties, payload, attachments and context information.

Reason to deprecate it

  • The Mule Expression Language is a set of shortcuts to the other expression evaluators
  • It provides two ways to accomplish the same thing, which only causes confusion
  • The fluent EL concept isn't of value without auto-completion
  • It's part of a number of expression improvement stories
  • Encourage the use of expression evaluators

Usage Example:

Mule Expression Evaluator (deprecated)

Default Expression Evaluator

Comments

#[mule:context.serviceName]

#[context:serviceName]

Returns the current Service Name

#[mule:message.headers(foo,bar)]

#[headers:foo,bar]

Retrieves the message headers specified

#[mule:message.correlationId]

#[message:correlationId]

Returns the correlationId on the message

#[mule:message.attachments-list(attach1, attach2*)]

#[attachments-list:attach1,attach2]

Returns a List of attachments objects

#[mule:registry.apple]

#[registry:apple]

Returns an object called 'apple' from the registry

For more information on the expression evaluators usage consult the documentation from the Expressions Configuration Reference