Search Results ak_flows_pk




Overview

The AK_FLOWS table is a core repository object within the Oracle E-Business Suite (EBS) Application Object Library (AK) module. It serves as the master definition table for a "flow," which is a fundamental navigational and functional construct in the EBS framework. A flow represents a logical sequence of pages or a specific functional area within an application. This table's primary role is to define each unique flow and to associate it with its designated primary or starting page, thereby establishing the entry point for user interaction within that flow. As a foundational metadata table, AK_FLOWS is critical for the runtime rendering and navigation of the application's user interface.

Key Information Stored

The table stores the essential identifiers and relationships that define a flow. Its structure is centered on a composite primary key. The most critical columns include FLOW_APPLICATION_ID, which stores the application identifier (e.g., 660 for HRMS), and FLOW_CODE, which holds the unique internal name of the flow within that application. Together, these columns form the unique key (AK_FLOWS_PK) for every flow definition. Another crucial set of columns, PRIMARY_PAGE_APPL_ID and PRIMARY_PAGE_CODE, establishes the link to the initial page of the flow by storing the application ID and code of the associated primary page from the AK_PAGES table. This linkage dictates the starting point when a user accesses the flow.

Common Use Cases and Queries

This table is primarily accessed for metadata queries, system administration, and troubleshooting application navigation. Common scenarios include identifying all flows within a specific module or tracing the entry point for a particular function. A typical query retrieves flow definitions along with their translated names from the related TL (Translation) table. For example, to list flows in the HRMS application with their primary pages, one might use:

  • SELECT f.flow_code, tl.flow_name, f.primary_page_code FROM ak_flows f, ak_flows_tl tl WHERE f.flow_application_id = 660 AND f.flow_application_id = tl.flow_application_id AND f.flow_code = tl.flow_code AND tl.language = USERENV('LANG');

Another common use case is diagnosing issues where a flow fails to launch, which often involves verifying the integrity of the PRIMARY_PAGE_CODE reference.

Related Objects

AK_FLOWS maintains documented foreign key relationships with several other core AK metadata tables, forming the backbone of the EBS page and flow architecture. As per the provided metadata, the key relationships are:

  • AK_FLOW_PAGES: This table lists all pages belonging to a flow. It references AK_FLOWS via the columns FLOW_CODE and FLOW_APPLICATION_ID.
  • AK_FLOWS_TL: This is the translation table that stores the user-facing name of the flow in multiple languages. It references AK_FLOWS via FLOW_CODE and FLOW_APPLICATION_ID.
  • AK_FLOWS (Self-Reference for Primary Page): While not listed as a formal foreign key in the snippet, the columns PRIMARY_PAGE_CODE and PRIMARY_PAGE_APPL_ID logically reference the AK_PAGES table to define the flow's starting page.