Apama 10.3 | Apama Documentation | Developing Apama Applications | Developing Apama Applications in EPL | Defining Monitors | Spawning monitor instances | Specifying parameters when spawning
Specifying parameters when spawning
When spawning a monitor instance, you can pass parameters to an action. For example:
monitor m {
action onload() {
spawn forward("a", "channelA");
spawn forward("b", "channelB");
action forward(string arg, string channel) {
on all Event(arg) as e {
send e to channel;
on StopForwarding(arg) {

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.