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: Creating Automated DXL for Archiving
Topic Summary:
Created On: 11-Feb-2004 18:51
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.
Answer This question was answered by Louie Landale, on Wednesday, February 18, 2004 8:11 PM

Answer:
You'll be writing a batch DXL program. It should presume that NO project is currently selected.

The "today()" command gets today's date. The archive code may look like attached.

You'll need to issue a command to the Operating system that looks like:
".../bin/doors.exe -b MyArchiveDXL.dxl -u UserArchive -P UserArchive's Password

Note you need the User/Password/Batch commands -u-P-b as per "command line switches" chapter in the DOORS manual.

I'd be tempted to create a special user UserArchive who has Archive privaleges but has only "R" access to stuff in the database. That way having this users Password unencrypted in Icons or elsewhere is no disaster. Make an Icon that works (opens DOORS, runs some "hellow" DXL, and exits); once that works try to get Time Target to issue a similar command when the time rolls around.

- Louie
 11-Feb-2004 18:51
User is offline View Users Profile Print this message


Sam Vaid

Posts: 3
Joined: 10-Feb-2004

Does anybody know the command line for an Archive within a DXL?
Also, I would like to change the path of the DMP file created, how do I do this?


Any help is greatly appreciated!
Report this to a Moderator Report this to a Moderator
 11-Feb-2004 20:53
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Are you asking how to archive modules and projects from DXL? Are you asking how to specify the output Windows *.dma File Name using DXL? Are you asking how to modify the Archive Dialog box displayed when you manually try to Archive?

- Louie
Report this to a Moderator Report this to a Moderator
 17-Feb-2004 18:06
User is offline View Users Profile Print this message


Sam Vaid

Posts: 3
Joined: 10-Feb-2004

How to archive modules and projects from a DXL. I am attempting to use Time Target to execute an automated script that runs an archive of a project daily. I also wish to use a date/time stamp for the created .dmp file. However, i'm am not too versed as far as the scripting and syntax of DXLs.
Again, thanks for the help.
Report this to a Moderator Report this to a Moderator
 17-Feb-2004 18:35
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
You'll be writing a batch DXL program. It should presume that NO project is currently selected.

The "today()" command gets today's date. The archive code may look like attached.

You'll need to issue a command to the Operating system that looks like:
".../bin/doors.exe -b MyArchiveDXL.dxl -u UserArchive -P UserArchive's Password

Note you need the User/Password/Batch commands -u-P-b as per "command line switches" chapter in the DOORS manual.

I'd be tempted to create a special user UserArchive who has Archive privaleges but has only "R" access to stuff in the database. That way having this users Password unencrypted in Icons or elsewhere is no disaster. Make an Icon that works (opens DOORS, runs some "hellow" DXL, and exits); once that works try to get Time Target to issue a similar command when the time rolls around.

- Louie
Report this to a Moderator Report this to a Moderator
 24-Feb-2004 10:23
User is offline View Users Profile Print this message


Paul Tiplady

Posts: 176
Joined: 28-Oct-2003

Just a wee thought -- you might want to capture the current date once at the beginning. If you're running your automated archiver overnight, you could end up with one date in the directory name and a different one in the project name. This is the sort of thing that May well not appear initially, when you've only got a small database, but as the content expands, your archive may well start to run past midnight, and you'll get all confused...

Paul.

-------------------------


Paul dot Tiplady at TRW dot com
TRW Automotive
Report this to a Moderator Report this to a Moderator
 24-Feb-2004 15:15
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

"wee thought" indeed. Yes, I have this very problem. We cannot schedule ANY batch DXL since that requires some unencrypted passwords and the IT folks cannot stand that, even for benign users on a completely protected server (with some justification since this is a sensitive military program and the Securiy Folks are very anal-retentive here). So I wrote some "defer" code that allows us to invoke the archive in the late afternoon but it waits until later to run. The prompt figures out the target folder name (say at 5pm) but when we ran the archive we actually had the date-problem you suggested since archiving tended to go past midnight. I solved this by just starting the archive a little earlier, in this case 10pm.

Your solution, however, still has some residual confusion since the name of the archive will be the 4th but the create date (as per Windows) will sometimes be the 5th.

As for most issues there is no perfect solution.

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