Search Results pqh_role_templates
Overview
The PQH_ROLE_TEMPLATES table is a core data object within the Oracle E-Business Suite Public Sector Human Resources (PQH) module. It functions as a junction table that establishes a critical link between security roles, transaction categories, and templates. Its primary role is to define which approval templates are applicable for specific transaction categories when processed by a user assigned a particular role. This configuration is essential for enforcing role-based workflow and approval routing rules within the complex personnel transactions typical of public sector HR operations, such as position management, funding changes, and employee lifecycle events.
Key Information Stored
The table stores the association between three key entities. Its structure, as defined by its primary and unique keys, emphasizes the uniqueness of the relationship between a role and a transaction category. The most important columns are:
- ROLE_TEMPLATE_ID: The primary key surrogate identifier for each record.
- ROLE_ID: A foreign key referencing the PQH_ROLES table, identifying the security role.
- TRANSACTION_CATEGORY_ID: A foreign key referencing the PQH_TRANSACTION_CATEGORIES table, identifying the type of HR transaction (e.g., hire, promotion, transfer).
- TEMPLATE_ID: A foreign key referencing the PQH_TEMPLATES table, identifying the specific approval template to be used for the given role and transaction category combination.
The unique constraint (PQH_ROLE_TEMPLATES_UK1) on ROLE_ID and TRANSACTION_CATEGORY_ID ensures that a role cannot have more than one default template assigned per transaction type.
Common Use Cases and Queries
This table is central to configuring and auditing the approval matrix. A common administrative task is to review all template assignments for a specific role to understand its approval authorities. The following query retrieves this information:
SELECT r.ROLE_NAME, tc.NAME AS TRANSACTION_CATEGORY, t.TEMPLATE_NAME
FROM pqh_role_templates rt,
pqh_roles r,
pqh_transaction_categories tc,
pqh_templates t
WHERE rt.role_id = r.role_id
AND rt.transaction_category_id = tc.transaction_category_id
AND rt.template_id = t.template_id
AND r.ROLE_NAME = 'HR_MANAGER';
Conversely, support personnel may query this table to diagnose workflow issues, such as identifying which template is being invoked when a specific user submits a particular transaction type, by joining through user role assignments.
Related Objects
PQH_ROLE_TEMPLATES is a dependent object with strong referential integrity ties to three key master tables, as defined by its foreign keys:
- PQH_ROLES: The source table for ROLE_ID, containing the definition of security roles within PQH.
- PQH_TRANSACTION_CATEGORIES: The source table for TRANSACTION_CATEGORY_ID, defining the types of personnel actions available.
- PQH_TEMPLATES: The source table for TEMPLATE_ID, storing the definition of approval templates that specify workflow rules and approver hierarchies.
This table sits at the intersection of security (Roles), business process (Transaction Categories), and workflow configuration (Templates), making it a pivotal point for the Public Sector HR approval engine.
-
Table: PQH_ROLE_TEMPLATES
12.2.2
owner:HR, object_type:TABLE, fnd_design_data:PQH.PQH_ROLE_TEMPLATES, object_name:PQH_ROLE_TEMPLATES, status:VALID, product: PQH - Public Sector HR , description: Tempalte for a transaction category attached to a role , implementation_dba_data: HR.PQH_ROLE_TEMPLATES ,
-
Table: PQH_ROLE_TEMPLATES
12.1.1
owner:HR, object_type:TABLE, fnd_design_data:PQH.PQH_ROLE_TEMPLATES, object_name:PQH_ROLE_TEMPLATES, status:VALID, product: PQH - Public Sector HR , description: Tempalte for a transaction category attached to a role , implementation_dba_data: HR.PQH_ROLE_TEMPLATES ,
-
APPS.PQH_RTM_SHD dependencies on PQH_ROLE_TEMPLATES
12.2.2
-
APPS.PQH_RTM_DEL dependencies on PQH_ROLE_TEMPLATES
12.1.1
-
APPS.PQH_RTM_SHD dependencies on PQH_ROLE_TEMPLATES
12.1.1
-
APPS.PQH_RLS_BUS dependencies on PQH_ROLE_TEMPLATES
12.1.1
-
APPS.PQH_ROLE_TEMPLATES_API dependencies on PQH_ROLE_TEMPLATES
12.2.2
-
APPS.PQH_WORKFLOW dependencies on PQH_ROLE_TEMPLATES
12.1.1
-
APPS.PQH_RTM_INS dependencies on PQH_ROLE_TEMPLATES
12.1.1
-
APPS.PQH_ROLE_TEMPLATES_API dependencies on PQH_ROLE_TEMPLATES
12.1.1
-
APPS.PQH_RTM_INS dependencies on PQH_ROLE_TEMPLATES
12.2.2
-
APPS.PQH_TEM_BUS dependencies on PQH_ROLE_TEMPLATES
12.2.2
-
APPS.PQH_RTM_UPD dependencies on PQH_ROLE_TEMPLATES
12.2.2
-
APPS.PQH_RTM_UPD dependencies on PQH_ROLE_TEMPLATES
12.1.1
-
APPS.PQH_TEM_BUS dependencies on PQH_ROLE_TEMPLATES
12.1.1
-
APPS.PQH_RTM_DEL dependencies on PQH_ROLE_TEMPLATES
12.2.2
-
APPS.PQH_RLS_BUS dependencies on PQH_ROLE_TEMPLATES
12.2.2
-
APPS.PQH_WORKFLOW dependencies on PQH_ROLE_TEMPLATES
12.2.2
-
TABLE: HR.PQH_ROLE_TEMPLATES
12.1.1
owner:HR, object_type:TABLE, fnd_design_data:PQH.PQH_ROLE_TEMPLATES, object_name:PQH_ROLE_TEMPLATES, status:VALID,
-
APPS.PQH_RTM_SHD SQL Statements
12.1.1
-
TABLE: HR.PQH_ROLE_TEMPLATES
12.2.2
owner:HR, object_type:TABLE, fnd_design_data:PQH.PQH_ROLE_TEMPLATES, object_name:PQH_ROLE_TEMPLATES, status:VALID,
-
SYNONYM: PUBLIC.PQH_ROLE_TEMPLATES
12.1.1
owner:PUBLIC, object_type:SYNONYM, object_name:PQH_ROLE_TEMPLATES, status:VALID,
-
APPS.PQH_RTM_SHD SQL Statements
12.2.2
-
VIEW: APPS.PQH_ROLE_TEMPLATES_V
12.1.1
-
VIEW: APPS.PQH_ROLE_TEMPLATES_V
12.2.2
-
VIEW: HR.PQH_ROLE_TEMPLATES#
12.2.2
-
VIEW: HR.PQH_ROLE_TEMPLATES#
12.2.2
owner:HR, object_type:VIEW, object_name:PQH_ROLE_TEMPLATES#, status:VALID,
-
SYNONYM: APPS.PQH_ROLE_TEMPLATES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PQH_ROLE_TEMPLATES, status:VALID,
-
SYNONYM: APPS.PQH_ROLE_TEMPLATES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PQH_ROLE_TEMPLATES, status:VALID,
-
APPS.PQH_RTM_DEL dependencies on HR_API
12.1.1
-
APPS.PQH_RTM_DEL dependencies on HR_API
12.2.2
-
APPS.PQH_RTM_DEL dependencies on HR_UTILITY
12.1.1
-
PACKAGE BODY: APPS.PQH_RTM_SHD
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PQH_RTM_SHD, status:VALID,
-
PACKAGE BODY: APPS.PQH_RTM_DEL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PQH_RTM_DEL, status:VALID,
-
Table: PQH_ROLES
12.2.2
owner:HR, object_type:TABLE, fnd_design_data:PQH.PQH_ROLES, object_name:PQH_ROLES, status:VALID, product: PQH - Public Sector HR , description: Roles used for position control workflow and security , implementation_dba_data: HR.PQH_ROLES ,
-
Table: PQH_ROLES
12.1.1
owner:HR, object_type:TABLE, fnd_design_data:PQH.PQH_ROLES, object_name:PQH_ROLES, status:VALID, product: PQH - Public Sector HR , description: Roles used for position control workflow and security , implementation_dba_data: HR.PQH_ROLES ,
-
PACKAGE BODY: APPS.PQH_RTM_INS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PQH_RTM_INS, status:VALID,
-
PACKAGE BODY: APPS.PQH_RTM_INS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PQH_RTM_INS, status:VALID,
-
APPS.PQH_RTM_DEL dependencies on HR_UTILITY
12.2.2
-
TRIGGER: APPS.PQH_ROLE_TEMPLATES_WHO
12.1.1
owner:APPS, object_type:TRIGGER, object_name:PQH_ROLE_TEMPLATES_WHO, status:VALID,
-
View: PQH_ROLE_TEMPLATES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PQH.PQH_ROLE_TEMPLATES_V, object_name:PQH_ROLE_TEMPLATES_V, status:VALID, product: PQH - Public Sector HR , implementation_dba_data: APPS.PQH_ROLE_TEMPLATES_V ,
-
APPS.PQH_RTM_INS dependencies on HR_API
12.2.2
-
APPS.PQH_RTM_INS dependencies on HR_API
12.1.1
-
PACKAGE BODY: APPS.PQH_RTM_UPD
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PQH_RTM_UPD, status:VALID,
-
PACKAGE BODY: APPS.PQH_RTM_DEL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PQH_RTM_DEL, status:VALID,
-
PACKAGE BODY: APPS.PQH_RTM_SHD
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PQH_RTM_SHD, status:VALID,
-
TABLE: HR.PQH_TEMPLATES
12.1.1
owner:HR, object_type:TABLE, fnd_design_data:PQH.PQH_TEMPLATES, object_name:PQH_TEMPLATES, status:VALID,
-
TRIGGER: APPS.PQH_ROLE_TEMPLATES_WHO
12.2.2
-
Table: PQH_TRANSACTION_CATEGORIES
12.2.2
owner:HR, object_type:TABLE, fnd_design_data:PQH.PQH_TRANSACTION_CATEGORIES, object_name:PQH_TRANSACTION_CATEGORIES, status:VALID, product: PQH - Public Sector HR , description: Setup information to allow selective routing of transactions , implementation_dba_data: HR.PQH_TRANSACTION_CATEGORIES ,
-
Table: PQH_TRANSACTION_CATEGORIES
12.1.1
owner:HR, object_type:TABLE, fnd_design_data:PQH.PQH_TRANSACTION_CATEGORIES, object_name:PQH_TRANSACTION_CATEGORIES, status:VALID, product: PQH - Public Sector HR , description: Setup information to allow selective routing of transactions , implementation_dba_data: HR.PQH_TRANSACTION_CATEGORIES ,