DBA Data[Home] [Help]

APPS.WF_EVENT_SUBSCRIPTIONS_PKG dependencies on WF_EVENT_SUBSCRIPTIONS

Line 1: package body WF_EVENT_SUBSCRIPTIONS_PKG as

1: package body WF_EVENT_SUBSCRIPTIONS_PKG as
2: /* $Header: WFEVSUBB.pls 120.6 2005/09/02 15:19:13 vshanmug ship $ */
3: m_table_name varchar2(255) := 'WF_EVENT_SUBSCRIPTIONS';
4: m_package_version varchar2(30) := '1.0';
5:

Line 3: m_table_name varchar2(255) := 'WF_EVENT_SUBSCRIPTIONS';

1: package body WF_EVENT_SUBSCRIPTIONS_PKG as
2: /* $Header: WFEVSUBB.pls 120.6 2005/09/02 15:19:13 vshanmug ship $ */
3: m_table_name varchar2(255) := 'WF_EVENT_SUBSCRIPTIONS';
4: m_package_version varchar2(30) := '1.0';
5:
6:
7: procedure validate_subscription (X_EVENT_FILTER_GUID in raw,

Line 63: cursor C is select ROWID from wf_event_subscriptions where guid = x_guid;

59: ) is
60:
61: l_guid raw(16);
62: l_event_name varchar2(240);
63: cursor C is select ROWID from wf_event_subscriptions where guid = x_guid;
64: l_licensed_flag varchar2(1);
65: l_rule_func varchar2(240);
66: begin
67: validate_subscription (X_EVENT_FILTER_GUID,

Line 113: insert into wf_event_subscriptions (

109: Wf_Core.Token('OWNERNAME', x_owner_name);
110: Wf_Core.Token('OWNERTAG', x_owner_tag);
111: Wf_Core.Raise('WFE_DUPLICATE_SUB');
112: else
113: insert into wf_event_subscriptions (
114: guid,
115: system_guid,
116: source_type,
117: source_agent_guid,

Line 170: from wf_event_subscriptions

166: X_STANDARD_CODE,
167: X_STANDARD_TYPE
168: from dual where not exists (
169: select 'duplicate'
170: from wf_event_subscriptions
171: where guid = X_GUID);
172: end if;
173:
174: open c;

Line 268: Wf_Core.Context('Wf_Event_Subscriptions_Pkg', 'Update_Row');

264: exception
265: when no_data_found then
266: null;
267: end;
268: Wf_Core.Context('Wf_Event_Subscriptions_Pkg', 'Update_Row');
269: Wf_Core.Token('EVENT', l_event_name);
270: Wf_Core.Token('SOURCE', x_source_type);
271: Wf_Core.Token('PHASE', x_phase);
272: Wf_Core.Token('OWNERNAME', x_owner_name);

Line 278: update wf_event_subscriptions set

274: Wf_Core.Raise('WFE_DUPLICATE_SUB');
275: end if;
276:
277: if WF_EVENTS_PKG.g_Mode = 'FORCE' then
278: update wf_event_subscriptions set
279: system_guid = X_SYSTEM_GUID,
280: source_type = X_SOURCE_TYPE,
281: source_agent_guid = X_SOURCE_AGENT_GUID,
282: event_filter_guid = X_EVENT_FILTER_GUID,

Line 320: wf_core.context('WF_EVENT_SUBSCRIPTIONS_PKG','UPDATE_ROW',

316: l_update_allowed := WF_EVENTS_PKG.is_update_allowed(X_CUSTOMIZATION_LEVEL, l_custom_level);
317:
318: if l_update_allowed = 'N' then
319: -- Set up the Error Stack
320: wf_core.context('WF_EVENT_SUBSCRIPTIONS_PKG','UPDATE_ROW',
321: X_EVENT_FILTER_GUID,
322: l_custom_level,
323: X_CUSTOMIZATION_LEVEL);
324: return;

Line 330: update wf_event_subscriptions set

326:
327: if X_CUSTOMIZATION_LEVEL = 'C'then
328: if WF_EVENTS_PKG.g_Mode = 'UPGRADE' then
329: -- Here are the updates allowed when the caller is the Loader
330: update wf_event_subscriptions set
331: system_guid = X_SYSTEM_GUID,
332: source_type = X_SOURCE_TYPE,
333: source_agent_guid = X_SOURCE_AGENT_GUID,
334: event_filter_guid = X_EVENT_FILTER_GUID,

Line 371: update wf_event_subscriptions set

367: -- Limit events can have only a status change..
368: -- When the loader is loading the events the
369: -- users changes must be preserved. Update all
370: -- fields EXCEPT the status field.
371: update wf_event_subscriptions set
372: system_guid = X_SYSTEM_GUID,
373: source_type = X_SOURCE_TYPE,
374: source_agent_guid = X_SOURCE_AGENT_GUID,
375: event_filter_guid = X_EVENT_FILTER_GUID,

Line 405: update wf_event_subscriptions set

401: else -- Caller of the Update is UI
402: -- Limit events can have only a status change..
403: -- When the user is updating the event using the UI
404: -- Updates are allowed ONLY to the status field.
405: update wf_event_subscriptions set
406: status = X_STATUS,
407: licensed_flag = l_licensed_flag
408: where guid = X_GUID;
409:

Line 419: update wf_event_subscriptions set

415: -- Here are the updates allowed for extensible and User defined events
416: -- only when the caller is the UI
417:
418: if WF_EVENTS_PKG.g_Mode = 'CUSTOM' then
419: update wf_event_subscriptions set
420: system_guid = X_SYSTEM_GUID,
421: source_type = X_SOURCE_TYPE,
422: source_agent_guid = X_SOURCE_AGENT_GUID,
423: event_filter_guid = X_EVENT_FILTER_GUID,

Line 503: WF_EVENT_SUBSCRIPTIONS_PKG.UPDATE_ROW (

499: ) is
500: row_id varchar2(64);
501: begin
502: begin
503: WF_EVENT_SUBSCRIPTIONS_PKG.UPDATE_ROW (
504: X_GUID => X_GUID,
505: X_SYSTEM_GUID => X_SYSTEM_GUID,
506: X_SOURCE_TYPE => X_SOURCE_TYPE,
507: X_SOURCE_AGENT_GUID => X_SOURCE_AGENT_GUID,

Line 534: WF_EVENT_SUBSCRIPTIONS_PKG.INSERT_ROW(

530: X_STANDARD_TYPE => X_STANDARD_TYPE
531: );
532: exception
533: when no_data_found then
534: WF_EVENT_SUBSCRIPTIONS_PKG.INSERT_ROW(
535: X_ROWID => row_id,
536: X_GUID => X_GUID,
537: X_SYSTEM_GUID => X_SYSTEM_GUID,
538: X_SOURCE_TYPE => X_SOURCE_TYPE,

Line 570: wf_core.context('Wf_Event_Subscriptions_Pkg', 'Load_Row', x_guid,

566: -- Invalidate cache
567: wf_bes_cache.SetMetaDataUploaded();
568: exception
569: when others then
570: wf_core.context('Wf_Event_Subscriptions_Pkg', 'Load_Row', x_guid,
571: x_source_type, X_SOURCE_AGENT_GUID);
572: raise;
573: end LOAD_ROW;
574: -----------------------------------------------------------------------------

Line 579: delete from wf_event_subscriptions

575: procedure DELETE_ROW (X_GUID in raw) is
576: begin
577: wf_event.raise('oracle.apps.wf.event.subscription.delete',x_guid);
578:
579: delete from wf_event_subscriptions
580: where guid = X_GUID;
581:
582: if (sql%notfound) then
583: raise no_data_found;

Line 621: delete from wf_event_subscriptions

617: X_STANDARD_CODE in varchar2,
618: X_STANDARD_TYPE in varchar2
619: ) is
620: begin
621: delete from wf_event_subscriptions
622: where (X_SYSTEM_GUID is null or (X_SYSTEM_GUID is not null
623: and system_guid like X_SYSTEM_GUID))
624: and (X_SOURCE_TYPE is null or (X_SOURCE_TYPE is not null
625: and source_type like X_SOURCE_TYPE))

Line 737: from wf_event_subscriptions s, wf_events e

733: l_rule_function, l_wf_process_type, l_wf_process_name,
734: l_parameters, l_owner_name, l_owner_tag, l_description, l_expression,
735: l_customization_level, l_licensed_flag,l_standardtype,l_standardcode,
736: l_javarulefunc,l_onerror , l_actioncode
737: from wf_event_subscriptions s, wf_events e
738: where s.guid = x_guid
739: and e.guid = s.event_filter_guid;
740:
741: l_doc := xmldom.newDOMDocument;

Line 1005: wf_event_subscriptions_pkg.load_row(

1001: x_parameters => l_parameters,
1002: x_owner_name => l_owner_name,
1003: x_owner_tag => l_owner_tag);
1004:
1005: wf_event_subscriptions_pkg.load_row(
1006: X_GUID => l_guid,
1007: X_SYSTEM_GUID => l_system_guid,
1008: X_SOURCE_TYPE => l_source_type,
1009: X_SOURCE_AGENT_GUID => l_source_agent_guid,

Line 1090: WF_EVENT_SUBSCRIPTIONS

1086: X_CUSTOMIZATION_LEVEL out nocopy varchar2)
1087: is
1088: cursor c_getCustomLevel is
1089: select CUSTOMIZATION_LEVEL from
1090: WF_EVENT_SUBSCRIPTIONS
1091: where guid = X_GUID;
1092:
1093: l_found varchar2(1) := 'N';
1094: begin

Line 1133: FROM wf_event_subscriptions

1129: -- need to take care of cases where both values are null.
1130:
1131: CURSOR identical_row1 IS
1132: SELECT guid
1133: FROM wf_event_subscriptions
1134: WHERE system_guid = x_system_guid
1135: AND source_type = x_source_type
1136: AND event_filter_guid = x_event_filter_guid
1137: AND (((source_agent_guid is null) AND (x_source_agent_guid is null))

Line 1148: FROM wf_event_subscriptions

1144: OR owner_tag = x_owner_tag);
1145:
1146: CURSOR identical_row2 IS
1147: SELECT guid
1148: FROM wf_event_subscriptions
1149: WHERE system_guid = x_system_guid
1150: AND source_type = x_source_type
1151: AND event_filter_guid = x_event_filter_guid
1152: AND (phase is null OR phase = x_phase)

Line 1196: end WF_EVENT_SUBSCRIPTIONS_PKG;

1192: close identical_row1;
1193: return l_guid;
1194: end Find_Subscription;
1195:
1196: end WF_EVENT_SUBSCRIPTIONS_PKG;