Search Results check_delete_lcyl_phase_ok
Overview
APPS.PA_LIFECYCLES_PVT is a private PL/SQL package within the Oracle EBS Projects (PA) module that provides the programmatic foundation for managing project lifecycles and their constituent phases. A lifecycle defines the staged model through which a project or project template progresses — for example, initiation, planning, execution, and closure — and each lifecycle is composed of one or more phases. In Oracle EBS 12.1.1 and 12.2.2, this package encapsulates the business logic used to create, maintain, and delete lifecycle and lifecycle phase definitions while preserving referential integrity across the underlying Projects tables.
The package is classified in ETRM as a Private (PVT) API, meaning it is intended for internal consumption by other Oracle Projects components and is not part of the public, supported integration surface. The header carries a package-level constant G_PKG_NAME and standard FND_API missing-value sentinels (G_MISS_NUM, G_MISS_CHAR, G_MISS_DATE), and it follows the Oracle Application Object Library API conventions: an API version, a commit flag, a validate-only flag, a validation level, a calling-module identifier, a debug flag, and a maximum message count, together with standard X_return_status, X_msg_count, and X_msg_data output parameters.
Key Procedures and Functions
ETRM documents eight procedures and functions in this package:
- CREATE_LIFECYCLE — Creates a lifecycle for a given name and short name. Per the header comments, it accepts identifiers for the lifecycle short name, name, description, project usage type, and product usage type, and returns the new lifecycle identifier. It is a private API with no prerequisites.
- CREATE_LIFECYCLE_PHASE — Creates a phase and associates it with its parent lifecycle.
- UPDATE_LIFECYCLE — Modifies the attributes of an existing lifecycle definition.
- UPDATE_LIFECYCLE_PHASE — Modifies the attributes of an existing lifecycle phase.
- DELETE_LIFECYCLE — Removes a lifecycle definition, subject to the validations enforced by the check routine below.
- DELETE_LIFECYCLE_PHASE — Removes an individual lifecycle phase.
- CHECK_DELETE_LIFECYCLE_OK — Validates whether a lifecycle may be safely deleted, returning an indicator used by DELETE_LIFECYCLE before performing the deletion.
- CHECK_DELETE_LCYL_PHASE_OK — The routine most relevant to the search term "check_delete_lcyl_phase_ok." It validates whether a lifecycle phase is eligible for deletion, confirming that no dependent project elements, structures, or workplan attributes reference the phase before allowing the delete to proceed.
Tables Accessed
The package operates against a set of Projects tables accessed through APPS synonyms. Lifecycle and lifecycle usage data are stored in and read from PA_LIFECYCLE_USAGES and its _S (sequence/audit) counterpart. Phase definitions, their versions, and scheduling are handled through PA_PROJ_ELEMENTS, PA_PROJ_ELEMENT_VERSIONS, PA_PROJ_ELEMENT_VERSIONS_S, PA_PROJ_ELEM_VER_SCHEDULE, and PA_PROJ_ELEM_VER_SCHEDULE_S. Hierarchical phase relationships are maintained in PA_PROJ_ELEM_VER_STRUCTURE and PA_PROJ_ELEM_VER_STRUCTURE_S, which reference the structure type defined in PA_PROJ_STRUCTURE_TYPES and PA_STRUCTURE_TYPES. Workplan-level attributes are held in PA_PROJ_WORKPLAN_ATTR, and generic relationships between lifecycle objects are recorded in PA_OBJECT_RELATIONSHIPS and PA_OBJECT_RELATIONSHIPS_S. The check routines read these tables to determine whether dependent records exist.
Usage Notes
Because PA_LIFECYCLES_PVT is a private package, it is typically invoked indirectly — by lifecycle maintenance forms in the Projects responsibility, by concurrent programs that seed or migrate lifecycle definitions, and by one other package that ETRM identifies as a caller. Custom code should generally avoid calling this package directly and instead use supported public APIs, since the private interface may change between releases. When invoked, callers should pass FND_API.G_FALSE for the commit flag and allow the calling transaction to manage commits, and should inspect X_return_status and the message stack (X_msg_count, X_msg_data) to detect validation failures. The CHECK_DELETE_LCYL_PHASE_OK routine is particularly useful for pre-validating phase deletions in batch cleanup scripts to avoid runtime errors caused by referenced project elements.
-
APPS.PA_LIFECYCLES_PVT SQL Statements
12.2.2
-
APPS.PA_LIFECYCLES_PVT SQL Statements
12.1.1
-
APPS.PA_LIFECYCLES_PUB SQL Statements
12.1.1
-
APPS.PA_LIFECYCLES_PUB SQL Statements
12.2.2
-
PACKAGE: APPS.PA_LIFECYCLES_PVT
12.1.1
-
PACKAGE: APPS.PA_LIFECYCLES_PVT
12.2.2
-
PACKAGE BODY: APPS.PA_LIFECYCLES_PVT
12.2.2
-
PACKAGE BODY: APPS.PA_LIFECYCLES_PVT
12.1.1
-
PACKAGE BODY: APPS.PA_LIFECYCLES_PUB
12.2.2
-
PACKAGE BODY: APPS.PA_LIFECYCLES_PUB
12.1.1
-
APPS.PA_LIFECYCLES_PUB dependencies on PA_EGO_WRAPPER_PUB
12.1.1
-
APPS.PA_LIFECYCLES_PUB dependencies on PA_EGO_WRAPPER_PUB
12.2.2
-
APPS.PA_LIFECYCLES_PUB dependencies on PA_LIFECYCLES_PVT
12.2.2
-
APPS.PA_LIFECYCLES_PUB dependencies on PA_LIFECYCLES_PVT
12.1.1
-
APPS.PA_LIFECYCLES_PUB dependencies on PA_DEBUG
12.1.1
-
APPS.PA_LIFECYCLES_PUB dependencies on PA_DEBUG
12.2.2
-
APPS.PA_LIFECYCLES_PVT dependencies on PA_LIFECYCLES_PVT
12.1.1
-
APPS.PA_LIFECYCLES_PVT dependencies on PA_LIFECYCLES_PVT
12.2.2
-
APPS.PA_LIFECYCLES_PVT dependencies on FND_MSG_PUB
12.2.2
-
APPS.PA_LIFECYCLES_PVT dependencies on FND_MSG_PUB
12.1.1
-
APPS.PA_LIFECYCLES_PUB dependencies on PA_LIFECYCLES_PUB
12.2.2
-
APPS.PA_LIFECYCLES_PUB dependencies on PA_LIFECYCLES_PUB
12.1.1
-
APPS.PA_LIFECYCLES_PVT dependencies on FND_API
12.1.1
-
APPS.PA_LIFECYCLES_PVT dependencies on FND_API
12.2.2