Universal Messaging 10.3 | Administration Guide | Universal Messaging Enterprise Manager | Administration Using Enterprise Manager | Scheduling | Universal Messaging Scheduling : Configuration Example
 
Universal Messaging Scheduling : Configuration Example
scheduler myConfig {
/*
Declare local names for the Connection Config and the Logging Config configuration groups.
Can be used for both triggers and tasks
*/
declare Config myConnectionConfig ("Connection Config");
declare Config myLoggingConfig ("Logging Config");

/*
When this scheduler task is initialised, set the Realms log level to 2
*/
initialise{
myLoggingConfig.fLoggerLevel(2);
}

/*
Then if the log level is ever set to 0, automatically reset it to 2.
*/
when(myLoggingConfig.fLoggerLevel == 0){
myLoggingConfig.fLoggerLevel(2);
}

/*
If the maximum number of connections on the realm is less than 0,
implying no limit, then set it to 100.
*/
when(myConnectionConfig.MaxNoOfConnections <0){
myConnectionConfig.MaxNoOfConnections(100);
}
}