Windows Server operating systems come with built-in job scheduling capabilities. Alternatively, third-party job scheduling software packages are available.
In either case, your job scheduling software will accept a program or script path and file name and optional arguments that specify the work that a scheduled job is to perform. So you can use LANSA Composer's dxstart.exe program in your job scheduling software to schedule a Processing Sequence run.
Firstly you need to save a Processing Sequence "shortcut" file that specifies the Processing Sequence to run and any parameter values to be used.
A Processing Sequence "shortcut" file is not a Windows shortcut, but rather it is a file on your file system with a .dxrun file extension. Such a file can be used with dxstart.exe to run a Processing Sequence. For more information, refer to:
Save a Processing Sequence "shortcut" file
You need to save the Processing Sequence "shortcut" file while running LANSA Composer on the server, rather than from a LANSA Composer client installation. This is necessary so that the "shortcut" file is configured to use the local (offline) LANSA Composer installation and database, rather than to connect to LANSA Composer server via TCP/IP.
Secondly you may need to edit the "shortcut" file to change default shortcut behaviours. For example, by default, the "shortcut" file will show LANSA Composer's Run Processing Sequence window and will display the Processing Sequence Log when complete. These are both behaviours you would typically not want when running the shortcut on your Windows Server via a scheduled task.
To edit the "shortcut" file, open it in a plain text editor such as notepad.exe, make your changes and save. In this illustration (using notepad++.exe), the values of the DXSHOWRUNDIALOG, DXSHOWLOGOK and DXSHOWLOGERROR elements have been changed so that the normal LANSA Composer windows are not shown:
Finally, you need to specify the program and arguments for the scheduled job in your job scheduling software. For example, you might specify the program and arguments as follows to run a Processing Sequence according to the my_shortcut_01.dxrun "shortcut" file:
"C:\Program Files (x86)\LANSA\LANSA Composer Server\X_Win95\X_Lansa\Execute\dxstart.exe"
/request=dxrun /shortcut="C:\My_ShortCuts\my_shortcut_01.dxrun"
Depending on the scheduling software you are using, entering this information to create the schedule entry may look something like this: