Table of Contents

Search

  1. Preface
  2. The Transformation Language
  3. Constants
  4. Operators
  5. Variables
  6. Dates
  7. Functions
  8. Creating Custom Functions
  9. Custom Function API Reference

Transformation Language Reference

Transformation Language Reference

Function-Level Initialization Function

Function-Level Initialization Function

PowerCenter calls function_init once for each custom function to initialize any structure related to the custom function. It calls the module-level initialization function before calling this function.
Use the following syntax:
INFA_EXPR_STATUS (*function_init) (INFA_EXPR_FUNCTION_HANDLE fnInstance);
Argument
Datatype
Input/
Output
Description
fnInstance
INFA_EXPR_FUNCTION_HANDLE
Input
Performs the following tasks:
  • Stores user-defined pointers for the framework to retrieve during run time or deinitialization.
  • Initializes data structures for the function instance-level.
  • If the input argument is a constant, the plug-in retrieves this constant value and performs any necessary preprocessing.
The return datatype is INFA_EXPR_STATUS. Use ISUCCESS and IFAILURE as the return values. If the function returns IFAILURE, the session or workflow fails.

0 COMMENTS

We’d like to hear from you!