0% found this document useful (0 votes)
25 views

How to use Javascript library in Oracle Integration Cloud (OIC)

How to use Javascript library in Oracle Integration Cloud (OIC)

Uploaded by

S.GIRIDHARAN
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

How to use Javascript library in Oracle Integration Cloud (OIC)

How to use Javascript library in Oracle Integration Cloud (OIC)

Uploaded by

S.GIRIDHARAN
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

STEP BY STEP GUIDE

How to use Javascript library in Oracle Integration Cloud (O

www.kagool.com

Punit Desai

Kartik Kashyap
Infinite Possibilities

A JavaScript Library in the Oracle Integration Cloud (OIC) is a collection of


JavaScript files bundled in a JAR file.
The document provides a guide to the use of JavaScript functions in OIC along
with the use cases of implementing JavaScript library in OIC.

While importing a JavaScript Library in OIC interface, there are different parameters which we must
remember while adding to any integration. This file will help you to successfully import any library
function or program in the OIC interface.

 Function return value should be assigned to data type.

 This is perfectly valid Javascript function but it can't be registered as a library in OIC because
without a named return value the library metadata editor is unable to identify parameters.

 This is a valid Javascript Program for importing in OIC library file, and in this case the return
parameter is named. This change will let the user map the return parameter to a
downstream activity.

 Importing multiple javascript files in OIC

 This is a Javascript coded file named as binaryToDecimal.js and Square.js which will convert
binary integer to decimal and Convert square of an Integer.

BinaryToDecimal Code File

Kagool May 2022


Infinite Possibilities

Square of an Integer Code file

 If we have multiple library files to import just like the above two examples, a library can be
created based on multiple JavaScript files. When multiple files are involved, you should
bundle all files into a JAR file and register the JAR file as a library.

 After Creating a jar file, we must import the jar file in OIC interface.
Integration -> Library -> Create
After importing the JavaScript file, you can see input and output parameters are available.

Kagool May 2022


Infinite Possibilities

 Once it is available in library of OIC we can use this library in the main integration.
Go to integration and find the JavaScript option in action tag.
Find the related file in the Select a function option.

The Javascript library file is ready to add into integration.

Kagool May 2022


Infinite Possibilities

Final OIC interface after importing JavaScript file:

1) Integration flow

2) Activity Stream

Kagool May 2022

You might also like