Results for “process_forecast”
8 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
APPS.PA_FORECAST_WF is a PL/SQL package body that implements the workflow integration layer for Oracle Project Forecasting in Oracle E-Business Suite. Its purpose is to bridge the Oracle Workflow engine with the core project forecast generation logic, allowing forecast generation to be initiated, monitored, and reported through standard workflow notification mechanisms. The package belongs to the Projects (PA) module and is classified as OTHER in the ETRM inventory, indicating it is an internal support package rather than a public API.
A significant characteristic of this package in Release 12 is that its primary workflow, historically identified as PAWFGPF, has been made obsolete. The header comment dated 23-MAR-06 records that the start_forecast_workflow procedure was stubbed out for R12, meaning the package no longer performs its original launch role in the current release even though the object remains in the database for backward compatibility and dependency integrity.
Key Procedures and Functions
ETRM documents two procedures in this package body:
- START_FORECAST_WORKFLOW — Originally responsible for initiating the forecast generation workflow for a given project. The procedure took a project identifier as input and returned standard concurrent-style out parameters (message count, message data, and return status). In R12 the body of this procedure is reduced to a null operation, reflecting the obsolescence of the underlying PAWFGPF workflow. Its signature is retained so that existing callers continue to compile and execute without error.
- PROCESS_FORECAST — The workflow activity function invoked by the forecast generation workflow engine. It calls the forecast generation logic that actually produces the project forecast. On success, it sets the workflow result attribute (resultout) to 'T'; on failure it sets the value to 'F' and populates the notification with up to five error messages along with context-sensitive notification text. It receives the standard workflow activity parameters: item type, item key, activity identifier, function mode, and the result out parameter.
A private helper, Set_Nf_Error_Msg_Attr, is forward-declared in the package specification section of the body. This procedure is the object referenced by the search term provided. It sets workflow item attributes used to carry error message count and error message data onto the notification, which is how process_forecast surfaces failures to the user. Because it is a helper internal to the workflow integration, it is not part of the documented public procedure list but is essential to the error-reporting behavior described above.
Tables Accessed
The documented table reference for this package is PA_BUDGET_VERSIONS, accessed through an APPS synonym. Forecast generation in Oracle Projects is tied to budget versions, since a forecast is derived from and associated with a project budget version. The package reads version information to determine the forecasting context for the project being processed. No direct DML against base tables is documented; the substantive forecast data manipulation is delegated to the forecast generation procedure called by process_forecast.
Usage Notes
This package is not intended for direct invocation by end users or custom code. It is invoked by the Oracle Workflow runtime when the forecast generation workflow executes the process_forecast activity. The workflow item type and activity definitions supply the parameters at runtime; callers do not construct them manually.
In 12.1.1 and 12.2.2 the package should be treated as legacy. Because start_forecast_workflow is stubbed, any custom code that previously relied on it to launch forecast generation must use the supported R12 forecast submission path instead. Customizations should not call process_forecast directly, as it expects a live workflow item context to write results and error attributes. The Set_Nf_Error_Msg_Attr helper likewise should not be called outside the workflow framework. The package remains referenced in the data dictionary only for compatibility with residual workflow metadata and historical dependencies.
-
PACKAGE: APPS.PA_FORECAST_WF 12.2.2
-
PACKAGE: APPS.PA_FORECAST_WF 12.1.1
-
PACKAGE: APPS.PA_FORECAST_WF 12.2.2
-
PACKAGE: APPS.PA_FORECAST_WF 12.1.1