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 {
   NewOrder order;
   action onload() {
      on all NewOrder():order spawn processOrder();
   }
   action processOrder() {
   ...
   }
}
Copyright © 2013-2015 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.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.