×
Discuss about OFS, Temenos Connectors, Various OFS modes, OFS with Versions, OFS performance, Logging, EB.PHANTOM, OFS.SOURCE etc…
OFS.POST.MESSAGE functionality from T24
- msurii
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 89
- Thank you received: 1
15 years 9 months ago #2552
by msurii
OFS.POST.MESSAGE functionality from T24 was created by msurii
Although OFSGM should not be used within On-Line applications, in certain
circumstances it may be viable to use it. To facilitate this, few
enhancements/developments have goneinto T24.
A new routine with the name CHECK.CACHE.WRITE has been introduced. This routine
checks if there is any data in the cache(FWF array) pending to be written to
disk, if so, tells OFS.GLOBUS.MAMAGER that there is data pending to written and
as a result of which, a message “Write Cache Not Empty Cannot use
OFS.GLOBUS.MANAGER” is displayed and the transaction is aborted. This routine is
called in the INITIALISE paragraph of OFGM. This routine will not raise any
error messages when OFSGM is called during COB.
The SENSITIVITY variable is not used any more with in OFSGM.
So, Use OFS.POST.MESSAGE when we wish to call OFSGM, lets say from a version’s
BEFORE.UNAUTH.RTN when data will be there in the write buffer.
Syntax : OFS.POST.MESSAGE (OFS Record, OFS Message ID, OFS.SOURCE ID, OPTIONS)
Example : Sample version routine that can be attached when an account record
needs to be created via OFS from a version routine
SUBROUTINE V.OFS.POST.MESSAGE.TEST
$INSERT I_COMMON
$INSERT I_EQUATE
Y.OFS.REC=”PGM.FILE,OFSGLOBUS/I/PROCESS,INPUTTER/123456,,TYPE:=M"
OFS.MSG.ID = '' ; ! A unique number retuned by OFS.POST.MESSAGE
OFS.SOURCE.ID = "OFSGLOBUS" ; ! SOURCE.TYPE set to GLOBUS
OPTIONS = ''
CALL OFS.POST.MESSAGE(Y.OFS.MESSAGE,OFS.MSG.ID,OFS.SOURCE.ID,OPTIONS)
RETURN
END
When the above piece of code is attached to a version, the supplied OFS message
will get written on to a file named F.OFS.MESSAGE.QUEUE. This is the IN queue
from where the service OFS.MESSAGE.SERVICE picks up the data and processes.
Once the message is processed, the response is written on to an out queue named
F.OFS.RESPONSE.QUEUE.
The service OFS.MESSAGE.SERVICE is a multi threaded service and needs to be
started like any other service. It also requires the tSM to be up and running.
Sample IDs:
Message ID returned by OFS.POST.MESSAGE : 992770008045612.00
F.OFS.MESSAGE.QUEUE (In Queue) : 992770008045612.00-OFSGLOBUS
(Where OFSGLOBUS is the OFS.SOURCE ID)
F.OFS.RESPONSE.QUEUE (Out Queue) : 992770008045612.00.1
A service named OFS.RESPONSE.QUEUE is now available in T24. This service is used
to purge all messages in F.OFS.RESPONSE.QUEUE provided they have been in the
queue longer than the number of seconds specified in the field ATTRIBUTE.VALUE
in the TSA.SERVICE record for OFS.RESPONSE.QUEUE.
circumstances it may be viable to use it. To facilitate this, few
enhancements/developments have goneinto T24.
A new routine with the name CHECK.CACHE.WRITE has been introduced. This routine
checks if there is any data in the cache(FWF array) pending to be written to
disk, if so, tells OFS.GLOBUS.MAMAGER that there is data pending to written and
as a result of which, a message “Write Cache Not Empty Cannot use
OFS.GLOBUS.MANAGER” is displayed and the transaction is aborted. This routine is
called in the INITIALISE paragraph of OFGM. This routine will not raise any
error messages when OFSGM is called during COB.
The SENSITIVITY variable is not used any more with in OFSGM.
So, Use OFS.POST.MESSAGE when we wish to call OFSGM, lets say from a version’s
BEFORE.UNAUTH.RTN when data will be there in the write buffer.
Syntax : OFS.POST.MESSAGE (OFS Record, OFS Message ID, OFS.SOURCE ID, OPTIONS)
Example : Sample version routine that can be attached when an account record
needs to be created via OFS from a version routine
SUBROUTINE V.OFS.POST.MESSAGE.TEST
$INSERT I_COMMON
$INSERT I_EQUATE
Y.OFS.REC=”PGM.FILE,OFSGLOBUS/I/PROCESS,INPUTTER/123456,,TYPE:=M"
OFS.MSG.ID = '' ; ! A unique number retuned by OFS.POST.MESSAGE
OFS.SOURCE.ID = "OFSGLOBUS" ; ! SOURCE.TYPE set to GLOBUS
OPTIONS = ''
CALL OFS.POST.MESSAGE(Y.OFS.MESSAGE,OFS.MSG.ID,OFS.SOURCE.ID,OPTIONS)
RETURN
END
When the above piece of code is attached to a version, the supplied OFS message
will get written on to a file named F.OFS.MESSAGE.QUEUE. This is the IN queue
from where the service OFS.MESSAGE.SERVICE picks up the data and processes.
Once the message is processed, the response is written on to an out queue named
F.OFS.RESPONSE.QUEUE.
The service OFS.MESSAGE.SERVICE is a multi threaded service and needs to be
started like any other service. It also requires the tSM to be up and running.
Sample IDs:
Message ID returned by OFS.POST.MESSAGE : 992770008045612.00
F.OFS.MESSAGE.QUEUE (In Queue) : 992770008045612.00-OFSGLOBUS
(Where OFSGLOBUS is the OFS.SOURCE ID)
F.OFS.RESPONSE.QUEUE (Out Queue) : 992770008045612.00.1
A service named OFS.RESPONSE.QUEUE is now available in T24. This service is used
to purge all messages in F.OFS.RESPONSE.QUEUE provided they have been in the
queue longer than the number of seconds specified in the field ATTRIBUTE.VALUE
in the TSA.SERVICE record for OFS.RESPONSE.QUEUE.
Please Log in or Create an account to join the conversation.
- talha
- Offline
- Senior Member
Less
More
- Posts: 72
- Thank you received: 0
15 years 9 months ago #2556
by talha
Replied by talha on topic Re:OFS.POST.MESSAGE functionality from T24
Dear msurii,
I have seen people uses the following syntax for authorization and reversal.
Y.OFS.REC=”PGM.FILE,OFSGLOBUS/R,INPUTTER/123456,":Y.ID
Y.OFS.REC=”PGM.FILE,OFSGLOBUS/A,INPUTTER/123456,":Y.ID
Is there any problem if i also adds PROCESS in the msg?
Y.OFS.REC=”PGM.FILE,OFSGLOBUS/R/PROCESS,INPUTTER/123456,":Y.ID
because in the OFS manual i read that if PROCESS is not mentioned, by default PROCESS will be used. I just want to confirm that it really not matters if PROCESS is mentioned or not.
Regards,
Talha
I have seen people uses the following syntax for authorization and reversal.
Y.OFS.REC=”PGM.FILE,OFSGLOBUS/R,INPUTTER/123456,":Y.ID
Y.OFS.REC=”PGM.FILE,OFSGLOBUS/A,INPUTTER/123456,":Y.ID
Is there any problem if i also adds PROCESS in the msg?
Y.OFS.REC=”PGM.FILE,OFSGLOBUS/R/PROCESS,INPUTTER/123456,":Y.ID
because in the OFS manual i read that if PROCESS is not mentioned, by default PROCESS will be used. I just want to confirm that it really not matters if PROCESS is mentioned or not.
Regards,
Talha
Please Log in or Create an account to join the conversation.
- dinobg
- Offline
- Junior Member
Less
More
- Posts: 27
- Thank you received: 2
15 years 9 months ago #2557
by dinobg
Replied by dinobg on topic Re:OFS.POST.MESSAGE functionality from T24
Hi msurii,
we are using OFS.POST.MESSAGE on some tSA services, but we are facing one problem. When OFS process completes all records are inputted with INPUTTER equal to user defined in TSA>OFS.MESSAGE.SERVICE record. But in some cases we need to override this user with someone else (for example with specific DAO code). Do you know how to achieve this?
we are using OFS.POST.MESSAGE on some tSA services, but we are facing one problem. When OFS process completes all records are inputted with INPUTTER equal to user defined in TSA>OFS.MESSAGE.SERVICE record. But in some cases we need to override this user with someone else (for example with specific DAO code). Do you know how to achieve this?
Please Log in or Create an account to join the conversation.
- msurii
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 89
- Thank you received: 1
15 years 9 months ago #2558
by msurii
Replied by msurii on topic Re:OFS.POST.MESSAGE functionality from T24
Overriding the user name specified in TSA.SERVICE can be achived by manipulating the OPERATOR common variable from OFS.source - IN.MSG.RTN
SUBROUTINE RESET.OFS.USER(OUT.MSG)
INSERT I_COMMON
INSERT I_EQUATE
OPERATOR='AUTHOR'
RETURN
END
OFS.SOURCE
==========
9 IN.MSG.RTN........ RESET.OFS.USER
SUBROUTINE RESET.OFS.USER(OUT.MSG)
INSERT I_COMMON
INSERT I_EQUATE
OPERATOR='AUTHOR'
RETURN
END
OFS.SOURCE
==========
9 IN.MSG.RTN........ RESET.OFS.USER
Please Log in or Create an account to join the conversation.
- msurii
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 89
- Thank you received: 1
15 years 9 months ago #2559
by msurii
Replied by msurii on topic Re:OFS.POST.MESSAGE functionality from T24
You can use PROCESS or VALIDATE in the OFS MESSAGE.if it left blank by default system will consider it as PROCESS.The difference is if we use VALIDATE in OFS message then the message will be validated by simulating the transaction and returns the error message.But the actual transaction will not be commited.
System will simulate and return the error with reason or sucess message
=======================================================================
FUNDS.TRANSFER,/I/VALIDATE,,,TRANSACTION.TYPE=AC,DEBIT.ACCT.NO=150008
System will commit the transaction(based on GTS.CONTROL seting version) and return the error with reason or sucess message
==================================================
FUNDS.TRANSFER,/I/PROCESS,,,TRANSACTION.TYPE=AC,DEBIT.ACCT.NO=150008
System will simulate and return the error with reason or sucess message
=======================================================================
FUNDS.TRANSFER,/I/VALIDATE,,,TRANSACTION.TYPE=AC,DEBIT.ACCT.NO=150008
System will commit the transaction(based on GTS.CONTROL seting version) and return the error with reason or sucess message
==================================================
FUNDS.TRANSFER,/I/PROCESS,,,TRANSACTION.TYPE=AC,DEBIT.ACCT.NO=150008
Please Log in or Create an account to join the conversation.
- dinobg
- Offline
- Junior Member
Less
More
- Posts: 27
- Thank you received: 2
15 years 9 months ago #2562
by dinobg
Replied by dinobg on topic Re:OFS.POST.MESSAGE functionality from T24
Thanks a lot msurii.
This information is very helpful to me. Thanks again!
This information is very helpful to me. Thanks again!
Please Log in or Create an account to join the conversation.
- abbasi
- Offline
- Premium Member
Less
More
- Posts: 90
- Thank you received: 0
12 years 9 months ago #10200
by abbasi
Replied by abbasi on topic Re:OFS.POST.MESSAGE functionality from T24
dear msurri, when i have insert code as you mentioned. but i m getting OFSERROR_PROCESSING. could guide me to rectify this error?
If I will remove IN.MSG.RTN........ RESET.OFS.USER then my ofs message process successfully.
Regards,
Abbasi
If I will remove IN.MSG.RTN........ RESET.OFS.USER then my ofs message process successfully.
Regards,
Abbasi
Please Log in or Create an account to join the conversation.
- msurii
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 89
- Thank you received: 1
12 years 9 months ago #10216
by msurii
Replied by msurii on topic Re:OFS.POST.MESSAGE functionality from T24
Dear Abbasi,
You need to compile the below code and then the same needs to be linked to the OFS.SOURCE>IN.MSG.RTN
SUBROUTINE RESET.OFS.USER(OUT.MSG)
INSERT I_COMMON
INSERT I_EQUATE
OPERATOR='AUTHOR'
RETURN
END
As a first step from jbase prompt try the below command to check the routine was compiled correctly
jshow -c IN.MSG.RTN
Even after the correct compilation you are recieving the error message then check the respective OFS.REQUEST.DETAILS for the proper error reasons.
You need to compile the below code and then the same needs to be linked to the OFS.SOURCE>IN.MSG.RTN
SUBROUTINE RESET.OFS.USER(OUT.MSG)
INSERT I_COMMON
INSERT I_EQUATE
OPERATOR='AUTHOR'
RETURN
END
As a first step from jbase prompt try the below command to check the routine was compiled correctly
jshow -c IN.MSG.RTN
Even after the correct compilation you are recieving the error message then check the respective OFS.REQUEST.DETAILS for the proper error reasons.
Please Log in or Create an account to join the conversation.
- abbasi
- Offline
- Premium Member
Less
More
- Posts: 90
- Thank you received: 0
12 years 9 months ago #10224
by abbasi
Replied by abbasi on topic Re:OFS.POST.MESSAGE functionality from T24
msurri thanks alot for your help and resolve my problem. I have one more question could you tell me I want to send my OFS message from my tcclient exmaple
SECTOR,,<USRID/USRPWD>,851,DESCRIPTION:EQ=NORTH,SHORT.NAME:EQ=NRTH
and I want to change/replace actual userid and password in my IN.MSG.RTN before post my OFS message for security purpose.
After change which is I want my OFS.MESSAGE
SECTOR,,ABCD01/123456,851,DESCRIPTION:EQ=NORTH,SHORT.NAME:EQ=NRTH
waiting for your reply.
Abbasi
SECTOR,,<USRID/USRPWD>,851,DESCRIPTION:EQ=NORTH,SHORT.NAME:EQ=NRTH
and I want to change/replace actual userid and password in my IN.MSG.RTN before post my OFS message for security purpose.
After change which is I want my OFS.MESSAGE
SECTOR,,ABCD01/123456,851,DESCRIPTION:EQ=NORTH,SHORT.NAME:EQ=NRTH
waiting for your reply.
Abbasi
Please Log in or Create an account to join the conversation.
- MichealHox
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
3 years 5 months ago #23353
by MichealHox
Replied by MichealHox on topic PLAY THE BEST GAMES OF 2021 FOR FREE AGAMBLER
<b>PLAY FOR FREE</b>
<b>PLAY THE BEST GAMES OF 2021 FOR FREE</b> ON <a href=http://agambler.ru/>AGAMBLER.RU
<a href=https://agambler.ru/raid-en>agambler.ru/wp-content/uploads/2021/04/1-1-1-14.jpg">
<b>PLAY THE BEST GAMES OF 2021 FOR FREE</b> ON <a href=http://agambler.ru/>AGAMBLER.RU
<a href=https://agambler.ru/raid-en>agambler.ru/wp-content/uploads/2021/04/1-1-1-14.jpg">
Please Log in or Create an account to join the conversation.
Time to create page: 0.093 seconds