Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add built-in function to generate an UUID #796

Closed
michaelarnauts opened this issue Jan 19, 2024 · 2 comments · Fixed by #834
Closed

Add built-in function to generate an UUID #796

michaelarnauts opened this issue Jan 19, 2024 · 2 comments · Fixed by #834
Labels
scope: Camunda 8 Required in the context of Camunda 8 type: enhancement

Comments

@michaelarnauts
Copy link

michaelarnauts commented Jan 19, 2024

Is your feature request related to a problem? Please describe.
We use UUID's a lot in requests and match with them in replies, so being able to generate a UUID from within FEEL itself would be a huge benefit.

Alternatives are generating one with a Service Worker, or even requesting one from an online source with the REST connector, but these look like aweful alternatives.

As requested here: https://forum.camunda.io/t/built-in-function-for-uuid/35018/14

Describe the solution you'd like

Being able to do =UUID() to create an input variable with an UUID.

// function signature
uuid(): String

// usage
uuid()    // -> "7793aab1-d761-4d38-916b-b7270e309894"
uuid()    // -> "df09d5c2-e9f0-432d-9027-aaa5db56b8b5"

Related issues

@saig0 saig0 added the scope: Camunda 8 Required in the context of Camunda 8 label Jan 19, 2024
@saig0
Copy link
Member

saig0 commented Jan 19, 2024

@michaelarnauts thank you for raising this issue. 👍

I added a function signature and examples for the solution.

@tiesebarrell
Copy link

We have a similar situation, where we need to generate unique correlation information for outgoing calls from job workers and being able to generate a UUID from a FEEL function as an input variable would be ideal to support that instead of having to resort to other means as mentioned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: Camunda 8 Required in the context of Camunda 8 type: enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants