-
Notifications
You must be signed in to change notification settings - Fork 212
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
KOGITO-5533: implement evaluation of rules via CloudEvents #1610
Conversation
Let's wait this other PR to be merged https://github.com/kiegroup/kogito-runtimes/pull/1554 After that PR also this addon will become a quarkus extension so it will require some work @ricardozanini FYI |
The (build) Apps check has failed. Please check the logs. |
The (build) Examples check has failed. Please check the logs. |
The (build) Examples check has failed. Please check the logs. |
jenkins retest this please |
...degen-rules/src/main/resources/class-templates/rules/EventDrivenExecutorQuarkusTemplate.java
Outdated
Show resolved
Hide resolved
.../rules/src/main/java/org/kie/kogito/eventdriven/rules/QuarkusEventDrivenRulesController.java
Outdated
Show resolved
Hide resolved
...s/rules/src/main/java/org/kie/kogito/eventdriven/rules/AbstractEventDrivenQueryExecutor.java
Outdated
Show resolved
Hide resolved
addons/common/messaging/utils/src/main/java/org/kie/kogito/cloudevents/CloudEventUtils.java
Show resolved
Hide resolved
...kogito-codegen-api/src/main/java/org/kie/kogito/codegen/api/template/TemplatedGenerator.java
Outdated
Show resolved
Hide resolved
...egen-rules/src/main/java/org/kie/kogito/codegen/rules/QueryEventDrivenExecutorGenerator.java
Outdated
Show resolved
Hide resolved
The (build) Apps check has failed. Please check the logs. |
The (build) Examples check has failed. Please check the logs. |
The (build) Apps check has failed. Please check the logs. |
The (build) Examples check has failed. Please check the logs. |
The (build) Examples check has failed. Please check the logs. |
The (build) Apps check has failed. Please check the logs. |
The (build) Examples check has failed. Please check the logs. |
The (build) Examples check has failed. Please check the logs. |
...mmon/messaging/utils/src/main/java/org/kie/kogito/cloudevents/extension/KogitoExtension.java
Outdated
Show resolved
Hide resolved
Jenkins rerun tests |
quarkus/addons/events/rules/runtime/src/main/resources/META-INF/quarkus-extension.yaml
Show resolved
Hide resolved
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.
Nicely done! Can you please consider adding a README.md in the common/event/rules
folder? Just add a brief description of this add-on, the examples related to it and a link to the full documentation. I understand you will also introduce a new doc section, right? Many thanks!
quarkus/addons/events/rules/runtime/src/main/resources/META-INF/quarkus-extension.yaml
Outdated
Show resolved
Hide resolved
.../events/rules/src/main/java/org/kie/kogito/eventdriven/rules/EventDrivenRulesController.java
Outdated
Show resolved
Hide resolved
.../events/rules/src/main/java/org/kie/kogito/eventdriven/rules/EventDrivenRulesController.java
Outdated
Show resolved
Hide resolved
@@ -36,21 +36,27 @@ | |||
public static final String KOGITO_DMN_EVALUATE_DECISION = "kogitodmnevaldecision"; | |||
public static final String KOGITO_DMN_FULL_RESULT = "kogitodmnfullresult"; | |||
public static final String KOGITO_DMN_FILTERED_CTX = "kogitodmnfilteredctx"; | |||
public static final String KOGITO_RULE_UNIT_ID = "kogitoruleunitid"; | |||
public static final String KOGITO_RULE_UNIT_QUERY = "kogitoruleunitquery"; |
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.
Rules and decisions share the same extension points? Maybe we should consider decoupling those.
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.
I decoupled them as suggested in your other comment.
@ricardozanini @danielezonca shall I rename KogitoExtension
to KogitoDecisionsExtension
in this PR or is it better to create a dedicated task to fix naming?
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.
Many thanks! It's better to handle it in another PR. :)
} | ||
|
||
public static String toKebabCase(String inputString) { | ||
return inputString.replaceAll("(.)(\\p{Upper})", "$1-$2").toLowerCase(); |
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.
We already have this code in the add-on. Can we have a shared library?
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.
@ricardozanini is it ok for you if I refactor this in a separated PR?
The (build) Examples check has failed. Please check the logs. |
Many thanks, @kostola! Please don't forget to open the follow-up JIRAs. |
The (build) Examples check has failed. Please check the logs. |
@ricardozanini I created the task for the remaining minor refactoring: https://issues.redhat.com/browse/KOGITO-6020 |
The (build) Apps check has failed. Please check the logs. |
SonarCloud Quality Gate failed. |
PRs