How to Process ERP Cloud Business Events in Oracle Integration?
Let's understand a bit on how Business events in Fusion Applications are processed and Subscribed by OIC.
Business Event Subscription Phase: When an event is selected in ERP Cloud adapter (ex. Purchase Order) we can choose the event to be subscribed and an expression to filter the events. OIC creates a subscription entry in ERP Cloud Subscription Service with a unique identifier and corresponding filter expression
Subscriber Discovery Phase: When a business object is created, updated or deleted, an event is triggered inside Fusion Application. Event handler framework in FA is responsible to receive the events (if the event is enabled), enrich the payload and filter out unwanted ones and send it out to subscribers. Event Handler Framework discovers all the subscribers (ex. OIC integration flow) of the event (ex. Purchase Order) and sends the enriched Business Object payload. This is real value add of leveraging ERP Cloud Adapter which can Subscribe seamlessly and without the need of additional API calls in the Integration Flow
a. This user is configured in the OIC ERP Adapter Connection
b. This account is used to connect to the Fusion Application, and populate endpoint properties in the Adapter Connection Wizard
c. This user (ex. bala.gupta) must have the below roles/privileges
- Integration Specialist
- AttachmentsUser
- FND_MANAGE_CATALOG_SERVICE_PRIV (Privilege needs to be added in Custom role ex: OIC_INTEGRATION_ROLE Ref: Creating Custom Roles)
OIC ERP Cloud adapter supports subscribing to events (Ref: List of Events) of several modules in ERP Cloud application. Ensure the events are enabled in the ERP Cloud.
ERP Cloud Supports Two categories of events
- Standard Business Events
- Custom Business Events
Security: Associate Access FSCM Integration Rest Service privilege to the Integration Account to use the ERP Business Events REST endpoints.
Privilege Name: Access FSCM Integration Rest Service
Privilege Code: FUN_FSCM_REST_SERVICE_ACCESS_INTEGRATION_PRIV
Steps to Enable a Business Event using REST API
i. Get the list of all business events to be enabled
ii. Identify the ErpBusinessEventId of the business event you want to enable
iii. Enable business event by ErpBusinessEventId
Worked Example
To enable the “ReceivablesInvoicePaid” business event code, follow these steps:
- Get the list of all business events to be enabled
- Use Get all business event records REST endpoint to get the list of all business events
https://<server>/fscmRestApi/resources/<version>/erpBusinessEvents/< ErpBusinessEventId from previous step>
Identify the ErpBusinessEventId of the desired business event
Use Update the enabled indicator for a business event REST endpoint of the ErpBusinessEventId record
Sample URL:
https://<server>/fscmRestApi/resources/<version>/erpBusinessEvents/< ErpBusinessEventId from previous step>
Sample Request Body:
{
"EnabledFlag": true
}
Search for “ORA_AP_ENABLE_BUSINESS_EVENTS” Profile Option and set the Site Level value to “Yes”
These events include SupplierNumber and SupplierID attributes in the output payload. The Oracle Integration needs to use the event attributes to invoke the Suppliers REST API to get the required supplier information from Procurement Cloud.
From ERP Cloud Navigate to Navigator -> My Enterprise -> New Features -> Available Features. Search for “Suppliers” Functional Area
Select Enable and in Edit Suppliers, select the check box for Enable Outbound Supplier Profile Integration Using Oracle Integration Cloud
Enabling Sales Order Events
From Setup and Maintenance, Search for the task “Manage Business Event Trigger Points”. Enable the Event as per the functional requirement
Work Area |
Supported Public Event |
Opt in Work Area |
Option to be Enabled |
Project Management |
Project Deliverable Status Changes |
Project Execution Management |
Generate Public Events on Project Deliverable
Status Changes |
Task Management |
Project Task Progress Status Changes |
Project Execution Management |
Generate Public Events on Project Task Progress
Status Changes |
Task Management |
Project Milestone Completion |
Project Execution Management |
Generate Public Events on Project Milestone
Completion |
Project Foundation |
Project Status Change |
Project Financial Management |
Publish Public Events on Project Status Change |
Project Financial Management |
Publishing Financial Project Progress |
Project Financial Management |
Generate Public Events When Publishing Financial
Project Progress |
Project Financial Management |
Financial Project Plan Changes |
Project Financial Management |
Generate Public Events on Change in Financial
Project Plan |
· Outbound receipt advices
· Outbound shipment requests
· ASN and ASBN creation
· ASN and ASBN cancellation
· Transfer order creation
· Transfer order update
· Transfer order cancellation
· Pick confirm
Configure business events to specify whether to use REST or SOAP services to integrate with your external 3PL or WMS.
-
To configure inventory business events, use the Manage Inventory Business Event Configurations task:
-
Offering: Manufacturing and Supply Chain Materials Management
-
Functional Area: Inventory Management
-
Task: Manage Inventory Business Event Configurations
-
-
On the Mange Inventory Business Event Configurations page, click the Add icon to add a new business event configuration.
-
Select an operation such as Outbound Receipt Advice or Outbound Shipment Request for the event type.
-
Select an event name to adopt either SOAP or REST services.
For example, for the event type of Outbound Receipt Advice, choosing an event name of Outbound receipt advice adopts REST, while choosing Receipt advice event notification adopts SOAP.
-
Select an organization.
Note: If you don't specify an organization, the business event applies to all organizations. -
Click Save and Close.
Custom Business Events
Whenever we create a new custom object in Oracle ERP Cloud using Oracle Application Composer, custom business events can be published explicitly. Once published, these business events can be subscribed from Oracle Integration (OIC). Business Events are visible for selection when configuring the Oracle ERP Cloud Adapter in OIC as a trigger connection in the Adapter Endpoint Configuration Wizard.
For each Custom parent Object, OIC supports 3 Standard Events (Create, update, and delete). Any operations on child custom objects generate update events for the parent custom objects. When a record is created, OIC is notified with record detail information through event handler framework on subscription to any related events
· Create a custom object in ERP Cloud
· Generate custom object pages (Create/Update Layouts)
· Set the profile option, ZCX_CUSTOM_OBJECT_EVENTS, which is used to enable and register custom object events. The profile option is disabled by default
Note: Refer Support note 2535444.1 for detailed verbiage of the steps
Verify if the events are published in the custom catalog
$ curl --location --request GET 'https://<erp_cloud_host>/soa-infra/PublicEvent/customCatalog' --header 'Authorization: Basic abcedefghiji=' \
Hi, Kishore, is this connection possible with Oracle EBS ?
ReplyDeleteAs we provide Oracle EBS implementation this will be helpful for us.
I like to learn that blog.This blog helps much to take knowledge.
ReplyDelete10th anniversary
Thanks for sharing informative blog with us. Bsquare Solutions offers best ERP software for manufacturing company that can be customized easily. We offers both cloud-based and window-based ERP software.
ReplyDeleteReally Helpful Article. We have a discussed about Enterprise Resource Planning (ERP) System in detail.
ReplyDeleteReally insightful! Thanks for breaking this down.
ReplyDeleteAdobe Photoshop Download
SuperAntiSpyWare Pro
PC Helpsoft Driver"