...
We propose to make the following API changes to support dynamic pattern changing in CEP.
Add PatternProcessorInterfacePatternProcessor Interface
The term "PatternProcessor" defines a certain pattern, how to match the pattern, and how to process the found matches. A pattern processor extends beyond a pattern to also include all the other relevant functions. As shown in the wireframe below, Process 1 and Process 2 are equivalent process.
The starting point of introducing "PatternProcessor" is trying to deal with situations like follows:
...