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

Invoking an Expression with the Advanced Interface

Invoking an Expression with the Advanced Interface

You can define, invoke, and get the result of an expression by using the advanced interface.
  1. On the
    Helper Code
    or
    On Input Row
    code entry tab, create an instance of JExprParamMetadata class for each
    parameter
    for the expression and set the value of the metadata. Optionally, you can instantiate the JExprParamMetadata object in the defineJExpression method.
  2. Use the defineJExpression method to get the JExpression object for the expression.
  3. On the appropriate code entry tab, invoke the expression with the invokeJExpression method.
  4. Check the result of the return value with the isResultNull method.
  5. You can get the datatype of the return value or the metadata of the return value with the getResultDataType and getResultMetadata methods.
  6. Get the result of the expression by using the appropriate API method. You can use the getInt, getDouble, getStringBuffer, and getBytes methods.

0 COMMENTS

We’d like to hear from you!