This documentation is for WSO2 Enterprise Integrator version 6.1.1 . View documentation for the latest release.

All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
maxLevel3
minLevel3
locationtop
styleborder:1
locationtop
typeflat
separatorpipe

...

Syntax

...

The parameters available to configure the Clone mediator is as follows.

Parameter NameDescription
Clone IDIdentification of messages created by the clone mediator. This is particularly useful when aggregating responses of messages that are created using nested Clone mediators.
Sequential Mediation

This parameter is used to specify whether the cloned messages should be processed sequentially or not. The processing is carried based on the information relating to the sequence and endpoint specified in the target configuration. The possible values are as follows.

  • Yes: If this is selected, the cloned messages will be processed sequentially. Note that selecting True might cause delays due to high resource consumption.
  • No: If this is selected, the cloned messages will not be processed sequentially. This is the default value and it results in better performance.
Continue Parent

This parameter is used to specify whether the original message should be preserved or not. Possible values are as follows.

  • Yes: If this is selected, the original message will be preserved.
  • No: If this is selected, the original message will be discarded. This is the default value.
Number of Clones
Anchor
Add Target
Add Target

The parameter indicates the number of targets which currently exist for the Clone mediator. Click Add Clone Target to add a new target. Each time you add a target, it will be added as a child of the Clone mediator in the mediator tree as shown below.

Image Modified

Click Target to add the target configuration as described below.

Target configuration 
Anchor
Target
Target

...

The parameters available to configure the target are as follows.

Parameter NameDescription
SOAP ActionThe SOAP action of the message.
To AddressThe target endpoint address.
Sequence

This parameter is used to specify whether cloned messages should be mediated via a sequence or not, and to specify the sequence if they are to be further mediated. Possible options are as follows.

  • None: If this is selected, no further mediation will be performed for the cloned messages.
  • Anonymous: If this is selected, you can define an anonymous sequence for the cloned messages by adding the required mediators as children to Target in the mediator tree.
  • Pick From Registry: If this is selected, you can refer to a pre-defined sequence that is currently saved as a resource in the registry. Click either Configuration Registry or Governance Registry as relevant to select the required sequence from the resource tree.
Endpoint

The endpoint to which the cloned messages should be sent. Possible options are as follows.

  • None: If this is selected, the cloned messages are not sent to an endpoint.
  • Anonymous: If this is selected, you can define an anonymous endpoint within the iterate target configuration to which the cloned messages should be sent. Click the Add link which appears after selecting this option to add the anonymous endpoint. See Adding an Endpoint for further information.
  • Pick from Registry: If this is selected, you can refer to a pre-defined endpoint that is currently
saves
  • saved as a resource in the registry. Click either Configuration Registry or Governance Registry as relevant to select the required endpoint from the resource tree.
Info
titleNote

You can configure the mediator using XML. Click switch to source view in the Mediator window.

...

Code Block
XML
XML
<clone xmlns="http://ws.apache.org/ns/synapse">
   <target>
      <endpoint name="endpoint_urn_uuid_73A47733EB1E6F30812921609540392-849227072">
         <default />
      </endpoint>
   </target>
   <target sequence="test1" />
</clone>