Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can create a sequence in your ESB Ei Config project or in the registry and then add it right to that project's mediation workflow, or you can refer to it from a sequence mediator in the same ESB same Ei Config project or another project in this Eclipse workspace. 

...

Anchor
DynamicSeq
DynamicSeq
About dynamic sequences

WSO2 ESB Ei tooling allows you to create a Registry Resource project, which can be used to store Resources and Collections you want to deploy to the registry of a Carbon Server through a Composite Application (C-App) project. When you create a sequence, you can save it as a dynamic sequence in the Registry Resource project and refer to that sequence from the mediation flow. At runtime, when you deploy the CAR file with both the Registry Resource project and mediation flow, WSO2 ESB Ei looks up and uses the sequence from the registry.

...

  1. In Eclipse, click the Developer Studio menu and then click Open Dashboard. This opens the Developer Studio Dashboard.
  2. Click Sequence on the Developer Studio Dashboard.
  3. Select Create New Sequence and click Next.
  4. Specify a unique name for the sequence. 

    Info
    titleCreating a Main Sequence

    If you want to create the default main sequence that just sends messages without mediation, be sure to name it main, which automatically populates the sequence with the default in and out sequences.

  5. Do one of the following:
    • To save the sequence in an existing ESB Ei Config project in your workspace, click Browse and select that project.
    • To save the sequence in a new ESB Ei Config project, click Create new Project and create the new project.
    • To save the sequence as a dynamic sequence in a Registry Resource project, click Make this as Dynamic Sequence, specify the registry space (Governance or Configuration), click the Browse button at the top of the dialog box next to Save Sequence in and select the registry resource project, and then type the sequence name in the Registry Path box.
  6. Optionally, in the Advanced Configuration section, specify another sequence to run when there is an error and the endpoint where messages should be sent.
  7. Click Finish. The sequence is created in the sequences folder under the ESB Ei Config or Registry Resource project you specified, and the sequence is open in the editor.
  8. Add the endpoints and other sequences you want in this sequence and then click File > Save.

...

Follow these steps to import an existing sequence from an XML file (such as a Synapse configuration file) into an ESB Ei Config project.

  1. In Eclipse, click the Developer Studio menu and then click Open Dashboard. This opens the Developer Studio Dashboard.
  2. Click Sequence on the Developer Studio Dashboard.
  3. Select Import Sequence and click Next.
  4. Specify the sequence file by typing its full path name or clicking Browse and navigating to the file.
  5. In the Save Sequence In field, specify an existing ESB existing Ei Config project in your workspace where you want to save the sequence, or click Create new Project to create a new ESB Ei Config project and save the sequence there.  
  6. In the Advanced Configuration section, select the sequences you want to import. 
  7. Click Finish. The sequences you selected are created in the sequences folder under the ESB Ei Config project you specified, and the first sequence is open in the editor.

...

  1. Click Sequence Mediator on the tool palette, and then click the spot on the canvas where you want the sequence to appear in the mediation workflow.
  2. Press Enter to accept the default name for now.
  3. In the Properties pane at the bottom of the window, click Static Reference Key, and then click the browse [...] button on the right.
  4. In the Resource Key Editor, click Registry if the sequence is stored in the registry or Workspace if it's in another ESB Ei Config project in this Eclipse workspace.
  5. If you are trying to select a sequence from the registry and no entries appear in the dialog box, click the add registry connection button (the first button in the upper right corner) and connect to the registry where the sequence resides.
  6. Navigate to the sequence you want, select it and click OK, and then click OK again.

...