public interface ExpressionLanguageAdaptor
| Modifier and Type | Method and Description |
|---|---|
void |
addGlobalBindings(org.mule.runtime.api.el.BindingContext bindingContext)
Registers the given
BindingContext entries as globals. |
org.mule.runtime.api.metadata.TypedValue |
evaluate(String expression,
org.mule.runtime.api.metadata.DataType expectedOutputType,
Event event,
org.mule.runtime.api.el.BindingContext context)
Evaluates an expression according to a given
BindingContext and outputs . |
org.mule.runtime.api.metadata.TypedValue |
evaluate(String expression,
org.mule.runtime.api.metadata.DataType expectedOutputType,
Event event,
FlowConstruct flowConstruct,
org.mule.runtime.api.el.BindingContext context,
boolean failOnNull)
|
org.mule.runtime.api.metadata.TypedValue |
evaluate(String expression,
Event event,
org.mule.runtime.api.el.BindingContext context)
Evaluates an expression according to a given
BindingContext. |
org.mule.runtime.api.metadata.TypedValue |
evaluate(String expression,
Event event,
FlowConstruct flowConstruct,
org.mule.runtime.api.el.BindingContext bindingContext)
|
Iterator<org.mule.runtime.api.metadata.TypedValue<?>> |
split(String expression,
Event event,
org.mule.runtime.api.el.BindingContext bindingContext)
Splits using the specified expression and group it with the batch size.
|
Iterator<org.mule.runtime.api.metadata.TypedValue<?>> |
split(String expression,
Event event,
FlowConstruct flowConstruct,
org.mule.runtime.api.el.BindingContext bindingContext)
Splits using the specified expression and group it with the batch size.
|
org.mule.runtime.api.el.ValidationResult |
validate(String expression)
Verifies whether an expression is valid or not syntactically.
|
void addGlobalBindings(org.mule.runtime.api.el.BindingContext bindingContext)
BindingContext entries as globals. Notice globals cannot be removed once registered, only
overwritten by the registration of a binding with the same identifier.
Implementations should be thread safe to avoid race conditions between registration and expression evaluation.bindingContext - the context to registerorg.mule.runtime.api.metadata.TypedValue evaluate(String expression, Event event, FlowConstruct flowConstruct, org.mule.runtime.api.el.BindingContext bindingContext) throws ExpressionRuntimeException
expression - the expression to be executedevent - the current event being processedflowConstruct - the flow where the event is being processedbindingContext - the bindings to considerExpressionRuntimeException - if a problem occurs evaluating the expressionorg.mule.runtime.api.metadata.TypedValue evaluate(String expression, Event event, org.mule.runtime.api.el.BindingContext context) throws ExpressionRuntimeException
BindingContext.expression - the expression to be executedevent - the current event being processedExpressionRuntimeException - if a problem occurs evaluating the expressionorg.mule.runtime.api.metadata.TypedValue evaluate(String expression, org.mule.runtime.api.metadata.DataType expectedOutputType, Event event, org.mule.runtime.api.el.BindingContext context) throws ExpressionRuntimeException
BindingContext and outputs .expression - the expression to be executedevent - the current event being processedexpectedOutputType - the expected output type so that automatic conversion can be performed for the resulting value
type.ExpressionRuntimeException - if a problem occurs evaluating the expressionorg.mule.runtime.api.metadata.TypedValue evaluate(String expression, org.mule.runtime.api.metadata.DataType expectedOutputType, Event event, FlowConstruct flowConstruct, org.mule.runtime.api.el.BindingContext context, boolean failOnNull) throws ExpressionRuntimeException
expression - the expression to be executedexpectedOutputType - the expected output type so that automatic conversion can be performed for the resulting value
type.event - the current event being processedflowConstruct - the flow where the event is being processedcontext - the bindings to considerfailOnNull - indicates if should fail if the evaluation result is nullExpressionRuntimeException - if a problem occurs evaluating the expressionorg.mule.runtime.api.el.ValidationResult validate(String expression)
expression - to be validatedValidationResult indicating whether the validation was successful or notIterator<org.mule.runtime.api.metadata.TypedValue<?>> split(String expression, Event event, FlowConstruct flowConstruct, org.mule.runtime.api.el.BindingContext bindingContext) throws ExpressionRuntimeException
expression - the expression to be executedevent - the current event being processedflowConstruct - the flow where the event is being processedbindingContext - the bindings to considerExpressionRuntimeException - if a problem occurs evaluating the expressionIterator<org.mule.runtime.api.metadata.TypedValue<?>> split(String expression, Event event, org.mule.runtime.api.el.BindingContext bindingContext) throws ExpressionRuntimeException
expression - the expression to be executedevent - the current event being processedbindingContext - the bindings to considerExpressionRuntimeException - if a problem occurs evaluating the expressionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.