ETL (Extract Transform Load) Pattern

Another pattern you can implement is ETL.

Using the following function you can implement dedicated queries that are strung together like beads on a thread, each listening for the output of the one before:

Query.Statement.assertEvent(statementName, e)

As a result you can process multiple streams of events in parallel.