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 | ||||
---|---|---|---|---|
|
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.
...
- In Eclipse, click the Developer Studio menu and then click Open Dashboard. This opens the Developer Studio Dashboard.
- Click Sequence on the Developer Studio Dashboard.
- Select Create New Sequence and click Next.
Specify a unique name for the sequence.
Info title Creating 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.- 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.
- Optionally, in the Advanced Configuration section, specify another sequence to run when there is an error and the endpoint where messages should be sent.
- 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.
- 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.
- In Eclipse, click the Developer Studio menu and then click Open Dashboard. This opens the Developer Studio Dashboard.
- Click Sequence on the Developer Studio Dashboard.
- Select Import Sequence and click Next.
- Specify the sequence file by typing its full path name or clicking Browse and navigating to the file.
- 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.
- In the Advanced Configuration section, select the sequences you want to import.
- 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.
...
- 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.
- Press Enter to accept the default name for now.
- In the Properties pane at the bottom of the window, click Static Reference Key, and then click the browse [...] button on the right.
- 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.
- 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.
- Navigate to the sequence you want, select it and click OK, and then click OK again.
...