The purpose of the Timer Control is to trigger Timer Events (see Timer Intermediate Event and Timer Start Event in BPD). If you don`t execute it, the Timer Events won't be triggered.
The Timer Scheduler is also used for this purpose but it executes once every certain amount of time as explained below.
So, to reflect the changes made with the Timer Events, the Timer Control must run to check when the Timer Events must take place. To execute it, you must do the following:
Execute the file apwftimerscheduler.exe from a command line (Start - Run - cmd), specifying the time (time unit: seconds) between runs, for example:
C:\Models\<KB>\CSharpModel\Web\bin> apwftimerscheduler.exe 60
Or you can execute from the directory (<KB>\CSharpModel\Web\bin) the apwftimercontrol.exe that executes once.
Execute the file apwftimerscheduler.dll from a command line (Start - Run - cmd), specifying the time (time unit: seconds) between runs, for example:
C:\Models\<KB>\CSharpModel\Web\bin>dotnet apwftimerscheduler.dll 60
Or you can execute from the directory (<KB>\CSharpModel\Web\bin) the apwftimercontrol.dll that executes once.
Execute the following command from a command line (Start - Run - cmd), specifying the time (time unit: seconds) between runs:
java -cp "classpath" com.gxflow.apwftimerscheduler 60
Or as follows to execute it just once:
java -cp "classpath" com.gxflow.apwftimercontrol
..\<application>\WEB-INF\classes>java -cp ".\com\gxflow";.;"..\lib\*"; com.gxflow.apwftimerscheduler 60
<application>/WEB-INF/classes$ java -classpath ./com/gxflow:"../lib/*": com.gxflow.apwftimerscheduler 60
In case that GAM is enabled in the KB, consider the following:
The location.gam and the application.gam files have to be located in the directory where the command is executed - in this example, in the "classes" directory.
Scheduling on production environments
Note that apwftimerscheduler calls once every certain amount of time the apwftimercontrol which actually checks for the deadlines and executes the corresponding events.
The apwftimerscheduler is especially useful when prototyping, but in production environments, the apwftimercontrol one recommended to be used. It's highly recommended to run the apwftimercontrol using a task scheduler and not the apwftimerscheduler.
For more information about how to schedule a task please see:
The Timer Control is available since GeneXus 16 upgrade 4.
Timer Start Event in BPD
Timer Intermediate Event in BPD