Search Results validate_off




Overview

FND_FLEX_WF_PROCESSES is a PL/SQL package owned by the APPS schema that governs the association between Oracle E-Business Suite key flexfield structures and Oracle Workflow item types. Its central purpose is to ensure that every flexfield structure—such as those registered through the Accounting Flexfield or other key flexfields—has an appropriate Workflow process attached so that account generation, combination validation, and related dynamic processing can be driven through Oracle Workflow rather than static code.

The package is part of the Oracle Application Object Library flexfield infrastructure and is closely tied to the "DEFAULT_ACCOUNT_GENERATION" workflow process referenced in the source header comments. It operates on the intersection of flexfield metadata (FND_ID_FLEX_STRUCTURES), application registration (FND_APPLICATION), and workflow configuration (FND_FLEX_WORKFLOW_PROCESSES). In the EBS 12.1.1 and 12.2.2 releases, this package is an internal-style utility API used primarily during flexfield maintenance operations and workflow enablement.

Key Procedures and Functions

The documented API exposes eight procedures and functions:

  • VALIDATE_ON — enables validation processing so that subsequent operations within the session are checked against workflow/flexfield configuration rules.
  • VALIDATE_OFF — disables validation processing, typically to allow bulk maintenance or scripted changes without intermediate checks.
  • MESSAGE (function) — returns a VARCHAR2 status or diagnostic message, used by callers to retrieve the outcome of a prior operation.
  • SET_SESSION_MODE — sets a session-level mode that governs how the package behaves for the duration of the session. This procedure is frequently searched in the context of controlling validation, default account generation, or batch vs. interactive execution behavior.
  • ADD_WORKFLOW_ITEM_TYPE — attaches a Workflow item type to a specific flexfield structure identified by application, flexfield code, and structure number.
  • DELETE_WORKFLOW_ITEM_TYPE — removes an existing Workflow item type association for a given flexfield structure.
  • CHANGE_WORKFLOW_PROCESS — reassigns the Workflow process name associated with an existing item type on a structure.
  • ADD_NEW_WORKFLOW_ITEM_TYPE — adds a Workflow item type across all existing flexfield structures and sets them to use the DEFAULT_ACCOUNT_GENERATION process. This is the bulk enablement routine described in the source comments.

Tables Accessed

The package references three documented tables via APPS synonyms:

  • FND_APPLICATION — resolves and validates the application that owns a flexfield, ensuring the application short name or ID passed in is legitimate before any workflow association is created.
  • FND_ID_FLEX_STRUCTURES — the core registry of key flexfield structures. The package reads this table to enumerate existing structures (for ADD_NEW_WORKFLOW_ITEM_TYPE) and validates the structure identifiers supplied by callers.
  • FND_FLEX_WORKFLOW_PROCESSES — the package's primary write target. It stores and maintains the mapping between flexfield structures and their assigned Workflow item types and process names, supporting insert, update, and delete operations performed by the respective procedures.

Usage Notes

FND_FLEX_WORKFLOW_PROCESSES is not typically invoked directly by end users. It is called from flexfield definition and compilation logic within the Oracle Forms-based Application Developer responsibility, and from internal flexfield APIs that maintain workflow-enabled account generation. Administrators encounter its effects when enabling Workflow-driven account generation or when a flexfield structure loses its item type association, causing validation failures during journal entry or subledger processing.

Because the source header references the "120.1.12010000.1" revision dated 2008, the package predates and persists into the 12.1.1 and 12.2.2 file systems without public documentation beyond the package specification. Custom code should invoke the procedures cautiously, wrapping calls with VALIDATE_OFF and VALIDATE_ON to suppress intermediate validation during batch changes, and use SET_SESSION_MODE to establish the desired behavior before bulk operations. The MESSAGE function should be queried after each call to confirm success. No other packages reference this package, which indicates it is a top-level utility rather than a dependency of the broader flexfield API stack.