global

The global system variable references a global persistent object that is automatically created by Jade. There is a single global object for each schema, which is shared by all applications running from that schema.

You can use the global object as a means of exchanging information between applications or to retain information in a persistent form beyond the lifetime of a specific application.

The global object is an instance of the Global subclass for the current schema. This class is created automatically by Jade when a schema is created and it inherits from the Global subclasses of all superschemas. For example, consider an application that must record its most recent start-up time on the global object. The following attribute has been added to the Global subclass.

startupTime : TimeStamp;

Additionally, the initialize event method in the following example has been implemented.

initialize() updating;
vars
begin
    beginTransaction;
    global.startupTime := app.actualTime;
    commitTransaction;
end;