Import of Resource data
Resource data is imported for the classes defined in the class model. A single resource can only create or update resources for one class.
The resource data contains this information:
- Resource attributes (user attribute or system attribute)
- 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, whereClassis the name of a Class existing in the class model,<field>is a named element attribute or default property for the class, for example:Products.namerefers to the name of the resource forProductsClass.Products.unitrefers tounitattribute for theProductsClass.Products.shelf life (*)refers to default property shelf life for theProductsClass.
- Resource reference fields are provided as
Class.name, whereClassis the name of the referenced class. For example,Products.namerefers 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:
- Keep resources before importing
-
Indicates if all existing resources for the class must be deleted before importing. Possible values:
- On: Retains existing resources of the primary class, performs updates and creates new resources.
- Off: Deletes all the existing resources of the primary class and creates all new resources.
- 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 problems (if any) are reported as an error or warning, and the import process continues.