![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: how to set a trigger with timer? Topic Summary: Created On: 9-Dec-2002 21:23 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi all,
I wrote a script which loops within the whole DOORS database, whenever finds a new Change Proposal, it will send email to the corresponding Project Manager. The code runs well. Instead of manually run the code, I want to set up a trigger to run the script automatically once a day @ 4:00pm for example. I have two questions: 1. Where (in which folder) should I store the trigger and the scipt? 2. How can associate the trigger with the timer (make it work everyday @ 4:00pm)? Any suggestion is highly appreciated. If you have any code of this type of trigger, it is more than welcome to post here. thanks a lot, hong |
|
![]() |
|
![]() |
|
You can write the script in non-trigger/non-interface fashion. You can execute the script via the DOS batch file:
"c:\Program Files\Telelogic\DOORS 6\bin\doors.exe" -u "my user" -P "my password" -d "My Script.dxl" Thus running the script in "batch" mode. You can use Windows NT scheduling to schedule that batch file to run everyday at 4pm. Or perhaps you can define the script as a module-open trigger. It first checks the current time and if its between 4pm and 11pm and hasn't run yet, it will run. See the attached DXL for figuring out if the current time is after a certain Hour. - Louie |
|
![]() |
|
![]() |
|
Louie,
Thanks a lot for your help! I tried to run the script in the batch mode. I use this command: "c:\Program Files\Telelogic\DOORS 6\bin\doors.exe" -u "my user" -P "my password" -d "My Script.dxl" I got an error (I attached this error here). Then I changed the command to "c:\Program Files\Telelogic\DOORS 6\bin\doors.exe" -u "my user" -P "my password" -D "My Script.dxl" . I could login the database, but I couldn't run the script. I got error messages (I also captured this error in the attached file) I have two questions: 1. What's the command for me to logout the database (close DOORS application)? I couldn't find throught the "dxl manual" that Telelogic provided. I want to close DOORS after I run the script. 2. Any format I need to follow in my en2.dxl script in order to run it in by using the above command? I can run this en2.dxl to get email notifications when I load it and run it by using "DXL Interaction DOORS" UI window. |
|
![]() |
|
![]() |
|
Have a look at "Summary of command line switches" and "Running DOORS in batch mode" in the DOORS (not DXL) help file or pdf. The example provided in the help file for running a script in batch is:
doors -b dxl_programs\batch_analysis.dxl -p Car -u "Jill" Hope this helps. ------------------------- Bob Root |
|
![]() |
|
![]() |
|
Thanks you all!
Here is the command that I used, which worked finally: "D:\Program Files\Telelogic\DOORS 6\bin\doors.exe" -u "hong" -P "hong" -b "D:\Program Files\Telelogic\DOORS 6\bin\en2.dxl" thanks again, hong |
|
![]() |
|
![]() |
|
I have a scheduled DOORs module archive job. It won't exit after it finishes. How can I force it to exit once the archive is complete?
Thanks! Catherine |
|
![]() |
|
![]() |
|
The "-b" batch mode switch runs in batch mode: open DOORS, run the script, and close. The "-D" switch just starts DOORS and runs the script. Somewhere here someone showed a command that will actually close out of DOORS; but you won't need that in batch mode.
- Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
how to set a trigger with timer?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.