Posts

OIC - Custom Libraries

Image
In the Oracle Integration Cloud (OIC) we can add custom libraries that give the option to implement requirements not covered with the out of the box standard functions. Some time ago I got a requirement to create a Unique Identifier with a specific length. The below JavaScript function takes a parameter as input (the length of the integer to return), and then it generates a random number with that exact length. There is an out of the box function to generate an ID, but we have no control on the length of that ID. So I save this file as a .js and will use it to create a new library. All the details can be found in the documentation ! Home  >  Integrations  >  Libraries Give it a name and select your .js file! You can now see the newly created function, the input and output parameters. Please note that you can create multiple functions in the same .js file. Now in the mapping action from any Integration, when you expand the User-Defined menu, you can see the cust...

OIC - Evernote Adapter

Image
Update November 2020: Well, it seems that right after this article, the Evernote Adapter reached its end-of-life:  You cannot create new connections of the Evernote Adapter or Oracle Monetization Cloud Adapter. Existing connections of both adapters continue to work. ---------------------------------------- I started using Evernote some time ago, as a means to store my cooking recipes:) Up until then, every time I had to cook, I had to google for the recipes to help me remember the ingredients - over and over again - with Evernote I keep my own recipes at hand. What does this have to do with Enterprise Integration you may ask? Well...nothing, but it triggered me to go and try the OIC Evernote Adapter. According to the Documentation , it is meant for these type of use cases: "For example, you can collect rich information about your customers, including notes, contact details, and other information into secure notes that only authorized team members can view in one place through Ever...

OIC - Parallel Processing

Image
The other day I stumbled upon a check box that enables Parallel Processing. This is part of the for-each action . According to the documentation , " If you drag a for-each action into a scheduled integration ..., an additional field called Process items in parallel is visible at the bottom of the dialog ." I have tested this and it does provide a considerable performance boost :) So let's put this into action. I have a simple Scheduled Integration that reads a file from an FTP location, performs a loop that for each line it will publish the record to a Kafka Topic. The writing sequence is irrelevant so we don't need to ensure an order - it's the perfect use case for parallel processing. If we are writing a File where the order is important, then we should avoid this option. So, first things first - Lets run this with the default option Everything you ever wanted to know about the For-Each action can be found here . The file that the Integration picks up from the F...

OIC Connectivity Agent

Image
The OIC connectivity agent is the answer for a secure hybrid deployment , where you have a mix of cloud and on-premise applications and need to ensure a secure communication.  The agent is the handler/listener that manages both inbound/outbound communication. This ensures that there is no need to open a port in the on premise firewall.  Fortunately Mordac is not a Product Manager for OIC:) 1. Create an Agent Group The agent group is a logical group to which we can associate the physical agents installed on premise. Very simple to create one - Just provide a name and a description. 2. Download and Run the Connectivity Agent Installer On the same place where you created the agent group, download the connectivity agent. Let's stop for a second and look to   the  System Requirements ! The agent is only certified with Oracle JDK Version 8.  The agent is certified on the following operating systems: O racle Enterprise Linux 6.x Oracle Enterprise Linux 7.2 Oracle Enter...

OIC - Update Strategy

Image
From August onward, the update strategy changed, from monthly to a quarterly based delivery. On top of that Oracle now gives it's OIC customers to option to choose between 2 update windows. All the information can be found in the below post: https://blogs.oracle.com/integration/choosing-your-update-window  On top of that if we look to the What's New page  , we can see that there were some updates in September, focused only for bug fixes and some other critical patches. Quarterly for new features + Monthly for bugs and other.  from:https://xkcd.com/1328/

Twitter Adapter for OIC - Bot for Chuck Norris Tweets

Image
When we think about Enterprise Applications, the automation of Tweets containing Chuck Norris jokes is not the first thought that comes to mind.....But that's exactly what I will demonstrate in this post :) Some time ago I started to play with a raspberryPI, and to the lack of a better project I picked Python , Twitter API's , the NASA API and some other open API's with facts/jokes. One of those API's was:  https://api.chucknorris.io/jokes/random It simply retrieves a random Chuck Norris Joke :) So lets bring all this together in the Oracle Integration Cloud! STEP1: You need Twitter API keys. Go to:  https://developer.twitter.com/en/apps , create an APP and generate  Keys, secret keys and access tokens. STEP2: In OIC Create a Twitter Connection. This is very straightforward - you will need the keys/tokens from step1 : Consumer key Consumer secret Access token Access token secret Create a REST Connection for the ChuckNorris API. Step3: Create a scheduled Integration ...

ERP Adapter - Business Events

Image
One of the most powerful and unique features of the  Oracle ERP Adapter  is the capability to subscribe to real-time business events. On top of that, it's actually easy to create an Integration to consume those events. Before creating any Integration, you need to make sure to add a new security entry in the below link. https://<fa-url>.oracledemos.com/soa/composer csf-key: Copy the Identity Domain value (for example, idcs-638a2ce020e60c2881) and the Service Instance value (for example, oic1575). Assemble the CSF key value with the identity domain first and the service instance second (no space in between): idcs-638a2ce020e60c2881oic1575. Username and Password - OIC credentials ( not ERP ) This is what allows ERP to trigger OIC upon a new business event. No other adapter has this functionality. As for the ERP adapter, things are much more simplified as only one endpoint is required (before it was 3) For more details please refer to the documentation . A busines...