Skip to main content
Version: 7.0

Launch events

A launch event occurs when one of the platform's components starts. For each launch event the platform provides a predefined action that runs as the event's handler; a developer plugs initialization logic into this handler.

ComponentHandlerWhen the event occurs
Application serverSystemEvents.onStarted[]Once per application server start, before the server begins accepting client connections.
Desktop clientSystemEvents.onDesktopClientStarted[]Once per desktop client launch, after the client has connected to the application server.
Web clientSystemEvents.onWebClientStarted[]Once per web client launch, after the client has connected to the application server.

The handlers are abstract actions of the sequential form declared in the system module SystemEvents. Application initialization logic is attached to them through action extension. After a handler runs, the platform applies its changes to the database itself.

Language

Handler implementations are added with the ACTION+ statement.

Examples

lastStarted 'Last server start' = DATA DATETIME ();

onStarted() + {
lastStarted() <- currentDateTime();
}

onWebClientStarted() + {
MESSAGE 'Welcome!';
}