IVHooks interface : CompileComplete method

CompileComplete method
Event
A protocol was compiled.
Description
VWorks software calls the CompileComplete method after a protocol is compiled. The plugin tells VWorks software whether the protocol run should proceed if compiler errors occurred.
Syntax
 
HRESULT CompileComplete(
[in] BSTR sXML,
[in, out] BSTR* sResultXML
);
Parameters
 
[in] A Velocity11 XML element containing the number of errors and warnings that occurred during the compilation.
CompileComplete method input
VWorks software passes a Velocity11 XML element into the sXML parameter of the CompileComplete method. This XML element provides the number of errors and warnings that occurred during the compilation.
Velocity11 element
The Velocity11 element has the following attributes:
 
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 CompileComplete method input
The following sample code is a Velocity11 XML element that is received by the plugin from VWorks software in the sXML parameter of the CompileComplete method. VWorks software tells the plugin that no warnings or errors occurred when the protocol was compiled.
 
<CompileComplete Errors='0' Path='Protocol File - 1' Warnings='0' />
CompileComplete method output
The plugin returns a Velocity11 XML element in the sResultXML parameter of the CompileComplete method. This XML element provides the action to take if compiler error occurred.
Velocity11 element
The Velocity11 element has the following additional attribute:
 
Example of CompileComplete method output
The following sample code is a Velocity11 XML element that is returned to VWorks software by the plugin as a string in the sResultXML parameter of the CompileComplete method. The plugin tells VWorks software to allow the protocol to proceed, even if compiler errors occurred.
 
Action='AllowErrors' />