SELECT WI.ITEM_TYPE
,WI.ITEM_KEY
,WI.BEGIN_DATE
,WPA.INSTANCE_ID ACTIVITY_ID
,WPA.ACTIVITY_NAME ACTIVITY_NAME
,WPA.PROCESS_NAME
FROM APPS.WF_ITEMS WI
,APPS.WF_ITEM_ACTIVITY_STATUSES WIAS
,APPS.WF_PROCESS_ACTIVITIES WPA
WHERE WI.ITEM_TYPE = WIAS.ITEM_TYPE
AND WIAS.ITEM_TYPE = WPA.PROCESS_ITEM_TYPE
AND WI.ITEM_KEY = WIAS.ITEM_KEY
AND WIAS.PROCESS_ACTIVITY = WPA.INSTANCE_ID
AND WPA.ACTIVITY_NAME = UPPER('&Activity_Name')
AND WI.ITEM_TYPE = UPPER('&Workflow_Item_Type')
AND WIAS.ITEM_KEY = UPPER('&Workflow_Item_Key')
,WI.ITEM_KEY
,WI.BEGIN_DATE
,WPA.INSTANCE_ID ACTIVITY_ID
,WPA.ACTIVITY_NAME ACTIVITY_NAME
,WPA.PROCESS_NAME
FROM APPS.WF_ITEMS WI
,APPS.WF_ITEM_ACTIVITY_STATUSES WIAS
,APPS.WF_PROCESS_ACTIVITIES WPA
WHERE WI.ITEM_TYPE = WIAS.ITEM_TYPE
AND WIAS.ITEM_TYPE = WPA.PROCESS_ITEM_TYPE
AND WI.ITEM_KEY = WIAS.ITEM_KEY
AND WIAS.PROCESS_ACTIVITY = WPA.INSTANCE_ID
AND WPA.ACTIVITY_NAME = UPPER('&Activity_Name')
AND WI.ITEM_TYPE = UPPER('&Workflow_Item_Type')
AND WIAS.ITEM_KEY = UPPER('&Workflow_Item_Key')
0 comments: