Showing posts with label Infinity. Show all posts
Showing posts with label Infinity. Show all posts

Tuesday, 6 February 2024

Consuming Integration Service in Temenos Visualizer

 Hello folks, today we see how to consume an Integration service from Visualizer Reference Architecture Web form application.

Follow the below step:

  1. First configure the fabric URL. In order to do so go to "Edit" in top menu. Then go to "Visualizer Preferences" and then "Fabric". Enter the Fabric URL and then "validate" 

  2. Now link the MicroApp with FabricApp in which the service has been created. To do that go to "Data & Services" tab in visualizer then go to "Link to Existing App". Then on the desired app click "Associate"
     
  3. In order to consume refer the sample code that is provided from Fabric console. Go to "Integration Service" tab in fabric console of the application and click on your service and click on "sample code" icon as shown in the image. 

  4. Now copy the sample code for the service and its operation and paste in your controller/module code. 
     

     

  5. Below is the form controller code for invoking the Integration Service and logging the response in console:  
     onPostShow: function(){           
           var serviceName = "MyTestService2";
           var integrationObj = KNYMobileFabric.getIntegrationService(serviceName);
           
           //Code to invoke parent integration service should be present to use below code.
           var operationName =  "MyTestOperation2";
           var data= {};//{"countryname": "United States"}; //sample value
           var headers= {};
           integrationObj.invokeOperation(operationName, headers, data, operationSuccess, operationFailure);
           
           function operationSuccess(res){
           // code for success call back
             console.log('operationSuccess:');
             console.log(res);
           }
           function operationFailure(res){
           // code for failure call back
             console.log('operationFailure:');
             console.log(res);
           }
         },

  6. Now run the application by first clicking "Build" menu then "Live Preview Settings". Select "Responsive Web" then click "Save & Run" 


  7. Check the output in the console window of browser


Friday, 26 January 2024

Configuring Integration Service in Temenos Fabric Console

 Hello, today we see how to configure an Integration service in Temenos Fabric Console. The Fabric console is very powerful tool such that it can connect with various types of backend services. some of the backend connecters include XML, SOAP, JSON, Java, JavaScript, Relational database. One can also set mock data with Mock data connector. Now lets go through the process of configuring an Integration service step by step.

  1. First open the console and goto the App and in the Configure Service tab press the Configure New button. 

  2. Now enter the service name by which you will later access. Select the service type, some of them I have mentioned above. You may see that I have selected as JSON as this service will return a JSON response. Enter the base url of your service. For now the web service authentication is set to none, this can also be configured for security purpose. Now press "save" or "save and add operation" 

  3. Click on the "add operation" button in operation list tab. 
     
  4. Enter the name of operation and set any url suffix that might be present in the service url that you are configuring. Here it is being set as "search?country=$countryname" where search represents the operation name and country is the parameter by which search is to be made and $countryname is the parameter value.  

  5. In the Request Input tab set the parameter countryname, here a default value is also set as "United States".  

  6. One more thing that can be configured but it is not mandatory is the output. If no output parameters are set then all the response is returned. If Response Output is set then the desired response is returned. Here country, name, alpha_two_code are being returned. The $.[*] means the array [] inside the main response $. 

  7. Now click "save and fetch response". You may see the output result. 


  8. In order to consume this service in an application it will be needed to publish the service first. 




  

Thank you for reading. Have a good day.