Wait for concurrent request using
fnd_concurrent.wait_for_request
l_phase VARCHAR2 (100);
l_status VARCHAR2 (100);
l_dev_phase VARCHAR2 (100);
l_dev_status VARCHAR2 (100);
l_message VARCHAR2 (100);
Arguments
(input)
request_id - Request
ID to wait on
interval - Number of seconds to wait.
max_wait - Max amount of time to wait (in seconds) for request's completion
Arguments (output)
interval - Number of seconds to wait.
max_wait - Max amount of time to wait (in seconds) for request's completion
Arguments (output)
phase
- Request phase ( from meaning in
fnd_lookups )
status - Request status( for display purposes )
dev_phase - Request phase as a constant string so that it can be used for comparisons
dev_status - Request status as a constatnt string
message - Completion message if request has completed
status - Request status( for display purposes )
dev_phase - Request phase as a constant string so that it can be used for comparisons
dev_status - Request status as a constatnt string
message - Completion message if request has completed
IF l_request_id > 0
THEN
l_complete :=
fnd_concurrent.wait_for_request (request_id => l_request_id
,interval => 10
,max_wait => 60
,phase => l_phase
,status => l_status
,dev_phase => l_dev_phase
,dev_status => l_dev_status
,message => l_message
);
COMMIT;
IF UPPER (lc_dev_phase) IN ('COMPLETE')
THEN
dbms_output.put_line('Concurrent request completed successfully');
END IF;
END IF;
THEN
l_complete :=
fnd_concurrent.wait_for_request (request_id => l_request_id
,interval => 10
,max_wait => 60
,phase => l_phase
,status => l_status
,dev_phase => l_dev_phase
,dev_status => l_dev_status
,message => l_message
);
COMMIT;
IF UPPER (lc_dev_phase) IN ('COMPLETE')
THEN
dbms_output.put_line('Concurrent request completed successfully');
END IF;
END IF;
No comments:
Post a Comment