The Drop Mediator stops the processing of the current message.
Syntax
The drop token refers to a <drop
> element, which is used to stop further processing of a message:
<drop/>
UI Configuration
none.
Usage Scenario
<definitions xmlns="http://ws.apache.org/ns/synapse"> <filter source="get-property('To')" regex=".*/StockQuote.*"> <send> <endpoint> <address uri="http://localhost:9000/services/SimpleStockQuoteService"/> </endpoint> </send> <drop/> </filter> <send/> </definitions>
In this scenario, the message is dropped after it is sent to the endpoint. This will prevent the message being sent twice from the in-path.