2022.1

Table Of Contents
Watch.Log "Current Date is: " + s, 2
Python
s= Watch.ExpandString("%y-%m-%d")
Watch.Log("Current Date is: " + s, 2)
Perl
$s = $Watch->ExpandString("%y-%m-%d");
$Watch->Log("Current Date is: " . $s,2);
Watch.GetConnectToken
The Watch.GetConnectTokenmethod uses the default Connect Server host as defined in the
Workflow preferences (see "OL Connect preferences" on page793) to log into the Connect
Server and retrieve an authorization token.
Syntax
Watch.GetConnectToken()
Return value
The method returns a JSON structure like the following:
{
"host": "localhost",
"port": 1234,
"token": "fdjhfds89r378cm034573890mc3y893r092p",
"method": "basic"
}
where:
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.GetConnectToken();
Page 164