![]() |
When VWorks software calls an IVHooks method, the plugin can return the following XML metadata as a string in the output parameters:In some IVHooks methods, the plugin can return either an XML element or a HookResults XML block.The XML elements and XML blocks (other than the HookResults XML block) contained in the output parameters of IVHooks methods are defined in the methods that return them.The HookResults XML block contains the HookResults element and all its children. This XML block can do one or both of the following:
• Tell VWorks software to write a specified message to the Main LogAll HookResults XML blocks returned in the output parameter of IVHooks methods have the same structure, as defined in this section.The HookResults XML block has the following XML structure. The value of the file attribute for the Velocity11 element is MetaData.
In addition to the file, md5sum, and version attributes, the Velocity11 element contains the Action attribute for the following methods only:
ResultType/ResultValue The output to return to VWorks software.ResultType: The value LogMessage.ResultValue: A text string that describes the message.ResultType: The value LogError.ResultValue: A text string that describes the message.ResultType: The value PauseExecution.ResultValue: The value of this attribute must be True.
• Prepends a message string with Plugin pause: followed by a space and then writes the results to the Main Log as an Info-type message. The message is written to the log in the following format: 'Plugin pause: ' + ResultValueResultType: The value PauseMessage.ResultValue: A text string that describes the pause message.ResultType: The value AbortExecution.ResultValue: The value of this attribute must be True.
• Prepends a message string with Plugin abort: followed by a space and then writes the results to the Main Log as an Info-type message. The message is written to the log in the following format: 'Plugin abort: ' + ResultValueResultType: The value AbortMessage.ResultValue: A text string that describes the abort message.
Overview of IVHooks interface methods