Search Results wf_process_activity
Overview
The APPS.WF_PROCESS_ACTIVITY package body is a core component of the Oracle Workflow engine, the embedded business process management infrastructure shipped with Oracle E-Business Suite 12.1.1 and 12.2.2. Oracle Workflow models business processes as directed graphs of activities, where each activity occupies a defined position within a process definition. This package provides the runtime and definition-time services that resolve, validate, and report the relationship between a running workflow process instance and the individual activities it contains.
In practical terms, WF_PROCESS_ACTIVITY answers structural questions about a process instance: which activity is the root of the process, which activity is currently active, which instance identifiers correspond to the start and root nodes, whether a given activity is a child of another, and what the internal name of an activity is. These services are consumed by the Workflow Engine, the Workflow Monitor, the Notification System, and any custom code that needs to introspect a running process. The package is classified as an API of type OTHER in ETRM, reflecting that it is an internal engine support package rather than a documented end-user API, but its procedures are stable and widely invoked across the EBS technology stack. It is referenced by fifteen other database packages, confirming its role as a foundational dependency in the Workflow subsystem. The package body is marked VALID in the ETRM register, and it depends on peer packages including WF_CORE, WF_ENGINE, WF_ITEM, and WF_CACHE.
Key Procedures and Functions
Seven procedures and functions are documented for this package body:
- CLEARCACHE — Flushes cached process activity structures, ensuring that subsequent lookups read current definition and instance data rather than stale in-memory values.
- ROOTINSTANCEID — Returns the instance identifier of the root activity for a given process instance. The root represents the top-level process node from which all subprocesses descend.
- ACTIVITYNAME — Resolves and returns the internal name of an activity, typically from its identifier, allowing engine and monitor components to display a meaningful label.
- STARTINSTANCEID — Returns the instance identifier of the start activity, the entry point of the process definition.
- ACTIVEINSTANCEID — Returns the instance identifier of the currently active activity within a process, used to determine where execution has progressed.
- ISCHILD — Evaluates whether a given activity is a child of another activity within the process hierarchy, supporting parent/child traversal and subprocess validation.
- FINDACTIVITY — Locates an activity instance within a process, returning its identifier when supplied with the appropriate lookup criteria.
Tables Accessed
The package reads and writes the Workflow definition and runtime tables that store process structure and execution state:
- WF_ACTIVITIES — Holds activity definition metadata, including activity names and types, used by ACTIVITYNAME and FINDACTIVITY.
- WF_PROCESS_ACTIVITIES — Stores the composition of process definitions, mapping activities to their parent processes and defining the parent/child relationships evaluated by ISCHILD.
- WF_ITEM_ACTIVITY_STATUSES — Contains the runtime status of each activity for every item (process instance), read by ROOTINSTANCEID, STARTINSTANCEID, ACTIVEINSTANCEID, and FINDACTIVITY to determine instance-level activity positions.
Supporting dependencies include WF_ACTIVITY, WF_CACHE, WF_CORE, WF_ENGINE, WF_ITEM, and WF_ITEM_ACTIVITY_STATUS.
Usage Notes
WF_PROCESS_ACTIVITY is invoked indirectly rather than directly by end users. The Workflow Engine calls it during process execution to establish the root, start, and active activities of an instance, and to validate hierarchical relationships when subprocesses are launched. The Workflow Monitor and administrative diagnostics use the same procedures to render process status and activity detail. Custom PL/SQL in EBS forms, concurrent programs, or extensions may reference these procedures when building workflow-aware logic, such as locating the active activity before applying custom notifications. No database object references this package, so it should be treated as a leaf-level engine utility; direct invocation is supported but not recommended for critical customizations.
-
PACKAGE BODY: APPS.WF_PROCESS_ACTIVITY
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:WF_PROCESS_ACTIVITY, status:VALID,
-
PACKAGE BODY: APPS.WF_PROCESS_ACTIVITY
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:WF_PROCESS_ACTIVITY, status:VALID,
-
PACKAGE: APPS.WF_PROCESS_ACTIVITY
12.2.2
owner:APPS, object_type:PACKAGE, object_name:WF_PROCESS_ACTIVITY, status:VALID,
-
PACKAGE: APPS.WF_PROCESS_ACTIVITY
12.1.1
owner:APPS, object_type:PACKAGE, object_name:WF_PROCESS_ACTIVITY, status:VALID,
-
PACKAGE: APPS.WF_PROCESS_ACTIVITY
12.2.2
-
PACKAGE: APPS.WF_PROCESS_ACTIVITY
12.1.1
-
PACKAGE BODY: APPS.WF_PROCESS_ACTIVITY
12.1.1
-
PACKAGE BODY: APPS.WF_PROCESS_ACTIVITY
12.2.2
-
PACKAGE: APPS.WF_ACTIVITY
12.1.1
owner:APPS, object_type:PACKAGE, object_name:WF_ACTIVITY, status:VALID,
-
PACKAGE BODY: APPS.WF_PURGE
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:WF_PURGE, status:VALID,
-
PACKAGE BODY: APPS.WF_ENGINE_BULK
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:WF_ENGINE_BULK, status:VALID,
-
PACKAGE BODY: APPS.WF_PURGE
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:WF_PURGE, status:VALID,
-
PACKAGE BODY: APPS.WF_ITEM
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:WF_ITEM, status:VALID,
-
PACKAGE: APPS.WF_CACHE
12.2.2
owner:APPS, object_type:PACKAGE, object_name:WF_CACHE, status:VALID,
-
PACKAGE BODY: APPS.WF_ITEM_ACTIVITY_STATUS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:WF_ITEM_ACTIVITY_STATUS, status:VALID,
-
PACKAGE: APPS.WF_CACHE
12.1.1
owner:APPS, object_type:PACKAGE, object_name:WF_CACHE, status:VALID,
-
PACKAGE BODY: APPS.WF_ITEM
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:WF_ITEM, status:VALID,
-
PACKAGE BODY: APPS.PO_WF_UTIL_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PO_WF_UTIL_PKG, status:VALID,
-
PACKAGE BODY: APPS.WF_ENGINE_BULK
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:WF_ENGINE_BULK, status:VALID,
-
PACKAGE BODY: APPS.WF_ITEM_ACTIVITY_STATUS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:WF_ITEM_ACTIVITY_STATUS, status:VALID,
-
PACKAGE BODY: APPS.PO_WF_UTIL_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PO_WF_UTIL_PKG, status:VALID,
-
PACKAGE BODY: APPS.PO_REQ_WF_BUILD_ACCOUNT_INIT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PO_REQ_WF_BUILD_ACCOUNT_INIT, status:VALID,
-
PACKAGE BODY: APPS.XNP_EVENT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:XNP_EVENT, status:VALID,
-
PACKAGE BODY: APPS.PO_REQ_WF_BUILD_ACCOUNT_INIT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PO_REQ_WF_BUILD_ACCOUNT_INIT, status:VALID,
-
PACKAGE BODY: APPS.WF_ENGINE_UTIL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:WF_ENGINE_UTIL, status:VALID,
-
PACKAGE BODY: APPS.WF_ENGINE_UTIL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:WF_ENGINE_UTIL, status:VALID,
-
PACKAGE BODY: APPS.XNP_EVENT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:XNP_EVENT, status:VALID,
-
PACKAGE: APPS.WF_ACTIVITY
12.2.2
owner:APPS, object_type:PACKAGE, object_name:WF_ACTIVITY, status:VALID,
-
PACKAGE BODY: APPS.IEX_STRATEGY_WF
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:IEX_STRATEGY_WF, status:VALID,
-
PACKAGE BODY: APPS.PO_NEGOTIATIONS_SV2
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PO_NEGOTIATIONS_SV2, status:VALID,
-
PACKAGE BODY: APPS.OE_ERROR_WF
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OE_ERROR_WF, status:VALID,
-
PACKAGE BODY: APPS.PO_NEGOTIATIONS_SV2
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PO_NEGOTIATIONS_SV2, status:VALID,
-
PACKAGE BODY: APPS.IEX_STRATEGY_WF
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:IEX_STRATEGY_WF, status:VALID,
-
PACKAGE BODY: APPS.WF_ENGINE
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:WF_ENGINE, status:VALID,
-
PACKAGE: APPS.WF_ITEM
12.1.1
owner:APPS, object_type:PACKAGE, object_name:WF_ITEM, status:VALID,
-
PACKAGE: APPS.WF_ITEM_ACTIVITY_STATUS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:WF_ITEM_ACTIVITY_STATUS, status:VALID,
-
PACKAGE BODY: APPS.OE_ERROR_WF
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OE_ERROR_WF, status:VALID,
-
PACKAGE BODY: APPS.WF_ENGINE
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:WF_ENGINE, status:VALID,
-
PACKAGE: APPS.WF_ITEM_ACTIVITY_STATUS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:WF_ITEM_ACTIVITY_STATUS, status:VALID,
-
PACKAGE: APPS.WF_ITEM
12.2.2
owner:APPS, object_type:PACKAGE, object_name:WF_ITEM, status:VALID,
-
PACKAGE BODY: APPS.LNS_DISTRIBUTIONS_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:LNS_DISTRIBUTIONS_PUB, status:VALID,
-
PACKAGE BODY: APPS.POR_UTIL_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:POR_UTIL_PKG, status:VALID,
-
SYNONYM: APPS.WF_ACTIVITIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:WF_ACTIVITIES, status:VALID,
-
PACKAGE BODY: APPS.OE_VALIDATE_LINE
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OE_VALIDATE_LINE, status:VALID,
-
SYNONYM: APPS.WF_ACTIVITIES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:WF_ACTIVITIES, status:VALID,
-
PACKAGE BODY: APPS.POR_UTIL_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:POR_UTIL_PKG, status:VALID,
-
APPS.WF_ENGINE dependencies on WF_PROCESS_ACTIVITY
12.1.1
-
APPS.WF_ENGINE_UTIL dependencies on WF_PROCESS_ACTIVITY
12.2.2
-
APPS.POR_UTIL_PKG dependencies on WF_PROCESS_ACTIVITY
12.2.2
-
APPS.WF_ENGINE_BULK dependencies on WF_PROCESS_ACTIVITY
12.2.2