Case Access Classes
Case access classes are dynamically created classes, available in scripts (only), that allow you to access and retrieve case objects from the case data store.
If a business process contains a data field of type BOM Type or Case Class Reference that references a case class in a global BOM, a case access class is available in any scripts for each case class that exists in that global BOM.
Within a script, you can use content assistance to check which case access classes are available.
The format of a case access class name is:
cac_packageName_caseClassName
For example, if a com.example.ordermodel case data model contains a Customer class, the corresponding case access class for the Customer class is called:
cac_com_example_ordermodel_Customer
Each case access class exposes a set of methods that allow you to:
- search for case objects. You can search:
- by using a specific case identifier.
- by using an example set of searchable attributes.
- for all case objects of a particular case class.
- by using criteria (defined as a DQL query string).
- create criteria objects that can be re-used in different searches.
- read case objects.
- cast a case reference from a general class to a specialized class. This method only appears for a class that is a specialization of a general class. See Handling Case Objects That Use Inheritance in Scripts.