The Integration Service calls p_<proc_name>_partitionInit() function before it passes data to the Custom transformation. The Integration Service calls this function once for each partition at a Custom transformation instance.
If you want the Integration Service to run a specific process before it passes data through a partition of the Custom transformation, you must include it in this function.
Use the following syntax:
INFA_STATUS p_<proc_name>_partitionInit(INFA_CT_PARTITION_HANDLE transformation);
The following table describes the arguments for this function:
The return value datatype is INFA_STATUS. Use INFA_SUCCESS and INFA_FAILURE for the return value. When the function returns INFA_FAILURE, the Integration Service fails the session.
When the Custom transformation requires one thread for each partition, you can include thread-specific operations in the partition initialization function.