Search Results gcs_lex_map_rule_stages




Overview

The GCS_LEX_MAP_RULE_STAGES table is a core data object within Oracle E-Business Suite's Financial Consolidation Hub (GCS) module, specifically in the context of the Legal Entity Extract (LEX) and transformation mapping functionality. It serves as a staging entity that defines the sequential order and grouping of transformation rules within a larger rule set. In essence, it structures the execution flow for data transformation processes that are critical for financial consolidation, such as mapping source data from disparate systems into a standardized format suitable for corporate reporting. Its role is to act as an intermediary container, linking a parent rule set (GCS_LEX_MAP_RULE_SETS) to the individual transformation rules (GCS_LEX_MAP_RULES) that perform the actual data manipulation.

Key Information Stored

The table's primary purpose is to store metadata that organizes transformation logic. The most critical column is RULE_STAGE_ID, which serves as the unique primary key identifier for each rule stage record. The RULE_SET_ID is a mandatory foreign key column that ties each stage definitively to a specific parent transformation rule set defined in the GCS_LEX_MAP_RULE_SETS table. While the provided ETRM excerpt lists only these key structural columns, typical implementations would include additional attributes to manage the stage's execution order and control logic. These often include columns such as a SEQUENCE_NUMBER to dictate the processing order of stages within a set, a STAGE_TYPE or NAME for identification, and potentially STATUS or ENABLED_FLAG columns to control active processing. The stage acts as a logical grouping mechanism for rules.

Common Use Cases and Queries

This table is primarily accessed during the configuration and execution of financial data transformation jobs. A common administrative use case is reviewing or auditing the structure of a deployed transformation rule set to understand its processing phases. For example, a consolidation manager might run a query to list all stages within a specific rule set to verify the execution sequence before a monthly close. Support personnel may query this table to diagnose transformation issues by identifying which stage contains a failing rule. Sample SQL to retrieve stage information for a rule set would involve joining to the GCS_LEX_MAP_RULE_SETS table:

  • SELECT stg.rule_stage_id, stg.rule_set_id, set.rule_set_name, stg.sequence_number FROM gcs_lex_map_rule_stages stg, gcs_lex_map_rule_sets set WHERE stg.rule_set_id = set.rule_set_id AND set.rule_set_name = '&RULE_SET_NAME' ORDER BY stg.sequence_number;

Another critical use case is during the runtime execution engine, where the system reads this table to determine the ordered list of stages to process for a given consolidation data flow.

Related Objects

The GCS_LEX_MAP_RULE_STAGES table exists within a tightly defined hierarchy in the GCS schema. Its relationships are explicitly documented in the ETRM metadata:

  • Parent Object (Foreign Key Reference): The table has a foreign key dependency on GCS_LEX_MAP_RULE_SETS via the column RULE_SET_ID. Every rule stage must belong to a single, pre-defined rule set.
  • Child Objects (Referenced by Foreign Key): The table is referenced as a parent by the GCS_LEX_MAP_RULES table via its RULE_STAGE_ID column. This establishes a one-to-many relationship where a single rule stage can contain multiple individual transformation rules.

Therefore, this table is a central node, inheriting context from GCS_LEX_MAP_RULE_SETS and providing structure to GCS_LEX_MAP_RULES. Effective navigation and reporting on transformation logic require joins across this three-table chain: Rule Sets -> Rule Stages -> Rules.