This topic describes how to import containment relationships
with a CSV file.
Before you begin
You can import items into a container using a CSV file. However,
before completing these steps, make sure the container item that you
are adding items to has already been defined.
Procedure
- Configure the properties in Data_Export.properties, ClassMapping.properties,
and class_name.properties as
specified in Importing resource data to Location Awareness Services for WebSphere Sensor Events. In
the class_name.properties file,
in addition to the other necessary values, set the following values
for attribN:
- Enter attribN=EdgeLength to
map to the column in the CSV file that contains the item's edge length,
if it has been specified.
- Enter attribN=ContainerTagId to
map to the column of the CSV file that indicates the tag ID of the
container item.
- Enter attribN=removeFromContainer to
map to the column of the CSV file that indicates whether the item
should be removed from the container item. The value in the column
must be set to yes for the item to be removed.
- Then run the data import application, as specified in Importing resource data to Location Awareness Services for WebSphere Sensor Events.