WSO2 ESB - Sequence Editor media="all" />

Sequence Editor

A sequence is the basis of message mediation. A sequence is a collection of mediators. Sequence editor allows creation of sequences from the UI. Sequences can be created as named sequences and refer later from other parts of ESB configuration. Some configurations expects sequences to be defined in the place they are used. We call this type of sequences inline sequences. Sequence editor is used in both these cases for creating a sequence.

Sequence List

Use the Mediation Sequences page to add new sequences or edit existing sequences. As shown in Figure,1 the sequence management section displays a list of existing sequences.

Figure 1: Mediation sequence management

In the navigator, under Manage/Mediation, click Sequences. The Mediation Sequences page appears.

The above options are turned off by default because they cause a severe performance degradation. Use these options only in a situation where you have to debug a particular problem.

Adding a Sequence

  1. On the Mediation Sequences page, click Add Sequence. The Design Sequence page appears.
  2. Enter a sequence name.
  3. Click Add Child, and select the required nodes for your sequence.

Figure 2: Add sequence design view

Editing a sequence

  1. On the Mediation Sequences page, click Edit. The Design Sequence page appears, displaying the selected sequence.
  2. Click on the node you want edit. The properties for that node will be displayed below.

Figure 3: Editing a sequence

Figure 4: Editing node specific properties

Click switch to source view to view the XML of the particular sequence. If you're familiar with the Synapse configuration language you can edit the XML directly. After editing you can save the sequences by clicking the save button. If you click on swith to design view source will be saved before going to the graphical view.

Sequence source view

Figure 5: Source view of the sequence editor