Adding a Case State to a Case Class

Prerequisites

The case class must not already contain a case state.
Note: You can convert an existing case state back to an attribute. Right-click the case state, then select Convert to Attribute.

Procedure

  1. In the BOM Editor, create a text enumeration that defines the possible valid case states for this case class.
  2. Drag a Case State () from the Global Data section of the palette to the case class.
  3. On the General tab of the Properties view, change the Label to a suitable name to identify the case state.
  4. Set the attribute's Multiplicity to be either 0..1 (optional) or 1 (required).
  5. Select the appropriate Enumeration Type.