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.8 2011/04/26 19:36:59 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.8 2011/04/26 19:36:59 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 365: update wf_event_subscriptions

361: -- UI users cannot update Core events
362: null;
363: -- vshanmug - Expression is temporarily used to store custom ws-security settings
364: -- expression column is not used in BES
365: update wf_event_subscriptions
366: set expression = X_EXPRESSION
367: where guid = X_GUID;
368:
369: l_raise_event_flag := 'Y';

Line 378: update wf_event_subscriptions set

374: -- Limit events can have only a status change..
375: -- When the loader is loading the events the
376: -- users changes must be preserved. Update all
377: -- fields EXCEPT the status field.
378: update wf_event_subscriptions set
379: system_guid = X_SYSTEM_GUID,
380: source_type = X_SOURCE_TYPE,
381: source_agent_guid = X_SOURCE_AGENT_GUID,
382: event_filter_guid = X_EVENT_FILTER_GUID,

Line 415: update wf_event_subscriptions set

411: -- Updates are allowed ONLY to the status field.
412:
413: -- vshanmug - Expression is temporarily used to store custom ws-security settings
414: -- expression column is not used in BES
415: update wf_event_subscriptions set
416: status = X_STATUS,
417: licensed_flag = l_licensed_flag,
418: expression = X_EXPRESSION
419: where guid = X_GUID;

Line 430: update wf_event_subscriptions set

426: -- Here are the updates allowed for extensible and User defined events
427: -- only when the caller is the UI
428:
429: if WF_EVENTS_PKG.g_Mode = 'CUSTOM' then
430: update wf_event_subscriptions set
431: system_guid = X_SYSTEM_GUID,
432: source_type = X_SOURCE_TYPE,
433: source_agent_guid = X_SOURCE_AGENT_GUID,
434: event_filter_guid = X_EVENT_FILTER_GUID,

Line 516: WF_EVENT_SUBSCRIPTIONS_PKG.UPDATE_ROW (

512: ) is
513: row_id varchar2(64);
514: begin
515: begin
516: WF_EVENT_SUBSCRIPTIONS_PKG.UPDATE_ROW (
517: X_GUID => X_GUID,
518: X_SYSTEM_GUID => X_SYSTEM_GUID,
519: X_SOURCE_TYPE => X_SOURCE_TYPE,
520: X_SOURCE_AGENT_GUID => X_SOURCE_AGENT_GUID,

Line 547: WF_EVENT_SUBSCRIPTIONS_PKG.INSERT_ROW(

543: X_STANDARD_TYPE => X_STANDARD_TYPE
544: );
545: exception
546: when no_data_found then
547: WF_EVENT_SUBSCRIPTIONS_PKG.INSERT_ROW(
548: X_ROWID => row_id,
549: X_GUID => X_GUID,
550: X_SYSTEM_GUID => X_SYSTEM_GUID,
551: X_SOURCE_TYPE => X_SOURCE_TYPE,

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

579: -- Invalidate cache
580: wf_bes_cache.SetMetaDataUploaded();
581: exception
582: when others then
583: wf_core.context('Wf_Event_Subscriptions_Pkg', 'Load_Row', x_guid,
584: x_source_type, X_SOURCE_AGENT_GUID);
585: raise;
586: end LOAD_ROW;
587: -----------------------------------------------------------------------------

Line 592: delete from wf_event_subscriptions

588: procedure DELETE_ROW (X_GUID in raw) is
589: begin
590: wf_event.raise('oracle.apps.wf.event.subscription.delete',x_guid);
591:
592: delete from wf_event_subscriptions
593: where guid = X_GUID;
594:
595: if (sql%notfound) then
596: raise no_data_found;

Line 634: delete from wf_event_subscriptions

630: X_STANDARD_CODE in varchar2,
631: X_STANDARD_TYPE in varchar2
632: ) is
633: begin
634: delete from wf_event_subscriptions
635: where (X_SYSTEM_GUID is null or (X_SYSTEM_GUID is not null
636: and system_guid like X_SYSTEM_GUID))
637: and (X_SOURCE_TYPE is null or (X_SOURCE_TYPE is not null
638: and source_type like X_SOURCE_TYPE))

Line 750: from wf_event_subscriptions s, wf_events e

746: l_rule_function, l_wf_process_type, l_wf_process_name,
747: l_parameters, l_owner_name, l_owner_tag, l_description, l_expression,
748: l_customization_level, l_licensed_flag,l_standardtype,l_standardcode,
749: l_javarulefunc,l_onerror , l_actioncode
750: from wf_event_subscriptions s, wf_events e
751: where s.guid = x_guid
752: and e.guid = s.event_filter_guid;
753:
754: l_doc := xmldom.newDOMDocument;

Line 1018: wf_event_subscriptions_pkg.load_row(

1014: x_parameters => l_parameters,
1015: x_owner_name => l_owner_name,
1016: x_owner_tag => l_owner_tag);
1017:
1018: wf_event_subscriptions_pkg.load_row(
1019: X_GUID => l_guid,
1020: X_SYSTEM_GUID => l_system_guid,
1021: X_SOURCE_TYPE => l_source_type,
1022: X_SOURCE_AGENT_GUID => l_source_agent_guid,

Line 1103: WF_EVENT_SUBSCRIPTIONS

1099: X_CUSTOMIZATION_LEVEL out nocopy varchar2)
1100: is
1101: cursor c_getCustomLevel is
1102: select CUSTOMIZATION_LEVEL from
1103: WF_EVENT_SUBSCRIPTIONS
1104: where guid = X_GUID;
1105:
1106: l_found varchar2(1) := 'N';
1107: begin

Line 1146: FROM wf_event_subscriptions

1142: -- need to take care of cases where both values are null.
1143:
1144: CURSOR identical_row1 IS
1145: SELECT guid
1146: FROM wf_event_subscriptions
1147: WHERE system_guid = x_system_guid
1148: AND source_type = x_source_type
1149: AND event_filter_guid = x_event_filter_guid
1150: AND (((source_agent_guid is null) AND (x_source_agent_guid is null))

Line 1161: FROM wf_event_subscriptions

1157: OR owner_tag = x_owner_tag);
1158:
1159: CURSOR identical_row2 IS
1160: SELECT guid
1161: FROM wf_event_subscriptions
1162: WHERE system_guid = x_system_guid
1163: AND source_type = x_source_type
1164: AND event_filter_guid = x_event_filter_guid
1165: AND (phase is null OR phase = x_phase)

Line 1209: end WF_EVENT_SUBSCRIPTIONS_PKG;

1205: close identical_row1;
1206: return l_guid;
1207: end Find_Subscription;
1208:
1209: end WF_EVENT_SUBSCRIPTIONS_PKG;