Derived attributes

In the business model statements, you derive the value of an attribute from the values of other attributes. You can derive attributes of entities and attributes of events.

In the statement, you specify the attribute for which the value is derived and the attribute from which this value is derived:

  1. The attribute for which the value is derived.
  2. The bound entity type.
  3. The attribute from which the value is derived.
  4. The bound entity.
For more information about the expressions you can use to calculate the value of the derived attribute, see Arithmetic operators.

If the statement ends with an integer, you must add a space before the period.

Restriction: The use of aggregation operators and current-time operators is not supported.

Example

In this example, the yearly income of an employee is derived from the income of this employee over a year.

The following business model definitions define the employee entity:

an employee is a business entity identified by a number.
an employee has a first name.
an employee has a last name.
an employee has a phone number.
an employee has an income.
an employee has a yearly income.

The following business model statement defines the derivation of the yearly income attribute of this employee:

the yearly income of an employee is the income of this employee * 12 .