Tuesday, September 9, 2025

OIC - How to Extend a Map in an Oracle Integration Cloud (OIC) Accelerator Project

Empowering customizations while preserving upgrade compatibility in OIC accelerator integrations


Use Case: When and Why to Extend a Map

Imagine your OIC accelerator integration was originally designed to sync Employee Data between your HR system and a downstream service. The default mapping includes fields like EmployeeID, FirstName, and LastName. Now, your business needs to include Department Code and Work Location in the mapping, which are not in the original integration flow.

To meet this requirement without modifying the original accelerator, and to keep your extension safe across future updates, you should extend the integration through an Extension Group—Oracle’s recommended, upgrade-safe mechanism for customizations.


Solution Steps: How to Do It (Accurately Guided by Oracle's Documentation)

1. Open the Accelerator Project and Select the Integration

  • In the OIC Projects pane, locate your accelerator project (marked with "Accelerator" and "Oracle") .
  • Navigate to the integration you wish to modify.
  • From the Actions menu, choose Extend—this will initiate the extension mode (note: this option is exclusive to accelerator projects) .

2. Insert an Extension Group at the Appropriate Point

  • Locate the step in the integration flow where you want the extended mapping to take place (e.g., before or after an existing Map or Invoke action).
  • Click the Add (+) icon at that point and select Extension Group, or choose Extend before / Extend after using the Actions menu inside the relevant action block .

3. Add the Map Action to the Extension Group

  • Inside the newly created Extension Group, click the Add icon or Integration actions menu and choose Map to create an ad-hoc mapping action .
  • The OIC mapper will open; drag and drop your new fields from source (e.g., DepartmentCode, WorkLocation) to the corresponding targets, applying any transformations as needed.
Notes for Extending a Map in OIC

1. Drag and Map Elements to get new namespace prefix
Select the required elements from the source and map them to the corresponding target fields.

2. Custom DVM Mappings to get new namespace prefix
Use a Domain Value Map (DVM) wherever code-to-description or lookup translations are required as custom dvm, namespace can cause issue in extended map.

3. Verify and add Namespaces and Prefixes to initial xslt map
Check if new namespaces or prefixes are introduced in the extended schema and ensure they are consistent.

4. Update XSLT in Notepad++
Copy the initial map’s XSLT code into Notepad++. Update namespace prefixes if needed and replace the templete to templete whole code in the extended map to ensure proper references.

5. Add New Elements
Introduce any additional elements required by the business use case and map them appropriately.

4. Additional Customization (Optional But Powerful)

You can further enhance your extension with other actions, such as:

  • Data Stitch: To merge multiple payloads or variables.
  • For-Each: To process repeated elements.
  • Switch: To implement conditional routing within your flow.
  • Integration Invoke: To call child integrations.
  • Global Variables, Lookups, or JavaScript Libraries: For reusable variables, code translation/lookup logic, or custom script-based logic.

5. Save, Validate, and Activate

  • Once your extended mapping (and any extra actions) are configured, save the integration.
  • Validate the mapping; OIC will surface any missing or invalid connections.
  • Finally, activate the integration to apply your extension.

6. Preserve Your Extensions During Upgrades

One of the biggest advantages of using an Extension Group is that your customizations remain intact during future accelerator upgrades:

  • When a new version of the accelerator becomes available, you can choose to Merge latest extensions during the installation. Oracle will automatically apply your Extension Group customizations to the upgraded version.
  • Alternatively, if you skip automatic merging, you can still manually merge your extensions into the new version later.

Blog Summary: Why Use Extension Groups for Map Customization

Benefit Description
Upgrade-safe Your custom mapping stays intact during accelerator updates.
Structured customization Extensions are isolated in their own group—easy to manage and modify.
Flexible extensibility Besides maps, you can add loops, lookups, global vars, child integrations, and more.
Low-impact No changes to the original accelerator code, minimizing risks.


No comments:

Post a Comment

Featured Post

OIC - Generating SAS Token for Azure Hub Access in OIC Using Built-in Functions, not using crypto library

📌 Use Case When integrating Oracle Integration Cloud (OIC) with Azure Event Hub / Service Bus / IoT Hub , authentication requires a Share...