Você está na página 1de 2

----------- NEW TRY THIS --------

-- STEP-1 : CANCEL WORK FLOW USING SYSADMIN user and Navigate to Workflow
Administrator web applications -> Administer workflow -> Status monitor
-- DOC NAME - STEPS TO CANCEL PENDING HRSSA WORKFLOW

-- THEN DO HE BELOW

select * from wf_notifications where sUBJECT like '%Leave of Absence for %Anooj%'
and status = 'OPEN' and message_name = 'HR_EMBED_RN_NTF_APPR_MSG'
order by notification_id desc

SELECT * from wf_notifications wf


where
wf.NOTIFICATION_ID = 914607

SELECT * from wf_notifications wf


where
WF.ITEM_KEY in ('47579') -- '41390' --'12486'
--and message_type = 'HRSSA'

SELECT * FROM hr_api_transactions HA


WHERE
--HA.TRANSACTION_ID in ( 494317 )
HA.ITEM_KEY = '47579'

----------- enable the below and run using transaction_ID ----------

--begin
--hr_transaction_api.rollback_transaction( p_transaction_id => :trx_id
-- ,p_validate => false );
--commit;
--end;

--------------------------------------------------------------------------------

SELECT * FROM hr_api_transaction_steps HAT


WHERE
HAT.TRANSACTION_ID = 431676 --192547 --192548 --192547

SELECT * FROM hr_api_transaction_steps HAT


WHERE
hat.INFORMATION1 = '2014-12-29'
and hat.INFORMATION2 = '2015-01-25'

SELECT * FROM hr_api_transaction_steps HAT,


hr_api_transactions HA
WHERE
--hat.INFORMATION1 >= '2014-12-01'
--and hat.INFORMATION2 <= '2014-12-31'
HA.TRANSACTION_ID = hat.TRANSACTION_ID
--and ha.ITEM_KEY is null
and ha.ASSIGNMENT_ID = 3962
--select * from wf_notifications where notification_id = 345972 --312040

--select * from wf_notifications where item_key = '26234' order by notification_id

select * from wf_item_activity_statuses where item_key = '27605' --and


ACTIVITY_STATUS = 'ACTIVE'

--delete from wf_item_activity_statuses where item_key = '21736' and


ACTIVITY_STATUS = 'ACTIVE' and item_type = 'HRSSA'

--delete from wf_notifications where item_key = '21736' --notification_id = 326092

--commit

-------------------

--select * from wf_notifications where notification_id = 345972 --312040

--select * from wf_notifications where item_key = '21736' order by notification_id

--select * from wf_item_activity_statuses where item_key = '21736' and


ACTIVITY_STATUS = 'ACTIVE'

--delete from wf_item_activity_statuses where item_key = '21736' and


ACTIVITY_STATUS = 'ACTIVE' and item_type = 'HRSSA'

--rollback

select person_id, full_name, employee_number from per_all_people_f where full_name


like '%Antony Sebastian%'

select * from PER_ABSENCE_ATTENDANCES_V where person_id = 565 --542--867

select * from hr_api_transaction_steps where creator_person_id = 757

select * from hr_api_transaction_steps HA where HA.ITEM_KEY = '20003'

select * from per_all_people_f papf where papf.PERSON_ID in (749,852,565)

SELECT * FROM hr_api_transactions HA


WHERE
HA.TRANSACTION_ID = 213603

--select * from hr_api_transaction_steps where TRANSACTION_STEP_ID = 213603

--delete from hr_api_transaction_steps where TRANSACTION_STEP_ID = 213603

--delete from wf_notifications where notification_id = 326092

--commit

Você também pode gostar