2022.2

Table Of Contents
l
The SubmitJob method only returns a file if the PReS Workflow process contains a SOAP
Input task.
l
If ReturnJobFile is set to true, the schedule options of the process should be set to a pool-
ing lower than four seconds, so the client application gets a timely response.
l
To return the file, the process must be completed before the timeout of the server occurs.
The Timeout option can be set in your PReS Workflow preferences.
SubmitJobInfStruc
Structure containing any required information to prepare the file for a valid insertion into a PReS Work-
flow process using SOAP.
l
VariableList: Array of complex type, containing pairs of variable name and variable value. The
list also contains the JobInfo variables.
l
VariableName: String
l
VariableValue: String
l
SOAPActionName: String containing the name of the Input SOAP task’s action name.
The Watch Object
PReS Workflow scripting offers a number of methods of communicating with your process by means of
PReS Workflow automation object's methods and functions. The automation object is available in all 4
languages through their own syntax - the examples provided here are for JavaScript.
Note: While the functions here are in mixed case to simplify reading, it's important to note that
some languages (especially JavaScript) are case-sensitive and will require the proper case.
Examples in this chapter will always use the proper case when relevant.
Here is a list of the methods and functions that are available to you through the automation object (or
"Watch" object). While these examples are all in JavaScript, you can click on any variable name to
open a page to see examples for each supported language.
Variable Name
Description
Example Usage (VBScript)
"Script.ReturnValue" on page145
Returns a boolean True or False value to a Workflow scripted condition
Script.ReturnValue = 1;
"Watch.ExecuteExternalProgram"
on page131
Calls and executes an external program in the command line.
Watch.ExecuteExternalProgram("lpr -S 192.168.100.001 -P auto c:\\myfile.ps", "c:\\", 0,
true);
Page 129