Skip to main content
Skip table of contents

Use cases

Estimate the cost of a requirement

1.2 * (@Man\ days * 150 + ext@Manufacturing\ Cost)

Here, we see that the result for requirement AA-003 is marked as error because the property @Man days used in the calculation is not a valid number.

Estimate the total cost of a parent requirement

SUM(ext@Cost, child)

Detect when a parent requirement is over budget

SUM(ext@Cost, child@Uses) > @Budget

Detect when parts composing an assembly are too heavy

SUM(@Weight, child@Refineschild@Uses) > @Max\ weight

Here, we see that the result for requirement AA-003 is marked as error because the property @Weight used in the calculation is not a valid number.

Measure the coverage of a requirement

Percentage per relationship name

100 * IF(COUNT(child) = 0, 0, COUNT(child@Refines) / COUNT(child))

Screenshot 2024-03-18 at 10.05.54.png

Here, this will tell you out of all children of BR, how many of them use the relationship ‘@Refines’, this is why it is necessary to specify a relationship name.

Does the requirement have a dependency?

parent@Refines->(key ~ 'BR-%')

Visual Editor query.png

Advanced Editor query.png
Result of the query.png

To know if a requirement has a parent or child with the relationship ‘@Refines’ with the key ‘BR-%’.

  • This will give you a true or false answer.

  • It can also be used with the child relation, and key ~ '%'

Measure the Test Coverage of children requirements

PERCENT(DISTINCT(child@Refines), ext@Test\ result = true)

Test Coverage of children requirements.png

Percentage of children requirements with relationship Refines, having an external property "Test result" completed

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.