You can category the reusable element into different reusable
definition files to reuse them and to manage them. Read this topic
for information about how to create a reusable file.
About this task
Defining reusable elements in reusable BTT definition file
follows the same rule of defining elements in any other BTT definition
file. Here is an example of creating a reusable definition file:
Example
<data-import.xml>
<bColl id="customerBean" bean="com.ibm.btt.bean.test.Customer"></bColl
>
<kColl id="account">
<field id="loan" value=""></field>
<field id="money" value=""></field>
</kColl>
</data-import.xml>
In this example, the elements
customerBean and
account are
defined and can be reused in the future.
Note: - The content of the reusable definition file should follow XML
standards. Under this condition, you can use any file extension type
for the file.
- The name of reusable definition file should be clear and meaningful
so that it can be easily reused or managed.
What to do next
The next step is to import the reusable definition file that
you just created in a new file. For more information, see
Importing predefined BTT elements.