You can set a timer in your Main handler that counts down 30 minutes and then logout. This timer has to be reset to 30 minutes again every time there is activity in the application. The activity can be send to the Main handler by an Infobus event. In fact the Main handler can respond to every Infobus event that is send and reset the timer.
Set a timer that count down:
logoffTimerJob Job{runFunction = automaticLogoff};logoffTimerJob.schedule(1800000); // 30 minutes in miliseconds. Listen to any Infobus event that is send. This can be an Infobus event you sent specifically to reset the timer or an Infobus event that serves some other purpose but still is picked up by the Listener that resets the timer.
InfoBus.subscribe("**", receiveResetTimer);function receiveResetTimer(msg String in, data any in) logoffTimerJob.schedule(timeout);end
Ortwin
Ortwin