we own a self-service IVR application that will first ask the user for his pin number and password.
The application must be migrated to the Genesys platform.
The IT department exports a txt file every night containing the users database (pin+password). This file is loaded in the ivr memory every morning.
Would it be possible to read a text file within composer and store the content into gvp memory?
Keeping the text file intact would allow us to migrate the application quicker because we would not need a contribution from the it department.
i think i have a part of the answerâŚ
I know that it is possible to read the text file from a javascript inserted in composer but how do you put the content in the GVP memory?
Yes, it should be possible but not in JavaScript as it is interpreted by GVP and it doesnât support persistence. I wouldnât recommend you doing it in JavaScript due to possible performance issues (depends on size of text file) and problematic persistence.
Optimal solution in my opinion should be based on some web server module (either ASPX page + .NET assembly or JSP page + Java class) that will read text file, parse and provides some lookup possibility when called from GVP. You can use Backend or Web Request block for communication with that server module.
Let me know if you need more help.
R.
Edit: JavaScript is interpreted by GVP VoiceXML interpreter and not webserver thus it isnât possible to use JavaScript.
i like your idea and i understand that it would be wrong to do the file reading within Composer. I will build a seperate Webservice then call it from my Composer Strategy.
Web service is an option but I was thinking about something âlightweightâ. What platform do you use - .NET or Java?
If you do .NET then it support some nice caching features (ASP.NET State Service) allowing you to cache the file in web serverâs memory (kind of global variable) and access it from ASPX page. It should be quicker that calling web service and probably even easier to develop.
Probably there will be similar functionality available for Java as well.
I have a new problem now. My web service works great when i test it outside of Composer.
I added some logs in my Java webservice and i can see that when i call it from Composer, the webservice receives the parameter in as ânullâ instead of the âpin numberâ that i passed.