Click Add Filter. Click Save. Click Save Query. Click and drag a Select icon from the CQL Constructs palette and drop it Click on the Filter icon and drag to the Select icon to connect the Oracle CQL Double-click the Select icon. Configure the Select as f

Oracle CEP Samples 3-53 Figure 3–39 Filter Expression Builder

18. Configure the Expression Builder as follows:

■ Select StockVolGt100 from the Select an Event Type pull-down menu to define the variables we can use in this expression. ■ Double-click the symbol variable to add it to the Expression Builder field. ■ Double-click in the Operands list to add it to the Expression Builder field. ■ Enter the value 1000 after the operand.

19. Click Save.

20. Click Add Filter.

The Query Wizard adds the expression to the Generated CQL Statement as Figure 3–40 shows. 3-54 Oracle Complex Event Processing Getting Started Figure 3–40 Filter Configuration Dialog: After Adding the Filter

21. Click Save.

22. Click Save Query.

Next we want to add a select statement.

23. Click and drag a Select icon from the CQL Constructs palette and drop it

anywhere in the Query Wizard canvas as Figure 3–41 shows. Oracle CEP Samples 3-55 Figure 3–41 Query Wizard: Select

24. Click on the Filter icon and drag to the Select icon to connect the Oracle CQL

constructs.

25. Double-click the Select icon.

The Select configuration screen appears as Figure 3–42 shows. 3-56 Oracle Complex Event Processing Getting Started Figure 3–42 Select Configuration Dialog We want to select price, symbol, and volume from our StockVolGt1000 stream.

26. Configure the Select as follows:

■ Select StockVolGt1000 from the Select a source pull-down menu. ■ Select the price property and click the Plus Sign button. The Query Wizard adds the property to Generated CQL Statement ■ Repeat for the symbol and volume properties. The Select configuration dialog appears as Figure 3–43 shows. Oracle CEP Samples 3-57 Figure 3–43 Select Configuration Dialog: Properties Selected

27. Click Save.

28. Click Save Query.

Finally, we will add an Output.

29. Click and drag an Output icon from the CQL Constructs palette and drop it

anywhere in the Query Wizard canvas as Figure 3–44 shows. 3-58 Oracle Complex Event Processing Getting Started Figure 3–44 Query Wizard: Output

30. Click on the Select icon and drag to the Output icon to connect the Oracle CQL

constructs.

31. Double-click the Output icon.