interruptUser(node: Node; process: Process) serverExecution;
The interruptUser method of the System class causes a conditional interruption of a specified process. The parameters for the interruptUser method are listed in the following table.
Parameter | Specifies the… |
---|---|
node | Node to which the process belongs |
process | Process that is to be interrupted |
The target process, when interrupted, receives a continuable user interrupted execution-type exception. The following example shows the use of the interruptUser method.
vars node : Node; process : Process; begin foreach node in system.nodes do foreach process in node.processes do if process.signOnUserCode = "Wilbur" then system.interruptUser(node, process); break; endif; endforeach; endforeach; end;
The following example shows the handling of a conditional interrupt in an exception handler.
vars begin if exObj.continuable then if allowInterrupt then return Ex_Abort_Action; endif; return Ex_Continue; endif; end;