Professional Documents
Culture Documents
WF Predefine Apis
WF Predefine Apis
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.setitemattrnumber (itemtype => 'XWFLVMGM' , itemkey => XX_LVWF_S.currval , aname => 'NO_OF_DAYS' , avalue =>5 ); wf_engine.startprocess(itemtype => 'XWFLVMGM' , itemkey => XX_LVWF_S.currval ) ; COMMIT; end;