Adding a Case Identifier to a Case Class

A case class must have at least one case identifier.

Procedure

  1. In the BOM Editor, drag a Case Identifier from the Global Data section of the palette to the case class.
    An automatic case identifier is created by default.
  2. On the General tab of the Properties view, change the Label to a suitable name to identify the case identifier.

What to do next

You can:
  • add additional case identifiers to the case class by using the same procedure.
  • change this case identifier to be a custom or composite type.
Note: You must add at least two Case Identifier elements to a case class to be able to create a composite case identifier.
Note: You can also refactor an existing attribute as a case identifier. Right-click the attribute and select Convert to Case Identifier. Similarly, you can refactor an existing case identifier as an attribute. Right-click the case identifier and select Convert to Attribute.