Below are some of the useful workflow script that we use frequently in our 11i/R12 instances
VERIFY THE WORKFLOW IMAP SETTING
set pagesize 100 set linesize 132 set feedback off set verify off col value format a35 col component_name format a30 select c.component_id, c.component_name, p.parameter_id, p.parameter_name, v.parameter_value value from fnd_svc_comp_param_vals_v v, fnd_svc_comp_params_b p, fnd_svc_components c where c.component_type = 'WF_MAILER' and v.component_id = c.component_id and v.parameter_id = p.parameter_id and p.parameter_name in ( 'INBOUND_SERVER','ACCOUNT', 'REPLYTO') order by c.component_id, c.component_name,p.parameter_name;
update fnd_svc_comp_param_vals set parameter_value = 'dummy@dummy.com' where parameter_id = ( select parameter_id from fnd_svc_comp_params_tl where display_name = 'Test Address' );
SELECT email_address, nvl(WF_PREF.get_pref(name, 'MAILTYPE'),notification_preference) FROM wf_roles WHERE name = upper('&USERNAME');
exec FND_PREFERENCE.put('&USERNAME', 'WF', 'MAILTYPE', 'MAILHTML');
update fnd_user_preferences set preference_value='MAILHTML' where preference_name='MAILTYPE' and module_name='WF' and user_name ='&USERNAME';
mail_status = ‘MAIL’ means mail not yet sent
mail_status = ‘SENT’ means email went out
status =’OPEN’ means notification is open and not acted upon by user
status=’CLOSED’ means notification was acted upon by user.
select * from wf_notifications where begin_date> sysdate-2 order by notification_id desc;
select * from wf_notifications where begin_date> sysdate-2 and message_type='WFTESTS' order by notification_id desc;
SELECT COUNT(*), message_name FROM wf_notifications WHERE STATUS='OPEN' AND mail_status = 'MAIL' GROUP BY message_name;
telnet mailsrv.domain.com 143
Trying <IP address> ... Connected to mailsrv Escape character is '^]'. * OK Domino IMAP4 Server Release 5.0.11 ready Sun, 23 Nov 2013 10:26:49 -0800
1 login < IMAP account > <IMAP account password>
1 OK LOGIN completed if ok then check the INBOX : 1 select "INBOX"
* 23 EXISTS * 0 RECENT * OK [UIDVALIDITY 0] UIDs valid * FLAGS (\Flagged \Seen \Answered \Deleted \Draft) * OK [PERMANENTFLAGS (\Flagged \Seen \Answered \Deleted \Draft)] Permanent flags 1 OK [READ-WRITE] SELECT completed
1 logout
sqlplus usr/passwd@db @$FND_TOP/patch/115/sql/wfntfqup.sql APPSusr APPSpw FNDusr
sqlplus apps/apps@db @$FND_TOP/patch/115/sql/wfntfqup.sql apps apps applsys
SQL> select notification_id, status, mail_status, begin_date from WF_NOTIFICATIONS where status = 'OPEN' and mail_status = 'MAIL';
SQL> update WF_NOTIFICATIONS set status = 'CLOSED', mail_status = 'SENT', end_date = sysdate; SQL> Commit;
SQL> select notification_id, status, mail_status, begin_date from WF_NOTIFICATIONS where status = 'OPEN' and mail_status = 'MAIL';
Update FND_USER_PREFERENCES set preference_value= 'QUERY' where preference_name='MAILTYPE' and preference_value!='QUERY';
set lines 132 col PREFERENCE_VALUE format a45 select preference_value,count(*) from fnd_user_preferences where preference_name='MAILTYPE' group by preference_value;
SQL> update fnd_user set email_address = email_address||'xxx' where email_address is not null; SQL> update po_vendor_sites_all set email_address = email_address||'xxx', remittance_email = remittance_email||'xxx'; SQL> update wf_local_roles set email_address = email_address||'xxx' where email_address is not null; SQL> update per_all_people_f set email_address = email_address||'xxx' where email_address is not null;
update fnd_svc_comp_param_vals set parameter_value = 'dummy@dummy.com' where parameter_id = ( select parameter_id from fnd_svc_comp_params_tl where display_name = 'Test Address' );
1.When workflow Engine determines that a notification message must be sent, it raises an event in BES (Business Event System) oracle.apps.wf.notifications.send Event is raised with Notification ID (NID) as event key
2. There is seeded subscription to this Event
3. Event is placed on WF_DEFERRED agent
4.Event is dequeued from WF_DEFERRED and subscription is processed
5. Subscription places event message to WF_NOTIFICATION_OUT agent.
6.Notification Mailer dequeues message from WF_NOTIFICATION_OUT agent and
6.1 convert XML representation of notification into MIME encoded message (Multi-purpose Internet Mail Extensions) and
6.2 Send message by SMTP (Simple Mail Transfer Protocol) to intended user (If Test Address/Override Address is set then email is sent to Test Address
- Oracle Multitenant DB 4 : Parameters/SGA/PGA management in CDB-PDB - July 18, 2020
- Details of running concurrent requests in Oracle EBS - May 26, 2020
- Oracle Multitenant DB 3 : Data Dictionary Architecture in CDB-PDB - March 20, 2020
select * from fnd_folders where WHERE_CLAUSE like (‘%FIN_ASSY%’) ;
Enabling Oracle Applications folder feature in a custom form — VIEW THE QUERY OF FOLDER.