2022.1

Table Of Contents
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.
The Workflow process will wait for the file(s) to be unpacked or copied to the Connect
resources folder, so that the next plugin in line that uses an installed resource will have the
latest, up-to-date version of the file.
Files in the Connect resources folder are visible in Workflow's Configuration Components pane
under Connect Resources (see "Connect resources" on page40).
Syntax
Watch.InstallResource(path)
path
A string containing the resource path.
Examples
JavaScript
Watch.InstallResource("c:\\myfile.ol-package");
Page 170