Oracle Integration Cloud If Statement

Share

Oracle Integration Cloud If Statement

Oracle Integration Cloud (OIC) provides a rich platform for integrating services, applications, and technologies. When designing an integration flow in OIC, you often need to introduce conditional logic, such as an if statement, to direct the flow based on certain conditions.

Here’s a general outline on how to use conditional logic, such as an if statement, in Oracle Integration Cloud:

  1. Design the Integration:

    • From your OIC instance, go to the Integrations section and click on “Create”.
    • Choose the appropriate integration style (like “App Driven Orchestration”).
  2. Define Your Trigger and Invokes:

    • First, define the starting point of your integration (e.g., a REST trigger).
    • Add any subsequent invokes or calls to other services as needed.
  3. Insert a Switch:

    • In the visual flow editor, you should see options like ‘For Each’, ‘Switch’, etc. on the right-hand side.
    • Drag and drop the “Switch” action into your flow where you want to introduce the conditional logic.
  4. Define Conditions:

    • Once the switch action is in place, you can define the conditions for your branches. It’s similar to the “if-else” logic in programming.
    • Click on the “Switch” action in your flow. On the right-hand side, you’ll be able to define the conditions that determine which branch will be taken. You can set multiple conditions based on the data in your flow.
    • You can use XPath expressions to evaluate conditions on message payloads or variables. For example, if you want to check if a certain element in your payload is “true”, you might use an XPath expression like $inputVariable.payload.elementName = 'true'.
  5. Define Actions for Each Branch:

    • For each condition, you’ll define what actions to take if that condition evaluates as true.
    • Drag and drop actions into each branch as needed, such as invoking another service, setting a variable, etc.
  6. Finish and Activate:

    • Once you’ve defined your conditions and the actions for each branch, finish the rest of your flow.
    • Save, and then activate your integration.

Oracle Integration Cloud (OIC) Training Demo Day 1

 
You can find more information about Oracle Integration Cloud Service in this Oracle Docs Link

 

Conclusion:

Unogeeks is the No.1 Training Institute for OIC. Anyone Disagree? Please drop in a comment

Please check our Oracle Integration Cloud Training Details here OIC Training

You can check out our other latest blogs on Oracle Integration Cloud in this OIC Blogs

💬 Follow & Connect with us:

———————————-

For Training inquiries:

Call/Whatsapp: +91 73960 33555

Mail us at: info@unogeeks.com

Our Website ➜ https://unogeeks.com

Follow us:

Instagram: https://www.instagram.com/unogeeks

Facebook: https://www.facebook.com/UnogeeksSoftwareTrainingInstitute

Twitter: https://twitter.com/unogeeks


Share

Leave a Reply

Your email address will not be published. Required fields are marked *