WSO2 ESB - Clone Mediator

Clone Mediator

As the name suggests clone meditor can be used to clone a message in to several messages.

The clone mediator closely resembles the Message Splitter EIP and will split the message into number of identical messages which will be processed in parallel. The original message cloned can be continued or dropped depending on the boolean value of the optional 'continueParent' attribute. Optionally a custom 'To' address and/or a 'Action' may be specified for cloned messages.

Syntax

 <clone [continueParent=(true | false)]>
   <target [to="uri"] [soapAction="qname"] [sequence="sequence_ref"] [endpoint="endpoint_ref"]>
     <sequence>
       (mediator)+
     </sequence>?
     <endpoint>
       endpoint
     </endpoint>?
   </target>+
 </clone>

UI Configuration

Figure 1: Clone mediator options

Clone mediator field descriptions,

Figure 2: Adding a clone target

For more information about target refer Target.