forceOffUser

forceOffUser(node:    Node;
             process: Process) serverExecution;

The forceOffUser method of the System class requests the system object to force a sign-off operation for a specified process. The parameters of the forceOffUser method are listed in the following table.

Parameter Description
node Specifies the node to which the process belongs
process Specifies the process that is to be forced off

The following example shows the use of the forceOffUser method:

vars
    allNodes: NodeDict;
    allProcesses: ProcessDict;
    nod: Node;
    proc: Process;
begin
    allNodes := system.nodes.cloneSelf(true);
    foreach nod in allNodes do
        allProcesses := nod.processes.cloneSelf(true);
        foreach proc in allProcesses do
            if process.signOnUserCode = "John" then
                system.forceOffUser(nod, proc);
                return;
            endif;
        endforeach;
        delete allProcesses;
    endforeach;
    return;
epilog
    delete allNodes;
    delete allProcesses;
end;