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 366: if WF_EVENTS_PKG.g_Mode = 'UPGRADE' then

362: null;
363:
364: end if;
365: elsif X_CUSTOMIZATION_LEVEL = 'L' then
366: if WF_EVENTS_PKG.g_Mode = 'UPGRADE' then
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.

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

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

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

586: -- Invalidate cache
587: wf_bes_cache.SetMetaDataUploaded();
588: exception
589: when others then
590: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Delete_Row', x_guid);
591: raise;
592: end DELETE_ROW;
593: ----------------------------------------------------------------------------
594: procedure DELETE_SET (

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

671: -- Invalidate cache
672: wf_bes_cache.SetMetaDataUploaded();
673: exception
674: when others then
675: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Delete_Set',
676: x_system_guid, X_source_type, X_Event_Filter_GUID);
677: raise;
678: end DELETE_SET;
679: ----------------------------------------------------------------------------

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

803:
804: return buf;
805: exception
806: when others then
807: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Generate', x_guid);
808: raise;
809: end GENERATE;
810: -----------------------------------------------------------------------------
811: procedure RECEIVE (

Line 895: FROM wf_events

891: -- Check if the value is event name, get the GUID
892: begin
893: SELECT guid
894: INTO l_event_filter_guid
895: FROM wf_events
896: WHERE name = l_value;
897: exception
898: when no_data_found then
899: -- Value is a event GUID (older wfx files)

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

956: -- Phase must not be null
957: if L_PHASE is null then
958: -- For backward compatibility of the WFXLoad do not raise any errors when
959: -- the caller is the Loader. Throw a warning only
960: if WF_EVENTS_PKG.g_Mode <> 'UPGRADE' then
961: Wf_Core.Token('REASON','Subscription Phase cannot be null');
962: Wf_Core.Raise('WFSQL_INTERNAL');
963: else
964: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Receive',

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

960: if WF_EVENTS_PKG.g_Mode <> 'UPGRADE' then
961: Wf_Core.Token('REASON','Subscription Phase cannot be null');
962: Wf_Core.Raise('WFSQL_INTERNAL');
963: else
964: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Receive',
965: 'WARNING! WARNING! Subscription Phase CANNOT be null for Event GUID '
966: || l_event_filter_guid || ' defaulting to 50');
967: l_Phase := 50;
968: end if;

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

974: or (L_OWNER_TAG is null) then
975:
976: -- For backward compatibility of the WFXLoad do not raise any errors when
977: -- the caller is the Loader. Throw a warning only
978: if WF_EVENTS_PKG.g_Mode <> 'UPGRADE' then
979: Wf_Core.Token('REASON','Subscription Owner Name and Owner Tag cannot be null');
980: Wf_Core.Raise('WFSQL_INTERNAL');
981: else
982: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Receive',

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

978: if WF_EVENTS_PKG.g_Mode <> 'UPGRADE' then
979: Wf_Core.Token('REASON','Subscription Owner Name and Owner Tag cannot be null');
980: Wf_Core.Raise('WFSQL_INTERNAL');
981: else
982: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Receive',
983: 'WARNING! WARNING! Subscription OWNER_NAME/OWNER_TAG CANNOT be null for Event GUID '
984: || l_event_filter_guid);
985: end if;
986: end if;

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

1032: );
1033:
1034: exception
1035: when others then
1036: wf_core.context('Wf_Events_Subscriptions_Pkg', 'Receive', x_message);
1037: raise;
1038: end RECEIVE;
1039: -----------------------------------------------------------------------------
1040: procedure validate_subscription (X_EVENT_FILTER_GUID in raw,

Line 1047: from wf_events

1043: is
1044:
1045: cursor c_geteventcustom is
1046: select customization_level
1047: from wf_events
1048: where guid = X_EVENT_FILTER_GUID;
1049:
1050: l_custom_level varchar2(1);
1051: l_trns1 varchar2(4000);