Import of Resource data
Resource data is imported for the classes defined in the model. The import process for a
resource can only create or update the resources of one class.
The resource data contains this information:
- Resource attributes (user or system)
- Resource default property values
- Parent resources
The field mappings provided to the import describe the values to be imported:
- Fields are specified in the
Class.<field>
format, whereClass
is the name of a Class existing in the model,<field>
is a named element attribute or default property for the class, for example:Products.name
refers to the name of the resource forProducts
Class.Products.unit
refers tounit
attribute for theProducts
Class.Products.shelf life (*)
refers to default property shelf life for theProducts
Class.
- Resource reference fields are provided as
Class.name
, whereClass
is the name of the referenced class. For example,Products.name
refers to the name of a resource for classProducts
.
These mapping types are applicable for importing resources:
Mapped field | Note |
---|---|
Class.attribute | Resource attribute (user or system) |
Class.default property (*) | Resource default property |
Parent Class.name | Parent resource references |
Component Class.name | Allocation resource references |
The referenced parent resources must exist before importing the resources that refer to the parent resources. These conditions are applicable for parent resource references:
- References to an Allocation resource must be provided through the related Allocation classes component references.
- References to non-existing resources display a warning message and the related resource is not imported.
Note: Import of resources for an Allocation class must specify the
resource references to the Allocation class components in the mapping.
These options can be used when importing resources:
- Overwrite Mode
- Indicates if all existing resources for the class must be deleted before importing.
- Stop On First Error
- Indicate that a warning or error related to the resource data must stop the import process. All the changes are discarded.
Note: If this option is not enabled, data problem (if any) is reported as
an error or warning, and the import process continues.