public class FirstSuccessfulRoutingStrategy extends AbstractRoutingStrategy
MessageProcessor
until
one is successfully executed.
The message will be route to the first route, if the route execution is successful then
execution ends, if not the message will be route to the next route. This continues until a
successful route is found.Modifier and Type | Field and Description |
---|---|
protected ExpressionFilter |
failureExpressionFilter |
logger, magicProperties
Constructor and Description |
---|
FirstSuccessfulRoutingStrategy(MuleContext muleContext,
String failureExpression,
org.mule.routing.FirstSuccessfulRoutingStrategy.RouteProcessor processor) |
Modifier and Type | Method and Description |
---|---|
MuleEvent |
route(MuleEvent event,
List<MessageProcessor> messageProcessors)
Routes
MuleEvent through a set of MessageProcessor |
assertNonConsumableMessage, cloneMessage, cloneMessage, createEventToRoute, getMuleContext, propagateMagicProperties, sendRequest, validateMessageIsNotConsumable
protected ExpressionFilter failureExpressionFilter
public FirstSuccessfulRoutingStrategy(MuleContext muleContext, String failureExpression, org.mule.routing.FirstSuccessfulRoutingStrategy.RouteProcessor processor)
muleContext
- failureExpression
- Mule expression that validates if a MessageProcessor
execution was successful or not.public MuleEvent route(MuleEvent event, List<MessageProcessor> messageProcessors) throws MessagingException
RoutingStrategy
MuleEvent
through a set of MessageProcessor
MessagingException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.