I think I have an idea about what this code is about, except for this part:
inner join t_package as package on c.package_id = package.package_id)
left join t_package as package_p1 on package_p1.package_id = package.parent_id)
left join t_package as package_p2 on package_p2.package_id = package_p1.parent_id)
left join t_package as package_p3 on package_p3.package_id = package_p2.parent_id)
could you help me out explaining what this is for?
I have tried to expand the script in order to only search for requirements linked to the search term object and at the same time linked to a category object cat.
This gives me an error which I am unable to determine, does anybody know what I would have to change?
select c.ea_guid as CLASSGUID,c.object_type as CLASSTYPE,c.name as Name, c.stereotype as Stereotype ,con.Connector_Type,con2.Connector_Type,
package.name as PackageName ,package_p1.name as PackageLevel1,package_p2.name as PackageLevel2,
package_p3.name as PackageLevel3
from ((((((((t_object c
inner join t_connector con on con.End_Object_ID = c.Object_ID)
inner join t_object so on con.Start_Object_ID = so.Object_ID)
inner join t_connector con2 on con2.End_Object_ID = c.Object_ID)
inner join t_object cat on con2.Start_Object_ID = cat.Object_ID)
inner join t_package as package on c.package_id = package.package_id)
left join t_package as package_p1 on package_p1.package_id = package.parent_id)
left join t_package as package_p2 on package_p2.package_id = package_p1.parent_id)
left join t_package as package_p3 on package_p3.package_id = package_p2.parent_id)
where so.Name like '<Search Term>'
and con.Connector_Type in ('Dependency')
and con2.Connector_Type in ('Realization','Realisation')
and cat.Name like 'Category YY'
Furthermore, how can I specify to restrict the search only on requirements, at best only requirements of the type 'functional' ?