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

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release