The DataHub Copy Data dialog allows you to copy data without synchronization. Copying data works like the copy and paste operation. If the node you want to copy does not have any default Schema Map, you must resolve any unmapped nodes through the Copy Data dialog.


To copy data from a source node to a target node


1. From the Operation drop-down list in Cameo DataHub Explorer, select Copy Data.



2. Drag a source node from Cameo DataHub Explorer to a target node in the MagicDraw Containment tree.

Copying data by dragging a source node to target

The Copy Data dialog opens.



3. Start mapping the source node attributes to target attribute types. You see the node color changing from a red circle to a green one, which means the node and its attributes have been mapped to a target type. The OK button becomes enabled at this point. Click OK to finish the copying process.


The functions in the Copy Data dialog are explained in the table below.

ComponentFunction
Mapping ModeSwitches between Individual Type Mapping and Group Type Mapping. The Mapping Mode drop-down list shows the default type that you selected through the Options dialog.
Source TreeSpecifies a data tree of the sources that are copied. You need to specify a target type for every source type.
Identifies a node whose source type has already been resolved.
Identifies a node whose source type needs to be resolved before copying.
Identifies the following items
    • a node that is not copied since the target type does not support any children.
    • a link that is not copied since the source and/or the target type does not support the link.

The following three rows are for the mapping mode option.

Define Target Type from Attribute Value

Maps by using the mode. If you select this mode, you need to define the values and specify the target types of each value in the provided table. This mode is enabled in Group Type Mapping only.

AttributeSelects an attribute of a source node and define its values and a target type. The selected attribute is not available to be mapped for the Source Attribute in the Schema Map table.
Define Value (below Attribute)

Defines the values of a selected attribute and the target type of each value. The table consists of the following columns

    • Default
      Specifies a default target type. If an attribute value does not match any mapped values when copying data or creating a relation, DataHub uses the default target type. 
    • Priority
      Specifies the priority of a target type. It is used when a defined attribute has multiple values. The first target type on the list has the highest priority and is always selected first in the mapping process.
    • Value
      Selects a value for a target type. If a selected attribute is an Enumeration, you can choose the values from the drop-down list.
    • Target
      Defines a target type for a selected value.

Quick search

Finds a particular type that contains the specific searched text.
Target Type treeShows all types that are allowed to be added according to the type you have selected in the Data Type tree.
Set as default target typeSets a selected target type to be default when the same mapping source attribute is selected next time.
Schema MapMaps source attributes with target attributes and use them in data synchronization. 

Edits a Schema Map by selecting the attributes in the provided Schema Map table.

Starts copying the selected target type and Schema Map.

Cancels the copying action.