Creating an Intelligent Event Processor Module Project
You must create a new Intelligent Event Processing project to create an intelligent
event processor.
Perform the following tasks to create project:
To Create an Intelligent Event Processing Project
- Choose File > New Project.
- Select SOA from Categories.
- Select Intelligent Event Processing Module from Projects, and click the Next button
- Input quotesIEP for the Project Name entry. If necessary, browse to the desired
directory to save the Project. Then click Finish.
- In the Projects window, expand the quotesIEP project node, right-click the Process Files node
and choose New > Intelligent Event Processor.
- Input quotes for the File Name field, and click Finish.
- The IDE does the following:
- Creates quotes.iep under the Source Packages > Default Package.
- Opens the quotes.iep file in the IEP design view.
- Opens the Palette.
To Add IEP Operators from the Palette to the Design Area
- Drag the Stream Input operator from the Input section of the Palette onto
the design area. If the Palette is not visible, from the Window menu,
choose the Palette item to display it.
- Drag the Tuple Based Window operator from the Stream Converter section of the
Palette onto the design area.
- Drag the Table Output operator from the Output section of the Palette onto
the design area.
- Connect the three operators by dragging lines between their ports; that is, connect
StreamInput0 to TupleBasedWindow0 to TableOutput0.
- To configure operator StreamInput0, double-click the StreamInput0 operator.
The Stream Input Property Editor appears, where you can add attributes to define the
incoming stream's data format.
- To add the first attribute, select the cell under the column header named
Attribute Name. Type Symbol.
- Select the cell under the column header Data Type. From the drop down
list select Varchar.
- Select the cell under the column header Size. Type 10.
- Click the Add Attribute button to add another Attribute. A blank row appears
below the Symbol attribute row.
- Type Price for column Attribute Name. Select Double for Data Type.
- Click OK to complete the task.
- To configure the operator TupleBasedWindow0 so that it will retain only the two
latest quotes, double-click operator TupleBasedWindow0.
The pop-up window called TupleBasedWindow Property Editor opens.
- In the Property Editor type 2 for the Size property and click OK.
- Double-click the operator TableOutput0 in the design area. The Table Output Property Editor
appears.
- Check property Is Global, and change the value of property Global Id to
Latest2Quotes. Click OK to finish this task.
- Click Save to save the IEP Process.
Note that once you save the IEP process, the IDE creates the IEP
WSDL file.