The following lines contain the word 'select', 'insert', 'update' or 'delete':
select 1
from wf_item_attribute_values wiav
where wiav.item_type = p_item_type
and wiav.item_key = p_item_key
and wiav.name = p_name;
select system_params
into l_system_params
from per_appraisals
where appraisal_id=ln_appraisal_id;
update per_appraisals
set
system_params = l_system_params
where appraisal_id = ln_appraisal_id;
ln_selected_person_id hr_api_transactions.selected_person_id%TYPE;
ln_selected_person_id := wf_engine.GetItemAttrNumber(itemtype,itemkey,'HR_APPRAISEE_PERSON_ID',true);
,p_selected_person_id=>ln_selected_person_id
,p_transaction_effective_date=>trunc(sysdate)
,p_process_name=>lv_process_name
,result=>result) ;
select APPRAISAL_ID, MAIN_APPRAISER_ID,APPRAISER_PERSON_ID,
APPRAISEE_PERSON_ID,SYSTEM_PARAMS,system_type,assignment_id
into l_appraisal_id,l_main_appraiser_id, l_appraiser_person_id,
l_appraisee_person_id,l_system_params,l_system_type,l_assignment_id
from per_appraisals
where APPRAISAL_ID=l_appraisal_id;
select wma.display_name
into lv_link_label
from wf_notifications wn, wf_message_attributes_vl wma
where wn.notification_id = document_id
and wn.message_name = wma.message_name
and wma.message_type = lv_item_type
and wma.name = 'OBJECT_URL';
select web_html_call,parameters
into lv_web_html_call,lv_params
from fnd_form_functions_vl
where function_name=lv_pageFunc;
select instr(lv_participants_list,hr_general_utilities.g_separator) into check_sep from dual;
select person_id,participation_type
into ln_participant_person_id,lv_participant_type
from per_participants
where participation_in_id = ln_appraisal_id
and participant_id=ln_participant_id;
SELECT process_activity
into ln_appr_approval_block_id
FROM WF_ITEM_ACTIVITY_STATUSES IAS
WHERE ias.item_type = p_itemType
and ias.item_key = p_itemKey
and ias.activity_status = 'NOTIFIED'
and ias.process_activity not in
(getApprovalBlockId.ln_appr_main_block_id,getApprovalBlockId.ln_appr_particp_block_id);
SELECT process_activity
into ln_appr_approval_block_id
FROM WF_ITEM_ACTIVITY_STATUSES IAS
WHERE ias.item_type = p_itemType
and ias.item_key = p_itemKey
and ias.activity_status = 'NOTIFIED'
and ias.notification_id is not null;
select MAIN_APPRAISER_ID
into l_main_appraiser_id
from per_appraisals
where APPRAISAL_ID=l_appraisal_id;
PROCEDURE update_appraisal_system_status
( p_itemtype in varchar2
, p_itemkey in varchar2
,p_status in varchar2
)
is
-- local variables
l_appraisal_id per_appraisals.appraisal_id%type;
hr_utility.set_location('Entered:'|| gv_package || '.update_appraisal_system_status', 1);
select appraiser_person_id, object_version_number,system_params
into l_appraiser_person_id,l_object_version_number,l_system_params
from per_appraisals
where appraisal_id=l_appraisal_id;
hr_utility.set_location('Calling hr_appraisals_api.update_appraisal with p_appraisal_id:
p_object_version_number:p_appraiser_person_id:p_appraisal_system_status '
|| l_appraisal_id||':'||l_object_version_number||':'
||l_appraiser_person_id||p_status,3);
hr_appraisals_api.update_appraisal(p_effective_date=>trunc(sysdate),
p_appraisal_id=>l_appraisal_id,
p_object_version_number=>l_object_version_number,
p_appraiser_person_id=>l_appraiser_person_id,
p_appraisal_system_status=>p_status --7210916 Bug Fix ,
--p_system_params => l_system_params
);
hr_utility.set_location('Leaving:'|| gv_package || '.update_appraisal_system_status', 10);
wf_core.Context(gv_package, '.update_appraisal_system_status', p_itemtype, p_itemkey);
hr_utility.trace(' exception in '||gv_package||'.update_appraisal_system_status : ' || sqlerrm);
end update_appraisal_system_status;
update_appraisal_system_status(p_itemtype=>p_itemtype, p_itemkey=>p_itemkey,p_status=>'RFC');
update_appraisal_system_status(p_itemtype=>p_itemtype, p_itemkey=>p_itemkey,p_status=>'ONGOING');
SELECT NVL(appr.provide_overall_feedback,'N')
INTO l_provide_feedback
from per_appraisals appr
where appr.appraisal_id = p_appraisal_id;