![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Baseline sets.... Topic Summary: Created On: 25-Apr-2006 01:44 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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! |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
Post the code or email it to me and tell me how to reproduce it.
- Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Baseline sets....
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.