VWorks software calls the
TaskStarting method after a task starts.
VWorks software passes a TaskStarting XML block into the
sXML parameter of the
TaskStarting method.
The TaskStarting XML block contains the TaskStarting element and all its children. This XML block provides information about the task that started, including the names of all devices and locations used by the task.
The TaskStarting element has two children:
Devices and
Locations. The
TaskStarting element has the following attributes:
The Devices element contains one or more
Value elements.
Each Value element contains the name of a device used by the task. This element has the following attribute:
The Locations element contains one or more
Value elements.
Each Value element contains the name of a location used by the task. This element has the following attribute:
The following sample code is a TaskStarting XML element that is received by the plugin from
VWorks software as a string in the
sXML parameter of the
TaskStarting method.
VWorks software tells the plugin that the task named
Place plate at PlatePad ‑ 1 Stage started in the Main Protocol.
The plugin returns a HookResults XML block in the sResultXML parameter of the
TaskStarting method. For information about the structure and contents of this XML block, see
“HookResults XML block” .
The following sample code is a HookResults XML block that is returned to VWorks software by the plugin as a string in the
sResultXML parameter of the
TaskStarting method. The plugin tells
VWorks software to write the following Info-type message to the Main Log: