T24 Knowledge Bank - T24 Programs and Routines

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

12/17/2018 How to use ofs.addLocalrequest?

Temenos Support Forum (/SitePages/tsf.aspx)  Portal Help shinewilson

Customer Support
Portal
(/SitePages/Home.aspx)

 MENU Entire Site Enter your keywords here 

OFS.addLocalRequest
What is "ofs.addLocalRequest"?: 
The API "ofs.addLocalRequest" (available from R10 release onwards) is used to process multiple OFS requests (AA
related requests)  in a synchronous manner.
 (/SitePages/Home.aspx)
This routine will allow  to add an OFS message to the existing transaction so that it process in a synchronous
manner i.e this will works in parent-child transaction.   
 (/SitePages/T24Intelligence.aspx)
 Additional validation will be performed before accepting the message to ensure that we don't get a scenario that
cannot be handled.  
 (/TCSPProfileCenter/infodefault.aspx)
Working nature of "ofs.addLocalRequest" is explained below.  
 (/Support/DashBoard.aspx)
Validation to be performed before adding the OFS to queue: 
1) It is not allowing GTS.CONTROL options where errors or overrides put the record into HLD status

2) It is not allowing Local messages except during authorization process

3) It is not allowing Local messages other than bulk mode

4) It is not allowing Local messages other than VANILLA OFS type message

5) It is not allowing Local messages of type VALIDATE

6) It is not allowing Multi company requests except the current company 

Rules to be followed:
-       The user de ned BEFORE.AUTH.RTN will be invoked the new public API to add additional requests from the
authorisation of the master record. Multiple requests can be added.

-       Child requests can also add additional requests through the BEFORE.AUTH.RTN applied to the version too. The
local code in the BEFORE.AUTH.RTN should be able to determine whether requests processed to date in the bulk
transaction are successful or not – this will allow exibility to only add additional requests when all previous
requests are successful.

-       Requests will be in standard vanilla OFS format.

-       All the local messages will be added to a local internal message request queue. Was this page
-       On successful completion of all the messages in the Core message queue, the local messages from the local
internal request queue would be considered for processing.
Yes

https://tcsp.temenos.com/HowTo/OfsAddLocal.aspx 1/3
12/17/2018 How to use ofs.addLocalrequest?

-       The processing of the local messages will happen within the same transaction management boundary as with
the core messages and therefore even if one local OFS message fails the entire transaction will be rolled back. 

Sample Routine:
SUBROUTINE ADD.LOCAL.OFS.REQUEST.ROUTINE

    $INSERT I_COMMON

    $INSERT I_EQUATE

    GOSUB INITIALISE

    GOSUB ADD.REQUEST         ;*add local request to local queue

    RETURN

INITIALISE:
* Additional request for Master transaction

  localOfsRequest =
'FUNDS.TRANSFER,SEAT.ONE/I/PROCESS,SUSER2/321321,FT0033570001,TRANSACTION.TYPE:1:1=AC,DEBIT.ACCT.NO
 (/SitePages/Home.aspx)
:1:1=20575,
 (/SitePages/T24Intelligence.aspx)
                          
 DEBIT.CURRENCY:1:1=USD,DEBIT.AMOUNT:1:1=70000,DEBIT.VALUE.DATE:1:1=20001215,CREDIT.ACCT.NO:1:1=6212
7,
 (/TCSPProfileCenter/infodefault.aspx)
                          
 (/Support/DashBoard.aspx)
CREDIT.CURRENCY:1:1=USD,CREDIT.VALUE.DATE:1:1=20001215,COMMISSION.CODE:1:1=WAIVE,CHARGE.CODE:1:1=
WAIVE'

    localOfsError = ''

    RETURN

ADD.REQUEST:
*** <desc>add local request to local queue </desc>

    CALL ofs.addLocalRequest(localOfsRequest,'add',localOfsError)

    IF localOfsError NE '' THEN

        E = localOfsError

    END

    RETURN

END

Arguments: 
Three arguments need to be passed.

ofs.addLocalRequest(ofsRequest,insertOrAdd,error)
Was this page
   ofsRequest -           the vanilla message from the application

   insertOrAppend -  INSERT to insert at the start of the local txn queue


Yes

https://tcsp.temenos.com/HowTo/OfsAddLocal.aspx 2/3
12/17/2018 How to use ofs.addLocalrequest?

                                     APPEND to add to the end of the local txn queue this is the default method

  errors -                     Any validation of message error

COPYRIGHT © 2018 TEMENOS HEADQUARTERS SA


(http://www.temenos.com/)
Best viewed in Internet Explorer 10 & above

 (/SitePages/Home.aspx)
 (/SitePages/T24Intelligence.aspx)

 (/TCSPProfileCenter/infodefault.aspx)
 (/Support/DashBoard.aspx)

Was this page

Yes

https://tcsp.temenos.com/HowTo/OfsAddLocal.aspx 3/3

You might also like