org.mule.execution
Interface FlowProcessingPhaseTemplate

All Superinterfaces:
MessageProcessTemplate
All Known Subinterfaces:
RequestResponseFlowProcessingPhaseTemplate, ThrottlingPhaseTemplate
All Known Implementing Classes:
AbstractTransportMessageProcessTemplate, HttpMessageProcessTemplate, HttpsMessageProcessTemplate

public interface FlowProcessingPhaseTemplate
extends MessageProcessTemplate

Template methods for MessageSource specific behavior during flow execution.


Method Summary
 void afterFailureProcessingFlow(MessagingException messagingException)
          Call when the processing of the message through the flow fails.
 void afterFailureProcessingFlow(MuleException exception)
          Call when the processing of the message through the flow fails in an exception strategy
 MuleEvent afterRouteEvent(MuleEvent muleEvent)
          Post processing of the routed MuleEvent
 void afterSuccessfulProcessingFlow(MuleEvent muleEvent)
          Call after successfully processing the message through the flow This method will always be called when the flow execution was successful.
 MuleEvent beforeRouteEvent(MuleEvent muleEvent)
          Pre processing of the MuleEvent to route
 MuleEvent getMuleEvent()
           
 Object getOriginalMessage()
           
 MuleEvent routeEvent(MuleEvent muleEvent)
          Routes the MuleEvent through the processors chain
 

Method Detail

getMuleEvent

MuleEvent getMuleEvent()
                       throws MuleException
Returns:
a MuleEvent created from the original message
Throws:
MuleException

getOriginalMessage

Object getOriginalMessage()
                          throws MuleException
Returns:
the original message
Throws:
MuleException

beforeRouteEvent

MuleEvent beforeRouteEvent(MuleEvent muleEvent)
                           throws MuleException
Pre processing of the MuleEvent to route

Parameters:
muleEvent -
Throws:
MuleException

routeEvent

MuleEvent routeEvent(MuleEvent muleEvent)
                     throws MuleException
Routes the MuleEvent through the processors chain

Parameters:
muleEvent - MuleEvent created from the raw message of this context
Returns:
the response MuleEvent
Throws:
MuleException

afterRouteEvent

MuleEvent afterRouteEvent(MuleEvent muleEvent)
                          throws MuleException
Post processing of the routed MuleEvent

Parameters:
muleEvent -
Throws:
MuleException

afterSuccessfulProcessingFlow

void afterSuccessfulProcessingFlow(MuleEvent muleEvent)
                                   throws MuleException
Call after successfully processing the message through the flow This method will always be called when the flow execution was successful.

Parameters:
muleEvent -
Throws:
MuleException

afterFailureProcessingFlow

void afterFailureProcessingFlow(MessagingException messagingException)
                                throws MuleException
Call when the processing of the message through the flow fails. This method will always be called when the flow execution failed.

Parameters:
messagingException -
Throws:
MuleException

afterFailureProcessingFlow

void afterFailureProcessingFlow(MuleException exception)
                                throws MuleException
Call when the processing of the message through the flow fails in an exception strategy

Parameters:
exception -
Throws:
MuleException


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.