Skip to main content

Posts

Showing posts with the label oics

Trigger OIC from Digital Assistant/Chatbot

  Introduction In this article I will be explaining about triggering the OICS integration from the chatbot. Main article Many of us might have known about triggering the OICS integrations from the VBCS or PCS. Have you ever done it from chatbots? Let’s build a dummy integration in first place which we want to trigger from the chatbot. The main purpose of this would be to notify the user saying that the integration got triggered from the chatbot. Now Follow the below steps to get the integration configured in chatbot environment: 1.        Go to the settings section and select API services Provide the details as below : Once done go to the authentication section and select basic authentication from the drop-down list: Provide your OIC credentials. No in the methods section, provide the input payload for the integration call. Click on test the request and save the response: In this case it would be blank as the integration type is asynchronous (no feedback). Now please refe

Implementing Stop in a Synchronous Integration.

  Introduction In this blog I will be explaining on overcoming the limitation of having a stop action in a synchronous Integration. Main Article The main goal of this article is about achieving to stop the synchronous integration wherever its required. In case of Asynchronous Integration by default we get at stop action at the end of the Integration whereas in synchronous integration by default we can’t use it. But when you want to stop the integration abruptly at any point, how to achieve it. There are three ways to do it: 1)       If you want to get rid of the return at the end and convert it to stop, in other words if you want to convert synchronous to asynchronous, uncheck the configure response payload option in the trigger.   2)       Use throw new fault action at point to stop the integration abruptly irrespective of if it is synchronous or asynchronous.   3)       This one may or may not work in some cases…drop a choose action and on the TRUE path dro

Wait for Synchronous Integration in OICS

   Introduction: Wait is the most common thing we use to slow down the process at any given point of time, but this wait action is by default disabled for synchronous integrations. Main Article: Create a JavaScript ( syncWait  let  ) with the below Code: function syncWait(waitTimeinmillisec) {   const begin = Date.now();   while ((Date.now() - begin) < waitTimeinmillisec){   }   return waitTimeinmillisec; } now call this JavaScript in your synchronous Integration with the seconds you want to halt your integration * 1000. Call this JavaScript in places you need in your synchronous Integration. That's it you had overcome the synchronous Integration Limitation. Example: -Preetham Konjeti.

Implement While loop in XSLT of OICS

Introduction: In the XSLT mapper of OICS by default we don't have the while loop to implement, but there can be a situation where we need to implement while , when such situation shows up how to implement it? Main Article: In the above XML, the filename is static....say we need to populate the same field with 5 file names in a single shot in other words to bring dynamism to the Code we have to use loop. Lets do it using While loop. But in XSLT we don't have while loop by default, then how can we achieve this? Just like functions in any other languages we have a thing called 'Template' in XML. Using this we can achieve the while loop. 1) In the above code, match='/'  indicates the default template to be called , In this case the default templated calls the ' customWhile ' template which we had created with parameter 1 as the input. 2) Once the template is called in the very first step as check would be performed to check the input param falls in our desir

Deploy all integrations to new environment with a single click using OIC

 

Backup Integrations of an Instance with a single click using OIC

  Introduction One common mistake that most of OICS developers make is not taking the backup of their integrations religiously and if they want to take backups clicking on the export of the integrations individually could be quite tedious. Main Article In this blog I will be explaining about automating the backup process in OICS. Below is the order of the steps that are to be followed: STEP:1 1) Configure a Rest trigger connection as shown below. Provide the below payload in the request section:     {   "IntegrationName”: "" } STEP:2   Configure the new rest connection as mentioned below. (This basically list downs all the integration details as per the provided name).   Provide the Query parameters as below:   Provide the response payload as below: {   "hasMore" : "false",   "items" : [ {     "id" : "",     "name" : "",     "lockedFlag" : &quo