Search Results lns_work_flow
Overview
LNS_WORK_FLOW is a PL/SQL package in the APPS schema that serves as the workflow and approval engine for Oracle Loans, the lending module within Oracle E-Business Suite. Its central responsibility is to manage the lifecycle events associated with loan records, including status transitions, notifications, approvals, and rejections, and to integrate the Loans approval process with Oracle Approvals Management (AME). The package encapsulates the business logic that determines what should happen when a loan's status changes, when a loan requires approval, and when information must be requested from a user. Because it is classified under the OTHER API category rather than as a public open interface, it is intended primarily for internal consumption by other EBS components rather than as a supported integration point for external systems.
The package's position in the dependency chain is indicative of its role: it is referenced by LNS_LOAN_HISTORIES_H_PKG and by itself, and it references the SYS.STANDARD package. This places it downstream of loan history processing and at the center of the approval workflow orchestration.
Key Procedures and Functions
The documented interface comprises twenty procedures and functions, which cluster into four functional areas.
- Status change processing: PROCESS_LOAN_STATUS_CHANGE, PROCESS_STATUS_CHANGE, and PROCESS_SEC_STATUS_CHANGE handle transitions of the primary loan status and secondary status values, applying the appropriate downstream effects for each transition.
- Event handling: RAISE_EVENT, PROCESS_EVENT, LOG_EVENT_HISTORY, SYNCH_EVENT_ACTIONS, and DELETE_LNS_EVENT_ACTIONS manage the creation, processing, synchronization, and historical logging of workflow events and the actions they trigger.
- Notifications and approvals: CREATE_NOTIFICATION_DETAILS, PROCESS_LOAN_APPROVAL, PROCESS_LOAN_REJECTION, REQUEST_LOAN_INFORMATION, and APPROVE_LOAN_FROM_NTF support the human-facing side of the workflow, generating notification content and processing responses such as approvals, rejections, and requests for more information.
- AME integration: AMEEENABLED (documented as AMEENABLED), AME_FIND_PRIMARY_APPROVER, AME_VERIFY_LOANS_MGR_ROLE, UPDATE_APPROVAL_STATUS_TO_AME, UPDATE_REJECTED_STATUS_TO_AME, APPROVE_LOAN_USING_AME, and PROCESS_AME_APPROVAL_ACTION provide the bridge to Oracle Approvals Management, determining whether AME is active, resolving the primary approver, verifying the loans manager role, and writing approval or rejection outcomes back to AME.
Tables Accessed
The package touches a mix of Loans-specific and shared EBS foundation tables through APPS synonyms. LNS_APPROVAL_ACTIONS stores the approval actions defined for the Loans workflow. JTF_NOTES_B, JTF_NOTES_TL, and JTF_NOTE_CONTEXTS hold the free-text notes and context information generated as part of notifications and event details. HZ_PARTIES and JTF_RS_RESOURCE_EXTNS, JTF_RS_ROLES_B, and JTF_RS_ROLE_RELATIONS supply party, resource, and role data used to resolve approvers and verify the loans manager role for AME. FND_USER, FND_RESPONSIBILITY, FND_CONCURRENT_PROGRAMS, FND_NEW_MESSAGES, FND_PROFILE_OPTION_VALUES, FND_REQUEST_GROUPS, and FND_REQUEST_GROUP_UNITS provide the standard EBS security, messaging, profile option, and concurrent program request context needed to create notifications and submit or queue related processing.
Usage Notes
LNS_WORK_FLOW is invoked indirectly by the Loans application rather than directly by end users. The typical call paths are from Loans forms and their underlying package logic when a user initiates an approval, rejects a loan, or requests additional information, and from workflow or notification activity responses when a recipient acts on a loan notification. Status change procedures are triggered whenever a loan's status is updated, ensuring that events, notifications, and AME actions remain synchronized. The presence of AME-related routines implies that behavior varies depending on whether AME is enabled in the environment; when it is, approval routing and outcome recording are delegated to AME, otherwise the package's internal approval logic applies. Because the package is not classified as a public API, customizations should avoid calling its procedures directly; supported extension should instead use the documented Loans APIs and standard workflow configuration.
-
PACKAGE: APPS.LNS_WORK_FLOW
12.2.2
owner:APPS, object_type:PACKAGE, object_name:LNS_WORK_FLOW, status:VALID,
-
PACKAGE: APPS.LNS_WORK_FLOW
12.1.1
owner:APPS, object_type:PACKAGE, object_name:LNS_WORK_FLOW, status:VALID,
-
PACKAGE BODY: APPS.LNS_WORK_FLOW
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:LNS_WORK_FLOW, status:VALID,
-
PACKAGE BODY: APPS.LNS_WORK_FLOW
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:LNS_WORK_FLOW, status:VALID,
-
SYNONYM: APPS.LNS_EVENTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:LNS_EVENTS, status:VALID,
-
SYNONYM: APPS.LNS_EVENT_ACTIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:LNS_EVENT_ACTIONS, status:VALID,
-
SYNONYM: APPS.LNS_WORKFLOW_ITEMKEY_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:LNS_WORKFLOW_ITEMKEY_S, status:VALID,
-
SYNONYM: APPS.LNS_EVT_ACTION_HISTORY_H
12.1.1
owner:APPS, object_type:SYNONYM, object_name:LNS_EVT_ACTION_HISTORY_H, status:VALID,
-
SYNONYM: APPS.LNS_APPROVAL_ACTIONS_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:LNS_APPROVAL_ACTIONS_S, status:VALID,
-
SYNONYM: APPS.LNS_EVENT_ACTIONS_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:LNS_EVENT_ACTIONS_S, status:VALID,
-
SYNONYM: APPS.LNS_EVENT_ACTIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:LNS_EVENT_ACTIONS, status:VALID,
-
SYNONYM: APPS.LNS_EVENTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:LNS_EVENTS, status:VALID,
-
PACKAGE: APPS.LNS_EVT_ACTION_HISTORY_H_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:LNS_EVT_ACTION_HISTORY_H_PKG, status:VALID,
-
SYNONYM: APPS.LNS_APPROVAL_ACTIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:LNS_APPROVAL_ACTIONS, status:VALID,
-
SYNONYM: APPS.LNS_EVT_ACTION_HISTORY_H
12.2.2
owner:APPS, object_type:SYNONYM, object_name:LNS_EVT_ACTION_HISTORY_H, status:VALID,
-
PACKAGE: APPS.LNS_EVT_ACTION_HISTORY_H_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:LNS_EVT_ACTION_HISTORY_H_PKG, status:VALID,
-
PACKAGE BODY: APPS.LNS_LOAN_HISTORIES_H_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:LNS_LOAN_HISTORIES_H_PKG, status:VALID,
-
PACKAGE BODY: APPS.LNS_LOAN_HISTORIES_H_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:LNS_LOAN_HISTORIES_H_PKG, status:VALID,
-
SYNONYM: APPS.LNS_LOAN_PRODUCTS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:LNS_LOAN_PRODUCTS_ALL, status:VALID,
-
SYNONYM: APPS.LNS_LOAN_TYPES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:LNS_LOAN_TYPES, status:VALID,
-
PACKAGE: APPS.LNS_APPROVAL_ACTION_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:LNS_APPROVAL_ACTION_PUB, status:VALID,
-
SYNONYM: APPS.LNS_LOAN_TYPES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:LNS_LOAN_TYPES, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
SYNONYM: APPS.FND_REQUEST_GROUP_UNITS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_REQUEST_GROUP_UNITS, status:VALID,
-
SYNONYM: APPS.LNS_WORKFLOW_ITEMKEY_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:LNS_WORKFLOW_ITEMKEY_S, status:VALID,
-
SYNONYM: APPS.LNS_EVENT_ACTIONS_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:LNS_EVENT_ACTIONS_S, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
PACKAGE: APPS.LNS_FINANCIALS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:LNS_FINANCIALS, status:VALID,
-
SYNONYM: APPS.FND_REQUEST_GROUPS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_REQUEST_GROUPS, status:VALID,
-
SYNONYM: APPS.JTF_NOTE_CONTEXTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:JTF_NOTE_CONTEXTS, status:VALID,
-
SYNONYM: APPS.LNS_LOAN_HEADERS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:LNS_LOAN_HEADERS, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
SYNONYM: APPS.LNS_LOAN_HEADERS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:LNS_LOAN_HEADERS, status:VALID,
-
PACKAGE: APPS.LNS_FINANCIALS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:LNS_FINANCIALS, status:VALID,
-
VIEW: APPS.LNS_PAY_SUM_OVERDUE_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:LNS.LNS_PAY_SUM_OVERDUE_V, object_name:LNS_PAY_SUM_OVERDUE_V, status:VALID,
-
SYNONYM: APPS.JTF_NOTES_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:JTF_NOTES_TL, status:VALID,
-
PACKAGE: APPS.LNS_UTILITY_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:LNS_UTILITY_PUB, status:VALID,
-
SYNONYM: APPS.LNS_LOAN_HEADERS_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:LNS_LOAN_HEADERS_ALL, status:VALID,
-
PACKAGE: APPS.LNS_WORK_FLOW
12.1.1
-
VIEW: APPS.LNS_PAY_SUM_OVERDUE_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:LNS.LNS_PAY_SUM_OVERDUE_V, object_name:LNS_PAY_SUM_OVERDUE_V, status:VALID,
-
SYNONYM: APPS.LNS_LOAN_HEADERS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:LNS_LOAN_HEADERS_ALL, status:VALID,
-
PACKAGE: APPS.LNS_UTILITY_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:LNS_UTILITY_PUB, status:VALID,
-
VIEW: APPS.LNS_PAY_SUM_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:LNS.LNS_PAY_SUM_V, object_name:LNS_PAY_SUM_V, status:VALID,
-
SYNONYM: APPS.JTF_NOTES_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:JTF_NOTES_B, status:VALID,
-
VIEW: APPS.LNS_PAY_SUM_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:LNS.LNS_PAY_SUM_V, object_name:LNS_PAY_SUM_V, status:VALID,
-
PACKAGE: APPS.AME_API2
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AME_API2, status:VALID,
-
SYNONYM: APPS.WF_PARAMETER_T
12.2.2
owner:APPS, object_type:SYNONYM, object_name:WF_PARAMETER_T, status:VALID,
-
VIEW: APPS.LNS_LOAN_TYPES_VL
12.1.1
owner:APPS, object_type:VIEW, object_name:LNS_LOAN_TYPES_VL, status:VALID,
-
VIEW: APPS.LNS_LOOKUPS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:LNS.LNS_LOOKUPS, object_name:LNS_LOOKUPS, status:VALID,