Apama 10.7.2 | Developing Apama Applications | Developing Apama Applications in EPL | Common EPL Patterns in Monitors | Factory pattern | Alternate factory pattern
 
Alternate factory pattern
The event:
event NewOrder {...}
The monitor:
monitor OrderProcessor {
   action onload() {
      on all NewOrder() as order spawn processOrder();
   }
   action processOrder() {
   ...
   }
}