Designing Intelligent Event Processor (IEP) Projects

Replay Stream

The Save Stream and Replay Stream operators are intended to help you perform diagnostics. For example, you can use these operators when the output from an IEP Module project is not the expected output.

You first enable the Save Stream operator to begin saving an input stream to a database table. You then use the Replay Stream operator to replay the events that the Save Stream operator saved to the database table.

ProcedureTo Create a Replay Stream Operator

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

  2. Connect the output of the Replay Stream operator to any operator that accepts stream input (for example, the Stream Output operator).

  3. Double-click the Replay Stream operator.

    The property editor opens.

  4. Click Select Table.

    The Select Table which has Stream Events wizard appears.

  5. In step 1 of the wizard, do the following:

    1. Select the data source.


      Note –

      Data sources are configured in the Databases node of the Services window.


    2. Select the table where the events are being saved.

    3. Click Next.

  6. In step 2 of the wizard, do the following:

    1. Select the column or columns that you want to replay.

    2. (Optional) Add a condition to the Where Clause area (for example, amount > 100).

    3. Click Next.

  7. In step 3 of the wizard, do the following:

    1. Select the EMS_TIMESTAMP column.

    2. In the JNDI Name field, type the JNDI name of the database resource (for example, jdbc/iepseDerbyNonXA).

    3. Click Finish. The property editor displays the values that you specified.

  8. By default, the Preserve Last Fetched Record check box is selected. This setting indicates that if the event process is redeployed, then the operator starts retrieving records where it left off.

    If you leave the Preserve Last Fetched Record check box selected, then you must specify a table name in the Last Fetched Record Table field. This table will be created in the IEP database, not in the external database table.

    If you want the operator to go back to the beginning of the table instead, then clear the Preserve Last Fetched Record check box.

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

  10. Click OK.

    The Replay Stream operator reads events from the database table and sends the events to the next operator.