SELECT a.msg_state,
a.user_data.event_name,
a.user_data.send_date
FROM applsys.aq$wf_deferred a
WHERE a.user_data.event_name LIKE 'oracle.apps.ar.transaction.Invoice.complete' --Here We need to pass Business event name
GROUP BY a.msg_state, a.user_data.event_name, a.user_data.send_date
ORDER BY a.user_data.event_name,a.user_data.send_date DESC;
select w_even.name
,w_even.status event_status
,w_e_subs.status subscription_status
,nvl(w_e_subs.phase,0) subscription_phase
,w_e_subs.rule_function
from wf_events w_even
,wf_event_subscriptions w_e_subs
where
w_even.name like 'oracle.apps.ar.transaction.Invoice.complete'
and w_e_subs.event_filter_guid = w_even.guid;
SELECT wd.user_data.event_name,
wd.user_data.event_key,
rank() over(PARTITION BY wd.user_data.event_name, wd.user_data.event_key ORDER BY n.NAME) AS serial_no,
n.NAME parameter_name,
n.VALUE parameter_value,
wd.user_data.error_message,
wd.user_data.error_stack,
wd.msgid,
wd.delay
FROM apps.wf_deferred wd, TABLE(wd.user_data.parameter_list) n
WHERE 1=1
AND wd.user_data.event_name ='oracle.apps.ar.transaction.Invoice.complete'
ORDER BY wd.user_data.send_date DESC,
wd.user_data.event_name,
wd.user_data.event_key,
n.NAME;
No comments:
Post a Comment