Generating random non-sequential case ID in Pega
Hi,
We are currently working on modifying the GenerateID code to produce a Case ID suffixed with a random number, rather than following a sequential pattern. At present, our application utilizes an out-of-the-box (OOB) Java step to generate the next ID using the following code:
String nextID = ((PegaDatabase) tools.getDatabase()).getUniqueID(tools.getParamValue("IDPrefix"), tools.getParamValue("IDSuffix"));
Could you confirm if there is any existing function available to generate the next ID in a random manner instead of sequentially and if this can be used in generating a case ID? If so, what are the other factors to keep in mind?