To make the process of message mediation feasible, create a sequence and add mediators to it.
Follow the instructions below to add a new mediator to a sequence in WSO2 ESB.
1. Sign In. Enter your user name and password to log on to the ESB Management Console.
2. Click on "Main" in the left menu to access the "Manage" menu.
3. In the "Manage" menu, click "Sequences" under "Service Bus."
...
Info |
---|
When adding mediators to a sequence, if you get the error "Error in loading the mediator design view", your session has expired and you must log in again. To prevent losing any work if your session times out, be sure to save your sequence periodically. |
- On the Main tab in the ESB Management Console, navigate to Manage -> Service Bus and click Sequences.
- Select the tab where your sequence is located:
- Defined Sequences - Shows sequences saved in the Synapse configuration.
- Dynamic Sequences - Shows sequences saved in the
...
5. Select the necessary sequence and click on the "Edit" link to open the "Edit Sequence" window.
6. In the "Sequence" pane, click on the "Add Child" button.
7. Choose the necessary category and mediator from the drop-down menu.
In the example below, the "In" mediator from the "Filter" category was chosen.
- Click Edit for the sequence where you're adding the mediator. For example, the following illustration shows how to edit the
test
sequence. - In the sequence tree, do one of the following:
- To add the mediator at the root level, click Add Child next to Root.
- To add the mediator under or after an existing node in the tree, click that node, and click Add Child or Add Sibling.
- Select the type of mediator you want to add. For example, to create an In mediator, click Filter -> In.
In the configuration pane that appears below the sequence tree, set the properties for the mediator, and then click Update. You can define a mediator's properties using
...
the controls in the user interface (design view) or by configuring the XML (source view). For detailed information about mediator properties, see Mediators
...
9. Click "Save" or "Apply" to add a mediator to a sequence.
OR
...
and click the name of the mediator you are adding.
The new mediator appears in the
...
sequence tree.
...
...
hidden | true |
---|
- Save the sequence.