Professional Documents
Culture Documents
WF All Common Datatxt
WF All Common Datatxt
BEGIN FND_GLOBAL.apps_initialize(user_id => 1013482, resp_id => 20639, resp_appl_id =>200 ); END;
declare x_initiator varchar2(30) ; x_mgr varchar2(30) ; begin select user_name INTO x_initiator from fnd_user where user_id = FND_PROFILE.VALUE('USER_ID') ; select mgr into x_mgr from XX_LVWF_APPR_TAb where name = x_initiator ; wf_engine.createprocess(itemtype => 'XWFLVMGM' , itemkey => XX_LVWF_S.nextval , process => 'XXWF_LV_MGM_SYS_PROCESS' ) ; wf_engine.setitemattrtext (itemtype => 'XWFLVMGM' , itemkey => XX_LVWF_S.currval, aname =>'XXLVWF_APPROVER', avalue =>x_mgr ); wf_engine.setitemattrtext (itemtype => 'XWFLVMGM' , itemkey => XX_LVWF_S.currval , aname => 'XXLVWF_INITIATOR' , avalue =>x_initiator ); wf_engine.startprocess(itemtype => 'XWFLVMGM' , itemkey => XX_LVWF_S.currval ) ; COMMIT;
end;
&internameof attribute
&XXLVWF_INITIATOR
CREATE TABLE XX_LVWF_APPR_TAB ( name varchar2(30) , mgr varchar2(30), leave_bal number ) insert into insert into insert into insert into XX_LVWF_APPR_TAB values ( 'XXORIEN_1' , 'OPERATIONS' , 20 ); XX_LVWF_APPR_TAB values ( 'XXORIEN_2' , 'SYSADMIN' , 20 ); XX_LVWF_APPR_TAB values ( 'XXORIEN_3' , 'OPERATIONS' , 20 ); XX_LVWF_APPR_TAB values ( 'OPERATIONS' , 'SYSADMIN' , 20 );