class %IPM.ResourceProcessor.Copy
extends %IPM.ResourceProcessor.AbstractCompilable
parameter ATTRIBUTES = "Source,Overwrite,CompileAfter,Flags";
Comma-separated list of resource attribute names that this processor uses
parameter DESCRIPTION = "Resource processor to copy the specified resource from the (Source) database to the target namespace (respecting mappings configured for that namespace) during the Reload phase.";
Description of resource processor class (shown in UI)
property Overwrite
as %Boolean [ InitialExpression = 1 ];
If set to false (default is true), resources that already exist in the current/target namespace will not be overwritten.
property Source
as %String [ Required ];
Name of the namespace we are copying the resources from
method OnAfterPhase(pPhase As %String, ByRef pParams)
as %Status
method OnGetUniqueName(Output pUniqueName)
Returns a unique name for this resource.
Default implementation, leaving pUniqueName undefined, reverts to default behavior.
An empty string indicates guaranteed uniqueness (useful for folders relative to module root)
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.)
method OnResolveChildren(ByRef pResourceArray, pCheckModuleOwnership As %Boolean)
as %Status
method TargetSet(%val)
as %Status
Target