![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: problems listing module names with incoming links Topic Summary: Created On: 10-Aug-2005 15:14 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
All,
I am getting an interesting problem when I pull in the names of the modules that link to and from the current module from which I run the DXL code. In one case, I am getting a listing of STD modules that "link" into the current module. However, the STD modules do not have any links. The STD modules also do not have any deleted objects (was looking for deleted objects with a potential for links). When I have combined the code that lists the modules that link into the current module with the script that lists the modules that link out of the current module, my printed data can be even more erroneous. I have had a printout of modules that are indicated as linking out of the current module, when the listed modules clearly have no relationship to the current module. So, I am not sure why the code is acting so strange. I will start with giving you the code that only captures module names that link inito the current module: |
|
![]() |
|
![]() |
|
I figured this one out finally. Looks like I must have forgotten to save or something because when I purged all of the objects from the STD, the script ran as expected. So, apparently, on of the STD's deleted objects USED to link to the current module before objects were deleted.
Mary |
|
![]() |
|
![]() |
|
When creating/deleted objects or links its generally better to stage your desires in some sort of skpObjectsToDelete Skip list. This guarantees that you aren't deleting stuff inside some for loop that uses that stuff. Expect disaster DXL crash if you run the following:
for obj in mod do { hardDelete(obj) flushDeletions() } Instead do this: Skip skpDeletes = create() for obj in mod do { put (skpDeletes, obj, obj) } for obj in skpDeletes do { hardDelete(obj) } flushDeletions(). - Louie |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.