You are on page 1of 1

Goal

How to delete HR workflow notifications from the tables. These notifications a


re stuck due to incorrect setup.
Solution
1- Determine the item key for the transaction by running wf_status.sql (from $FN
D_TOP/sql/wfstatus.sql)
2- Please run the following SQL:
Please note, you need to delete the data from the following tables in the follo
wing order
- hr_api_transaction_values
- hr_api_transaction_steps
- hr_api_transactions
otherwise you will get a unique constraint.
select transaction_id
,item_type
,item_key
,process_name
from hr_API_TRANSACTIONS
where item_type ='HRSSA'
and item_key = '&p_item_key';
delete from hr_api_transaction_values
where transaction_step_id in
(select transaction_step_id from hr_api_transaction_steps
where transaction_id = &p_transaction_id_from_1);
delete from hr_api_transaction_steps
where transaction_id = &p_transaction_id_from_1;
delete from hr_api_transactions
where transaction_id = &p_transaction_id_from_1;
3- Run the process: Complete Defunct HR Workflow Processes concurrent program -
this will flag any HR workflow process that are no longer in operation to be de
leted.
Users can use the following parameters:
Item Type HR
Age 365
Transaction Status ALL
4- Run the Purge Obsolete Workflow Runtime Data process to delete the actual wo
rkflow processes.
Any existing notifications that exit for the 3 item keys are now completely use
less.

You might also like