Search Results process_range




Overview

APPS.HRI_OPL_CMNTS is a multithreaded PL/SQL package body that belongs to the Oracle HR Intelligence (HRI) product family in Oracle E-Business Suite 12.1.1 and 12.2.2. Its central business function is the processing and population of the comments collection that supports Oracle HRMS intelligence and budgeting analytics. The package gathers and consolidates commitment-related commentary data so that it can be consumed by downstream reporting, workforce intelligence, and budget commitment analysis.

The defining architectural characteristic of this package is its reliance on the hri multithreading utility (HRI_ADM_MTHD_ACTIONS). As documented in the package header, the multithreading framework processes a collection across multiple threads through a strict three-stage lifecycle: the utility first invokes a PRE_PROCESS routine to initialize globals and return a SQL statement from which processing ranges are derived; it then invokes PROCESS_RANGE once per thread, passing the range identifier plus starting and ending object identifiers; finally it invokes POST_PROCESS to complete any residual work. Global variables such as g_refresh_start_date, g_refresh_end_date, g_full_refresh, g_debug_flag, and g_concurrent_flag carry parameter state across these phases, and an internal output helper routes diagnostics either to the concurrent request log via fnd_file.put_line or to hr_utility.trace depending on context.

Key Procedures and Functions

  • PRE_PROCESS — Initialization entry point for the collection. It sets global variables (including the refresh date range and full-refresh flag) and returns the SQL construct against which the multithreading utility generates the processing ranges.
  • PROCESS_RANGE — The worker procedure executed by each thread. The multithreading utility passes the range identifier together with the starting and ending object identifier for the range, and the procedure processes every assignment falling within that slice. This is the procedure most commonly associated with the search term "process_range."
  • POST_PROCESS — Finalization step that performs post-processing tasks after all threads have completed, such as cleanup, status updates, or aggregation.
  • LOAD_TABLE — Loads processed records into the target collection structures, completing the extract/transform/load sequence for the comments collection.

Tables Accessed

The package reads from and writes to the following objects via APPS synonyms:

Usage Notes

HRI_OPL_CMNTS is not exposed as a public application programming interface. The ETRM classification is OTHER, and the package is referenced by zero other packages, indicating it is an internal implementation unit invoked indirectly rather than through standard API calls. Typical invocation is through a concurrent program that requests HR intelligence collection processing; the concurrent manager supplies the request context that sets g_concurrent_flag and enables log output. Because the package depends wholly on the hri multithreading utility, it should not be called directly from custom code without first registering an appropriate action row in HRI_ADM_MTHD_ACTIONS. The embedded header (hriocmnt.pkb 120.3, dated 2005/12/15) is unchanged across 12.1.1 and 12.2.2, and its behavior is consistent in both releases.