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/.

Editing a Mediation Sequence

You can change a sequence properties and its mediators through the Management Console UI or using XML. The "main" and "fault" sequences are created and pre-configured automatically when you install the EI, but you should edit them to suit your needs. Note that you should not rename a sequence once it has been created.

The following topics describe how to edit a sequence:

Accessing the Sequence Editor

Follow the instructions below to access the Sequence Editor in the Management Console.

1. Sign In. Enter your user name and password to log on to the Management Console.

2. Click "Main" in the left menu to access the "Manage" menu.

3. In the "Manage" menu, click on the "Sequences" under the "Service Bus."

4. Select the tab where your sequence is located:

  • Defined Sequences - Shows sequences saved in Synapse configuration.
  • Dynamic Sequences - Shows sequences saved in the Registry.

5. Locate a sequence to edit and click on the "Edit" link in the "Actions" column. If you have a long list of defined sequences, you can easily find a sequence by typing part or all of its name in the Search Sequence field and clicking the search icon.

6. The "Edit Sequence" page appears.

Moving a Mediator

Follow the instructions below to move a mediator in a sequence in the Sequence Editor.

1. Click on a mediator in the sequence tree.

2. Click on the arrow icon in the mediator menu to move the selected node up or down.

3. Click "Save," "Save as" or "Apply" to add "On Error Sequence."

Adding On Error Sequence 

The ESB profile of WSO2 EI executes the specified error handler sequence closest to the point where the error was encountered.

Follow the instructions below to add an "On error sequence" in the Sequence Editor.

1. Click on the "Governance Registry" or the "Configuration Registry" link to select a previously created sequence to be used on error.

2. In the displayed Registry window, select a sequence and click on the "OK" button.

3. Click "Save," "Save As" or "Apply" to add "On Error Sequence."

Configuring XML 

If you are familiar with the Synapse configuration language, you can edit the XML directly.

Follow the instructions below to edit a sequence using XML in the Sequence Editor.

1. Click on the "switch to source view" link to view the XML configuration of a particular sequence.

2. Edit the sequence using XML in the following window:

Note

When you are editing a sequence the name of the sequence should not be edited and the changes to the sequence name will not be effective.

3. Click "Save" or "Save As."

Enabling/Disabling Statistics 

Follow the instructions below to enable/disable statistics for a sequence.

1. In the "Mediation Sequence" page, click on the "Enable Statistics" or "Disable Statistics" links associated with a certain sequence. See Accessing the Sequence Editor to reach the "Mediation Sequence" page.

2. Statistics will be enabled/disabled for that particular sequence.

Enabling/Disabling Tracing 

Follow the instructions below to enable/disable tracing for a sequence.

1. In the "Mediation Sequence" page, click on the "Enable Tracing" or "Disable Tracing" links associated with a certain sequence. See Accessing the Sequence Editor to reach the "Mediation Sequence" page.

2. Tracing will be enabled/disabled for that particular sequence.