Oracle WF function not commiting database changes
Dear Oracle Workflow Gurus,
I have created this custom workflow (see attached image) where there are two scenarios:
(1) where there is at least 1 approver (2) where there are no approvers
On STARTP function, I run a DB update statement on my custom table to set display status as "Under Approval".
For (1), once all approvals are finished (i.e. top loop is traversed at least once) and we reach function XXHA_UPDATE_STATUSA (which runs another DB update to set status to "Approved by Admin") & then notifications are sent out before ending the workflow.
For (2), we reach XXHA_UPDATE_STATUSA (which runs another DB update to set status to "Approved by Admin") in the first go itself & then notifications are sent out before ending the workflow.