project BLF > class PAuthenticationQRA > method KeepAlive

Description

Wrapper for IsAlive.


Parameters


icGlobalSessionIdinputcharacter
ilUpdateSessioninputlogicalupdate session timestamp if still active
olIsActiveoutputlogical
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


BLF
method business.InitInstance
method BTimeOutDaemonProcessor.PerformWorkItem
method Session.IsTimedOut

QadFinancials
method BBaseDaemonProcessor.UpdateSessionTimeStamps


program code (program1/pauthenticationqra.p)

define variable sessService as class com.qad.qra.session.ISessionService no-undo.

olIsActive = yes.

sessService = cast(com.qad.qra.core.GlobalServiceLocator:Current:GetInstance(
                      Progress.Lang.Class:GetClass("com.qad.qra.session.ISessionService")),
                      com.qad.qra.session.ISessionService).
sessService:KeepAlive (icGlobalSessionId).

catch theError as Progress.Lang.Error:
    olIsActive = no.
end catch.