Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 17

Contents

App driven orchestration:.................................................................................................................1


Action Creation...............................................................................................................................11
Reference........................................................................................................................................16
App Driven Orchestration
App driven orchestration:
App-driven orchestration in Oracle Integration Cloud (OIC) refers to the ability of OIC to automate
and orchestrate end-to-end business processes using an application-centric approach. It allows
organizations to design and execute workflows that span across multiple systems and applications,
driving the flow and coordination of activities within the process. 
In app-driven orchestration, the focus is on the application or system as the primary driver of the
process. OIC provides a visual development environment where users can define the flow of
activities, dependencies, and decision points within the process. This allows for the creation of
complex business processes that involve multiple systems, services, and user interactions. 

Step -1 Create Connection (REST)

Select REST Connection and click on Create

Enter all the details as shown below and click on create.


enter the Connection URL , User Name & Password

Click on TEST to test the connection.

If Test is Successful, then Success Message will display on Screen

Click on save Button.

Now we can use this Connection in our Integration.

Step - 2  Click on Integration from Menu and click on Create button


Select App Driven Orchestration

Enter the Details and click on Create.


Now we need to add Rest Connection into this Integration to add Request and Response payload

Click on Trigger(Icon) and choose REST Connection what we have create earlier.

Drag and Drop the Connection into Integration section.

Now configure REST END Point


 Select the Request Payload format and we can enter sample JSON for that click on (inline link)
and enter the Payload format.
Response Payload

Now click Next and click on Done.

Now Integration will look like below image. (ENDPOINT)


 for Error Handling we need to add Scope, it will handle the Exception.

click on flag symbol and search the Scope under collection tab.

Drag and Drop Here

Drag and Drop Scope


we can Change the position of this scope. like we want this Exception while calling the Rest API .

For that just click on reposition tab and drag and drop the Rest API as shown below.

in this example response payload is like Success or Error , so for that we need to create variable
and need to check the condition and give the Response . if there is an error than Scope handler
move control to the Fault Handler

to identify the success or Error we need to assign the variable so we can ,map this value with
Response payload and give proper Exception.

Assign Variable (Action)


First we need to add Mapping for this payload . click on Edit

Click on Request wrapper and map the values.


if we are using Multiple lines under one header than we need to map line level from both side,
otherwise it will not give proper .

Now response will generate and check if there is an error then we need to handle the exception

Click on Fault Handler.


Action Creation
To add Handler we need to declare one variable (Assign Action).

Add Expression value to the Variable.


When Response generate, at that time this variable value will update And if there is an error then it
will display in Default handler.

if the response is successful then we need to add one variable and update the value

click on plus Icon an add one Assign Action.


Here we have declared two variables .for respose

Now we need to check the condition ,


Here if this flag value is ‘Y’ then invoice is created and value is ‘N’ it means Error. We need to
compare this with our earlier created flag value

click on Map to start REST and give value for result. And map the Invoice id with invoice Id
Earlier we mapped the mapper in case of success, now we need to do the same for error for that
we need to add one Map as shown below. Just Drag and Drop Map

Validate the Integration and click on Activate and click on Test button to play the Integration.

Successfully running the integration.


Reference
https://youtu.be/YoVFLNHsegM

You might also like