node

The node system variable references the current instance of the Node class (the workstation that hosts the execution of the current process).

One node object exists for each logical workstation connected to the server node workstation. There is one fixed server node and none or many client nodes. A node represents a workstation that hosts the execution of one or several processes and it contains a dictionary of the processes currently active in the node.

A node object is created for each JADE executable program that is running; that is, a workstation that is running two JADE applications has two node objects, or logical workstation connections to the server.

The following example writes out the user codes of all processes running on the current node.

vars
    proc : Process;
begin
    write "Processes running on " & node.name;
    foreach proc in node.processes do
        write proc.userCode;
    endforeach;
end;