uCosminexus Service Platform, Basic Development Guide

[Contents][Glossary][Index][Back][Next]

6.8.6 Notes on copying mapping definitions

Planned copying might not be executed depending on the schema contents of the copy source and destination. This section describes the notes on copying mapping definitions.

Organization of this subsection
(1) If multiple targets are to be copied
(2) If the mapping definition of the copy source is incomplete
(3) If multiple loop node functions are connected to 1 element
(4) When mapping target is restricted

(1) If multiple targets are to be copied

If all the conditions from 1. to 4. are applicable, copy targets are considered to be multiple targets.

Figure 6-42 Example of copy source and copy destination if multiple targets are to be copied

[Figure]

Conditions
  1. Multiple schemas are registered in the transformation-source schema of the copy source mapping definition
  2. A node with the same path exists in the transformation-source schema of the copy source mapping definition
  3. Mapping information includes the node of 2. in the copy source mapping definition
  4. A node with the same path as 2. exists in 1 transformation-source schema of the copy destination

The following figure shows the copy result for Figure 6-42.

Figure 6-43 Copy result if multiple targets are to be copied

[Figure]

(2) If the mapping definition of the copy source is incomplete

If the transformation-source and destination nodes are not connected and the copy source mapping definition is incomplete, only mapping of the transformation-destination node is copied and mapping of the transformation-source node is not copied.

The following figure shows an example of copying the mapping definition if the mapping definition of the copy source is incomplete.

Figure 6-44 Copying a mapping definition if the copy source mapping definition is incomplete

[Figure]

(3) If multiple loop node functions are connected to 1 element

If the mapping definition copy source is connected to multiple loop node functions in 1 simple content element or complex content element and if the mapping definition is copied, the loop node function is copied first. At this stage, if the Set mapping source dialog box appears, the display order of Path or function name in the copy destination might be different from the copy source. This does not affect the copy result of the mapping definition.

The following figure shows an example of copying mapping definitions if multiple loop node functions are connected to 1 element.

Figure 6-45 Copying mapping definitions if multiple loop node functions are connected to 1 element

[Figure]

(4) When mapping target is restricted

When element mapped in mapping definition file of copy source cannot be mapped in mapping definition file of copy destination, mapping of that element is not copied.

For details on the mapping target restrictions, see "6.4.8 Restricting mapping range".

Figure 6-46 FigureCopy of mapping when mapping target is restricted

[Figure]