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
XXHRIABSworkflow in the workflow builder.
- Navigate to XXHRIABS | XXHR Inbound Absence Process | Processes.
- Double-click the ...