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

Editing a Mediation Sequence

The "main" and "fault" sequences are created and pre-configured automatically while installing the ESB. You can adapt existing sequences for your needs. 

You can change the sequence properties and its mediators in UI or using XML. When you are editing a sequence, the name of the sequence should not be edited and changes to the sequence name will not be effective.

Accessing the Sequence Editor

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

1. Sign In. Enter your user name and password to log on to the ESB 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 Registry.

5. Locate a sequence to edit and click on the "Edit" link in the "Actions" column.

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 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:

Refer to Mediation Sequences to learn more information about the sequence XML configuration (elements and attributes). Edit your sequence according to the requirements.

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.