Handling Multiple Records and Final Outcome | Part 6

Handling Multiple Records and Final Output in OIC Integration (Part 6)

Creating New Version of Integration

1. Go to existing integration

2. Click on Create Version

OIC integration screen: navigating to existing integration and clicking Create Version to make a new version in Oracle Integration Cloud (OIC)

3. Enter version name: 1.01

4. Click Create Version

OIC integration versioning screen entering version name 1.01 and clicking "Create Version" in Oracle Integration Cloud (OIC)

5. Observe two integrations are now available (old and new version)

OIC integrations list screen showing both old and new versions of the integration in Oracle Integration Cloud (OIC)

Understanding Multiple Records Handling

1. Open the new version integration

2. Go to Mapper section

OIC integration screen opening the new version and navigating to mapper section in Oracle Integration Cloud (OIC)

3. Observe All Suppliers node

4. Identify it as single object or array using symbol

5. Verify Extract Suppliers is also an array

6. Understand both source and target support multiple records

OIC mapper screen showing both source and target structures supporting multiple records in Oracle Integration Cloud (OIC)

7. Note FTP can handle array directly without loop

8. Note Fusion creation requires looping

9. Save

OIC mapper screen noting requirement for looping in Fusion creation and saving configuration in Oracle Integration Cloud (OIC)

Adding For Each Loop

1. Go to Actions section

2. Locate For Each under Logic

OIC integration flow screen navigating to Actions section and locating For Each under Logic in Oracle Integration Cloud (OIC)

3. Drag and drop For Each into flow

4. If drag fails, click + button

OIC integration flow screen adding For Each action by drag and drop or using plus button in Oracle Integration Cloud (OIC)

5. Search For Each

6. Select For Each

OIC actions panel searching and selecting For Each to add looping logic in Oracle Integration Cloud (OIC)

Configuring For Each Loop

1. Select repeating element from DB response array

2. Drag array object into For Each

3. Set variable name: Current Supplier

4. Confirm loop will iterate for each record

Repositioning Loop

1. Identify correct placement (after FTP step)

2. Select For Each

3. Click Cut

OIC integration flow screen moving For Each action to correct position and clicking Paste in Oracle Integration Cloud (OIC)

4. Move to correct position

5. Click Paste

Select For Each  

Click Cut

6. Click Save

OIC integration flow screen clicking Save to store changes after adding For Each loop in Oracle Integration Cloud (OIC)

Moving Steps Inside Loop

1. Select multiple steps (Fusion + DB update)

OIC integration flow screen selecting multiple steps including Fusion and database update actions in Oracle Integration Cloud (OIC)

2. Use Select option

3. Click Cut

4. Click + inside For Each

5. Paste steps inside loop

OIC integration flow screen adding steps inside For Each loop and pasting selected actions in Oracle Integration Cloud (OIC)

6. Click Save

OIC integration flow screen clicking Save to store loop configuration changes in Oracle Integration Cloud (OIC)

Updating Mapping for Fusion

1. Open Mapper for Fusion step

OIC integration flow screen opening mapper for Fusion step to configure data mapping in Oracle Integration Cloud (OIC)

2. Remove existing mappings

OIC mapper screen removing existing mappings to redefine data transformation in Oracle Integration Cloud (OIC)

3. Remove from parent to clear all mappings

a. Map fields again using Current Supplier:
b. Taxpayer Country
c. Tax Organization Type
d. Supplier Name

4. Click Validate

OIC mapper screen clicking Validate to check mapping configuration in Oracle Integration Cloud (OIC)

5. Click Save

OIC mapper screen clicking Save to store updated mapping configuration in Oracle Integration Cloud (OIC)

Updating Mapping for Database Update

1. Open Mapper for DB update step

OIC integration flow screen opening mapper for database update step to configure data mapping in Oracle Integration Cloud (OIC)

2. Remove old mapping from DB response

