Enter Orders in the Alias field. Click the Define tab. Enter CustOrder in the Object Name field. Click the Expression Builder button and configure the Expression Builder as Click Save. Click the Plus Sign button. Enter NoApproval in the Object Name field.

3-28 Oracle Complex Event Processing Getting Started

17. Select orderid from the Partition By pull-down menu and click the Plus Sign

button to add this property to the PARTITION BY clause. This ensures that Oracle CEP evaluates the missing event query on each order.

18. Enter Orders in the Alias field.

This assigns an alias Orders for the pattern to simplify its use later in the query.

19. Click the Define tab.

The Define tab appears as Figure 3–12 shows. Figure 3–12 Pattern Configuration Dialog: Define Tab We will now define each of the conditions named in the pattern clause as Table 3–4 lists:

20. Enter CustOrder in the Object Name field.

21. Click the Expression Builder button and configure the Expression Builder as

follows see Figure 3–13 : ■ In the Variables list, double-click eventType. Table 3–4 Condition Definitions Condition Name Definition CustOrder orderChannel.eventType = ’C’ NoApproval NOTorderChannel.eventType = ’A’ Shipment orderChannel.eventType = ’C’ Oracle CEP Samples 3-29 ■ In the Operands list, double-click =. ■ After the = operand, enter the value ’C’. Figure 3–13 Expression Builder: CustOrder

22. Click Save.

23. Click the Plus Sign button.

The condition definition is added to the Object List as Figure 3–14 shows. 3-30 Oracle Complex Event Processing Getting Started Figure 3–14 Pattern Configuration Dialog: Define Tab With CustOrder Condition

24. Enter NoApproval in the Object Name field.

25. Click the Expression Builder button and configure the Expression Builder as

follows see Figure 3–13 : ■ In the Variables list, double-click eventType. ■ In the Operands list, double-click =. ■ After the = operand, enter the value ’A’. ■ Place parenthesis around the expression. ■ Place the insertion bar at the beginning of the expression, outside the open parenthesis. ■ In the Operands list, double-click NOT. Oracle CEP Samples 3-31 Figure 3–15 Expression Builder: NoApproval

26. Click Save.

27. Click the Plus Sign button.

The condition definition is added to the Object List.

28. Enter Shipment in the Object Name field.