Workflow Tables and Queries
Workflow Tables and Queries
This articles contains all the table information related to Oracle Workflows and queries joining
these tables.
Query1: Accepts Workflow itemtype / shortname as input parameter and will all the activities
involved along with the status and user name to whom the current activity is assigned.
Query2: Accepts workflow itemtype and activity as input variables and the results will provide the
time frame explaining from how long the activity is pending along with the username whose action
is req
MULTIPLE INSTANCES OF COPY TO CLIPBOARD DEMO
WORKFLOW TABLES
AND PROCESS_ACTIVITY_ID
IN(
FROM WF_ITEM_ACTIVITY_STATUSES
SELECT A.ITEM_KEY,
B.ACTIVITY_NAME,
A.ACTIVITY_STATUS,
A.ACTIVITY_RESULT_CODE,
A.ASSIGNED_USER,
A.BEGIN_DATE,
A.END_DATE
FROM WF_ITEM_ACTIVITY_STATUSES A,
WF_PROCESS_ACTIVITIES B
SELECT B.ACTIVITY_NAME,
COUNT(B.ACTIVITY_NAME) TOTAL_PENDING
FROM WF_ITEM_ACTIVITY_STATUSES A,
WF_PROCESS_ACTIVITIES B
GROUP BY ACTIVITY_NAME,
TRUNC(SYSDATE) - TRUNC(BEGIN_DATE)
ORDER BY ACTIVITY_NAME,
PENDING_FROM_NO_OF_DAYS
FROM
(SELECT B.ACTIVITY_NAME,
COUNT(B.ACTIVITY_NAME) TOTAL_PENDING
FROM WF_ITEM_ACTIVITY_STATUSES A,
WF_PROCESS_ACTIVITIES B
GROUP BY ACTIVITY_NAME,
TRUNC(SYSDATE) - TRUNC(BEGIN_DATE)
ORDER BY ACTIVITY_NAME,
PENDING_FROM_NO_OF_DAYS ) FIVE_DAYS