We are using on-premises LN 10.7, as of now we are using AFS to automate some processes. Some are saying that AFS is deprecated. Is it? and if so, is there any alternative to automate the session processes in LN 10.7 on-premises.
Hi Sameer,
I don't think that AFS has been officially deprecated. If you search the KB, you can even find KB2022708 (https://customerportal.infor.com/csmcore?id=kb_article_view&sysparm_article=KB2022708 ) from 2018 that enabled the AFS functions in LN CE to control tx sessions.
Even if it is still supported, I would highly discourage its use. AFS (Application Function Server) functions were introduced when sessions had application logic that could not be executed otherwise. With LN, while it has not been followed everywhere, sessions handle the user interface, and the application logic is in libraries and DALs.
AFS might be a temporary workaround to achieve something, but eventually, once you migrate to LN CE, it cannot be used for standard sessions anymore. Please look into the use of Public Interfaces. The list of Public Interfaces is growing. Not every Public Interface has been added to LN 10.7, but while it is still under support, you can request new ones or have them backported from LN CE. The procedure is mentioned in KB2003722 (https://customerportal.infor.com/csmcore?id=kb_article_view&sysparm_article=KB2003722 ). This will reduce the refactoring work
Yours, Stephan
Hi Stephan, I'm not able to understand the complete public interfaces explanation from Infor documentation. I got a brief idea that public interfaces are DLL functions that perform calculations and actions when called from extensions. But ASF performs actions on session and execute the click functions on to the session like selecting the record and click on submit button which is in actions mean. similarly, we can perform some logics by retrieving the data from session using AFS. I want a similar ASF like api callings in LN 4GL script so that I can perform some automations onto the sessions. As of now user have to select record and click on a button in actions menu to complete a task. But by using ASF I have automated that action by using select query and ASF functions. So that the time required to complete a task is reduced. Public interfaces are standard DLLS which can't be modified.
ASF are custom, we can change the logic as we want and make new script as required.