PatternProcessor
PatternProcessorDiscoverer
PatternProcessorManager
PatternStream
CEPOperator
PATTERN (A (B C*)+? D)
AFTER MATCH NO SKIP
a b+
a1b1b2b3
onEvent/ProcessingTime()
context.getEventsForPattern()
Pattern<Event, Event> pattern = Pattern.<Event>begin(\"acceptCoupon\").where(new StartCondition()).followedBy(\"addItem\").where(new MiddleCondition()).within(Time.minutes(5), WithinType.PREVIOUS_AND_CURRENT).notFollowedBy(\"pay\").where(new EndCondition()).within(Time.days(1));