This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Drop Mediator
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, message is dropped, after it is sent to the endpoint. This will prevent message being sent twice from the in-path.