-
Notifications
You must be signed in to change notification settings - Fork 52
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 new get value function with dynamic path #601
Conversation
d55837b
to
9dc728b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@koevskinikola thank you for driving our mob programming session. 🚀
❌ I found one case that could lead to a cast exception in Zeebe.
❌ We need to document the new function.
🔧 I have an idea to refactor the function a bit.
Please have a look at my comments. Happy to answer your questions or discuss/code f2f. 🍪
src/main/scala/org/camunda/feel/impl/builtin/ContextBuiltinFunctions.scala
Outdated
Show resolved
Hide resolved
src/main/scala/org/camunda/feel/impl/builtin/ContextBuiltinFunctions.scala
Outdated
Show resolved
Hide resolved
Add test coverage for the new get value function where you can pass a dynamic path to get a value out of a given context.
Add a new get value function with a new signature. With this function, a user can dynamically pass a path to obtain a nested property in a given context.
Document the newly supported getValue built-in function which supports providing a path (as a list of context keys) for which to obtain a nested context entry.
9dc728b
to
8d6657d
Compare
@saig0 I implemented your review hints. I also restructured the commits a bit, so they are merge-ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@koevskinikola LGTM. 🎉
Description
Add a new get value function with a new signature. With this function, a user can dynamically pass a path to obtain a nested property in a given context.
Related issues
closes #11293