getAllApps

getAllApps(apps: ApplicationArray input);

The getAllApps method of the Process class populates an array with all applications that are active in the process of the receiver. Use this method, for example, when you are working with imported packages to access all active forms across the main process Application object and all package Application objects.

As the main process Application object is always added to the array first, apps[1] is always the application of the main process when you call this method (when the apps parameter is empty before the call).

The array membership is Application, so your calling method can deal only with the application member objects at the RootSchema level. To access schema-specific Application subclass features, use a type guard or indirect access (for example, an Object class getPropertyValue or sendMsg method call). For details about type guards, see "Using Type Guards", in Chapter 1 of the JADE Developer’s Reference.

If you are using packages and you have two packages (for example, p1 and p2), the second package (p2) imports the first package (p1), and a third schema imports both the p1 and p2 packages, there will be two instance of app for the first package (p1); that is, one in the context of the importing schema and the other in the second p2 package.