Showing posts with label Reference Architecture. Show all posts
Showing posts with label Reference Architecture. 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


Monday, 8 January 2024

Kony Visualizer Reference Architecture

 Hi folks, well this is something new to those of you are not known to kony framework or visualizer or temenos. Visualizer is the IDE used to develop form based mobile and web applications, it is owned by Temenos company which is famous worldwide for its banking related products. Reference architecture is style of development that is done in kony framework. kony framework is a collection of JavaScript modules, controller files, extensions. Refer to the image below:


In Reference Architecture development there are forms which are built for mobile or web. 

1-These forms contain widgets like label, textbox, listbox, segments and so on. A form may contain components as well. A component is a collection of widgets created with the purpose for reusability.

2- The forms business rules or validations are applied at the presentation layer which is written in presentation controller and its extension files. Presentation controllers connect the form controllers with the business controllers.

3- The business controllers connects with the repository to perform CRUD operations.

4- Repository and models are there to connect the front-end with back-end services to send/receive data. 

The back-end services are connected via Fabric which is a very powerful and secure tool for connectivity. More on Fabric some other day.