Saved Schemas View

The Saved Schemas view is a repository of saved schemas that you can drag into an EventFlow application or Properties view currently open in StreamBase Studio. The view is shared by all the projects in your workspace.

Deprecation Notice

The Saved Schemas view is deprecated and will be removed in a future release. Starting with release 7.2.0, you can no longer copy from a saved schema to an Edit Schema tab in the Properties view, and can no longer save the schema of an arc or component in the EventFlow Editor. You can still add schemas to the view in the view itself, import saved schemas exported from the Saved Schemas view of another Studio instance, and drag schemas from the view.

In place of saved schemas, use named schemas and the EventFlow Editor's Definitions tab.

Any changes to your Saved Schemas view are saved in your Studio workspace each time you exit StreamBase Studio.

Invoke the Saved Schemas view from the StreamBase Studio menu: click WindowShow ViewSaved Schemas.

Dragging and Dropping Schemas

You can drag a schema from the Saved Schemas view to:

  • Any Edit Schema grid in StreamBase Studio, including those in the Properties view of an operator, data construct, stream, or adapter. This is a fast way to populate the schema for newly added components. If you drag a saved schema onto an already populated Schema grid, StreamBase prompts to confirm that you want to replace the existing schema with the dragged one.

  • Any application outside of Studio that is enabled to receive dragged text. For a Windows example, you can drag a schema to Notepad, in which case the XML representation of the schema is pasted into Notepad. For a Linux example, you can drag a schema to a Terminal window or an OpenOffice document.

Schema Management Actions

The Saved Schemas view offers a range of actions with which you can manage saved schemas:

  • Sort the schema list: click the view's menu button to sort the list:

    1. Alphabetically by schema name.

    2. By field count, starting with the schema that has the fewest fields.

  • Add a schema:

    1. Either click the Add button in the view's toolbar, or right-click in the view and choose Add.

    2. In the Edit saved schema dialog, enter a schema name.

    3. Define each the schema's fields by using the toolbar Add or Remove buttons.

    4. Click OK to save the schema.

  • Edit a saved schema:

    1. Select the schema you want to change.

    2. Click the Edit button in the view's toolbar, or right-click in the view and choose Edit.

    3. In the Edit saved schema dialog, you can optionally change the schema name.

    4. In the Fields area, you can modify, add, or remove fields.

    5. Click OK to save the schema.

  • Remove a saved schema:

    1. Select the schema you want to remove.

    2. Click the Remove button in the view's toolbar, or right-click in the view and choose Remove.

  • Export a saved schema to your file system. You would typically do this to preserve one or more saved schemas before upgrading to a new StreamBase release, or to copy a set of saved schemas to another installation of StreamBase on another machine.

    1. Either click the Menu button in the view's toolbar and select Export, or right-click in the view and choose Export from the context menu.

    2. In the StreamBase Export dialog, select the schemas you want to export. You can expand and collapse schemas in the list to see their fields, to make sure you are selecting the right schemas.

    3. In the To file field, enter the path to a file you want to create. The file is not restricted to the Studio workspace, and can be any valid file system path.

    4. Click Finish.

    The file that is exported contains definitions for all selected schemas.

  • Import a schema from your file system. You would typically use this to transfer a set of saved schemas that you saved before upgrading StreamBase releases, or a set of schemas saved on a colleague's machine.

    1. Either click the Menu button in the Saved Schema view's toolbar and select Import, or right-click in the view and choose Import from the context menu.

    2. In the StreamBase Import dialog, click the Select button. In the Specify Source XML File dialog, navigate your file system to locate the schema file you want to import. Click OK.

    3. The StreamBase Import dialog displays all the schemas defined in the selected XML file. Select the check box for the schemas that you want to import.

    4. Click Finish. The selected schemas are added to your Saved Schema view.

  • Compare two saved schemas as described in Comparing Schemas.