Now you can set the scheduled task.
Task to archive today's editions
Create a batch file that calls the following from the Tera/Gn4/Bin folder:
srv4 wf_archiveToday
Cmd4 alternative
cmd4 –name archiveToday –username Administrator –password xxx
Task to archive editions by state
Create a batch file that calls the following from the Tera/Gn4/Bin folder:
Cmd4 schedwf –name Archive –username Administrator –password xxx
where xxx is the password of the Administrator.
After creating the batch file, assign it to a Windows scheduled task and have it run daily at your specified time.
In this example, every night at 2am it searches for any pages in the TESTCOMPLETE workstate, runs the archive process and changes the page workstate to ARCHIVED.