LinkListAttributeSum example

In this example, the LinkListAttributeSum business rule is used to calculate the cost of a release.

The Requirements module links to the Releases module. The Releases module has an Incoming Links attribute that lists all the requirements that are connected to each release. The Requirements module contains an Implementation Cost attribute. You can use the LinkListAttributeSum business rule to calculate the total implementation cost for each release by summing the implementation cost of the requirements.

The following image shows an example of the Requirements module, which is the source module.

The sound recorder element is shown in the Requirements module.
In the Requirements module, Release is a Link attribute and Implementation Cost is a Float attribute.

  1. In the Releases module, sum the implementation cost in the "Total Implementation Cost" Float attribute. The attribute is the same as the business rule container attribute. In the default value for this attribute, type the following business rule:
     =LinkListAttributeSum("Related requirements", "Implementation Cost", "listen_to=Implementation Cost",'Related requirements') 
  2. The business rule calculates the sum of the implementation cost in all the requirements. For the February 2006 release, the total implementation cost is 209.7.

Feedback