Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Trigger to end user session after N minutes of inactivity
Topic Summary: Can a script monitor users who "forget" to close DOORS and walk away?
Created On: 27-Sep-2007 19:17
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 27-Sep-2007 19:17
User is offline View Users Profile Print this message


jason haury

Posts: 39
Joined: 20-Feb-2007

Has anyone developed some DXL that keeps track of users who go inactive?  I can see how Triggers could be used to see when a user opens a Module, and maybe even monitor if they've changed to different Objects within a Module.  Thus, it seems possible to measure whether a user is inactive (Logged in, but no new Modules opened or Objects selected in past N minutes).  Does anyone do this? 

If so, is it even possible reclaim that user's license and/or close their DOORS session? 

Jason

Report this to a Moderator Report this to a Moderator
 27-Sep-2007 21:11
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

I don't think what you are wanting to do is possible via a DOORS trigger.  DOORS triggers execute based on an action the user takes, hence they wouldn't be inactive.  Other than that I'm not sure there is a way.

There is one problem with what you are wanting to do anyway.  You have a user that got up and went to lunch while leaving DOORS open.  You kick him out and he didn't save.  Now he's just lost all his/her work.  Though any smart person would be saving every few minutes, but you have those few in every organization that never save until their done.

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com
Report this to a Moderator Report this to a Moderator
 27-Sep-2007 21:35
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

The core of the script would exit DOORS, first closing all the modules. You can have this part either automatcially save everythijng or close without prompting to save. It would then exit DOORS, I think the command is "exit_". You'd want to loop through all open module (closing them) a couple-three times, in order to make sure you got them all.

What you really want is this: some background script running that after X minutes initiates the core processing above. Module-open and object-sync triggers cancel then restart that background script. The background script is a problem. I've got some 'wait for a while' functions that use 'client' and 'ipc' commands that wait for a certain amount of time and then wake up and check the clock. I use that to defer the execution of a DXL for further into the night (e.g. i would initiate the archive program and go home, it would wait until 1am and then proceed to archive). Problem is that the entire DOORS interface is shut down while the script waits. I cannot think of a background technique that wakes itself up after X minutes and still allows that DOORS session to be GUI interactive.

Its possible to approach it this way: the triggers simply set a time stamp in a configuration file. The config file somehow uniquely identifies the current DOORS session. Have a background script that runs on the DOORS server or some client that periodically checks all such config files. If the time stamp on the files is too old then this script aborts the user. I don't recall the 'abort' commands but I'm confident they do not provide any mechanism for saving the user's work.

This looks tough. Sorry.

- Louie
Report this to a Moderator Report this to a Moderator
 28-Sep-2007 13:09
User is offline View Users Profile Print this message


Robert Swan

Posts: 86
Joined: 14-Apr-2005

Just to be really awkward as well as those who do not save there are those who are 'what iffing' in a live module, so they don't want to save on exit. Close and save for them could cause as much extra work as not saving.

If people won't be educated, and you can't live with the problem try embarrassment by instituting a 'thug of the month' award for those who don't logout and so deprive others of access. (Assuming your reason for wanting to do this is to free up licenses.)
Report this to a Moderator Report this to a Moderator
 28-Sep-2007 13:26
User is offline View Users Profile Print this message


Andrew Tagg

Posts: 151
Joined: 26-Oct-2004

I have a routine that closes all sessions at midnight every night, I said it was for backup purposes, and no one seemed to quibble with that. This way people soon got used to logging out at least once on the way home.

-------------------------
Andrew Tagg
Thales Air Systems, Melbourne
Australia.
andrew.tagg@thalesatm.com
Report this to a Moderator Report this to a Moderator
 30-Nov-2007 16:00
User is offline View Users Profile Print this message


Yuling He

Posts: 1
Joined: 27-Aug-2007

Andrew, could you share more details about the routine that closes all sessions at midnight?

Thanks,
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.