The following lines contain the word 'select', 'insert', 'update' or 'delete':
** inserts objects into Event System
** Parameters: EventData
**
*/
procedure UPLOADSYNCCLOB (
P_EVENTDATA in clob
) is
l_length_end_string integer := 16;
select guid from wf_systems
where name like nvl(p_key,'%');
l_clob := wf_event_functions_pkg.generate('oracle.apps.wf.event.system.update', g.guid);
select guid from wf_agents
where name like nvl(p_key,'%')
and (xguid is null or system_guid=xguid);
l_clob := wf_event_functions_pkg.generate('oracle.apps.wf.event.agent.update', g.guid);
select g.name||'/'||a.name GUID
from wf_agents g, wf_agents a,wf_agent_groups ag
where g.guid=ag.group_guid
and a.guid=ag.member_guid
and (p_key is null or a.name like p_key);
/*select wag.group_guid||'/'||wag.member_guid GUID from wf_agent_groups wag
where exists
( select 'x'
from wf_agents
where guid = wag.member_guid
and name like nvl(p_key,'%')
);*/
l_clob := wf_event_functions_pkg.generate('oracle.apps.wf.event.agentgroup.update', g.guid);
select guid
from wf_events
where type = 'EVENT'
and name like p_key
and owner_tag like nvl(p_ownertag, '%');
select guid
from wf_events
where type = 'EVENT'
and owner_tag like nvl(p_ownertag, '%');
l_clob := wf_event_functions_pkg.generate('oracle.apps.wf.event.event.update', g.guid);
l_clob := wf_event_functions_pkg.generate('oracle.apps.wf.event.event.update', g.guid);
select g.name||'/'||e.name names
from wf_events g, wf_events e, wf_event_groups eg
where g.guid = eg.group_guid
and g.type = 'GROUP'
and e.guid = eg.member_guid
and e.name like p_key
and e.owner_tag like nvl(p_ownertag, '%')
order by e.name;
select g.name||'/'||e.name names
from wf_events g, wf_events e, wf_event_groups eg
where g.guid = eg.group_guid
and g.type = 'GROUP'
and e.guid = eg.member_guid
and e.owner_tag like nvl(p_ownertag, '%')
order by e.name;
l_clob := wf_event_functions_pkg.generate('oracle.apps.wf.event.group.update', g.names);
l_clob := wf_event_functions_pkg.generate('oracle.apps.wf.event.group.update', g.names);
select guid
from wf_events
where type = 'GROUP'
and name like p_key
and owner_tag like nvl(p_ownertag, '%');
select guid
from wf_events
where type = 'GROUP'
and owner_tag like nvl(p_ownertag, '%');
l_clob := wf_event_functions_pkg.generate('oracle.apps.wf.event.event.update', g.guid);
l_clob := wf_event_functions_pkg.generate('oracle.apps.wf.event.event.update', g.guid);
select g.name||'/'||e.name names
from wf_events g, wf_events e, wf_event_groups eg
where g.guid = eg.group_guid
and g.type = 'GROUP'
and e.guid = eg.member_guid
and (p_key is null or g.name like p_key )
and (p_ownertag is null or g.owner_tag like p_ownertag)
order by g.name;
l_clob := wf_event_functions_pkg.generate('oracle.apps.wf.event.group.update', g.names);
select distinct(wes.guid) GUID from wf_event_subscriptions wes
where owner_tag like NVL(p_ownertag, '%')
and exists
( select 'x'
from wf_events
where guid = wes.event_filter_guid
and name like nvl(p_key,'%')
and (xguid is null or system_guid=xguid)
);
select guid from wf_agents
where name = wfagt;
l_clob := wf_event_functions_pkg.generate('oracle.apps.wf.event.subscription.update', g.guid);
** UpdateGUID- Update GUID in WF_RESOURCES table
** returns varchar2
** Parameters:
*/
procedure UpdateGUID (
g_guid in varchar2
) is
ret number default 0; -- 0 means value didn't get update
select count(*)
into l_count
from WF_SYSTEMS;
update WF_RESOURCES
set text=g_guid
where name='WF_SYSTEM_GUID';
wf_core.context('WF_EVENT_SYNCHRONIZE_PKG', 'UpdateGUID');
UpdateGUID(l_guid);
select value
into l_sid
from v$parameter
where name='db_name';
select global_name
into l_sid from global_name;
select owner
into l_owner
from all_queues
where name='WF_IN';
select substr(queue_name,1,instr(queue_name,'.')-1)
into l_owner
from wf_agents
where name = 'WF_IN';
select guid from wf_agents
where name=str
and system_guid = hextoraw(wf_core.translate('WF_SYSTEM_GUID'));
select name
into l_replaceTarget
from wf_agents
where guid = l_agtguid;
select guid
into l_replaceTarget
from wf_agents
where name = l_agt;