Search Results abort_task_workflow




Overview

APPS.JTF_TASK_WORKFLOW_PKG is a PL/SQL package body that integrates Oracle Task Manager (the JTF_TASK schema) with the Oracle Workflow engine (WF_ITEMS and related runtime tables). Its central business purpose is to start, monitor, query, and abort the Workflow processes that represent task lifecycles. When a task is created or updated in Oracle EBS, the application must determine whether an associated Workflow process is still active, resolve a human-readable display name for the process, and drive the process forward or terminate it. This package provides that orchestration layer.

The package is owned by APPS and is classified under the "OTHER" API category, indicating it is an internal utility package rather than a formally published public API. The package body header carries a version stamp of 120.3 with a 2006 footprint, meaning the object is stable and shared across EBS 12.1.1 and 12.2.2. It exposes six documented procedures and functions and is referenced by six other packages, confirming that it acts as a shared service for Task Manager workflow behavior.

Key Procedures and Functions

  • IS_TASK_ITEM_ACTIVE — Returns 'Y' or 'N' depending on whether the Workflow process for a given task is still active. It constructs an item key from the task ID and workflow process ID, queries WF_ITEMS for the corresponding item, and treats a NULL end_date as active.
  • GET_WORKFLOW_DISP_NAME — Resolves and returns a display name for a workflow process, given an item type and process name. It supports an optional error-raising flag, allowing callers to suppress exceptions when the process definition cannot be resolved.
  • CHECK_EVENT — Evaluates an event condition associated with a task, supporting the event-driven logic that determines when workflow activity should fire.
  • DEFAULT_TASK_DETAILS_TBL — Populates default task detail values, typically used when a task is created without complete attribute data.
  • START_TASK_WORKFLOW — Initiates a Workflow process for a task, creating the corresponding WF_ITEMS row and submitting the process for execution.
  • ABORT_TASK_WORKFLOW — Terminates an in-flight Workflow process for a task, used when a task is cancelled or must be forcibly closed.

With regard to the search term current_record, the package does not expose any documented parameter or local variable by that name. The closest documented construct is the item-key cursor used by IS_TASK_ITEM_ACTIVE, which retrieves the current WF_ITEMS record for a task/process pair. Developers searching for "current_record" in this context are most likely encountering the record-level cursor logic that evaluates the single active item record.

Tables Accessed

Usage Notes

This package is invoked internally by the Task Manager forms and by the six dependent packages that drive task workflow behavior. Custom extensions should call IS_TASK_ITEM_ACTIVE before acting on a task process, since it guards against operating on completed or aborted items. START_TASK_WORKFLOW and ABORT_TASK_WORKFLOW are the intended entry points for lifecycle transitions. Because the package is classified as OTHER rather than as a public API, Oracle does not guarantee signature stability; custom code should depend on it cautiously and validate behavior in both 12.1.1 and 12.2.2, where the object is identical.