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: Baseline sets....
Topic Summary:
Created On: 25-Apr-2006 01:44
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.
 25-Apr-2006 01:44
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

I'm trying to use DXL to create Baseline Sets for our projects and seem to have hit a brick wall.

I have my script successfully creating a Baseline Set Definition with the requisite modules. Then I create a Baseline Set within it. What I'm having trouble with is adding Modules to the Baseline Set.

I have the statement

errmess = addBaselines(modulesToAdd, bs)

where modulesToAdd is a Skip filled with the modules that I want baselined. Now, according to the manual, "These modules must be included in the Baseline Set Definition which defines the Baseline Set, and must not already be contained in the Baseline Set." However, I get the error

"Baseline already exists in the Baseline Set"

when I run the above line. This happens if the Skip is full with the requisite modules or even if it's empty, which really confuses me. I have tried things several different ways and haven't been able to come up with anything. It seems like I'm missing something conceptually about Baseline Sets.

Please HELP!
Report this to a Moderator Report this to a Moderator
 25-Apr-2006 20:29
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Don't know. But just in case...

ModName_ mod = module(current Module)
int skipIndex = 0
Skip moduleSkip = create
put (moduleSkip, skipIndex++, mod) // Key is Int, Data is ModName_

The above inserts a module into the Skip. Notice the "key" is a sequencer integer (ignored I think), but the Data is of type "ModName_" and not of type "Module"; I'm SURE that's important.

- Louie
Report this to a Moderator Report this to a Moderator
 1-May-2006 23:47
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

It seems that the key type might be important. I had been filling my Skip with identical ModName_s as both the key and the data. Kept getting that error, no matter what I did (and I tried a lot: remove the current module from the skip, delete it and start over by refilling from the BS definition...). The only difference I could see between my code and the example code you quoted was the key type.

So I created an int for my key like the example and it went on its merry way. I also tried using a character (sequenced by using an int and charOf) but couldn't get it to work. Verrrrry odd, but I really don't have time to investigate it more.

Thanks for the help, Louie.

Chris
Report this to a Moderator Report this to a Moderator
 12-Dec-2007 21:16
User is offline View Users Profile Print this message


Andrew Wallen

Posts: 18
Joined: 23-Sep-2006

I also noticed that it seems to require the first key in the skip list to be 0. I couldn't get it to work with an initial keyvalue of 1. If the first key is 0, everything works fine.

It would have been nice if there was a note in the dxl reference manual about that.
Report this to a Moderator Report this to a Moderator
 12-Dec-2007 23:50
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Post the code or email it to me and tell me how to reproduce it.

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