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 ...

Get Oracle E-Business Suite R12 Core Development and Extension Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.