Compound Operations for Queries of Smart Packages etc

MagicDraw OpenAPI, scripting related questions and discussions

Moderator: Moderators

Compound Operations for Queries of Smart Packages etc

Postby » Tue Nov 20, 2018 6:43 pm

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.
Forum Newbie
Forum Newbie
Posts: 4
Posts Rating:0
Joined: Mon Oct 15, 2018 1:56 pm

Return to Programmatic Extendibility

Who is online

Users browsing this forum: No registered users and 2 guests