public interface ModuleFlowProcessingPhaseTemplate extends MessageProcessTemplate, MessageSourceResponseParametersProcessor
MessageSource specific behavior during flow execution.| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.message.Message |
getMessage() |
Event |
routeEvent(Event event)
Routes the
Event through the processors chain |
org.reactivestreams.Publisher<Event> |
routeEventAsync(Event event)
Routes the
Event through the processors chain using async API. |
void |
sendAfterTerminateResponseToClient(Either<MessagingException,Event> either) |
org.reactivestreams.Publisher<Void> |
sendFailureResponseToClient(MessagingException exception,
Map<String,Object> parameters,
ResponseCompletionCallback responseCompletionCallback) |
org.reactivestreams.Publisher<Void> |
sendResponseToClient(Event flowExecutionResponse,
Map<String,Object> parameters,
Function<Event,Map<String,Object>> errorResponseParametersFunction,
ResponseCompletionCallback responseCompletionCallback)
Template method to send a response after processing the message.
|
getFailedExecutionResponseParametersFunction, getSuccessfulExecutionResponseParametersFunctionorg.mule.runtime.api.message.Message getMessage()
throws org.mule.runtime.api.exception.MuleException
Message created from the original messageorg.mule.runtime.api.exception.MuleExceptionEvent routeEvent(Event event) throws org.mule.runtime.api.exception.MuleException
Event through the processors chainorg.reactivestreams.Publisher<Event> routeEventAsync(Event event)
Event through the processors chain using async API.event - Event created from the raw message of this contextPublisher that will ne siganlled on processing completionorg.reactivestreams.Publisher<Void> sendResponseToClient(Event flowExecutionResponse, Map<String,Object> parameters, Function<Event,Map<String,Object>> errorResponseParametersFunction, ResponseCompletionCallback responseCompletionCallback)
This method is executed within the flow so if it fails it will trigger the exception strategy.
flowExecutionResponse - the result of the flow executionparameters - the resolved set of parameters required to send the response.errorResponseParametersFunction - function that generates the error parameters to be sent in the case of a failure.responseCompletionCallback - callback to be used for notifying the result of the operationorg.reactivestreams.Publisher<Void> sendFailureResponseToClient(MessagingException exception, Map<String,Object> parameters, ResponseCompletionCallback responseCompletionCallback)
exception - exception thrown during the flow execution.parameters - the resolved set of parameters required to send the failure response.responseCompletionCallback - callback to be used for notifying the result of the operationvoid sendAfterTerminateResponseToClient(Either<MessagingException,Event> either)
either - that communicates the result of the flow execution.
Event if the execution finished correctlyMessagingException if an error occurred during the executionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.