Set Task Parameter
This feature allows you to set a task parameter from an external program, script, batch file, or commandline.. Select the task and parameter value from the drop down box. The commandline and working directory required to set the task parameter will be automatically generated in the text fields. In the commandline code, you would need to replace the term 'parameter_value' with the value you need for this parameter. You can use the "Copy to Clipboard" feature to copy these fields to clipboard for use in your scripts or programs.
IMPORTANT: The user interface should be closed for this to work correctly. If the user interface is open and the user then changes any setting related to the Task Table, the changes made from the external program will be overwritten
Batch or script file example:
cd [working_directory]
[commandline]
where [working_directory] and [commandline] are generated automatically in the Task Runner fields.
Example (on windows):
cd c:\Data\Java\Automize
"C:\program files\Automize\jre\bin\javaw.exe" -cp .;inputs;jclasses.jar SetParameter Message 1 parameter_value
External program:
Use this commandline from your external program to launch the task. Make sure that you also enter the working directory, or the Java executable will not be able to find the required classes.
From within Automize:
Use this commandline from the Command or Windows Command tasks to set the task parameter. Make sure that you also enter the working directory, or the Java executable will not be able to find the required classes.