Table of Contents

Search

  1. Preface
  2. Introduction to Transformations
  3. Transformation Ports
  4. Transformation Caches
  5. Address Validator Transformation
  6. Aggregator Transformation
  7. Association Transformation
  8. Bad Record Exception Transformation
  9. Case Converter Transformation
  10. Classifier Transformation
  11. Comparison Transformation
  12. Consolidation Transformation
  13. Data Masking Transformation
  14. Data Processor Transformation
  15. Decision Transformation
  16. Duplicate Record Exception Transformation
  17. Expression Transformation
  18. Filter Transformation
  19. Hierarchical to Relational Transformation
  20. Java Transformation
  21. Java Transformation API Reference
  22. Java Expressions
  23. Joiner Transformation
  24. Key Generator Transformation
  25. Labeler Transformation
  26. Lookup Transformation
  27. Lookup Caches
  28. Dynamic Lookup Cache
  29. Match Transformation
  30. Match Transformations in Field Analysis
  31. Match Transformations in Identity Analysis
  32. Normalizer Transformation
  33. Merge Transformation
  34. Parser Transformation
  35. Python Transformation
  36. Rank Transformation
  37. Read Transformation
  38. Relational to Hierarchical Transformation
  39. REST Web Service Consumer Transformation
  40. Router Transformation
  41. Sequence Generator Transformation
  42. Sorter Transformation
  43. SQL Transformation
  44. Standardizer Transformation
  45. Union Transformation
  46. Update Strategy Transformation
  47. Web Service Consumer Transformation
  48. Parsing Web Service SOAP Messages
  49. Generating Web Service SOAP Messages
  50. Weighted Average Transformation
  51. Window Transformation
  52. Write Transformation
  53. Appendix A: Transformation Delimiters

Developer Transformation Guide

Developer Transformation Guide

Developing Java Code

Developing Java Code

Use the code entry tabs in the
Java
view to write and compile Java code that defines transformation behavior for specific transformation events.
You can develop code snippets on the code entry tabs in any order. You can view, but not edit, the full Java code on the
Full Code
tab.
After you develop code snippets, you can compile the code snippets or the full Java code and view the results of the compilation in the
Results
window in the
Compilation
properties in the
Java
view.
Each code entry tab contains components that you use to write, view, and compile Java code:
Code properties
Provides controls that let you view and enter Java code, including Java transformation API methods. The following table describes the controls that are available in
Code
properties:
Control
Description
Navigator
Shows input ports, output ports, and callable Java transformation API methods.
Click an item in the navigator to display a description of the item.
Double-click an item to add it to the
Java code
window. Alternatively, you can drag an item from the navigator into the
Java code
window.
The navigator is available on the following code entry tabs:
  • Helpers
  • On Input
  • At End
Java code
window
Enables you to view or enter Java code for the transformation. The
Java code
window displays Java code by using the basic Java syntax highlighting.
On the
Full Code
tab, you can view but not edit the full class code for the Java transformation.
The
Java code
window is available on the following code entry tabs:
  • Imports
  • Helpers
  • On Input
  • At End
  • Functions
  • Optimizer Interfaces
  • Full Code
New Function
command
Opens the
Define Function
dialog box that you use to define functions that invoke Java expressions.
The
Function
command is available on the
Functions
tab.
Editing toolbar
Enables you to click tool icons, such as cut, copy, and paste, to edit Java code.
The editing toolbar is available on the following code entry tabs:
  • Imports
  • Helpers
  • On Input
  • At End
  • Functions
  • Optimizer Interfaces
Compilation properties
Provides controls to compile and debug Java code. The following table describes the controls in the
Compilation
properties:
Control
Description
Compile
command
Compiles the Java code for the transformation.
Results
window
Displays the compilation results for the Java transformation class and enables you to find the source of errors in the code.
To find an error in the code, right-click an error message in the
Results
window and select to view the error in the snippet code or in the full code.
You can also double-click an error message in the
Results
window to find its source.

0 COMMENTS

We’d like to hear from you!