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 782: wf_core.context('Wf_Rule', 'Instance_Default_Rule', p_event.getEventName(),

778: when resource_busy then
779: --Raise the error to the caller to handle it
780: raise;
781: when others then
782: wf_core.context('Wf_Rule', 'Instance_Default_Rule', p_event.getEventName(),
783: p_subscription_guid);
784: wf_event.setErrorInfo(p_event, 'ERROR');
785: return 'ERROR';
786: end;

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

828: from sys.dual;
829:
830: dbms_lob.createTemporary(doc, true, DBMS_LOB.CALL);
831:
832: l_str := ''||wf_core.newLine;
833:
834: l_str := l_str||''||wf_core.newline;
836:

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

831:
832: l_str := ''||wf_core.newLine;
833:
834: l_str := l_str||''||wf_core.newline;
836:
837: l_str := l_str||''||' 838: generateTime||']]>'||wf_core.newline;
839:

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

834: l_str := l_str||''||wf_core.newline;
836:
837: l_str := l_str||''||' 838: generateTime||']]>'||wf_core.newline;
839:
840: if p_parameter_list is not null and p_parameter_list.COUNT > 0 then
841: l_str := l_str||''||

Line 843: wf_core.newline;

839:
840: if p_parameter_list is not null and p_parameter_list.COUNT > 0 then
841: l_str := l_str||''||
843: wf_core.newline;
844:
845: -- Write out the buffer to date since the next section could be
846: -- larger.
847: dbms_lob.writeAppend(lob_loc => doc,

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

860: buffer => l_str);
861:
862: end loop;
863:
864: l_str := ''||wf_core.newline;
865:
866: end if;
867:
868: l_str := l_str||''||wf_core.newLine;

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

864: l_str := ''||wf_core.newline;
865:
866: end if;
867:
868: l_str := l_str||''||wf_core.newLine;
869:
870: dbms_lob.writeAppend(lob_loc => doc,
871: amount => length(l_str),
872: buffer => l_str);

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

874: return doc;
875:
876: exception
877: when others then
878: wf_core.context('WF_RULE', 'Default_Generate', p_event_name, p_event_key);
879: raise;
880: end Default_Generate;
881:
882: