Engineering Requirements Management

Engineering Requirements Management

Come for answers, stay for best practices. All we're missing is you.

 View Only
Expand all | Collapse all

how is it possible to get all module linked to a target module using a link module

  • 1.  how is it possible to get all module linked to a target module using a link module

    Posted Wed December 09, 2020 05:38 PM

    Using doors 9.3 :

    I don't want to write a double loop that loop in object of target module and then loop in incomming link of each object.

    I would like to use a link module a get all modules that target the target module.

    for instance something like that :

    ModName_ src_mod_linkset

    for src_mod_linkset in "module"<-"linkmodulename" do

    {

    print "test"

    }

    it works with an object instead of "module" but here I would like to have the same loop working but for a module...





    #DOORS
    #Sustainability
    #Support
    #EngineeringRequirementsManagement
    #SupportMigration


  • 2.  RE: how is it possible to get all module linked to a target module using a link module

    Posted Fri December 11, 2020 07:38 PM

    If you want to use the link module, like you say then link modules have objects just like formal modules. You can extract the linksets from a link module by looping over the objects like this:

    Object lObj = null for lObj in current Module do{ print lObj."Source" "" " -> " lObj."Target" "" "\n" }



    #DOORS
    #EngineeringRequirementsManagement
    #SupportMigration
    #Sustainability
    #Support