Showing posts with label Oracle Integration Cloud. Show all posts
Showing posts with label Oracle Integration Cloud. Show all posts

Thursday, August 14, 2025

More Examples: Assign vs Stitch in OIC Gen3

๐Ÿ“˜ More Examples: Assign vs Stitch in OIC Gen3

๐Ÿงช Example 1: Set Boolean Flag (Assign)

Scenario: Based on a condition, set a flag to true or false.

isEligible = true

Why Assign? Simple scalar assignment.

๐Ÿงช Example 2: Combine Strings (Assign)

Scenario: Generate a unique ID for a transaction.

transactionId = "TXN-" + currentDate + "-" + customerId

Why Assign? String operations with known variables.

๐Ÿงช Example 3: Set a Variable from an Expression (Assign)

Scenario: Calculate tax based on amount.

taxAmount = totalAmount * 0.18

Why Assign? Mathematical expression with constants and variables.


๐Ÿชข Example 4: Append Dynamic Payloads to a List (Stitch)

Scenario: While processing each record from an input array, append valid records to a result list.

validRecords.append(currentRecord)

Why Stitch? You’re dynamically building an array over iterations.

๐Ÿชข Example 5: Merge Customer Profile Data (Stitch)

Scenario: You get partial customer data from two different sources and want to stitch them into one object.


customerProfile.name = source1.name
customerProfile.email = source2.email
customerProfile.address = source1.address
  

Why Stitch? Updating only specific fields inside a nested object.

๐Ÿชข Example 6: Update an Element in a Nested List (Stitch)

Scenario: Change the quantity of the third item in the order list.

orderList[2].quantity = 5

Why Stitch? You're modifying an element deep within a data structure without affecting others.


๐Ÿ“Š Summary Comparison

Use Case Assign Stitch
Set default values
Append item to array
Set calculated value
Update nested field
Build composite object

Wednesday, August 13, 2025

Assign Vs Stich Variable in OIC

Assign vs Stitch in Oracle Integration Cloud (OIC) Gen3 | Complete Guide

Assign vs Stitch in Oracle Integration Cloud (OIC) Gen3: A Complete Guide

Oracle Integration Cloud (OIC) Gen3 introduces powerful enhancements to how variables are managed inside an integration flow. Two key methods available for working with variables are Assign and Stitch.

This blog explains the difference between Assign and Stitch, when to use them, and how they impact your integrations.


๐Ÿ” What is an Assign in OIC Gen3?

Assign is a structured activity used to create or set the value of a variable. It allows you to perform simple, clean assignments from one value to another — whether static, dynamic, or derived from other variables.

✅ Key Features of Assign

  • Clear and readable
  • Used to create new variables or set existing ones
  • Ideal for scalar values or basic data structure manipulation
Assign in OIC Gen3
Example: Assigning a hardcoded value to a variable called status:
status = "Approved"

๐Ÿชข What is Stitch in OIC Gen3?

Stitch is a more advanced activity used to merge or append complex data structures. Stitch allows you to modify existing data sets (like arrays or nested objects) without overwriting the entire structure.

✅ Key Features of Stitch

  • Best for working with arrays or repeating elements
  • Lets you merge, insert, or append data into existing variables
  • Essential when handling dynamic lists or payload enrichment
Stitch in OIC Gen3
Example: Appending a new order to an existing order list:
orders.append(newOrder)

๐Ÿ†š Assign vs Stitch: Key Differences

Feature Assign Stitch
Use Case Setting values or creating variables Merging or modifying complex structures
Data Type Scalar or structured Mainly structured or repeating
Performance Fast and lightweight Slightly heavier due to processing
Complexity Simple Advanced

๐Ÿ’ก Best Practices

  • Use Assign when setting simple or static variables.
  • Use Stitch when dealing with lists, JSON payload enrichment, or data merging.
  • Avoid overusing Stitch in small operations to keep flows clean.
Best Practices Diagram

๐Ÿง  Conclusion

Understanding the difference between Assign and Stitch in OIC Gen3 helps you design better, cleaner, and more efficient integration flows.

  • Assign is your go-to for setting values.
  • Stitch is your tool for merging and modifying complex structures.

Use them wisely to improve performance and maintainability of your integrations.


๐Ÿ“ฅ Related Resources


Have questions? Drop them in the comments or connect with me on LinkedIn!

Tuesday, June 10, 2025

