The following lines contain the word 'select', 'insert', 'update' or 'delete':
/* DEBUG */ PO_WF_DEBUG_PKG.insert_debug(itemtype,itemkey,x_progress);
select WF_CREATEDOC_ITEMTYPE,WF_CREATEDOC_PROCESS
from po_document_types
where DOCUMENT_TYPE_CODE= 'REQUISITION'
and DOCUMENT_SUBTYPE = 'PURCHASE';
/* DEBUG */ PO_WF_DEBUG_PKG.insert_debug(itemtype,itemkey,x_progress);
select to_char(PO_WF_ITEMKEY_S.nextval) into l_dummy from sys.dual;
/* DEBUG */ PO_WF_DEBUG_PKG.insert_debug(itemtype,itemkey,x_progress);
PROCEDURE POREQ_SELECTOR ( -- Added as a part of bug 3540107
p_itemtype IN VARCHAR2,
p_itemkey IN VARCHAR2,
p_actid IN NUMBER,
p_funcmode IN VARCHAR2,
p_x_result IN OUT NOCOPY VARCHAR2
) IS
-- Context setting revamp
l_session_user_id NUMBER;
PO_WF_DEBUG_PKG.insert_debug(
itemtype => p_itemtype,
itemkey => p_itemkey,
x_progress => 'POREQ_SELECTOR called with mode: '
||p_funcmode||' itemtype: '||p_itemtype
||' itemkey: '||p_itemkey);
l_progress :='010 selector fn - sess_user_id:'||l_session_user_id
||' ses_resp_id '||l_session_resp_id||' responder id '
||l_responder_id;
/* DEBUG */ PO_WF_DEBUG_PKG.insert_debug(p_itemtype,p_itemkey,l_progress);
PO_WF_DEBUG_PKG.insert_debug(itemtype => p_itemtype,
itemkey => p_itemkey,
x_progress => 'POREQ_SELECTOR: inside Test Ctx ');
PO_WF_DEBUG_PKG.insert_debug(itemtype => p_itemtype,
itemkey => p_itemkey,
x_progress => 'l_is_supplier_context: ' || l_is_supplier_context);
-- bug 5333226 : if the selector fn is called from a background ps/
-- notif mailer then force the session to use preparer's or responder
-- context. This is required since the mailer/bckgrnd ps carries the
-- context from the last wf processed and hence even if the context values
-- are present, they might not be correct.
if (wf_engine.preserved_context = TRUE) then
p_x_result := 'TRUE';
l_progress := '020 selection fn responder id not null';
/* DEBUG */ PO_WF_DEBUG_PKG.insert_debug(p_itemtype,p_itemkey,l_progress);
l_progress :='030 selector fn : setting user id :'||l_responder_id
||' resp id '||l_resp_id_to_set||' l_appl id '||l_appl_id_to_set;
/* DEBUG */ PO_WF_DEBUG_PKG.insert_debug(p_itemtype,p_itemkey,l_progress);
l_progress := '040 selector fn responder id null';
/* DEBUG */ PO_WF_DEBUG_PKG.insert_debug(p_itemtype,p_itemkey,l_progress);
l_progress := '050 selector fn : set user '||l_user_id_to_set||' resp id '
||l_resp_id_to_set||' appl id '||l_appl_id_to_set;
/* DEBUG */ PO_WF_DEBUG_PKG.insert_debug(p_itemtype,p_itemkey,l_progress);
PO_WF_DEBUG_PKG.insert_debug(itemtype => p_itemtype,
itemkey => p_itemkey,
x_progress => 'Exception in Selector');
'POREQ_SELECTOR',
p_itemtype,
p_itemkey,
p_actid,
p_funcmode);
END POREQ_SELECTOR;