I have found an API that user can cancel Workflow
wf_notification.CANCEL(nid in number, cancel_comment in varchar2 default null);
When i run that statement i was able to change the workflow's status to 'CANCELED' in WF_NOTIFICATIONS table. But workflow still appearĀ to approve for the user . it does not get canceled and error thrown when i am trying to approve or reject from user
ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired ORA-06512: at "APPS.WF_NOTIFICATION", line 4873 ORA-06512: at line 1
Is there are any other way to cancel a workflow which is pending approval AND / OR what am i doing wrong here. Any insight would be really appreciated .
Thanks