OIC interview questions and answers

  • titled “Oracle Integration Cloud (OIC) – Interview Questions


    ๐ŸŒ Oracle Integration Cloud (OIC) – Interview Questions & Answers

    ๐Ÿ—“ Updated: March 11, 2025
    ๐Ÿ‘จ‍๐Ÿ’ผ Author: [Your Name or Company Name]


    ๐Ÿ’ก What is Oracle Integration Cloud (OIC)?

    Oracle Integration Cloud (OIC) is a powerful Platform as a Service (PaaS) that helps organizations connect applications, automate processes, and streamline data integration across cloud and on-premise systems.

    ๐Ÿงฑ Key OIC Components:

    • ๐Ÿ”„ Integration Cloud Service (ICS): Build and run integrations

    • ๐Ÿงฐ Visual Builder Cloud Service (VBCS): Low-code app development

    • ๐Ÿ” Process Cloud Service (PCS): Automate workflows and business processes


    ๐Ÿ” Common Integration Patterns in OIC

    Pattern Description Example
    Scheduled Orchestration Triggers integration on a timed schedule ๐Ÿ•“ Run every 4 hours to import journal files via FTP
    App-Driven Orchestration Starts via API or external event ๐Ÿ›’ REST endpoint receives order, pushes to ERP
    Basic Routing Direct data flow with simple mapping ๐Ÿ‘ฅ Send HCM employee data to Fusion Apps
    File Transfer Moves files across systems ๐Ÿ’ฐ Upload payment files to bank FTP
    Publish to OIC Sends messages to internal OIC topics ๐Ÿ“ฃ Broadcast a payload to subscribers
    Subscribe to OIC Listens to topic messages ๐Ÿ“ฅ Inserts data into a DB when message arrives

    ๐Ÿ” Key Differences: Basic Routing vs App-Driven Orchestration

    Feature Basic Routing App-Driven Orchestration
    Use Case Simple 1:1 integration Complex logic with conditions
    Components Single mapping Orchestration with loops, switches
    Example Employee sync Order processing workflow

    ๐Ÿงฉ Essential OIC Components Explained

    ๐Ÿ”Œ Adapters:

    • File Adapter – Works via agent, supports files up to 10 MB.

    • FTP Adapter – Directly connects to FTP; supports 1 GB+ files.

    • Database Adapters (ATP/DBaaS) – Uses wallets/agents for secure connections.

    ๐ŸŒ‰ Connectivity Agent:

    • Secure bridge between OIC and on-prem systems (HTTPS, port 443).

    • Limits: 10 MB per payload (can segment large files).

    • Install via: java -jar connectivityagent.jar (after setting InstallerProfile.cfg)

    ๐Ÿงพ ERP Cloud Adapter:

    • Requires roles: Integration Specialist, SOAOperator.

    • Configure CSF Key for callback support.

    • Use metadata refresh if catalog sync lags (~30 mins wait time).


    ๐Ÿ”ฌ When to Use ERP Adapter vs. Generic Adapters

    Use ERP Cloud Adapter Use SOAP/REST Adapters
    ✔️ Pre-built catalog/API ✔️ Custom or unsupported APIs
    ✔️ Built-in callback support ❗ Manual XSD/JSON import required

    ๐Ÿš€ Advanced Features and Patterns

    ๐Ÿ“ฅ FBDI Integrations

    • Use for bulk file uploads into Fusion ERP

    • Supports callback status monitoring

    ๐Ÿงฎ Global Variables & Data Stitching

    • Define reusable variables (primitive or complex types)

    • Use ASSIGN, APPEND, REMOVE in Stitch for payload manipulation

    ๐Ÿงฏ Error Handling

    • Try-Catch per scope + Global fault handler

    • Use Throw for custom faults, Rethrow to escalate

    • Use “Parking Lot Pattern” for async error resubmission

    ๐Ÿ“Š Logging & Monitoring

    • Use short-term OIC logger or persist logs in DB/VBCS

    • Implement “heartbeat” checks for external endpoints


    ๐Ÿงช Versioning, CI/CD & Feature Flags

    • Semantic versioning (v1.0.2, v2.3.1, etc.)

    • Automate deployments via OIC REST APIs

    • Integrate with GitHub/Jenkins for CI/CD

    • Feature flags progress from Internal → Controlled → GA (log SR for early access)


    ๐Ÿ” Security & Certificates

    • OIC integrates with IDCS SSO

    • Use Service Accounts for system-to-system calls (bypass SSO)

    • Import 3rd-party SSL certificates via:
      Settings → Certificates → Import


    ๐Ÿ“ฆ Lookups & Packages

    • Lookups = Domain constants/value maps

    • Packages (.par) = Group and export integrations across environments


    ๐ŸŽฏ Interview Tips & Focus Areas

    ๐ŸŽค Topics to Highlight:

    • Real-world use cases: FTP → ERP file imports, retry patterns

    • Error handling strategies (sync vs async)

    • SOAP vs REST, XSDs, and when to use each

    • Queues vs Topics in Publish/Subscribe

    • REST verbs (GET, POST, PUT, DELETE)

    • CI/CD implementation with OIC APIs

    ๐Ÿง  Troubleshooting Knowledge:

    • Metadata refresh for stale WSDLs

    • Dealing with agent connection failures

    • Handling locked or suspended integrations


    ๐Ÿ“š Final Thoughts

    Oracle Integration Cloud (OIC) continues to be a cornerstone of enterprise cloud connectivity, and mastering it can unlock powerful automation and data orchestration capabilities. Preparing for an interview? Use this guide to solidify your fundamentals and demonstrate real-world knowledge with confidence.



query to get Shipment number based on Order number

 SELECT DISTINCT     wnd.delivery_name,     wnd.actual_ship_date,     wdd.sales_order_number FROM     wsh_new_deliveries       wnd,     wsh_...

Popular Posts