To collect all Leaf Requirements Owned Recursively
Create an Opaque Behaviornamed 'All Leaf Requirements Owned Recursively'.
Right-click the Opaque Behavior element/symbol and open its Specification window. Do one of the following:
Click the plus sign next to the Owned Parameter property to edit it.
Note
If you cannot see theOwned Parameter property, make sure the Expert mode is enabled.
On the left side menu, select Parameters > Create.
In the Specification of Parameter window, set Name to input, Type to Class, and Direction to in. Click Back.
In the Opaque Behavior Specification window,click three dots Image Modified next to the Body and Languageproperty to edit it.
In the Body and Language dialog, select Language >StructuredExpression.
Click Create Operation > Filter.
Note
If you cannot see the Filter operation under Operations, make sure the Expert mode is enabled.
Image Modified
Select Input > Implied Relation. Image Modified
Select Element and set the Value to input. Image Modified
Select Criteria > Body > Reset. Image Modified
Select Criteria > Body > Contextual Variable. Image Modified
Select Source > Body > Simple Navigation > Clear All. Image Modified
Select Source > Body > Simple Navigation. Select Owned Element and set Is Applied to true, Direction to Source To Target, and Result Type to Requirement (select Include Subtypes check box). Image Modified
If you cannot see the isEmpty operation, make sure the Apply Filter box is not checked.
Image Modified
Select Input > Simple Navigation. Select Owned Element and set Is Applied to true, Direction to Source To Target, and Result Type to Requirement. Image Modified