uCosminexus Service Platform, Basic Development Guide

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

6.8.5 Determining similarities

If mapping definitions are copied, the schema element of the mapping definition of the copy source and destination are compared and if the elements are similar, they are copied. If multiple elements are similar, they are copied in the priority order from the top. Priority according to which mapping is copied, is explained here.

Note
Functions that fulfill the following condition are not copied regardless of priority.
  • Functions that do not have transformation source node corresponding to sort conditions, among the Repeat functions for which sort condition is set
  • Functions that do not have transformation source node corresponding to linkage path, among the Repeat function for which linkage path is set
  • Functions that do not have transformation source node corresponding to conditions, among the Select function for which condition is set
Organization of this subsection
(1) Structure matching copy mapping
(2) Element name matching copy mapping

(1) Structure matching copy mapping

Following table describes the priority according to which mapping is copied when you copy mapping definition with the structure matching copy mapping.

Table 6-5 Priority order of copying mapping definitions

Priority order Schema logical name New path Element name
1 Y Y Y
2 -- Y Y

Legend:
Y: Matches.
--: Does not match.

(2) Element name matching copy mapping

Following table describes the priority according to which mapping is copied when you copy mapping definition with the element name matching copy mapping.

Table 6-6 TablePriority according to which mapping definition is copied (element name matching copy mapping)

Priority Element Path
Namespace Element name Namespace Element name
1 N N Y Y
2 N N N Y
3 Y Y N A
4 N Y N A
5 N A N A

(Legend)
Y: Matches
A: Partially matches
N: Does not match

In element name matching copy mapping, you must set such that conflict does not occur in the dependency relation of copied elements. Copy the transformation destination node for which dependency relation is set, by conforming to the following conditions.

Also, if node condition has been set in the following value, copy such that ancestor node for which conditions are set become the ancestor node of the transformation sauce node that is connection source between transformation destination node and function.