Skip to content

[Fix #3573] configKey function metadata #3588

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

Merged
merged 1 commit into from
Jul 30, 2024
Merged

Conversation

fjtirado
Copy link
Contributor

@fjtirado fjtirado commented Jul 23, 2024

Fix #3573

This add configKey property to function definition metadata.
configKey value is an expression that is evaluated againts the workflow model when the rest call is performed for the function that defines it.
If expression returns null, an IllegalArgumentException is launched, failing the workflow execution.
Othewise, the string result of the expression is added to the configKey calculated at build time, allowing usage of different endpoints for the same workflow definition

@fjtirado fjtirado marked this pull request as ready for review July 24, 2024 09:23
@fjtirado fjtirado requested a review from wmedvede July 24, 2024 09:23
@fjtirado fjtirado assigned domhanak and unassigned domhanak Jul 24, 2024
@fjtirado fjtirado requested a review from domhanak July 24, 2024 09:24
@fjtirado fjtirado changed the title [Fix #3573] configKey metadata [Fix #3573] configKey function metadata Jul 24, 2024
@fjtirado fjtirado merged commit e0de321 into apache:main Jul 30, 2024
6 of 11 checks passed
Copy link
Contributor

@domhanak domhanak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dynamic OpenAPI configKey
3 participants