OIC mapper screen removing old mapping from DB response to update transformation logic in Oracle Integration Cloud (OIC)

3. Map Supplier Name from Current Supplier

4. Click Validate

OIC mapper screen mapping Supplier Name from current supplier within loop in Oracle Integration Cloud (OIC)

5. Click Save

OIC mapper screen clicking Save to store updated mapping configuration in Oracle Integration Cloud (OIC)

Activating New Version

1. Click Activate

OIC integration screen clicking Activate to deploy updated integration with looping logic in Oracle Integration Cloud (OIC)

2. Confirm activation

OIC integration activation screen confirming deployment of the updated integration in Oracle Integration Cloud (OIC)

3. Observe previous version gets deactivated

4. Click Refresh

5. Confirm status Active

Testing with Single Record

1. Insert one new record in database

2. Run query to verify Draft status

Database screen inserting a new record and running query to verify Draft status in Oracle Integration Cloud (OIC) workflow

3. Confirm record does not present in Fusion

4. Go to OIC

5. Click Run

6. Wait for completion

Verifying Single Record Execution

1. Open Instance ID

2. Check flow execution

3. Verify For Each executed one time

4. Check FTP file

5. Confirm new record added

6. Check database

7. Confirm status updated to Completed

Database query result screen checking record status and confirming it is updated to Completed in Oracle Integration Cloud (OIC) workflow

8. 1 Row inserted

Database output screen showing successful insertion of 1 row in Oracle Integration Cloud (OIC) workflow

9. Check Fusion

Oracle Fusion Applications screen opening supplier record to verify integration result

10. Confirm new supplier created

Oracle Fusion Applications screen confirming that a new supplier has been created successfully

Testing with Multiple Records

1. Insert multiple records (e.g., 3 records)

2. Run query to verify Draft records

3. Confirm records do not present in Fusion

4. Go to OIC

5. Click Run

OIC integration screen navigating back to Oracle Integration Cloud and clicking Run to execute the integration

6. Wait for execution

OIC integration run screen waiting for the execution to complete in Oracle Integration Cloud (OIC)

Verifying Multiple Record Execution

1. Open Instance ID

2. Check flow diagram

3. Verify For Each executed multiple times (based on records)

OIC monitoring screen verifying that the For Each loop executed multiple times based on the number of records in Oracle Integration Cloud (OIC)

4. Confirm loop count (e.g., 3 times)

OIC monitoring screen confirming For Each loop executed 3 times based on input records in Oracle Integration Cloud (OIC)

5. Check database

6. Verify all records marked as Completed

7. Check FTP file

OIC monitoring screen confirming all records are marked as Completed and checking the FTP output file in Oracle Integration Cloud (OIC)

8. Confirm multiple new entries added

9. Check Fusion

Oracle Fusion Applications screen opening supplier records to verify integration results in Oracle Fusion

10. Verify all new suppliers created

11. Search (OEG)

Oracle Fusion Applications screen verifying that all new supplier records have been created successfully

Final Outcome

1. Integration works for single record

2. Integration works for multiple records

3. A loop ensures each record is processed individually

4. Data flows correctly across Database, FTP, and Fusion

5. The system remains synchronized across all platforms

Data Flow Logic

1. Only records with Draft status are processed

2. After processing:

3. Status updated to Completed

4. Prevents reprocessing

File Handling Logic

1. Two approaches:

a. Create new file each time

b. Append to existing file (used here)

Automation Capability

1. Integration can be scheduled:

2. Daily

3. Every few hours

4. Based on business needs

Final Outcome

After execution:

System | Result
Database | Status updated
Fusion | Supplier created
FTP | File updated

Conclusion

This Blog demonstrates how to:

Build real integration using OIC

Connect multiple systems

Automate data movement

Maintain data consistency

The OracelErpGuide emphasizes that OIC simplifies integration by providing a low-code platform with built-in adapters and security.

Shopping Cart