[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

1633.0. "Can you timeout an application ?" by SIOG::B_RAFFERTY (Bill Rafferty) Tue Oct 20 1992 13:53

    Does anybody know a straight forward way of forcing ALL-IN-1 to timeout
    and return to an entry menu when not in use. The application is ATM
    like where the user enters a password or code to retrieve specific
    information. The timeout function would ensure that the user did not
    leave themselves 'logged in'.
    
    Bill. 
T.RTitleUserPersonal
Name
DateLines
1633.1What is ATM?AIMTEC::BUTLER_TTue Oct 20 1992 14:3013
    Bill,
    
    I know of no TIMEOUT Function.  There are some other possibilities
    depending upon the interface where the user enters the password.
    (What is ATM?)  Can you pass the password to the interface?  Could
    this be done via script, arg form, etc. with the exit or bye function.
    
    Again depending on the interace you can write your own code to
    do this using the INSTALL and EXECUTE functions or write a
    Site Defined Function (SDF).
    
    
    Tim
1633.2BRUMMY::MARTIN::BELLMartin Bell, TCC, Birmingham UKTue Oct 20 1992 15:284
Or as a hack, use the DCL command READ/TIMEOUT=nnn to request the information
from the user, but you would have to be careful about screen handling etc.

mb
1633.3ATM - Automated Teller MachineSIOG::B_RAFFERTYBill RaffertyTue Oct 20 1992 15:4721
    Sorry Tim, ATM stands for Automated Teller Machine. The reason I
    compare the application to an ATM is as follows :- the user enters a
    password on an ARG form, which is verified against a file. Once verified
    the user is allowed access to a menu form containing options for
    different information. When the user completes his/her transaction the
    application returns to the 'password' form. The timeout is to ensure
    that if the user walks away from the terminal without completing the
    transaction the application still returns to the password form.
    
    
    I had considered writing an SDF which would create a mailbox and queue an
    asynchronous read on it. Commands could be written to the mailbox by a
    monitoring process when it found the ALL-IN-1 session inactive which
    would subsquently be despatched. I'm hoping there's an easier way
    though.
    
    Bill. 
    
     
    
     
1633.4My experienceJULIET::SELLECK_ALTue Oct 20 1992 18:1426
        Bill,
    
          I have written a BASIC program that does something similar to
        what you have described. The program set up a Mailbox, set an
        asynchronous flag and waited for a read on the Mailbox. Once the
        flag had been triggered, the asynchronous portion took over and
        Re-entered the ALL-IN-1 process to display an index form.
        (Before all the ALL-IN-1 guru's loose their minds, the application
        didn't just arbitrarily call the index form, there was a lot of
        checking to see it it was an appropriate time to call the index
        form).
    
          Now for the bad news...As soon as I had got the application to
        work, I got word from engineering that asynchronous processing, in
        the manner which I was doing, was not a good idea...I thing the
        exact quote was .... DON'T DO IT!!!!!!!!!!! I can't remember if
        the reason was because I was Re-entering the ALL-IN-1 process, or
        if asynchronous processing in it's self is a bad idea from
        ALL-IN-1. (any engineers want to let us know why?) In any event,
        I'll be glad to pass along the code I wrote for you to look at.
        Contact me off-line.
    
        Regards,
    
        Mike
    
1633.5Who said that and why?IOSG::PYEGraham - ALL-IN-1 Sorcerer's ApprenticeTue Oct 20 1992 19:0010
    Did you discuss your idea here (or in one of the previous versions)?
    
    I wonder who in engineering told you it was a bad idea. Perhaps you
    could mail me their name and I'll ask them. Did they say why it was a
    bad idea?
    
    Graham
    
    PS You'll be depressed to know that we had this as a requirement for
    V3.0, but it fell off the end of the list of things we had time to do...
1633.6It was probably meIOSG::TALLETTGimmee an Alpha colour notebook...Wed Oct 21 1992 09:4617
    
    	Its a fair cop! I seem to remember the discussion a while
    	back. If I remember correctly, a script called the SDF
    	which set up an AST and returned. At some time later, the
    	SDF "wrenched" control back from the main image when its
    	AST fired, and it then reentered the image at AST level
    	by trying to execute script commands. Clearly this is a bad
    	idea (you can't predict what the main image was doing, it may
    	even have had privs turned on) and I'd still say don't do it,
    	but I'd be interested in what checks you built in to "see if
    	it was okay" to display the index form (I don't remember these
    	checks last time around, maybe you added them later).
    
    	GET OA$DCL='READ/TIMEOUT...' sounds good to me.
    
    Regards,
    Paul