VWorks software calls the
Abort method to terminate a specific asynchronous task or to terminate all currently executing asynchronous tasks.
The figure on page 41 shows a standard error dialog box.
When the user aborts a run in the Runset Manager, VWorks software calls the
Abort method to tell the plugin to terminate all currently executing asynchronous tasks. (All protocols in the run contain asynchronous tasks.)
VWorks software passes an Asynchronous Task Command XML block into the
AsyncXML parameter of the
Abort method.
The Asynchronous Task Command XML block contains the Command element and all its children. This XML block describes the asynchronous task to be terminated.
The following code shows a truncated Asynchronous Task Command XML block that is received by the plugin from
VWorks software as a string in the
AsyncXML parameter of the
Abort method.
VWorks software tells the plugin to terminate the asynchronous task named
Shake, whose plugin-generated asynchronous task ID is
1.
VWorks software passes an Asynchronous Task Command XML block into the
AsyncXML parameter of the
Abort method.
The Asynchronous Task Command XML block contains the Command element and one
AsyncParameters element. The
AsyncParameters element contains one
AsyncParameter element, which contains an
Async_TaskID parameter whose
Value attribute is
0.
The following code is an Asynchronous Task Command XML block that is received by the plugin from
VWorks software as a string in the
AsyncXML parameter of the
Abort method.
VWorks software tells the plugin to terminate all currently executing asynchronous tasks (the
Async_TaskID parameter’s
Value element is
0).