Default Clause for the Add Attribute Command

The Default clause defines a default value for the attribute.

When a business object is created and the user does not fill in the attribute field, the default value is assigned. When assigning a default value, the value you give must agree with the attribute type. If the attribute should contain an integer value, you should not assign a string value as the default. You cannot assign a default value for a a binary attribute.

For example, assume you are defining an attribute called Label Color. If the most common color is yellow, you might define the attribute with this command:

add attribute "Label Color"
    default "yellow" type string;

If the user does not assign a value for the Label Color, “yellow” is assigned by default.