IVHooks interface : Aborted method

Aborted method
Event
A protocol run was aborted.
Description
VWorks software calls the Aborted method after a protocol run is aborted.
Syntax
 
HRESULT Aborted(
[in] BSTR sXML,
[in, out] BSTR* sResultXML
);
Parameters
 
[in] An Aborted XML element containing the file path of the protocol that generated the event.
Aborted method input
VWorks software passes an Aborted XML element into the sXML parameter of the Aborted method. This XML element provides the file path of the protocol that generated the event.
Aborted element
The Aborted element has the following attribute:
 
If the protocol has been saved, the value of this attribute is the protocol’s file path. If the protocol has not been saved, the value is the default protocol name.
Example of Aborted method input
The following sample code is an Aborted XML element that is received by the plugin from VWorks software as a string in the sXML parameter of the Aborted method. VWorks software tells the plugin that the protocol named Protocol File  1 was aborted.
 
<Aborted Path='Protocol File - 1' />
Aborted method output
The plugin returns a HookResults XML block in the sResultXML parameter of the Aborted method. For information about the structure and contents of this XML block, see “HookResults XML block” .
Example of Aborted method output
The following sample code is a HookResults XML block that is returned to VWorks software from the plugin as a string in the sResultXML parameter of the Aborted method. The plugin tells VWorks software to write the following Info-type message to the Main Log:
ProtocolFile - 1 was aborted.
 
<HookResults>
<Results>
<HookResult ResultType='Log Message'
ResultValue='ProtocolFile - 1 was aborted. />
</Results>
</HookResults>
Related information