Case class

The Case class represents a case in the case management system.

To obtain an instance of a Case object, use one of the factory methods:
  • createPendingInstance
  • fetchInstance
A new object is first created in a pending state with a method such as createPendingInstance. The actual object is not created in the repository until the save method is called.

A factory method such as fetchInstance obtains an instance that represents an existing Case object. State information about the object, such as its list of properties, is fetched from the repository and maintained in the returned instance. A Case instance can also be obtained without a fetch operation by calling the getFetchlessInstance method. With this method, no call is made to the server to verify that the object exists in the repository, allows certain operations to be run in a more efficient manner, since the original fetch of the object is bypassed.

Once a Case instance is obtained, other methods can be called to run various operations on the object, such as modifying its properties, fetching the history of the case, or adding comments.