![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Triggers for Dummies? Topic Summary: Does anyone have some good documentation on Triggers? Created On: 10-Jun-2005 14:24 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hello all, I'm attempting to learn about Triggers in DOORS. The documentation in the DXL help seems fairly cryptic to me....does anyone have some good introductory material on Triggers?
I know this is a pretty general question, but any starting points would be helpful...thanks! |
|
![]() |
|
![]() |
|
Check out the DXL manual which is downloadable from the DOORS support area of the website.
Ewen Miller |
|
![]() |
|
![]() |
|
There is no Triggers for Dummies.
There are two DXLs of interest for each trigger [1] the code of the trigger itself. This code gets executed when the trigger is Triggered [2] the code that defines and sets up the trigger. This code should also be written to have an option to remove the trigger, where the "delete" and the "trigger" commands match up. [1] Can be in a separate file and the trigger code #includes it. That tricky for multiple users since all have to have access to the file. You can also define a "string TriggerCode = ..." variable that houses the trigger code itself. Slashes and quotes need to be preceeded with a slash. You could use the "eval_" function to test the trigger code before you install it as a trigger. You could also have the code in a separate file on you client, and the defining program opens the file and reads it into a variable. Once the trigger code works you'll have to decide the Event and the Scope which together decide when the trigger Fires. You are going to have to practice to figure out all that. I'd have a dxl that simply does this "infoBox(\"Hello from Trigger MyTrigger\")' There are several commands that are accessible only from INSIDE a trigger. You are also going to have to practice which ones. Often the trigger will need to "Trigger tCurr = current" to get a handle on its own Trigger. I found out that the "attrDef" command returns the name of the Attribute in question when dealing with Attribute Save Triggers. Be sure to do a lot of error handling and gracefully deal with them. Deal with usually means ignore and abort. Triggers are bad enough; triggers that modify stuff is a nightmare. Avoid them untill you are VERY confident in your DXL and trigger abilities. - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Triggers for Dummies?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.