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: dynamic triggers
Topic Summary:
Created On: 21-Jul-2004 20:46
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.
 21-Jul-2004 20:46
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Been playing with triggers and I notice that a dynamic module-close trigger defined by a DXL will persist ONLY so long as the DXL is running, and NOT as long as the module is open, as is desirable. Keeping a DXL running means opening a Dialog Box.

For example, if you define a dynamic module-close trigger to close your dialog box, the trigger exists only if the DB is open. If you close the DB the trigger is likewise removed. That's OK in that situation. Maybe that's what those b:Specific triggers are for.

Thus, it would be REAL tough to write a dynamic trigger that reminds the user that something needs to be done after they close a module; such as "you have modified this module. Be sure to put its name in the NowUpdated list".

- Louie
Report this to a Moderator Report this to a Moderator
 5-Aug-2004 14:31
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I've actually written quite a few persisten triggers over the years but just started investigating the dynamic ones. In my example, the persistent trigger could be a pre-close-module trigger that deletes itself:
... Trigger tCurr = current
... if user confirms some warning
... then set(preConPass); delete(tCurr)
... else set(preConFail)

If I really wanted to make it bullet proof, I could get the "session" of the open module and insert it into the name. The trigger would get the current trigger handle, then get the name of the trigger, then get the session from the name. If that was not the current session the trigger (the trigger was created at some other time) then it would set pass and delete itself without ceremony.

- Louie
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.