2021.2

Table Of Contents
The arguments contain the Connect Server settings (see "OL Connect preferences" on
page786), in the form of strings (host, username and password) and a number (port).
Return value
The method returns a JSON structure containing the host, port, token and authentication
method. For example:
{
"host": "localhost",
"port": 1234,
"token": "fdjhfds89r378cm034573890mc3y893r092p",
"method": "basic"
}
l host is the host or IP address of the server.
l port is the TCP port number.
l token is the authentication token.
l method is the authentication method; currently, only basic is supported.
Examples
JavaScript
Watch.GetConnectTokenEx("localhost", 1234, "myUser", "secret");
VBScript
Watch.GetConnectTokenEx "localhost", 1234, "myUser", "secret"
Python
Watch.GetConnectTokenEx("localhost",1234,"myUser","secret");
Perl
$Watch->GetConnectTokenEx("localhost",1234,"myUser","secret");
Watch.GetJobFileName
Returns the complete path and file name of the job. This method is the same as PW_
GetJobFileName. getjobfilename() obtains the file name of a PlanetPress Workflow process.
This is useful for manipulating the job file, for example to replace data within it. If your script
writes to this file, the modified contents will be used by the next plugin in your process.
Page 165