enterprise architect - How to access the package by name -


we have model contains packages , sub packages.so how can move pointer specific package package name.so there way iterate through model , package name

use

repositore.sqlquery("select package_id t_package name=<thename>") 

that return xml result set containing packages name looking for. might this:

<?xml version="1.0"?> <eadata version="1.0" exporter="enterprise architect">     <dataset_0><data><row><package_id>1</package_id></row><row><package_id>2</package_id></row><row><package_id>3</package_id></row></data></dataset_0></eadata> 

so can either stuff in xml parser or use regular expression

/package_id>(\d+)/ 

to filter package-ids.

in turn use

repository.getpackagebyid(<found id>) 

to access found package(s).


Comments