Deletions are marked like this. | Additions are marked like this. |
Line 118: | Line 118: |
|| '''Input Field''' || '''Database Field''' || '''Description''' || | ||<#cddeee> '''Input Field''' ||<#cddeee> '''Database Field''' ||<#cddeee> '''Description''' || |
Line 132: | Line 132: |
||<#cddeee> '''Document''' ||<#cddeee> '''Revision''' ||<#cddeee> '''Comment''' ||<#cddeee> '''System Response''' || ||<#e0ffff> None ||<#e0ffff> None ||<#e0ffff> None || Blank line ignored. || ||<#e0ffff> None ||<#e0ffff> None ||<#ffffe0> New || '''Warning:''' Comment ignored. || ||<#e0ffff> None ||<#ffffe0> New ||<#e0ffff> None || Revision ignored. || ||<#e0ffff> None ||<#ffffe0> New ||<#ffffe0> New || Revision ignored. Comment ignored. || ||<#e0ffff> None ||<#ffe0ff> Old ||<#e0ffff> None || Revision ignored. || ||<#e0ffff> None ||<#ffe0ff> Old ||<#ffffe0> New || Revision ignored. Comment ignored. || ||<#ffffe0> New ||<#e0ffff> None ||<#e0ffff> None || New document created. || ||<#ffffe0> New ||<#e0ffff> None ||<#ffffe0> New || New document created. '''Warning:''' Comment ignored. || ||<#ffffe0> New ||<#ffffe0> New ||<#e0ffff> None || New document created. New revision created. || ||<#ffffe0> New ||<#ffffe0> New ||<#ffffe0> New || New document created. New revision created. New comment created. || ||<#ffffe0> New ||<#ffe0ff> Old ||<#e0ffff> None || Impossible. || ||<#ffffe0> New ||<#ffe0ff> Old ||<#ffffe0> New || Impossible. || ||<#ffe0ff> Old ||<#e0ffff> None ||<#e0ffff> None || '''Warning:''' Cannot update document. || ||<#ffe0ff> Old ||<#e0ffff> None ||<#ffffe0> New || '''Warning:''' Cannot update document. '''Warning:''' Comment ignored. || ||<#ffe0ff> Old ||<#ffffe0> New ||<#e0ffff> None || New revision created. Document ignored. || ||<#ffe0ff> Old ||<#ffffe0> New ||<#ffffe0> New || New revision created. New comment created. Document ignored. || ||<#ffe0ff> Old ||<#ffe0ff> Old ||<#e0ffff> None || Revision updated. Document ignored. || ||<#ffe0ff> Old ||<#ffe0ff> Old ||<#ffffe0> New || Revision updated. Document ignored. '''Warning:''' Comment ignored. || |
Metadata Upload File Format
Contents
Introduction
This document describes the DrawMGT V11.1 Metadata Upload file format.
For a description of the DrawMGT V9.1 Metadata Upload file format, see Upload File Format V9.1.
Differences Between V11.0 and V11.1
DrawMGT V11.1 Format is compatible with V11.0 but contains two new fields:
- plannedTitle0
- title0
These fields are used to upload free text titles. These can only be used by Document Types that support free text and only as alternatives to the title fields that take code values:
- plannedTitle
- title
The field workFlowType has been removed in V11.1 as it is now derived from the Document Type. Data in this column will be ignored.
Metadata Upload File Format
The Metadata Upload file uses a simple spreadsheet format which contains columns and rows of data.
Each row represents a single record and may contain information about a document, revision and comment.
Each column represents the individual data fields used to build a database record.
Lines beginning with a '#' character are considered to be user information. These, as well as blank lines, are ignored by the Metadata Uploader.
The first row must contain column header information. The headers must match the column names described in the table in section 3.2. Metadata Uploader ignores data in columns that have misspelled or, otherwise don't match the header list and a warning is given. Thus, additional columns can be placed in the upload file and they will be safely ignored by the Metadata Uploader provided they do not conflict with the column names listed below.
All subsequent rows contain document, revision and comment data. Not all columns need to be defined. Again, section 3.2, describes which columns are required. This, however, is not a complete list and only describes requirements to pass system validation. The site may have additional validation requirements not described here. See the Site Documentation for additional information.
The column headers may be in any order. The data in each column should correspond be in the same order as the headers.
Column headers and values in all rows must be separated using a tab character.
The Metadata Upload format is identical to the Download with the exception that comment data is not included in the download.
The Download does, however, include the comment headers. Downloading an example document and revision may be a good way to create an upload file as this may be used as a valid format.
The upload is limited to 100 rows of data.
The Metadata Uploader sets any defaults defined in the system or site configurations. If a column is not defined in the file, the Metadata Uploader will just use these defaults. If a column is defined but the value is blank, the Metadata Uploader will set the field to blank.
Planned fields (e.g. planned title and scale) are considered a special case. If a document planned field contains a value, this will be used as the default for revision record.
Upload Record Definition
Upload Record Components
The upload record consists of a series of fields which can be divided into three categories:
- Document definition fields
- Revision definition fields
- Comment definition fields
A single document, revision and comment may be created in one upload record. Alternatively a revision can be updated. The following restrictions apply:
- Documents can be created, but existing documents cannot be updated.
- New revisions can be created or existing revisions can be updated.
- If a new revision is created, then a single comment can be created.
- Comments cannot be updated.
The presence or absence of fields in each category lead to a number of possibilities. Section 5 lists all the possibilities and the system's response.
Upload Record Fields
The following tables describe the fields handled by the Metadata Uploader and displays the following information:
- Column Name: The name used as the header
- Data Type: The expected data type and maximum length of the field
- Req: Required (Y or N)
- Form Field Mapping: The name used on the form if it differs from the column header
- DB Field Mapping: The database field name
- Ref. Data: The lookup used in the Reference Data to validate and store the reference value
- Notes: Additional Notes
ADD TABLE HERE
Field Values
This section defines the formats and values acceptable for each field.
Drawing Code Syntax
Please refer to the drawing code syntax documentation for the site specific drawing code formats.
Date Field Values
Dates must be specified in YYYY-MM-DD format. Notes:
- Plan dates must occur in order. E.g.:
Start Date <= Design Plan Date <= Check Plan Date <= Approve Plan Date <= Submit Plan Date
- Complete dates must occur in order. E.g.:
Design Complete Date <= Check Complete Date
- Plan dates are independent of complete dates.
- No gaps may appear in the series of complete dates. If a date is specified, then all date fields before it must also be specified. I.e. if a date field is left blank, then date fields that follow it must also be left blank.
Initials Field Values
Initials must be specified exactly as defined in the initials column of the users list. Note that the initials include a '/' and a company designation. See the user's list (select from the left hand menu) for the actual values.
ID & Code Values
The following field requires a numerical value:
Input Field
Database Field
Description
commentTypeId
Comments.commentTypeId
Currently supports:
1 = Request for Comment (RFC)
2 = Drawing Comment (DWG)
All other database reference table fields are handled using the reference data type defined in section 3. For example, approval status uses the 'code' reference data value. Therefore, setting the value in column approval1Status to "0" will set the revision to "Open".
For a complete list of reference data ID values and codes, please consult the Reference Data List.
Upload Record Types
This section lists all the possible combinations of upload records and the system's response to them.
Upload Record Types and System Response
The following tables describes the system's response to all possible combinations of documents, revisions and comments. The exact meaning of none, new and old is described in the next section.
Document
Revision
Comment
System Response
None
None
None
Blank line ignored.
None
None
New
Warning: Comment ignored.
None
New
None
Revision ignored.
None
New
New
Revision ignored. Comment ignored.
None
Old
None
Revision ignored.
None
Old
New
Revision ignored. Comment ignored.
New
None
None
New document created.
New
None
New
New document created. Warning: Comment ignored.
New
New
None
New document created. New revision created.
New
New
New
New document created. New revision created. New comment created.
New
Old
None
Impossible.
New
Old
New
Impossible.
Old
None
None
Warning: Cannot update document.
Old
None
New
Warning: Cannot update document. Warning: Comment ignored.
Old
New
None
New revision created. Document ignored.
Old
New
New
New revision created. New comment created. Document ignored.
Old
Old
None
Revision updated. Document ignored.
Old
Old
New
Revision updated. Document ignored. Warning: Comment ignored.