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
The "main" and "fault" sequences are created and preconfigured automatically while installing 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.
- #To access the Sequence Editor
- To delete a mediator from a sequence
- To edit a mediator's properties
- To add a mediator to a sequence
- To add a child node to a mediator
- #To move the selected mediator
- To add the "On Error" sequence
- #To edit a sequence using XML
- #To enable/disable statistics
- #To enable/disable tracing
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. In the left "Service Bus" menu, under the "Service Bus" menu, click on "Sequences" to access the "Mediation Sequences" screen.
3. Select the tab where your sequence is located:
- Defined Sequences - Shows sequences saved in Synapse configuration.
- Dynamic Sequences - Shows sequences saved in Registry.
4. Locate a sequence to edit and click on the "Edit" link in the "Actions" column.
5. The "Design 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" or "Apply" to add "On Error Sequence."
Or
Adding On Error Sequence
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" or "Apply" to add "On Error Sequence."
Or
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:
See 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."
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.