The purpose of the Maintenance Script is to clean records that can accumulate by millions and that over time cease to be relevant. This script cleans these records from the WFSessions table that stores the user sessions.
The way to run the maintenance program is as follows:
Execute the file apwfmaintenance.exe from a command line (Start - Run - cmd), for example:
C:\Models\<KB>\CSharpModel\Web\bin> apwfmaintenance.exe
Execute the file apwfmaintenance.dll from a command line (Start - Run - cmd), for example:
C:\Models\<KB>\NetcoreModel\Web\bin>dotnet apwfmaintenance.dll
Execute the following command from a command line (Start - Run - cmd):
java -cp "classpath" com.gxflow.apwfmaintenance
Example:
..\<application>\WEB-INF\classes>java -cp "..\com\gxflow";.;"..\lib\*"; com.gxflow.apwfmaintenance
The program should be executed on a daily basis, on moments of lower activity.
It is recommended to run the program automatically using a Task Scheduler.
This feature is available since GeneXus 16 upgrade 4.