2022.2

Table Of Contents
Watch.GetVariable
Returns the string value of the corresponding variable name. Note that if an undeclared variable is
called using this method, an error will be generated.
Syntax
Watch.GetVariable(Name: String): String
Example
JavaScript
var s;
s = Watch.GetVariable("MyVariable");
Watch.Log("MyVariable's value is: " + s, 2);
s = Watch.GetVariable("global.MyVariable");
Watch.Log("Jobinfo 3's value is: " + s, 2);
VBScript
Dim s
s = Watch.GetVariable("MyVariable")
Watch.Log "MyVariable's value is: " + s, 2
s = Watch.GetVariable("global.MyVariable")
Watch.Log "global.MyVariable's value is: " + s, 2
Python
s = Watch.GetVariable("MyVariable")
Watch.Log("global.MyVariable's value is: " + s, 2)
Perl
$s = $Watch->GetJobInfo(3);
$Watch->ShowMessage("global.MyVariable's value is: " . $s, 2);
Watch.InstallResource
The Watch.InstallResource(path) method copies or unpacks a resource, such as a Connect
Designer template, Data Mapping Configuration, or package file, from the supplied path to the Connect
resources folder (%PROGRAMDATA%\Objectif Lune\PlanetPress Workflow 8\PlanetPress
Watch\OLConnect).
If a file already exists, it will be overwritten.
The original resource file, which is processed by this functionality, will not be deleted or altered in any
way.
Page 141