This macro returns a collection of objects based on the specified scope and condition. Object references are represented as OID; for example: E40D4254-DA4A-4FB6-AEF6-3E7B41A41AD1.
Parameter |
Description |
---|---|
scope |
Collection over which we should iterate, the macro will return the first matching object in the collection Type: Simple template returning either an object or a collection scope |
simple-template |
Template to be evaluated. Type: Simple template |
filter |
Filter condition Type: condition |
.object(Attributes, (%.1:Code% >= a) and (%.1:Code% <= e))
.object(ActiveModel.Packages, %Name% == MyPackage2)and template OOM.Model::MyTemplate is defined as:
.foreach_item(myPackage2.Classes) %Code% .next(\n)In OOM.Model M = { OOM.Package MyPackage1, OOM.Package MyPackage2 { OOM.Class C1, OOM.Class C2} }, and template OOM.Model::MyTemplate evaluates to:
C1 C2
.object(Process.DataConnections, %AccessType% == "RO")