APINVAPR Child-workflow On Error Is Not Cancelled If Approvals Is Stopped In The AP Invoice
Last updated on JANUARY 16, 2018
Applies to:Oracle Payables - Version 12.1.3 and later
Information in this document applies to any platform.
On : 12.1.3 version, Invoice Issues & MassAdd
Child-workflow on error is not cancelled if approvals is stopped in the AP invoice
Invoice is entered in AP and Approval for invoice is initiated.
Two workflows are created: A parent wf and a child wf to the first responder. If parallel is enabled then there might be more child-wf created, one for each approver.
If the approval is cancelled in AP both the parent and the child wf are cancelled. This is expected behavior.
If the child WF goes on error [for example, escalated and the supervisor is not correctly defined in HR] and the approval is cancelled in AP then the parent wf is cancelled, but the child wf on error remains active.
Even if the cause for the error is remedied the “Retry Errored Workflow Activities” concurrent request will still return an errored wf because the parent has been cancelled.
Expected behavior would be that all relevant wf (parent and child) are cancelled if the approval is cancelled in AP.
The issue can be reproduced at will with the following steps:
1. Initiate approval from AP.
2. Go to System Administrator and end-date the approver.
3. Use Workflow Administrator Web (New) -> Status Monitor to query the workflow and simulate a time-out on the child-workflow.
4. The WF will go to error.
5. Return to AP, query the invoice and cancel the approval.
6. Go back to Workflow Administrator Web (New) -> Status Monitor and confirm the parent WF is marked as Cancelled and the child is on error.
7. Go to System Administrator and remove end-date on the approver, thereby activating him.
8. Go back to Workflow Administrator Web (New) -> Status Monitor and retry the errored WF. It will remain in error.
9. Alternatively, in System Admin run the Retry Errored WF concurrent request.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms