apache / incubator-kie-kogito-runtimes

Kogito Runtimes - Kogito is a cloud-native business automation technology for building cloud-ready business applications.
http://kogito.kie.org
Apache License 2.0
542 stars 209 forks source link

[Fix #3573] configKey function metadata #3588

Closed fjtirado closed 3 months ago

fjtirado commented 3 months ago

Fix https://github.com/apache/incubator-kie-kogito-runtimes/issues/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