Skip to main content
Skip table of contents

t_Metadata_Resources_ModuleRef

ModuleRef

ModuleRefs allow you to include or exclude groups of resources based on namespace.

Properties

condition : string

The property to which the directive is applied.

The property specified here is typically set in the .environment file. It must be prefixed with "-Dnexj" if specified on the JVM command line.
Example


condition="reporting.enabled" ... reporting.enabled="true" or "-Dnexj.reporting.enabled=true"

directive : directive

A conditional directive determining the operation to apply to the property specified in "condition".

If the operation is set to "if" or "ifnot", the property can be null. "ifdef" means "if defined". "ifndef" means "if not defined". If the operation is set to either, the property must not be null.
Example


"if", "ifnot", "ifdef", "ifndef"

Valid values based on“string”.
if
ifnot
ifdef
ifndef
enabled : boolean

The default state of enablement. (default="true")

merged : boolean

module : identifier

The namespace value used to conditionally load resources based on an environment property.

Resources whose namespace starts with this value are included or excluded based on the results of the condition.

This property is called module because a common use case is to include or exclude an entire mixin based on the mixin model's .metadata "module" property, which namespaces all its resources with that name.

That said, it can be used to include or exclude any resources from any included model regardless of the source of the namespace prefix. i.e. .metadata module property or just folder structure

Example


module="reporting"
module="reporting:adhoc"

Valid values based on“string”.
:?[\p{L}_][\p{L}\p{N}_]*(:[\p{L}_][\p{L}\p{N}_]*)*

Value must begin with a letter or an underscore. Case and length are not restricted. Letters, numbers and underscores are allowed. Colon is used as a scope separator. Spaces and other punctuation characters are not allowed.

Parents

  • t_Metadata_Resources - Resources may be conditionally included or excluded from metadata loading based on command line or environment properties.

Parent topic: t_Metadata_Resources

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.