
Role of VPLMPosMaskCompiler
Compiles all <mask_name> mask files located in:
<ENOVIAPlatformServer_WEB-INF>/classes/vplm/mask/<mask_name>
and generates a single <mask_name>.SecurityMask file.
The compilation result log is:
<output_directory>/result.log
This file contains:
- a tree of modelers hierarchy, with the associated mask file
- a summary of errors (sorted by modeler)
- a summary of errors (sorted by category).
If a FATAL error occurrs, the .SecurityMask file CANNOT BE USED.
HTML files are generated in the <html_directory> (if the -html option is used):
_index.html File
This file lists all processed modelers, alphabetically sorted, with the number of fatal errors, errors, and warnings (if any). If the modeler has a mask, there is a link to see it.

Modeler Overview
This view shows:
- the package hierarchy
- the index of entities
- an index table of errors, if some errors were encountered. A link to the highlighted source is provided
- Per entity and function, the html-simulated rendering.
Here is an annotated example for PLMProductDS mask:

Note that the tool does not account for attribute aliases.
This is a colored version of the mask source file, with errors highlighted:

The following table lists detected errors, their severity level and possible cause:
Severity
|
Message |
Comment and Action |
Warning |
Unknown command [%0] |
Command is ignored. Check misspelling error. |
Warning |
This Custo Package has no associated mask |
Any CUSTO-type modeler must have a mask file. Generate a mask file. |
FATAL |
Expected mask name %0, not %1 |
Command should have been: MASK %0 |
FATAL |
Entity %0 does not belong to package %1 |
ENTITY command is ignored; consequently, all related commands (ATTR, etc.) will fail. Check (a) misspelling error (b) valid metadata entity. |
Error |
Entity %0: attribute %1 was not predefined by ATTR command |
Attribute referenced by a FATTR command must be declared first by an ATTR command. |
FATAL |
Entity %0 has no %1 attribute |
ATTR command is ignored. Check (a) misspelling error (b) valid metadata attribute. |
Error |
Entity %0, attribute %1: mandatory property cannot be N while it is Y in metadata |
Command should have been: ATTR %1;Y;… |
FATAL |
Entity %0, attribute %1 : cannot use %2 value as an authorized value |
An enumerated set of values is defined on attribute %1 in metadata; value %2 must be chosen in this set (a) remove this VALUE command, or (b) modify the enumerated set of values in metadata |
Error |
Unexpected %0 function |
FUNC command is ignored. Check misspelling error. |
FATAL |
Entity %0: external-type %1 attribute is not allowed in %2 function |
IP Protection : external-type attributes cannot be set/modified in generic UI interfaces (CREATE or WRITE functions) Remove the corresponding FATTR command. (Note: there are some accepted exception to that rule: they appear as Warnings) |
Error |
Entity %0: MANDATORY %1 attribute cannot be set to NOT EDITABLE in CREATE function |
Command should have been : FATTR %1;Y |
Error |
Entity %0: attribute %1 whose protection is Read-only cannot be modifed in WRITE function |
IP Protection : external-type attribute cannot be modified in generic UI interfaces Command should have been : FATTR %1;N |
FATAL |
Unexpected boolean value %0 \: expected Y'or N |
Use either N either Y character, respectively for NO and YES |
Error |
Entity %0: cannot use attribute %1 in mask, as its protection flag (%2) denies it |
IP Protection : access to internal attributes is forbidden Remove the ATTR command (and all related FATTR commands) |
|
|
|
Examples
You have generated your mask file for the PLMProductDS modeler.
You have put this file in the:
docs/javaserver/vplm/mask/DEFAULT
directory of your runtime view. You will use one of the two following equivalent commands to compile the default mask files:
- VPLMPosMaskCompiler
- VPLMPosMaskCompiler -d <current_directory>
The DEFAULT.SecurityMask file is generated in <current_directory>.
Note:
no -html option was specified, so no html file was generated.