DBA Data[Home] [Help]

APPS.WF_EVENT_SUBSCRIPTIONS_PKG dependencies on WF_EVENTS

Line 71: l_licensed_flag := WF_EVENTS_PKG.is_product_licensed (X_OWNER_TAG);

67: validate_subscription (X_EVENT_FILTER_GUID,
68: X_CUSTOMIZATION_LEVEL,
69: X_STATUS); -- Bug 2756800
70:
71: l_licensed_flag := WF_EVENTS_PKG.is_product_licensed (X_OWNER_TAG);
72: if (X_RULE_FUNCTION is null and X_JAVA_RULE_FUNC is null) then
73: l_rule_func := 'WF_RULE.DEFAULT_RULE';
74: elsif (x_rule_function is not null) then
75: l_rule_func := x_rule_function;

Line 100: FROM wf_events

96: -- Throw an error to the UI.
97: begin
98: SELECT name
99: INTO l_event_name
100: FROM wf_events
101: WHERE guid = x_event_filter_guid;
102: exception
103: when no_data_found then
104: null;

Line 186: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Insert_Row', x_guid,

182: close c;
183:
184: exception
185: when others then
186: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Insert_Row', x_guid,
187: x_system_guid, X_SOURCE_TYPE, X_SOURCE_AGENT_GUID);
188: raise;
189:
190: end INSERT_ROW;

Line 233: l_licensed_flag := WF_EVENTS_PKG.is_product_licensed (X_OWNER_TAG);

229: validate_subscription (X_EVENT_FILTER_GUID,
230: X_CUSTOMIZATION_LEVEL,
231: X_STATUS); -- Bug 2756800
232:
233: l_licensed_flag := WF_EVENTS_PKG.is_product_licensed (X_OWNER_TAG);
234: if (X_RULE_FUNCTION is null and X_JAVA_RULE_FUNC is null) then
235: l_rule_func := 'WF_RULE.DEFAULT_RULE';
236: elsif (x_rule_function is not null) then
237: l_rule_func := x_rule_function;

Line 262: FROM wf_events

258: -- Throw an error to the UI.
259: begin
260: SELECT name
261: INTO l_event_name
262: FROM wf_events
263: WHERE guid = x_event_filter_guid;
264: exception
265: when no_data_found then
266: null;

Line 277: if WF_EVENTS_PKG.g_Mode = 'FORCE' then

273: Wf_Core.Token('OWNERTAG', x_owner_tag);
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,

Line 316: l_update_allowed := WF_EVENTS_PKG.is_update_allowed(X_CUSTOMIZATION_LEVEL, l_custom_level);

312:
313: else
314: -- User logged in is not seed
315: fetch_custom_level(X_GUID, l_custom_level);
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',

Line 328: if WF_EVENTS_PKG.g_Mode = 'UPGRADE' then

324: return;
325: end if;
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,

Line 373: if WF_EVENTS_PKG.g_Mode = 'UPGRADE' then

369: l_raise_event_flag := 'Y';
370:
371: end if;
372: elsif X_CUSTOMIZATION_LEVEL = 'L' then
373: if WF_EVENTS_PKG.g_Mode = 'UPGRADE' then
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.

Line 429: if WF_EVENTS_PKG.g_Mode = 'CUSTOM' then

425: elsif X_CUSTOMIZATION_LEVEL = 'U' then
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,

Line 603: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Delete_Row', x_guid);

599: -- Invalidate cache
600: wf_bes_cache.SetMetaDataUploaded();
601: exception
602: when others then
603: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Delete_Row', x_guid);
604: raise;
605: end DELETE_ROW;
606: ----------------------------------------------------------------------------
607: procedure DELETE_SET (

Line 688: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Delete_Set',

684: -- Invalidate cache
685: wf_bes_cache.SetMetaDataUploaded();
686: exception
687: when others then
688: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Delete_Set',
689: x_system_guid, X_source_type, X_Event_Filter_GUID);
690: raise;
691: end DELETE_SET;
692: ----------------------------------------------------------------------------

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 820: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Generate', x_guid);

816:
817: return buf;
818: exception
819: when others then
820: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Generate', x_guid);
821: raise;
822: end GENERATE;
823: -----------------------------------------------------------------------------
824: procedure RECEIVE (

Line 908: FROM wf_events

904: -- Check if the value is event name, get the GUID
905: begin
906: SELECT guid
907: INTO l_event_filter_guid
908: FROM wf_events
909: WHERE name = l_value;
910: exception
911: when no_data_found then
912: -- Value is a event GUID (older wfx files)

Line 973: if WF_EVENTS_PKG.g_Mode <> 'UPGRADE' then

969: -- Phase must not be null
970: if L_PHASE is null then
971: -- For backward compatibility of the WFXLoad do not raise any errors when
972: -- the caller is the Loader. Throw a warning only
973: if WF_EVENTS_PKG.g_Mode <> 'UPGRADE' then
974: Wf_Core.Token('REASON','Subscription Phase cannot be null');
975: Wf_Core.Raise('WFSQL_INTERNAL');
976: else
977: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Receive',

Line 977: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Receive',

973: if WF_EVENTS_PKG.g_Mode <> 'UPGRADE' then
974: Wf_Core.Token('REASON','Subscription Phase cannot be null');
975: Wf_Core.Raise('WFSQL_INTERNAL');
976: else
977: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Receive',
978: 'WARNING! WARNING! Subscription Phase CANNOT be null for Event GUID '
979: || l_event_filter_guid || ' defaulting to 50');
980: l_Phase := 50;
981: end if;

Line 991: if WF_EVENTS_PKG.g_Mode <> 'UPGRADE' then

987: or (L_OWNER_TAG is null) then
988:
989: -- For backward compatibility of the WFXLoad do not raise any errors when
990: -- the caller is the Loader. Throw a warning only
991: if WF_EVENTS_PKG.g_Mode <> 'UPGRADE' then
992: Wf_Core.Token('REASON','Subscription Owner Name and Owner Tag cannot be null');
993: Wf_Core.Raise('WFSQL_INTERNAL');
994: else
995: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Receive',

Line 995: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Receive',

991: if WF_EVENTS_PKG.g_Mode <> 'UPGRADE' then
992: Wf_Core.Token('REASON','Subscription Owner Name and Owner Tag cannot be null');
993: Wf_Core.Raise('WFSQL_INTERNAL');
994: else
995: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Receive',
996: 'WARNING! WARNING! Subscription OWNER_NAME/OWNER_TAG CANNOT be null for Event GUID '
997: || l_event_filter_guid);
998: end if;
999: end if;

Line 1049: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Receive', x_message);

1045: );
1046:
1047: exception
1048: when others then
1049: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Receive', x_message);
1050: raise;
1051: end RECEIVE;
1052: -----------------------------------------------------------------------------
1053: procedure validate_subscription (X_EVENT_FILTER_GUID in raw,

Line 1060: from wf_events

1056: is
1057:
1058: cursor c_geteventcustom is
1059: select customization_level
1060: from wf_events
1061: where guid = X_EVENT_FILTER_GUID;
1062:
1063: l_custom_level varchar2(1);
1064: l_trns1 varchar2(4000);