This section describes how to create a Transformation file (also know as a DTF file because it ends in the .dtf extension). In addition, this section describes how to add a Transformation method to the DTF file. Each Transformation method contains a single data transformation—the mapping and conversion of data from one format to another.
Data Transformations in business processes can be created in the following ways:
This section contains the following tasks:
To Create a Transformation File From the Menu Bar
Note: You must be active in a business process project, in order for Transformation File option to be available from the New File dialog box. (If the Application tab is not visible in WebLogic Workshop, choose View —> Application from the menu bar.)
The New File dialog box appears.
In the Design View, a graphical representation of the dataTrans Transformation file appears, as shown in the following figure.
In addition, a Transformation file (ending in the .dtf extension) is created. For this example, the Transformation file called dataTrans.dtf is created and is visible in the Application tab.
To Add a Transformation Method to Transformation File
A transformation method is created in the Transformation file.
The Transformation method in the Transformation file is created. This task does not however, create the XQ file to store the query. The XQ file is created in the following section. XQ files contain queries written in the XQuery language which end in the .xq extension.
In addition to transformation methods, user-defined Java methods can added to a Transformation file. (User methods are user-defined Java methods that can be called from XQuery code.) For instructions on adding a User method, see To Add a User Method to a Transformation File.
Note: You can also create transformation methods and user methods in the Design View of a DTF file, by dragging-and-dropping the Transformation Method and User Method icons, respectively from the Palette to the Design View.