Workflow notification API -- PR in InProcess state
Hi
I am trying to approve open notification using PL/SQL for PR.
steps involved as follows
1. call wf_notification.respond, wf_notification.respond
BEGIN
mo_global.set_policy_context('S', '104');
fnd_global.APPS_INITIALIZE (USER_ID=>3639, RESP_ID=>50898, RESP_APPL_ID=> 201);
wf_notification.setattrtext (nid => '2585399',
aname => 'RESULT',
avalue => 'APPROVED'
);
wf_notification.respond (nid => '2585399',
respond_comment => 'approved note',
responder => 'POCONNOR');
COMMIT;
END;
2. Run Workflow Background Process
still Purchase Requisition with same user with status 'InProcess' , not sent to next approver. when checked 'View approval through workflow', Approve Requisition Notification -- Closed to that performer and activity result is APPROVED.