2120: if g_debug then
2121: hr_utility.set_location('Entering:'|| g_package||'.'||c_proc, 1);
2122: end if;
2123: if ( funmode = wf_engine.eng_run ) then
2124: -- call PQH_SS_HISTORY.transfer_approval_to_history
2125: if g_debug then
2126: hr_utility.set_location('calling PQH_SS_HISTORY.transfer_approval_to_history ',2);
2127: hr_utility.set_location('p_item_type:'|| p_item_type,3);
2128: hr_utility.set_location('p_item_key:'|| p_item_key,4);
2122: end if;
2123: if ( funmode = wf_engine.eng_run ) then
2124: -- call PQH_SS_HISTORY.transfer_approval_to_history
2125: if g_debug then
2126: hr_utility.set_location('calling PQH_SS_HISTORY.transfer_approval_to_history ',2);
2127: hr_utility.set_location('p_item_type:'|| p_item_type,3);
2128: hr_utility.set_location('p_item_key:'|| p_item_key,4);
2129: end if;
2130:
2127: hr_utility.set_location('p_item_type:'|| p_item_type,3);
2128: hr_utility.set_location('p_item_key:'|| p_item_key,4);
2129: end if;
2130:
2131: PQH_SS_HISTORY.transfer_approval_to_history(p_item_type,p_item_key,p_act_id,funmode,result);
2132: -- reset the status to pending approval
2133: if g_debug then
2134: hr_utility.set_location('calling PQH_SS_WORKFLOW.set_txn_approve_status ',5);
2135: hr_utility.set_location('p_item_type:'|| p_item_type,6);
2381: end if;
2382: pqh_ss_workflow.set_txn_approve_status(p_item_type,p_item_key,p_act_id,funmode,result);
2383: /*
2384: -- transfer the approval action to history
2385: -- call PQH_SS_HISTORY.transfer_approval_to_history
2386: updateApprovalHistory( p_item_type=>p_item_type,
2387: p_item_key=>p_item_key,
2388: p_act_id=>p_act_id,
2389: funmode=>funmode,
2933: if(lv_approval_required in ('YES_DYNAMIC','YES','Y','YD')) then
2934:
2935: -- call the other intialization routines needed for approval
2936: -- notification process
2937: -- PQH_SS_HISTORY.transfer_submit_to_history
2938: if g_debug then
2939: hr_utility.set_location('calling PQH_SS_HISTORY.transfer_submit_to_history', 2);
2940: hr_utility.set_location('p_item_type:'|| p_item_type, 3);
2941: hr_utility.set_location('p_item_key:'|| p_item_key, 4);
2935: -- call the other intialization routines needed for approval
2936: -- notification process
2937: -- PQH_SS_HISTORY.transfer_submit_to_history
2938: if g_debug then
2939: hr_utility.set_location('calling PQH_SS_HISTORY.transfer_submit_to_history', 2);
2940: hr_utility.set_location('p_item_type:'|| p_item_type, 3);
2941: hr_utility.set_location('p_item_key:'|| p_item_key, 4);
2942: end if;
2943: -- PQH_SS_HISTORY.transfer_submit_to_history(p_item_type,p_item_key,p_act_id,funmode,result);
2939: hr_utility.set_location('calling PQH_SS_HISTORY.transfer_submit_to_history', 2);
2940: hr_utility.set_location('p_item_type:'|| p_item_type, 3);
2941: hr_utility.set_location('p_item_key:'|| p_item_key, 4);
2942: end if;
2943: -- PQH_SS_HISTORY.transfer_submit_to_history(p_item_type,p_item_key,p_act_id,funmode,result);
2944: -- use the new history API's
2945: -- add the code plugin transfer history
2946: c_transaction_id := wf_engine.getitemattrnumber(p_item_type,p_item_key,'TRANSACTION_ID');
2947: lv_comments := wf_engine.getitemattrtext(p_item_type,p_item_key,'APPROVAL_COMMENT_COPY');
3896: result := wf_engine.eng_completed||':N';
3897: return;
3898: end if;
3899:
3900: -- call PQH_SS_HISTORY.transfer_approval_to_history
3901: if g_debug then
3902: hr_utility.set_location('calling PQH_SS_WORKFLOW.set_txn_rfc_status',3);
3903: hr_utility.set_location('p_item_type:'|| p_item_type,4);
3904: hr_utility.set_location('p_item_key:'|| p_item_key,5);
6169: null;
6170: end if;
6171: /*
6172: -- transfer the approval action to history
6173: -- call PQH_SS_HISTORY.transfer_approval_to_history
6174: updateApprovalHistory( p_item_type=>p_item_type,
6175: p_item_key=>p_item_key,
6176: p_act_id=>p_act_id,
6177: funmode=>funmode,