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.) JADE does not initialize any packages for RootSchema applications running in user schemas, including unit tests run using the JADE Unit Test framework and the default RPS Datapump application in the RootSchema. If you require this initialization, you must initialize packages in your application code (using the Process class initializePackages and finalizePackages methods).

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.