Navigation

Integration Events – 3 Minutes Guide

This 3 minutes guide will explain you how to see the Integration Events in ReST client.

In this example we will fetch the events for FUND TRASNFER. We already created an Integration Project and published to T24.
Project Name: MarketPlaceDemo
Event Name: FTMarketPlaceDemo.event
Event Type: MarketPlaceDemo-FTMarketPlaceDemo

Prerequisites


Access the Data Service


Temenos Sandbox already have one Data Service that will fetch the events from T24

How to fetch the data from T24 using ReST client please follow this 3 Minutes guide – IRIS Data Service – 3 Minutes Guide

API Name to access events data: /enqIntegrationEventss()
Data Service Name: http://127.0.0.1:8080/MarketPlaceDemo-iris/MarketPlaceDemo.svc/GB0010001/
Filters: ?$filter=substringof(‘MarketPlace’, EventType) or ?$filter=EventType eq ‘MarketPlaceDemo-FTMarketPlaceDemo’
Complete URL: http://127.0.0.1:8080/MarketPlaceDemo-iris/MarketPlaceDemo.svc/GB0010001/enqIntegrationEventss()?$filter=substringof(‘MarketPlace’, EventType)

If we don’t provide the filter the it’ll fetch all the events from T24 and slow down the POSTMAN so best practice is only fetch the events in which you are interested. Follow this blog if you want to know more about filters – IRIS Data Service & OData Filters

 

Now we are going to query to T24 for event type MarketPlaceDemo-FTMarketPlaceDemo by GET method on above mention data service
e.g. /MarketPlaceDemo-iris/MarketPlaceDemo.svc/GB0010001/enqIntegrationEventss()?$filter=EventType eq ‘MarketPlaceDemo-FTMarketPlaceDemo’

We will GET following Response – This response is empty because there is no transaction after creating this event.
Events_API

Initiate FUNDS.TRANSFER


Now login to T24 and initiate a FUNDS.TRANSFER and commit the deal in T24

 

FundsTransfer

See the events data


Now follow the same steps we did earlier to fetch the events data. Open POSTMAN and GET request on /enqIntegrationEventss() resource

e.g. GET http://127.0.0.1/MarketPlaceDemo-iris/MarketPlaceDemo.svc/GB0010001/enqIntegrationEventss()?$filter=EventType eq ‘MarketPlaceDemo-FTMarketPlaceDemo’

Response from above request is – This time we received some data

Events_API_Data

In the response we can see event type and other useful information
<d:EventType>MarketPlaceDemo-FTMarketPlaceDemo</d:EventType>

and somewhere bottom of xml response you can find the T24 Application name

<d:element>
<d:CommonXmlVal>FUNDS.TRANSFER</d:CommonXmlVal>
</d:element>


Summary

  • GET request on enqIntegrationEventss() to get empty response
  • Initiate FUNDS.TRANSFER
  • Repeat step 1 to GET the events data