Creating a New Case Object
Within a process, you can create a case object by first creating a process data field of the case class type, using a script and other tasks to create the object and set values in it. Then use a Case Data Operations service task to create the case object from the local data (by adding the case object to the case data store).
Prerequisites
The Business Data project that contains the case class that you want to use must exist in the same workspace as the process from which you want to create the case object.
Procedure
Result
- The local BOM object is only visible to the process and can only be manipulated in and by that process.
- The case object is visible to and can be manipulated by any process that has access to its case data model.
Any updates to the case object are not automatically reflected in the local BOM object, and vice versa.
What to do next
(Optional) Add appropriate error handling to the service task boundary to deal with the following specific error that may be returned by the Create Case operation.
Error (Error Code) | Description | Possible solutions |
---|---|---|
NonUniqueCaseIdentifierError (NonUniqueCIDError) | The manual case identifier specified in the Local Data Value(s) field cannot be used because it is not unique. An existing case object already uses this case identifier. | Amend the case identifier value(s) in the local data object and retry the Create Case operation. |