VWorks software calls the
TaskFinished method after a task is finished.
VWorks software passes a TaskFinishing XML block into the
sXML parameter of the
TaskFinished method.
The TaskFinishing XML block contains the TaskFinishing element and all its children. This XML block provides information about the task that is finished, including the names of all devices and locations used by the task.
The TaskFinishing element has two children:
Devices and
Locations. The
TaskFinishing 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 TaskFinishing XML element that is received by the plugin from
VWorks software as a string in the
sXML parameter of the
TaskFinished method.
VWorks software tells the plugin that the task named
Place plate at PlatePad ‑ 1 Stage is finished in the Main Protocol.
The plugin returns a HookResults XML block in the sResultXML parameter of the
TaskFinished 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
TaskFinished method. The plugin tells
VWorks software to write the following Info-type message to the Main Log: