Issue
After updating to Pega PlatformTM 8.3 or later, the system does not generate Case IDs in sequence.
Steps to reproduce
- Create a case type.
- Create multiple cases of the case type from different nodes or create cases before and after a restart.
Root Cause
This behavior is consistent with the current design of Pega code or rules.
In the Pega Platform version 8.3, the Case ID generation functionality was improved to enhance performance. Each node gets a batch of case IDs when it requests an ID for the first time after a restart or when its current batch is exhausted. By default, each batch contains 1000 IDs.
So, if you create cases on different nodes or create cases before and after a restart, they will have non-sequential IDs.
Workaround
If you wish to have sequential case IDs, set the out-of-the-box Dynamic System Setting idGenerator/defaultBatchSize to 1.
This means each request for a new case ID will retrieve a new batch containing just 1 ID.
Changes to this setting apply to a node only after the node is restarted or after its current batch of IDs is exhausted.