Page 1 of 1

Compound Operations for Queries of Smart Packages etc

PostPosted: Tue Nov 20, 2018 6:43 pm
by lonniev@gmail.com
Are there examples of the Queries for Smart Packages and other expression-derived collections that use a pipeline of Operations and which limit the use of Find stages?

Most, if not all, of the documented examples either have trivial Query expressions that could use the existing "out of the box" Simple Navigation or Metachain capabilities or use Find operation stages which begin with very inefficient collections. For example, finding a set of Requirements with certain properties below a particular package yet starting by asking for all Requirements anywhere in the model.

Therefore, are there documented examples of compound queries that start at a chosen context element, gather the elements meeting one or more properties that are directly related, using that result as the input to another filtering and gathering stage, etc, and etc?

I'm seeking examples which select / filter / map / filter ... map / filter multiple times and then yield a new collection of elements of a type different from the starting element type.

The online MagicDraw manual is cool - but is awkwardly disjoint and never shows the entire process for accomplishing a particular goal.