Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to get all link objects of link module in DOORS DXL without doing any loops on source or destination modules

I am looking to get all link objects that are stored in link moule.
Link module has linksets. But linkset doesn't store actual link object which can be read/loaded without iterating the source module of the linkset. 
Can anyone tell me how to get link object directly without iterating the source or destination modules ?

Below is my code that is current taking huge time for reading the link objects. I am looking for optimized way of reading the link objects of link module using DXL code.

Object obj = null;
Module pModule = null;
string srcModPath = "";
string tgtModPath = "";
Module srcModule = null;
Module tgtModule = null;
string srcModName = "";
string srcModuleId = "";
string srcModPath = "";
string tgtModPath = "";
string linkModPath = "";
ModuleVersion modVersion = null


for obj in pModule do
{
// get names of source and target modules
srcModPath = obj."source" "";
tgtModPath = obj."target" "";
string SourceIndex = obj."Source Index";
// read the source module
srcModule = read(srcModPath, false);
tgtModule = read(tgtModPath, false);
srcModName = srcModule."Name";
srcModuleId = qualifiedUniqueID(srcModule);
for obj in all(srcModule) do
{
for link in all(obj->linkModPath) do
{
// check for target module for matching name
modVersion = targetVersion(link);
if (fullName(modVersion) == tgtModPath)
{
//Here is my code which converts link object to Skip structure
}
}
}
    } 

0 votes



One answer

Permanent link

Links are not stored in link modules, they are stored in source and target formal modules. So opening source or target cannot be avoided.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,951
× 198
× 92
× 49
× 29

Question asked: Jun 18 '24, 9:04 a.m.

Question was seen: 1,001 times

Last updated: Jun 20 '24, 10:12 a.m.

Confirmation Cancel Confirm