Using Integration Controls

     Previous  Next    Open TOC in new window  Open Index in new window  View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

Dynamic Transformation Control

Control Instances

A Dynamic Transformation control provides a business process with the ability to dynamically select and implement a transformation during run time. Specifically, it provides the ability to choose which XQuery, XSLT, or MFL file is invoked at run time. For example, if you have an integration hub that receives documents from different regional offices, you can use the Dynamic Transformation control to perform different transformations based on the area code of each regional office.

For general information about using controls, see Using Controls in Business Processes.

 


Topics Included in This Section

Overview: Dynamic Transformation Control

Provides an overview of the Dynamic Transformation control.

Creating a New Dynamic Transformation Control

Describes how to create a new Dynamic Transformation control using the Oracle Workshop for WebLogic graphical design interface.

 


Overview: Dynamic Transformation Control

A Dynamic Transformation control provides a business process with the ability to dynamically select which transformation is invoked at run time.

This control provides eight base methods and the ability to create custom methods for selecting which file to use for your transformation. You can base the selection on the method context or the content of the message. The dynamic selection of the transformation is done through setting URIs that point to different transformation files. The available types of transformations are as follows:

The Dynamic Transformation control uses transformations that have already been created, such as those created with the Transformation control. Be sure to test your transformation before creating a Dynamic Transformation control. To learn more about Transformation controls and transforming data, see Transformation Data Using XQuery.

Before calling a Dynamic Transformation control, in the process of developing your business process, you need to design the logic that determines which transformation to run. You can use a Decision node or other controls, such as the Database or XML Metadata controls, for this purpose.

The Dynamic Transformation control provides the following methods:

Note: To learn about the available base methods, see Using the Base Methods in the Dynamic Transformation Control.

Related Topics

Transformation Data Using XQuery

 


Creating a New Dynamic Transformation Control

This topic describes how to create a new Dynamic Transformation control.

For information on where to add control instances in a business process, see “ Adding Instance of Controls to Your Business Process Project”.

To Create a New Dynamic Transformation Control
Note: Before creating a Dynamic Transformation control, during design time, you need to create or import and test your transformation files. To learn more, see Guide to Data Transformation.
  1. Open your Oracle WebLogic Integration application in Oracle Workshop for WebLogic.
  2. In the Package Explorer pane, double-click the business process (Process.java file) to which you want to add the Dynamic Transformation control. The business process is displayed in the Design view.
  3. Click Control Instances on the Data Palette and from the drop-down list choose Integration Controls to display the list of controls used for integrating applications.
  4. Note: If the Data Palette is not visible, from the menu bar, click Window > Show View > Data Palette.
  5. Select Dynamic Transformation.
  6. The Insert Control: Dynamic Transformation dialog box is displayed (see Figure 3-1).

    Figure 3-1 Insert Control: Dynamic Transformation


    Insert Control: Dynamic Transformation

  7. In the Insert Control: Dynamic Transformation dialog box enter the following details:
    • In the Field Name, type the variable name used to access the new Dynamic Transformation control instance from your business process. The name you enter must be a valid Java identifier.
    • In the Insertion point, from the drop-down list select the insertion node, you want to add the control.
    • Decide whether you want to make this a control factory by selecting or clearing the Make this a control factory that can create multiple instances at runtime check box.
    • Click Next.
    • The Create Control dialog-box appears.

  8. In the Create Control dialog box enter the following details:
    • In the Name field, type the name of your new control file.
    • Decide whether you want to add comments as configured in the properties of the current project and select or clear the Generate comments check box.
    • Click Finish.
    • A new Dynamic Transformation control and an instance of it are created and the instance of the control is displayed on the Controls tab in the Data Palette. The new file is displayed in the Package Explorer pane in Oracle Workshop for WebLogic. (You can double-click any control file to view or edit it in the Source view.)

  9. To display the base methods provided on a Dynamic Transformation control, expand the control instance by clicking the + beside its name on the Data Palette (see Figure 3-2).
  10. Figure 3-2 Control Instances


    Control Instances

  11. After you create an instance of the Dynamic Transformation control in your business process, you can do the following:
    • Design the interaction of the business process with the Dynamic Transformation control by simply dragging and dropping the base methods from the Data Palette onto the Design view at the point in your business process at which you want to design the interaction. To learn more, see Using the Base Methods in the Dynamic Transformation Control.
    • View and edit the properties of the control type or the instance of that control type in the JPD Configuration pane. The control type is represented as a Java file in the Package Explorer pane and the instance is represented in the Data Palette. To learn how to use the JPD Configuration pane for specifying properties for control types versus control instances, see Setting Control Properties and Annotations.

 


Using a Dynamic Transformation Control

This section describes ways to use a Dynamic Transformation control. It contains the following topic:

Using the Base Methods in the Dynamic Transformation Control

Once you have created the Dynamic Transformation control, you can add a control instance to your business process and invoke its base methods from within your application.

To learn about adding an instance of the Dynamic Transformation control to your business process, see Create Control Nodes in Your Business Process.

The following methods are available:

The @DynamicTransformationControl.Ddtf, @DynamicTransformationControl.Xquery, @DynamicTransformationControl.Xsl annotations control the behavior of these methods. Additional information is also available in the Interface DynamicTransformation.

Related Topics

Creating Schema Projects

 


Example: Dynamic Transformation Control

To see an example of using a Dynamic Transformation control in a business process, see WebLogic Integration Sample Code.


  Back to Top       Previous  Next