2022.2

Table Of Contents
completion of the PlanetPress Workflow process (for instance, if the process creates a PDF and
sets it as the current job file, the PDF is the file that gets returned to the calling SOAP client).
Note:
l
The SubmitJob method only returns a file if the PlanetPress 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 PlanetPress Workflow preferences.
SubmitJobInfStruc
Structure containing any required information to prepare the file for a valid insertion into a PlanetPress
Workflow 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
PlanetPress Workflow scripting offers a number of methods of communicating with your process by
means of PlanetPress 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;
Page 129