Attribute Target

When the target is an attribute, the value of the attribute is incremented. Attribute targets are very similar in behavior and use as resource targets. There are several restrictions on using provide and consume constraints to manipulate attribute values:

  • The data type of the attribute must be numeric (Integer or Number).

  • The attribute must be available for manipulation. You must not have set the value of the attribute. You do this by selecting an attribute value and saving it in Product administration, Customizable Products, and then Product Attributes.

  • A child product with components can contribute to attributes defined on the parent. The parent cannot contribute to attributes defined on the child product. For example, product with components CP2 is contained within product with components CP1. CP2 can contribute to attributes defined within CP1. CP1 cannot contribute to attributes defined within CP2.

Use attributes as targets instead of defining multiple resources that keep track of similar variables. This ties the variables directly to a class and makes it easier to keep track of the variables' roles.