Running Business Processes and Composite Applications 10.5 | Running Business Processes and Composite Applications | Universal Messaging Administration Guide | Universal Messaging Enterprise Manager | Scheduling | Universal Messaging Scheduling : Realm Triggers Example
 
Universal Messaging Scheduling : Realm Triggers Example

scheduler realmSchedule {

declare Realm myRealm ("productionmaster");
declare Config myGlobalConfig ( "GlobalValues");

when (Realm.connections> 1000) {

Logger.report("Reached 1000 connections, setting max connections");
myGlobalConfig.MaxNoOfConnections(1000);

}

when (Realm.eventsSentPerSecond> 10000) {

Logger.report("Reached 10000 events per second, reducing max connection count by 100");
myGlobalConfig.MaxNoOfConnections("-100");

}


}

Copyright © 2019 | 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.