IVHooks interface : ProtocolPaused method

ProtocolPaused method
Event
The scheduler is paused.
Description
After the scheduler is paused, VWorks software calls the ProtocolPaused method to notify the plugin of the state of the scheduler.
Syntax
 
HRESULT ProtocolPaused(
[in] BSTR xXML,
[in,out] BSTR* sResultXML
);
Parameters
 
[in] A ProtocolPaused XML element that contains the state of the scheduler when VWorks software called this method.
ProtocolPaused method input
VWorks software passes a ProtocolPaused XML element into the xXML parameter of the ProtocolPaused method. This XML element provides the state of the scheduler when VWorks software called the ProtocolPaused method.
ProtocolPaused element
The ProtocolPaused element has the following attribute:
 
0 = Paused. The scheduler is paused, so protocols have temporarily stopped running.
1 = Continued. The scheduler is now running the previously paused protocols.
2 = Aborted. The scheduler is about to abort the currently running protocols.
Example of ProtocolPaused method input
The following sample code is a ProtocolPaused XML element that is received by the plugin from VWorks software as a string in the xXML parameter of the ProtocolPaused method. VWorks software tells the plugin that the scheduler is paused, so protocols have temporarily stopped running.
 
<ProtocolPaused PauseType='1' />
ProtocolPaused method output
The plugin returns a HookResults XML block in the sResultXML parameter of the ProtocolPaused method. For information about the structure and contents of this XML block, see “HookResults XML block” .
Example of ProtocolPaused method output
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 ProtocolPaused method. The plugin tells VWorks software to write the following Info-type message to the Main Log:
The scheduler is paused.
 
<HookResults>
<Results>
<HookResult ResultType='Log Message'
ResultValue='The scheduler is paused.' />
</Results>
</HookResults>
Related information