Report Configurations
- Last UpdatedDec 01, 2024
- 1 minute read
Object\Report Pattern Matching
When a report is published to AVEVA Asset Information Management, it is done so in PDF format. Report Pattern Matching supports the definition of regular expressions, which are used to identify objects on the pdf, and then generate a corresponding EIWM file, containing associations between the identified objects, and the report being published.
Class Mapping
Class Mappings define the relationship between the object classes in the source and their corresponding AVEVA AIM class.
Report Specific Configurations
The output produced by the gateway for reports is, if pattern matching has been configured, and EIWM file containing the objects and associations generated by the gateway using Pattern Matching, and a PDF file.
Pattern Matching may be defined using regular expressions which the gateway uses to recognize text, such as Tags, on a report.
Example of Report Pattern Matching:
<?xml version="1.0" encoding="utf-8" ?>
<ConfigurationSettings>
<TemplateID Root="true" Applybehavior="concat(NAME, ' : Dataset')" />
<OutputFile File="ReportData.XML" DeleteExisting="false">
<Directory>DATASHTTYPE</Directory>
</OutputFile>
<InputFiles IncludeSubFolders="true">
<Files>
<Extension>pdf</Extension>
</Files>
<RegularExpression>
<Pattern From="[A-Z]\d{1,9}[A-Z]-" To="UNKNOWN" Separator="*" />
<Exclude>[/]\w+</Exclude>
<Expand>
<SubPattern>[A-Z]\d{1,9}[A-Z]</SubPattern>
<Char>@</Char>
</Expand>
<Replace>
<Original>[A-Z]\d{1,9}[A-Z]-</Original>
<Replacement>[A-Z]\d{1,9}[A-Z]</Replacement>
</Replace>
<Replace>
<Original>[A-Z]\d{1,9}[A-Z]</Original>
<Replacement>[/]\w+</Replacement>
</Replace>
<Insert Position="after">
<SubPattern>[/]\w+</SubPattern>
<String>$</String>
</Insert>
<Expand Interpolate="true">
<SubPattern>[A-Z]\d{1,9}[A-Z]</SubPattern>
<Char>-</Char>
</Expand>
</RegularExpression>
</InputFiles>
</ConfigurationSettings>