Designing Intelligent Event Processor (IEP) Projects

Stream Input

The Stream Input operator enables you to convert incoming messages to a format that can be used in the event process.

In the property editor, you define a schema that consists of one or more attributes. For example, the schema could consist of two attributes: stock symbol and stock price. Each attribute has a data type, such as INTEGER or VARCHAR.

At runtime, the event process reads the incoming messages from the Normalized Message Router and creates a stream based on the schema that you defined.

You can connect the Stream Input operator to any operator that accepts stream input (for example, the Time Based Window operator).

ProcedureTo Create a Stream Input Operator

  1. Drag a Stream Input operator from the Palette to the Design view.

  2. Double-click the Stream Input operator.

    The property editor opens.

  3. If you want to change the default name, then change the value in the Name field.

  4. If you want to define the schema by adding attributes, then do the following:

    1. For each attribute in the schema, click Add Attribute and specify the name, data type, size (if applicable), and scale (if applicable). You can optionally enter a comment.

    2. To remove an attribute from the schema, select the attribute and click Delete.

    3. To move an attribute up or down in the schema, select the attribute and click Move Up or Move Down.

  5. If you want to define the schema by selecting an XML schema definition, then do the following:

    1. Click Select Schema.

    2. Select the element or type.

    3. Click OK.

  6. (Optional) Click the Documentation tab and supply notes on this component.

  7. Click OK.