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: how to set a trigger with timer?
Topic Summary:
Created On: 9-Dec-2002 21:23
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.
 9-Dec-2002 21:23
User is offline View Users Profile Print this message


Hong Zhang

Posts: 29
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 9-Dec-2002 22:39
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 10-Dec-2002 17:37
User is offline View Users Profile Print this message


Hong Zhang

Posts: 29
Joined: 12-Sep-2002

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.

Report this to a Moderator Report this to a Moderator
 10-Dec-2002 19:21
User is offline View Users Profile Print this message


Bob Root

Posts: 3
Joined: 4-Nov-2002

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
Report this to a Moderator Report this to a Moderator
 16-Dec-2002 22:56
User is offline View Users Profile Print this message


Hong Zhang

Posts: 29
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 25-May-2004 20:51
User is offline View Users Profile Print this message


Catherine Yan

Posts: 43
Joined: 4-Aug-2003

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
Report this to a Moderator Report this to a Moderator
 25-May-2004 23:03
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.