19: RespApplID NUMBER;
20:
21: BEGIN
22:
23: FND_GLOBAL.apps_initialize
24: ( WF_ENGINE.GetItemAttrNumber( ItemType , ItemKey , 'USER_ID' )
25: , WF_ENGINE.GetItemAttrNumber( ItemType , ItemKey , 'RESP_ID' )
26: , WF_ENGINE.GetItemAttrNumber( ItemType , ItemKey , 'RESP_APPL_ID' )
27: );
671: ItemType WF_ITEMS.item_type%TYPE;
672: ItemKey WF_ITEMS.item_key%TYPE;
673: DocOut VARCHAR2(32767);
674:
675: CR VARCHAR2(10) := FND_GLOBAL.newline;
676: BS VARCHAR2(10) := ' ';
677:
678: BEGIN
679:
816: , userkey => ItemKey );
817:
818: WF_ENGINE.SetItemOwner( itemtype => ItemType
819: , itemkey => ItemKey
820: , owner => FND_GLOBAL.User_Name );
821:
822: WF_ENGINE.SetItemAttrText( itemtype => ItemType
823: , itemkey => ItemKey
824: , aname => 'REQUESTOR'
821:
822: WF_ENGINE.SetItemAttrText( itemtype => ItemType
823: , itemkey => ItemKey
824: , aname => 'REQUESTOR'
825: , avalue => FND_GLOBAL.User_Name );
826:
827: WF_ENGINE.SetItemAttrNumber( itemtype => ItemType
828: , itemkey => ItemKey
829: , aname => 'USER_ID'
826:
827: WF_ENGINE.SetItemAttrNumber( itemtype => ItemType
828: , itemkey => ItemKey
829: , aname => 'USER_ID'
830: , avalue => FND_GLOBAL.User_ID );
831:
832: WF_ENGINE.SetItemAttrNumber( itemtype => ItemType
833: , itemkey => ItemKey
834: , aname => 'RESP_APPL_ID'
831:
832: WF_ENGINE.SetItemAttrNumber( itemtype => ItemType
833: , itemkey => ItemKey
834: , aname => 'RESP_APPL_ID'
835: , avalue => FND_GLOBAL.Resp_Appl_ID );
836:
837: WF_ENGINE.SetItemAttrNumber( itemtype => ItemType
838: , itemkey => ItemKey
839: , aname => 'RESP_ID'
836:
837: WF_ENGINE.SetItemAttrNumber( itemtype => ItemType
838: , itemkey => ItemKey
839: , aname => 'RESP_ID'
840: , avalue => FND_GLOBAL.Resp_ID );
841:
842: WF_ENGINE.StartProcess( itemtype => ItemType
843: , itemkey => ItemKey );
844: