Calling an API
We are now going to complete the workflow by adding a call to an API if the Absence Approval Notification is approved.
To add this function to the diagram, perform the following tasks:
- Creating a function to call database package
- Adding a function to a process
- Testing the workflow
Creating a function to call the database package
We can add a new function to the workflow by selecting the New Function button in the Process Diagram toolbar. We are going to call an Oracle API to create an absence record for the employee.
How to do it...
To create a function to call an API, we will perform the following steps:
- Open the
XXHRIABS
workflow in the workflow builder. - Navigate to XXHRIABS | XXHR Inbound Absence Process | Processes.
- Double-click the ...
Get Oracle E-Business Suite R12 Core Development and Extension Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.