Using predefined reusable elements after importing
In UNICOM® Digital Transformation Toolkit (UDTT™) definition files, you can use an <import> tag to reuse the elements defined in reusable UDTT definition files.
Prerequisite
You need to have a reusable UDTT definition file that contains reusable elements. And you have a new UDTT definition file that imported the reusable file by using the <import> tag.
Example 1: Direct importing
First, define a reusable definition file the following. Then import this file:
This example instantiates a context with an inner context containing a bean collection and assigns value to one of the inner collection's elements. Use the following code in data-import.xml to define the data element customerBean:
Instantiate a context with an inner context contained a set of hierarchical reusable elements and assign value to one of the inner collection's elements.
Address definition in address.xml, the definition is as following: