2014-12-27 Created By BaoXinjian
一、摘要
Package方法里先调用FND_REQUEST.ADD_LAYOUT添加模板,
然后调用FND_REQUEST.SUBMIT_REQUEST提交并发请求,
再调用FND_CONCURRENT.WAIT_FOR_REQUEST等待请求完成并返回分析,状态和完成信息。
1. fnd_request.add_layout调用方式
(1). 语法
fr_result := fnd_request.add_layout(template_appl_name => :template_appl_name, template_code => :template_code, template_language => :template_language, template_territory => :template_territory, output_format => :output_format, nls_language => :nls_language);
(2). 参数
2. fnd_request.submit_request调用方式
(1). 语法
fr_request_id := fnd_request.submit_request(application => :application, program => :program, description => :description, start_time => :start_time, sub_request => sub_request, argument1..100 => :argument1..100);
(2). 参数
3. fnd_concurrent.wait_for_request调用方式
(1). 语法
l_request_status := fnd_Concurrent.wait_for_request(request_id IN number default NULL, --请求ID
interval IN number default 60,
max_wait IN number default 0,
phase OUT varchar2, status OUT varchar2, dev_phase OUT varchar2,
dev_status OUT varchar2,
message OUT varchar2)
(2). 参数
二、案例
待整理
Thanks and Regards
转载:晓风波 - http://blog.csdn.net/rfb0204421/article/details/7598966