Configuring a Case State for a Case Class

Procedure

  1. From the palette, add an Enumeration to the BOM, and give it an appropriate name that represents the case states (for example, orderStates).
  2. To the enumeration, add a number of Enum Literals, one for each possible case state, and name them appropriately (for example, orderTaken, picked, packed, and shipped).
  3. Add a Case State attribute to the case class, and name it appropriately (for example, orderState).
  4. With the case state selected, on the General tab, select the browse button to the right of the Enumeration Type field, then select the enumeration you added in step 1.
  5. On the Terminal States tab, select one or more of the states for which the case is considered complete.

     

    Note: You can convert an existing case state attribute back to a regular attribute. Right-click the case state attribute, then select Convert to Attribute. You can also convert a case class attribute to a case state attribute or case identifier -- right click the case class attribute, then select Convert to Case State or Convert to Case Identifier, respectively.