Table of Contents

Search

  1. Preface
  2. Working with Transformations
  3. Aggregator Transformation
  4. Custom Transformation
  5. Custom Transformation Functions
  6. Data Masking Transformation
  7. Data Masking Examples
  8. Expression Transformation
  9. External Procedure Transformation
  10. Filter Transformation
  11. HTTP Transformation
  12. Identity Resolution Transformation
  13. Java Transformation
  14. Java Transformation API Reference
  15. Java Expressions
  16. Java Transformation Example
  17. Joiner Transformation
  18. Lookup Transformation
  19. Lookup Caches
  20. Dynamic Lookup Cache
  21. Normalizer Transformation
  22. Rank Transformation
  23. Router Transformation
  24. Sequence Generator Transformation
  25. Sorter Transformation
  26. Source Qualifier Transformation
  27. SQL Transformation
  28. Using the SQL Transformation in a Mapping
  29. Stored Procedure Transformation
  30. Transaction Control Transformation
  31. Union Transformation
  32. Unstructured Data Transformation
  33. Update Strategy Transformation
  34. XML Transformations

Transformation Guide

Transformation Guide

Step 1. Create the Custom Transformation

Step 1. Create the Custom Transformation

To create a Custom transformation:
  1. In the Transformation Developer, click Transformation > Create.
  2. In the Create Transformation dialog box, choose Custom transformation, enter a transformation name, and click Create.
    In the Union example, enter
    CT_Inf_Union
    as the transformation name.
  3. In the Active or Passive dialog box, create the transformation as a passive or active transformation, and click OK.
    In the Union example, choose Active.
  4. Click Done to close the Create Transformation dialog box.
  5. Open the transformation and click the Ports tab. Create groups and ports.
    You can edit the groups and ports later, if necessary.
    The following figure shows an example of a Union transformation with two groups:
    The Ports tab in the Edit Transformations dialog box contains two input groups. The input groups contain the port name, datatype, precision, and scale columns.
    In the Union example, create the groups InputGroup1 and InputGroup2. Create the following ports for InputGroup1:
    Port Name
    Datatype
    Precision
    Scale
    ORDER_ID1
    integer
    10
    0
    ORDER_DATE1
    date/time
    19
    0
    TOTAL_PRICE1
    decimal
    10
    2
    Create the following ports for InputGroup2:
    Port Name
    Datatype
    Precision
    Scale
    Input/Output
    ORDER_ID2
    integer
    10
    0
    Input
    ORDER_DATE2
    date/time
    19
    0
    Input
    TOTAL_PRICE2
    decimal
    10
    2
    Input
    ORDER_ID_OUT
    integer
    10
    0
    Output
    ORDER_DATE_OUT
    date/time
    19
    0
    Output
    TOTAL_PRICE_OUT
    decimal
    10
    2
    Output
  6. Select the Properties tab and enter a module and function identifier and the runtime location. Edit other transformation property attributes, such as the Tracing Level, Is Partitionable, Inputs Must Block, Is Active, Update Strategy Transformation, Transformation Scope and Generate Transaction values/checkboxes.
    In the Union example, configure the following properties:
    Property Name
    Value
    Module Identifier
    UnionDemo
    Function Identifier
    Union
    Runtime Location
    $PMExtProcDir
    Tracing Level
    Normal
    Is Partitionable
    No
    Inputs Must Block
    No
    Is Active
    Yes
    Update Strategy Transformation
    No
    Transformation Scope
    All Input
    Generate Transaction
    No
  7. Click the Metadata Extensions tab to enter metadata extensions, such as properties the external procedure might need for initialization.
    In the Union example, do not create metadata extensions.
  8. Click the Port Attribute Definitions tab to create port attributes, if necessary.
    In the Union example, do not create port attributes.
After you create the Custom transformation that calls the procedure, the next step is to generate the C files.

0 COMMENTS

We’d like to hear from you!