isInImportedContext

isInImportedContext(): Boolean;

The isInImportedContext method of the Process class returns true if the current (executing) process has invoked the current method from a package (that is, a method in a imported package is being executed) or it returns false if the current method is defined in the local schema branch of the main application (process).

Use this method to write conditional code based on whether a method is being executed by a process that imports the package or by an application running from the schema that implements the package (for example, in situations in which both exported classes and local applications share common code).