Creating a Destination and SimpleEvent from a StreamBase Schema

The StreamBase Channel in BusinessEvents requires a Simple Event definition in the BusinessEvents Project to match the corresponding schema definition in the StreamBase application.

    Procedure
  1. In BusinessEvents Studio Explorer, select File > New > Other > TIBCO Channel Wizards > StreamBase Destination and Event and click Next.
  2. In the StreamBase Event Details window, select the parent folder for the simple event, enter its name in the Name field and description in the Description field, and click Next.
    The StreamBase Schema Location Info window is displayed to specify the source location of the StreamBase Schema.
  3. Select the StreamBase schema source location:
    StreamBase Server - Select this option if you want to select the schema available on the StreamBase server. You can either enter the StreamBase server details or import it from an existing StreamBase channel.
    • Select the Populate server details from existing StreamBase Channel check box, if the BusinessEvents project already has a StreamBase channel with the StreamBase server details. Click Browse and select the required StreamBase channel. The server details are automatically populated from the StreamBase channel. Click Next.
    • Enter the StreamBase server details, see StreamBase Channel Configuration Properties.

      Optionally, select the Create new StreamBase Channel from Server details check box, if you want to create a new StreamBase Channel using the entered StreamBase server details. Click Next.

    StreamBase Named Schema - Select this option if you want to load the StreamBase schema from an SBAPP or SBINT file. The SBAPP file is an XML source file for an EventFlow application. Click Browse and select the .sbappor .sbint file from the local system. Click Next.
    Note: If the StreamBase Named Schema option is selected then only named schema and input stream schema are listed under StreamBase Scheme Selection page.
    If you have selected the Create new StreamBase Channel from Server details check box, the StreamBase Channel Details page is displayed; otherwise, the StreamBase Schema selection page is displayed.
  4. (Optional) In the StreamBase Channel Details page enter the channel details and click Next.
    OptionDescription
    Enter or select the parent folderEnter the name of the parent folder in the project or select the parent folder from the project tree.
    Channel nameName of the channel.
    DescriptionShort description for the channel.
    Destination NameOptional. Name of the destination to be created in the channel.

    The Client Type property of the destination is depended on the schema type.

    • Input schema type - Enquerer client type
    • Output schema type - Dequerer client type

    See StreamBase Destination Configuration Properties for more details about StreamBase destination properties.

    The StreamBase Schema selection page is displayed listing the available schemas from the source location.
  5. Select the StreamBase schema from the Available schemas list and click Finish.
    For a StreamBase Server source location, the schemas are retrieved from all input and output streams from the application. For a StreamBase Named Schema source location, the source SBAPP file is parsed and the named schema definitions are displayed.
    A new Simple Event is created, with properties defined from the Schema Structure of the selected schema. See Datatype Conversion for more details about mapping of StreamBase datatype to BusinessEvents datatype.