Search Results element_template_post_process




Overview

PAY_CN_ELEMENT_TEMPLATE_PKG is a PL/SQL package owned by the APPS schema in Oracle E-Business Suite, delivered under the Oracle Payroll (PAY) application. In the context of Oracle EBS 12.1.1 and 12.2.2, it belongs to the Chinese localizations territory ("CN") and supports the element template engine used to generate payroll elements for the Chinese legislative and statutory reporting requirements. Element templates in Oracle Payroll are reusable definitions that automatically create element types, input values, formulas, and result rules from a predefined template. The package provides the post-processing logic that runs after a template has been applied, ensuring that the generated element components, formula result rules, and status processing rules are correctly consolidated and linked to the template definition.

The package is classified as OTHER in the ETRM, meaning it is an internal helper rather than a published business API. It exposes a single public procedure and is referenced by one other package in the application, indicating it is invoked programmatically rather than directly by end users.

Key Procedures and Functions

  • ELEMENT_TEMPLATE_POST_PROCESS — The only documented public procedure in the package. Its stated purpose is to perform post-processing for template engines. It accepts a template identifier and executes the consolidation steps required after the template engine has created the derived element objects. As the name and comment imply, it is the final validation and wiring step in the template creation flow for Chinese payroll elements. Its parameter list is not documented in the metadata and should not be assumed beyond the fact that it operates on a template.

The package also declares private record and collection types—t_form_results_rec, t_form_results_tab, t_fr_setup_rec, and t_results_setup_tab—which model the in-memory structures used to build and process formula result rule sets during post-processing. These types are not callable outside the package.

Tables Accessed

  • PAY_ELEMENT_TEMPLATES — the driving table; identifies the template being post-processed.
  • PAY_ELEMENT_TYPES_F — the element type definitions created from the template; the package reads element names, severity levels, and template information columns.
  • PAY_INPUT_VALUES_F — input values belonging to the generated element, used to map result rule targets.
  • FF_FORMULAS_F — the formula definitions referenced by the template's result rules.
  • PAY_FORMULA_RESULT_RULES_F and PAY_FORMULA_RESULT_RULES_S — the formula result rule definition and its translated/secure synonyms, read to populate and validate the result set structure.
  • PAY_STATUS_PROCESSING_RULES_F — status processing rules linked to the element, used to record the status rule identifier in the setup record.

Usage Notes

ELEMENT_TEMPLATE_POST_PROCESS is typically invoked indirectly by the template engine when a Chinese payroll element is created from a template, rather than being called directly from a form or concurrent program. It is referenced by one other package, which acts as its caller within the template application flow. Custom code should treat this package as internal and unsupported for direct invocation, since its interface is not classified as a public API in the ETRM and may change between patch levels. Where customizations must extend Chinese template behavior, the supported approach is to extend the invoking template engine logic or replicate the required post-processing through supported payroll APIs, rather than calling this procedure directly.