public interface Event
| Modifier and Type | Method and Description |
|---|---|
BindingContext |
asBindingContext()
Creates a
BindingContext from the event. |
Optional<Authentication> |
getAuthentication()
Returns the authentication information for the event
|
<T extends EventContext> |
getContext() |
Optional<Error> |
getError()
When a mule component throws an error then an
Error object gets generated with all the data associated to the error. |
Message |
getMessage()
Returns the message payload for this event
|
Map<String,TypedValue<?>> |
getParameters()
Returns the parameters in the event
|
Map<String,TypedValue<?>> |
getProperties()
Returns the properties in the event
|
Map<String,TypedValue<?>> |
getVariables()
Returns the variables in the event
|
Map<String,TypedValue<?>> getVariables()
TypedValue containing the variable's names and values.Map<String,TypedValue<?>> getProperties()
TypedValue containing the properties's names and values.Map<String,TypedValue<?>> getParameters()
TypedValue containing the parameter's names and values.Message getMessage()
Optional<Authentication> getAuthentication()
Optional.empty().Optional<Error> getError()
Error object gets generated with all the data associated to the error.
This field will only contain a value within the error handler defined to handle errors. After the error handler is executed
the event error field will be cleared. If another flow is called from within the error handler the flow will still have
access to the error field.
To avoid losing the error field after the error handler the user can define a variable pointing to the error field.<T extends EventContext> T getContext()
Event from a source.BindingContext asBindingContext()
BindingContext from the event.BindingContext created from the event content.Copyright © 2017 MuleSoft, Inc.. All rights reserved.