initializePackages

initializePackages() updating;

The initializePackages method of the Process class calls the Application object initialize event to perform any initialize function common to all applications containing packages before the application start-up form is invoked.

Normally, if you run an application from the schema, these are executed automatically. However, they are not executed when a JadeScript or a Workspace method is executed unless you call the initializePackages event method. (This maintains these interfaces in as light a weight as possible.) This also applies for a RootSchema application running in a user schema if package initialization has been disabled. For details, see the PackageInitializationDisabledApp<n> parameter in the [JadeServer] or [JadeClient] section of the JADE initialization file.

If your schema contains packages and you run a JadeScript or a Workspace method and you do not call this event, the imported packages application initialize event methods are not called and methods such as the Process class getAllApps method can therefore not return information about packages.

See also the Process class finalizePackages method.