class %IPM.ResourceProcessor.Default.Global
extends %IPM.ResourceProcessor.Abstract
parameter ATTRIBUTES = "Global,Preserve";
Comma-separated list of resource attribute names that this processor uses
parameter DESCRIPTION = "Standard resource processor for global exports.";
Description of resource processor class (shown in UI)
property Directory
as %String(MAXLEN="") [ InitialExpression = "gbl/" ];
Directory relative to module root containing the exported resource.
Defaults to the resource's extension (lower-case) if unspecified.
property Global
as %IPM.DataType.GlobalReference;
Optional name of global within the file
property Preserve
as %Boolean [ InitialExpression = 0 ];
If set to 1, do not delete the global when the module is cleaned/uninstalled
method OnPhase(pPhase As %String, ByRef pParams, Output pResourceHandled As %Boolean = 0)
as %Status
Called as phase pPhase is executed for the resource. If pResourceHandled is set to true,
then the default behavior for that resource will be bypassed in the current phase.
Currently, this is only used in the Verify phase, because of different handling of intermediate error statuses.
TODO: Implement for standard database resources (.INC, .CLS, etc.)