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

Creating an Expression and Generating Java Code by Using the Define Expression Dialog Box

Creating an Expression and Generating Java Code by Using the
Define Expression
Dialog Box

You can create a function that invokes an expression in the
Define Expression
dialog box.
Complete the following steps to create a function that invokes an expression:
  1. In the
    Transformation
    Developer, open a Java transformation or create a new Java transformation.
  2. On the
    Java Code
    tab, click
    the
    Define Expression
    link
    .
    The
    Define Expression
    dialog box appears.
  3. Enter a function name.
  4. Optionally, enter a description for the expression.
    Enter up to 2,000 characters.
  5. Create the
    parameters
    for the function.
    When you create the
    parameters
    , configure the
    parameter
    name, datatype, precision, and scale.
  6. Click
    Launch Editor
    to create an expression with the parameters that you created.
  7. To validate the expression, click
    Validate
    .
  8. Optionally, enter the expression in the
    Expression
    box. Then, click
    Validate
    to validate the expression.
  9. To generate Java code by using the advanced interface, select the
    Generate Advanced Code
    option. Then, click
    Generate
    .
    The
    Designer
    generates the function to invoke the expression on the
    Java Expressions
    code entry tab.

0 COMMENTS

We’d like to hear from you!