public interface ExtendedExpressionManager extends ExpressionManager
ExpressionManager supporting mutating operations and the propagation of more variables.
Only meant to distinguish the Mule 3 inherited behaviour from the current approach.
DEFAULT_EXPRESSION_POSTFIX, DEFAULT_EXPRESSION_PREFIX| Modifier and Type | Method and Description |
|---|---|
void |
enrich(String expression,
Event event,
Event.Builder eventBuilder,
FlowConstruct flowConstruct,
org.mule.runtime.api.metadata.TypedValue value)
Deprecated.
Mutation via expressions is deprecated.
|
org.mule.runtime.api.metadata.TypedValue |
evaluate(String expression,
Event event,
Event.Builder eventBuilder,
FlowConstruct flowConstruct)
Deprecated.
Mutation via expressions is deprecated.
|
String |
parse(String expression,
Event event,
FlowConstruct flowConstruct)
Deprecated.
Parsing of expressions is deprecated. Use standard evaluation instead.
|
evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluateBoolean, evaluateBoolean, split, split@Deprecated org.mule.runtime.api.metadata.TypedValue evaluate(String expression, Event event, Event.Builder eventBuilder, FlowConstruct flowConstruct) throws ExpressionRuntimeException
This version of evaluate allows Event or InternalMessage mutation performed within the expression to
be maintained post-evaluation via the use of a result Event.Builder which should be created
from the original event before being passed and then used to construct the post-evaluation event.
expression - the expression to be executedevent - the current event being processedeventBuilder - event builder instance used to mutate the current message or event.flowConstruct - the flow where the event is being processedExpressionRuntimeException@Deprecated void enrich(String expression, Event event, Event.Builder eventBuilder, FlowConstruct flowConstruct, org.mule.runtime.api.metadata.TypedValue value)
This version of enrich allows Event or InternalMessage mutation performed within the expression to be
maintained post-evaluation via the use of a result Event.Builder which should be created
from the original event before being passed and then used to construct the post-evaluation event.
expression - a single expression i.e. header://foo that defines how the message should be enrichedevent - The event to be enrichedeventBuilder - event builder instance used to mutate the current message or event.flowConstruct - the flow where the event is being processedvalue - The typed value used for enrichment@Deprecated String parse(String expression, Event event, FlowConstruct flowConstruct) throws ExpressionRuntimeException
ExpressionManager.evaluate(String, Event, FlowConstruct, BindingContext).
This version of evaluate performs expression evaulation on an immutable event. Any Event or
InternalMessage mutation performed within the expression will impact within the context of expression evaluation but
will not mutated the event parameter.
expression - one or more expressions ebedded in a literal string i.e. "Value is #[mel:xpath://foo] other value is
#[mel:header:foo]."event - The current event being processedflowConstruct - the flow where the event is being processedExpressionRuntimeException - if the expression is invalid, or a null is found for the expression and 'failIfNull is set
to true.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.