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:
1. Open the
XXHRIABS
workflow in the workflow builder.2. Navigate to XXHRIABS | XXHR Inbound Absence Process | Processes.
3. Double-click the XXHR Inbound Absences process and the Process Diagram window will open.
4. Click the New Function icon on the toolbar in the XXHR Inbound Absences window.
5. Click the mouse on the process diagram when the mouse changes to a crosshair and the...