SELECT ias.item_type,
IAS.item_key,
pa.instance_label,
pa.process_name activity,
ias.activity_result_code,
Count(*)
FROM apps.wf_item_activity_statuses ias,
apps.wf_process_activities pa
WHERE 1 = 1
AND ias.item_type LIKE :item_type -- Eg: REQAPPRV for Requisition Approval
AND ias.process_activity = pa.instance_id
AND ias.activity_status = 'ERROR'
GROUP BY ias.item_type,
IAS.item_key,
pa.instance_label,
pa.process_name,
ias.activity_result_code
ORDER BY pa.instance_label;
Comments
Post a Comment