@NoImplement
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
|
EventContext |
getContext() |
String |
getCorrelationId()
The returned value will depend on the flow source that created this event, and the flow that is executing the event.
|
Optional<Error> |
getError()
When a mule component throws an error then an
Error object gets generated with all the data associated to the error. |
Optional<ItemSequenceInfo> |
getItemSequenceInfo()
Returns the sequence metadata of this event.
|
Message |
getMessage()
Returns the message payload for this event
|
Map<String,TypedValue<?>> |
getVariables()
Returns the variables in the event
|
Map<String,TypedValue<?>> getVariables()
TypedValue containing the variable'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.
String getCorrelationId()
Optional<ItemSequenceInfo> getItemSequenceInfo()
ItemSequenceInfo.
The value can be an Optional.empty() meaning that this event does not belong to any specific sequence.EventContext getContext()
Event from a source.BindingContext asBindingContext()
BindingContext from the event.BindingContext created from the event content.Copyright © 2021 MuleSoft, Inc.. All rights reserved.