Universal Messaging 9.12 | Administration Guide | Universal Messaging Enterprise Manager | Administration Using Enterprise Manager | Scheduling | Universal Messaging Scheduling : Time Triggers Example
 
Universal Messaging Scheduling : Time Triggers Example

scheduler myTimers{
/*
Define some new timers
*/

declare Timer reportTimer ("myTimer");
declare Timer testTimer ("myDelay");

initialise{
testTimer.stop();
}

/*
In 60 seconds log a report and start the second timer
*/
when(timer == 60){
Logger.report("Timer has fired!");
testTimer.start();
}

/*
When the second timer hits 30 seconds, log it and reset all timers to do it again
*/

when(testTimer == 30){
Logger.report("Test dela fired, resetting timers");
testTimer.reset();
testTimer.stop();
timer.reset();
}
}

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