DBA Data[Home] [Help]

APPS.WF_RULE dependencies on WF_CORE

Line 20: wf_core.context('Wf_Rule', 'get_sub_parameters', p_subscription_guid);

16:
17: return parm;
18: exception
19: when no_data_found then
20: wf_core.context('Wf_Rule', 'get_sub_parameters', p_subscription_guid);
21: wf_core.raise('WFE_SUBSC_NOTEXIST');
22: end;
23: --------------------------------------------------------------------------
24: /*

Line 21: wf_core.raise('WFE_SUBSC_NOTEXIST');

17: return parm;
18: exception
19: when no_data_found then
20: wf_core.context('Wf_Rule', 'get_sub_parameters', p_subscription_guid);
21: wf_core.raise('WFE_SUBSC_NOTEXIST');
22: end;
23: --------------------------------------------------------------------------
24: /*
25: ** log -

Line 74: 'Send Date: '||to_char(p_event.getSendDate(), wf_core.canonical_date_mask));

70:
71: wf_log_pkg.string(wf_log_pkg.level_statement, 'wf.plsql.wf_rule.log.priority',
72: 'Priority: '||p_event.getPriority());
73: wf_log_pkg.string(wf_log_pkg.level_statement, 'wf.plsql.wf_rule.log.send_date',
74: 'Send Date: '||to_char(p_event.getSendDate(), wf_core.canonical_date_mask));
75: wf_log_pkg.string(wf_log_pkg.level_statement, 'wf.plsql.wf_rule.log.receive_date',
76: 'Receive Date: '||to_char(p_event.getReceiveDate(), wf_core.canonical_date_mask));
77: wf_log_pkg.string(wf_log_pkg.level_statement, 'wf.plsql.wf_rule.log.corr_id',
78: 'Correlation ID: '||p_event.getCorrelationID());

Line 76: 'Receive Date: '||to_char(p_event.getReceiveDate(), wf_core.canonical_date_mask));

72: 'Priority: '||p_event.getPriority());
73: wf_log_pkg.string(wf_log_pkg.level_statement, 'wf.plsql.wf_rule.log.send_date',
74: 'Send Date: '||to_char(p_event.getSendDate(), wf_core.canonical_date_mask));
75: wf_log_pkg.string(wf_log_pkg.level_statement, 'wf.plsql.wf_rule.log.receive_date',
76: 'Receive Date: '||to_char(p_event.getReceiveDate(), wf_core.canonical_date_mask));
77: wf_log_pkg.string(wf_log_pkg.level_statement, 'wf.plsql.wf_rule.log.corr_id',
78: 'Correlation ID: '||p_event.getCorrelationID());
79:
80: parmlist := p_event.getParameterList();

Line 142: wf_core.context('Wf_Event', 'Log', p_event.getEventName(), p_subscription_guid);

138: exception
139: when others then
140: wf_log_pkg.string(wf_log_pkg.level_error, 'wf.plsql.wf_rule.log.end',
141: 'Error in wf_rule.log rule function');
142: wf_core.context('Wf_Event', 'Log', p_event.getEventName(), p_subscription_guid);
143: wf_event.setErrorInfo(p_event, 'ERROR');
144: return 'ERROR';
145: end;
146: ---------------------------------------------------------------------------

Line 159: p_event.setErrorMessage(wf_core.substitute('WFERR', msg));

155: begin
156: l_parameters := upper(wf_rule.get_sub_parameters(p_subscription_guid));
157: msg := WF_EVENT_FUNCTIONS_PKG.SUBSCRIPTIONPARAMETERS(l_parameters, 'ERROR_MESSAGE');
158: wf_event.setErrorInfo(p_event, 'ERROR');
159: p_event.setErrorMessage(wf_core.substitute('WFERR', msg));
160:
161: return 'ERROR';
162: end;
163: ---------------------------------------------------------------------------

Line 176: p_event.setErrorMessage(wf_core.substitute('WFERR', msg));

172: begin
173: l_parameters := upper(wf_rule.get_sub_parameters(p_subscription_guid));
174: msg := WF_EVENT_FUNCTIONS_PKG.SUBSCRIPTIONPARAMETERS(l_parameters, 'ERROR_MESSAGE');
175: wf_event.setErrorInfo(p_event, 'WARNING');
176: p_event.setErrorMessage(wf_core.substitute('WFERR', msg));
177:
178: return 'WARNING';
179: end;
180: ---------------------------------------------------------------------------

Line 300: wf_core.context('Wf_Rule', 'Default_Rule', p_event.getEventName(),

296: --Raise this exception to caller
297: raise;
298:
299: when others then
300: wf_core.context('Wf_Rule', 'Default_Rule', p_event.getEventName(),
301: p_subscription_guid);
302: wf_event.setErrorInfo(p_event, 'ERROR');
303: return 'ERROR';
304: end;

Line 396: wf_core.context('Wf_Rule', 'Workflow_Protocol', p_event.getEventName(),

392:
393: return 'SUCCESS';
394: exception
395: when others then
396: wf_core.context('Wf_Rule', 'Workflow_Protocol', p_event.getEventName(),
397: p_subscription_guid);
398: wf_event.setErrorInfo(p_event, 'ERROR');
399: return 'ERROR';
400: end;

Line 477: wf_core.context('Wf_Rule', 'Error_Rule', p_event.getEventName(),

473:
474: return 'SUCCESS';
475: exception
476: when others then
477: wf_core.context('Wf_Rule', 'Error_Rule', p_event.getEventName(),
478: p_subscription_guid);
479: raise;
480: end;
481: ----------------------------------------------------------------------------

Line 513: l_parameters := replace(l_parameters,wf_core.newline,' ');

509:
510: -- If not null then continue
511: if l_parameters is not null then
512: -- Replace New Line, tab and CR Characters
513: l_parameters := replace(l_parameters,wf_core.newline,' ');
514: l_parameters := replace(l_parameters,wf_core.tab,' ');
515: l_parameters := replace(l_parameters,wf_core.cr,'');
516: l_parameters := l_parameters||' ';
517:

Line 514: l_parameters := replace(l_parameters,wf_core.tab,' ');

510: -- If not null then continue
511: if l_parameters is not null then
512: -- Replace New Line, tab and CR Characters
513: l_parameters := replace(l_parameters,wf_core.newline,' ');
514: l_parameters := replace(l_parameters,wf_core.tab,' ');
515: l_parameters := replace(l_parameters,wf_core.cr,'');
516: l_parameters := l_parameters||' ';
517:
518: -- Initialize Start and End

Line 515: l_parameters := replace(l_parameters,wf_core.cr,'');

511: if l_parameters is not null then
512: -- Replace New Line, tab and CR Characters
513: l_parameters := replace(l_parameters,wf_core.newline,' ');
514: l_parameters := replace(l_parameters,wf_core.tab,' ');
515: l_parameters := replace(l_parameters,wf_core.cr,'');
516: l_parameters := l_parameters||' ';
517:
518: -- Initialize Start and End
519: l_start:= 1;

Line 587: wf_core.context('Wf_Rule', 'SetParametersIntoParameterList',

583:
584: return 'SUCCESS';
585: exception
586: when others then
587: wf_core.context('Wf_Rule', 'SetParametersIntoParameterList',
588: p_event.getEventName(),p_subscription_guid);
589: wf_event.setErrorInfo(p_event, 'ERROR');
590: return 'ERROR';
591: end;

Line 686: wf_core.context('Wf_Notification', 'Send_Rule', p_event.getEventName(),

682: wf_notification.denormalize_notification(l_nid);
683: return 'SUCCESS';
684: exception
685: when others then
686: wf_core.context('Wf_Notification', 'Send_Rule', p_event.getEventName(),
687: p_subscription_guid);
688: wf_event.setErrorInfo(p_event, 'ERROR');
689: return 'ERROR';
690: end;

Line 791: wf_core.context('Wf_Rule', 'Instance_Default_Rule', p_event.getEventName(),

787: when resource_busy then
788: --Raise the error to the caller to handle it
789: raise;
790: when others then
791: wf_core.context('Wf_Rule', 'Instance_Default_Rule', p_event.getEventName(),
792: p_subscription_guid);
793: wf_event.setErrorInfo(p_event, 'ERROR');
794: return 'ERROR';
795: end;

Line 841: l_str := ''||wf_core.newLine;

837: from sys.dual;
838:
839: dbms_lob.createTemporary(doc, true, DBMS_LOB.CALL);
840:
841: l_str := ''||wf_core.newLine;
842:
843: l_str := l_str||''||wf_core.newline;
845:

Line 844: '" key="'||p_event_key||'">'||wf_core.newline;

840:
841: l_str := ''||wf_core.newLine;
842:
843: l_str := l_str||''||wf_core.newline;
845:
846: l_str := l_str||''||' 847: generateTime||']]>'||wf_core.newline;
848:

Line 847: generateTime||']]>'||wf_core.newline;

843: l_str := l_str||''||wf_core.newline;
845:
846: l_str := l_str||''||' 847: generateTime||']]>'||wf_core.newline;
848:
849: if p_parameter_list is not null and p_parameter_list.COUNT > 0 then
850: l_str := l_str||''||

Line 852: wf_core.newline;

848:
849: if p_parameter_list is not null and p_parameter_list.COUNT > 0 then
850: l_str := l_str||''||
852: wf_core.newline;
853:
854: -- Write out the buffer to date since the next section could be
855: -- larger.
856: dbms_lob.writeAppend(lob_loc => doc,

Line 873: l_str := ''||wf_core.newline;

869: buffer => l_str);
870:
871: end loop;
872:
873: l_str := ''||wf_core.newline;
874:
875: end if;
876:
877: l_str := l_str||''||wf_core.newLine;

Line 877: l_str := l_str||''||wf_core.newLine;

873: l_str := ''||wf_core.newline;
874:
875: end if;
876:
877: l_str := l_str||''||wf_core.newLine;
878:
879: dbms_lob.writeAppend(lob_loc => doc,
880: amount => length(l_str),
881: buffer => l_str);

Line 887: wf_core.context('WF_RULE', 'Default_Generate', p_event_name, p_event_key);

883: return doc;
884:
885: exception
886: when others then
887: wf_core.context('WF_RULE', 'Default_Generate', p_event_name, p_event_key);
888: raise;
889: end Default_Generate;
890:
891: