Rational Doors DNG find_module_artifacts within RMApp... #119
Replies: 1 comment
-
|
find_module_artifacts() is in oslcqueryapi.py - this provides a mixin class which RMApp inherits from like this: find_module_artifacts() is used when an OSLC query is being done where the results should be post-filtered to remove non-module artifacts, e.g. when you call Note that RMApp providing application-wide OSLC Query is limited by the Query Capabilities that the RM application provides which was none until 7.1 when there is now a query for baselines in a stream. RMProject use of OSLC Query is wider with several query capabilities for e.g. requirements, reqif, views, folders.... If you want an example of finding module artifacts (bindings) you could start from example dn_simple_modulestructure.py or dn_simple_createmodule.py These examples are quite low-level working with XML and GET/POST/PUT. As you can see it's not simple to work with module structure. I'm currently trying to work out how to make module structure easier to use as Python objects (what I'm calling resources) but it's always going to be complicated to specify/create/modify a hierarchy, and to handle the fact you can only create a Binding by saving module structure, i.e. not outside a module structure. I'll probably use AnyTree to manage the hierarchhy, it's nice and lightweight. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
so when i look at rm_app with notepad++, i dont see find_module_artifacts
but when i ask python to perform a complete introspection of rm_app, it returns find_module_artifacts as a method.
I also told python to tell me where it thought the find_module_artifacts was located and it pointed me to lib\site-packages\elmclient_rm.py
~~odd stuff.
if find_module_artifacts is not yet a thing (still being developed) what might i use as an alternative?
if it is a thing, could i possibly see how to implement it?
Beta Was this translation helpful? Give feedback.
All reactions