I am currently working with some BPMN stuff and I am looking for advice on solving something I can’t get done. In BPMN it’s a “convention“ to create the object ids in a way to build them like “Task_1fr56nO“, actually using the object type, an underscore plus seven random alphanumerical characters. Is there a reasonable way to have this seven character sequence created in Triggre or do I better get it from an external source?
How I usually do this, is with the random number function. We don’t have a random text function. So if numbers are okay, you can simply create 6 random numbers and add them together as a text.
You can use this in a connection action, with a GET WebAPI call. Use https://api.extendsclass.com/uuid/v4 as the URL and add a query string parameter named “limit” with value “1”. Make the API return a text (not JSON), and you should get something like:
[“12b54a8b-07e9-4733-9d2e-f2b91f55e4d1”]
Then, use a function to cut from character 3 to 9 to get your 6 character text. It just doesn’t have capital letters, but does have numbers.
For the moment I have created an entire list with a small script in my integration system and uploaded it to the instance. That way I don’t need an external transaction plus the transformation steps and instead have 2000 ready to use ids on file. Will test how many of them are required per process(might pile up to a a couple as they are used not only for the elements it self, but as well for linking different components together). That said I will go with that method for the time being and decide later if I have more clarity on the needs.
Thanks for the suggestion,will let you know once I figured out needs and solution.