This documentation is for WSO2 ESB version 4.5.1. View documentation for the latest release.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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.

  • No labels