× Discuss on Template programming, jBASE programming, Enquiries, No-File enquiry, Enquiry routines, Version, Version routines, Menus, Abbriviations, Creating local reference fields, Fast path enquiries, Creating charts and graphs, Generating Reports, Deal slips, Straight through processing, Multi Company and Multi Book setup, Tabbed screens, Composite Screens, T24 API, etc...

Replacing OFS.GLOBUS.MANAGER to OFS.POST.MESSAGE

  • Ramesh
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 1 week ago #24416 by Ramesh
Hi all,
I am trying to replace the OFS.GLOBUS.MANAGER to OFS.POST.MESSAGE.When the OFS.GLOBUS.MANAGER(Y.OFS.SRC,Y.MSG.IN) is proceseed the response is stored in Y.MSG.IN and the response can further be used in the code. BUT when trying to replace it with OFS.POST.MESSAGE as per the syntax it just captures the id from the OFS.MESSAGE.QUEUE.
SO HOW CAN THE RESPONSE be Captured for when using OFS.POST.MESSAGE instead of OFS.GLOBUS.MANAGER?
CODE:
Y.OFS.SRC = OFS SOURCE ID
Y.MSG.VIN = APP.NAME:"/I/VALIDATE,,,"
Y.MSG.IN= APP.NAME:"/I/PROCESS,//,"

Y.MSG = SOME STRING OF FILD AND DATA
Y.MSG.IN1= Y.MSG.VIN : Y.MSG

* CALL OFS.GLOBUS.MANAGER(Y.OFS.SRC,Y.MSG.IN1)               /*TRYING TO REPLACE THIS LINE WITH OFS.POST.MESSAGE
CALL OFS.POST.MESSAGE(Y.MSG.IN1,' ',Y.OFS.SRC,' ')
RESPONSE.MSG = Y.MSG.IN1                                                    /*Since the OFS.POST.MESSAGE does not store response this line is facing issue and the inputted string data                                                                                                                    shows here not the response
TXN.ID = FIELD(RESPONSE.MSG,'/',1)                                      /*cannot extract the txn id as the response,msg has the inputted string and not response

Y.MSG.IN2= Y.MSG.IN:TXN.ID: Y.MSG
 CALL OFS.POST.MESSAGE(Y.MSG.IN2,' ',Y.OFS.SRC,' ')          /*wrong ofs string forms due to the incorrect RESPONSE.MSG


 

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
More
1 month 1 week ago #24417 by VK
Hi
the response is in F.OFS.RESPONSE.QUEUE but it appears there not immediately but when the service OFS.MESSAGE.SERVICE proceeds it.

Cheers
VK

Please Log in or Create an account to join the conversation.

  • Ramesh
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 1 week ago #24418 by Ramesh
Hi VK,
Thanks for the reply.

I tried reading through the F.OFS.RESPONSE.QUEUE to get response but as you mentioned it will not be available immediately so i get "NO RECORD FOUND" error .
Is there any other alternative where we can capture the RESPONSE.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #24419 by faisal
Hi,

You can attach a routine on OUT.MSG.RTN field in OFS.SOURCE, to capture the success / failure of the ofs messages.

Regards,
Faisal
The following user(s) said Thank You: Ramesh

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
More
1 month 1 week ago #24420 by VK
Hi
sorry can't agree... OFS is processed by another session (tSA agent)... If you assign routine there - it's the same as if you analyze OFS.RESPONSE.QUEUE...
 

Cheers
VK

Please Log in or Create an account to join the conversation.

  • Ramesh
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 1 week ago #24421 by Ramesh
Dear Faisal,

I need to extract the transaction ID from the response. Is that possible in any way?

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
More
1 month 1 week ago #24422 by VK
Hi

> Is there any other alternative where we can capture the RESPONSE

It's all asynchronous... You can't get the response immediately. You'll need a separate analyzer (or - as it was already suggested - attach a routine to OFS.SOURCE used by OFS.MESSAGE.SERVICE - to write responses somewhere for further analysis)..
 

Cheers
VK
The following user(s) said Thank You: Ramesh

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #24423 by faisal
Hi Ramesh,

Are u using specific OFS.SOURCE for posting ur ofs messages?

If yes, then u can use out mag rtn functionality to capture the id / status etc from this routine.

OFS messages will be picked up by ofs message service and will be posted using ur defined ofs source only if specified while posting through OPM.
We are also using this rtn functionality to record success / failure of the ofs messages along with ID.

Regards,
Faisal

Please Log in or Create an account to join the conversation.

  • Ramesh
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 1 week ago #24424 by Ramesh
dear faisal.

Thanks for reply.
can you give one example to further understand this one.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago - 1 month 1 week ago #24425 by faisal
Hi Ramesh,

Kindly find below the sample routine

SUBROUTINE TEST.RTN(Y.OFS.RESPONSE)

*Here ur inserts

$INSERT I_COMMON

* put a debug here

RETURN
END
 
Attach this rtn in ofs source record ‘out msg rtn’
and process ofs message and execute the ofs message service manually. The routine will trigger and u can check the Y.OFS.RESPONSE variable. All info u need will be in this variable.


Regards,
Faisal
Last edit: 1 month 1 week ago by faisal. Reason: Some flow updated
The following user(s) said Thank You: Ramesh, ELE

Please Log in or Create an account to join the conversation.

Time to create page: 0.195 seconds