diff --git a/README.md b/README.md index 97eaae93a1..c882a503d6 100644 --- a/README.md +++ b/README.md @@ -148,15 +148,8 @@ A Serverless Workflow service that works as a Github bot application, which reac - Rules on Quarkus with Unit: see [README.md](kogito-quarkus-examples/ruleunit-quarkus-example/README.md) - Process on Quarkus: see [README.md](kogito-quarkus-examples/process-quarkus-example/README.md) - Process on Spring Boot: see [README.md](kogito-springboot-examples/process-springboot-example/README.md) -- Trusty on Quarkus: see [README.md](kogito-quarkus-examples/trusty-demonstration/README.md) - Trusty on Quarkus (DevUI integration): see [README.md](kogito-quarkus-examples/trusty-tracing-devservices/README.md) -## Trying the examples with the Kogito Operator - -Most examples have a directory named `operator` including the YAML files to deploy it using the Kogito Operator in an OpenShift cluster. -Please refer to the [Kogito Documentation](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift) -of how to install the operator to your environment in order to try it there. - ## Getting Help ### Issues - Do you have a [minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) for your issue? diff --git a/kogito-quarkus-examples/decisiontable-quarkus-example/README.md b/kogito-quarkus-examples/decisiontable-quarkus-example/README.md index 9f63e42f63..320877eb78 100644 --- a/kogito-quarkus-examples/decisiontable-quarkus-example/README.md +++ b/kogito-quarkus-examples/decisiontable-quarkus-example/README.md @@ -15,9 +15,9 @@ REST endpoints are generated from query rules. You can insert `LoanApplication` ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVM 19.3.1](https://github.com/graalvm/graalvm-ce-builds/releases/tag/vm-19.3.1) installed @@ -161,7 +161,3 @@ Example response: } ] ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/decisiontable-quarkus-example/operator/decisiontable-quarkus-example.yaml b/kogito-quarkus-examples/decisiontable-quarkus-example/operator/decisiontable-quarkus-example.yaml deleted file mode 100644 index 57984472e2..0000000000 --- a/kogito-quarkus-examples/decisiontable-quarkus-example/operator/decisiontable-quarkus-example.yaml +++ /dev/null @@ -1,40 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: decisiontable-quarkus-example -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/decisiontable-quarkus-example - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: decisiontable-quarkus-example - diff --git a/kogito-quarkus-examples/decisiontable-quarkus-example/pom.xml b/kogito-quarkus-examples/decisiontable-quarkus-example/pom.xml index 0a5d5b9a37..f0199e5204 100644 --- a/kogito-quarkus-examples/decisiontable-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/decisiontable-quarkus-example/pom.xml @@ -30,10 +30,10 @@ decisiontable-quarkus-example Kogito Example :: Decision Table - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -67,8 +67,8 @@ - org.kie.kogito - kogito-quarkus-rules + org.drools + drools-quarkus-rules io.quarkus diff --git a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/README.md b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/README.md index 16ab2989de..83bcec2ecb 100644 --- a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/README.md +++ b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/README.md @@ -7,9 +7,9 @@ This example demonstrates how to enable and consume the runtime metrics monitori ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed - Docker 19+ (only if you want to run the integration tests and/or you want to use the `docker-compose` script provided in this example). ### How to enable the feature @@ -18,8 +18,8 @@ Import the following dependency in your `pom.xml`: ```XML - org.kie.kogito - kogito-addons-quarkus-monitoring-prometheus + org.kie + kie-addons-quarkus-monitoring-prometheus ``` diff --git a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/pom.xml b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/pom.xml index 8001d360f6..a629a26a92 100755 --- a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/pom.xml +++ b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/pom.xml @@ -30,10 +30,10 @@ dmn-drools-quarkus-metrics Kogito Example :: DMN Metrics Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -59,12 +59,12 @@ - org.kie.kogito - kogito-quarkus-rules + org.drools + drools-quarkus-rules - org.kie.kogito - kogito-quarkus-decisions + org.drools + drools-quarkus-decisions io.quarkus @@ -83,8 +83,8 @@ quarkus-smallrye-openapi - org.kie.kogito - kogito-addons-quarkus-monitoring-prometheus + org.kie + kie-addons-quarkus-monitoring-prometheus io.quarkus diff --git a/kogito-quarkus-examples/dmn-event-driven-quarkus/README.md b/kogito-quarkus-examples/dmn-event-driven-quarkus/README.md index 601d231aa0..97b21f8d06 100644 --- a/kogito-quarkus-examples/dmn-event-driven-quarkus/README.md +++ b/kogito-quarkus-examples/dmn-event-driven-quarkus/README.md @@ -14,9 +14,9 @@ The main goal behind the addon is to allow Kogito DMN services to be used as par ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed - [Docker Engine](https://docs.docker.com/engine/) and [Docker Compose](https://docs.docker.com/compose/) installed When using native image compilation, you will also need: @@ -30,8 +30,8 @@ Like the other Kogito AddOns, the only required step to enable it is to include ```xml - org.kie.kogito - kogito-addons-quarkus-events-decisions + org.kie + kie-addons-quarkus-events-decisions ``` diff --git a/kogito-quarkus-examples/dmn-event-driven-quarkus/pom.xml b/kogito-quarkus-examples/dmn-event-driven-quarkus/pom.xml index 414ef5376f..2ab13cbcf6 100644 --- a/kogito-quarkus-examples/dmn-event-driven-quarkus/pom.xml +++ b/kogito-quarkus-examples/dmn-event-driven-quarkus/pom.xml @@ -32,10 +32,10 @@ dmn-event-driven-quarkus Kogito Example :: DMN Event-Driven :: Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -61,13 +61,13 @@ - org.kie.kogito - kogito-quarkus-decisions + org.drools + drools-quarkus-decisions - org.kie.kogito - kogito-addons-quarkus-events-decisions + org.kie + kie-addons-quarkus-events-decisions diff --git a/kogito-quarkus-examples/dmn-incubation-api-quarkus/README.md b/kogito-quarkus-examples/dmn-incubation-api-quarkus/README.md index a337b88f53..73d9c10602 100644 --- a/kogito-quarkus-examples/dmn-incubation-api-quarkus/README.md +++ b/kogito-quarkus-examples/dmn-incubation-api-quarkus/README.md @@ -17,9 +17,9 @@ The custom REST endpoint evaluates a DMN that computes Traffic Violation: ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed ### Compile and Run in Local Dev Mode diff --git a/kogito-quarkus-examples/dmn-incubation-api-quarkus/pom.xml b/kogito-quarkus-examples/dmn-incubation-api-quarkus/pom.xml index aac8b70c2b..7449f7091c 100644 --- a/kogito-quarkus-examples/dmn-incubation-api-quarkus/pom.xml +++ b/kogito-quarkus-examples/dmn-incubation-api-quarkus/pom.xml @@ -30,10 +30,10 @@ dmn-incubation-api-quarkus Kogito Example :: DMN Incubation API With Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -67,8 +67,8 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-quarkus-decisions + org.drools + drools-quarkus-decisions io.quarkus diff --git a/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/README.md b/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/README.md index 4661de4d50..f6184753f8 100644 --- a/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/README.md +++ b/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/README.md @@ -26,9 +26,9 @@ events. You will need: -- Java 11+ installed +- Java 17+ installed - Environment variable JAVA_HOME set accordingly -- Maven 3.8.6+ installed +- Maven 3.9.6+ installed When using native image compilation, you will also need: diff --git a/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/pom.xml b/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/pom.xml index e54e83f24e..8b14053478 100644 --- a/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/pom.xml +++ b/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/pom.xml @@ -34,10 +34,10 @@ 2.33.2 - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -64,18 +64,18 @@ - org.kie.kogito - kogito-quarkus-decisions + org.drools + drools-quarkus-decisions - org.kie.kogito - kogito-addons-quarkus-events-decisions + org.kie + kie-addons-quarkus-events-decisions - org.kie.kogito - kogito-addons-quarkus-knative-eventing + org.kie + kie-addons-quarkus-knative-eventing diff --git a/kogito-quarkus-examples/dmn-listener-dtable/pom.xml b/kogito-quarkus-examples/dmn-listener-dtable/pom.xml index 5472f0ec29..65f98a1765 100644 --- a/kogito-quarkus-examples/dmn-listener-dtable/pom.xml +++ b/kogito-quarkus-examples/dmn-listener-dtable/pom.xml @@ -30,10 +30,10 @@ dmn-listener-dtable Kogito Example :: DMN Decision Table listener - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -59,8 +59,8 @@ - org.kie.kogito - kogito-quarkus-decisions + org.drools + drools-quarkus-decisions io.quarkus diff --git a/kogito-quarkus-examples/dmn-listener-quarkus/README.md b/kogito-quarkus-examples/dmn-listener-quarkus/README.md index 7b901b328a..f70ba3c340 100644 --- a/kogito-quarkus-examples/dmn-listener-quarkus/README.md +++ b/kogito-quarkus-examples/dmn-listener-quarkus/README.md @@ -13,9 +13,9 @@ Listener injection is _optional_. If you don't need it, just ignore it. ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVM 19.3.1](https://github.com/oracle/graal/releases/tag/vm-19.3.1) installed @@ -130,6 +130,3 @@ Example response: } ``` -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/dmn-listener-quarkus/operator/dmn-quarkus-example.yaml b/kogito-quarkus-examples/dmn-listener-quarkus/operator/dmn-quarkus-example.yaml deleted file mode 100644 index afcf721b92..0000000000 --- a/kogito-quarkus-examples/dmn-listener-quarkus/operator/dmn-quarkus-example.yaml +++ /dev/null @@ -1,40 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: dmn-listener-quarkus -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/dmn-listener-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: dmn-listener-quarkus - diff --git a/kogito-quarkus-examples/dmn-listener-quarkus/pom.xml b/kogito-quarkus-examples/dmn-listener-quarkus/pom.xml index 7757ba4291..f1e2d2f1cd 100644 --- a/kogito-quarkus-examples/dmn-listener-quarkus/pom.xml +++ b/kogito-quarkus-examples/dmn-listener-quarkus/pom.xml @@ -30,10 +30,10 @@ dmn-listener-quarkus Kogito Example :: DMN with listeners - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -59,8 +59,8 @@ - org.kie.kogito - kogito-quarkus-decisions + org.drools + drools-quarkus-decisions io.quarkus diff --git a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/README.md b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/README.md new file mode 100644 index 0000000000..1e861d88ce --- /dev/null +++ b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/README.md @@ -0,0 +1,171 @@ +# DMN + Quarkus example with multiple models + +## Description + +A simple DMN service to evaluate different models (traffic violation, habitability) with also importing feature (traffic violation). + +Demonstrates DMN on Kogito capabilities, including REST interface code generation. + +## Installing and Running + +### Prerequisites + +You will need: + - Java 17+ installed + - Environment variable JAVA_HOME set accordingly + - Maven 3.9.6+ installed + +When using native image compilation, you will also need: + - [GraalVM 19.3.1](https://github.com/oracle/graal/releases/tag/vm-19.3.1) installed + - Environment variable GRAALVM_HOME set accordingly + - Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be installed too. You also need 'native-image' installed in GraalVM (using 'gu install native-image'). Please refer to [GraalVM installation documentation](https://www.graalvm.org/docs/reference-manual/aot-compilation/#prerequisites) for more details. + +### Compile and Run in Local Dev Mode + +``` +mvn clean compile quarkus:dev +``` + +### Package and Run in JVM mode + +``` +mvn clean package +java -jar target/quarkus-app/quarkus-run.jar +``` + +or on Windows + +``` +mvn clean package +java -jar target\quarkus-app\quarkus-run.jar +``` + +### Package and Run using Local Native Image +Note that this requires GRAALVM_HOME to point to a valid GraalVM installation + +``` +mvn clean package -Pnative +``` + +To run the generated native executable, generated in `target/`, execute + +``` +./target/dmn-multiple-models-quarkus-example-runner +``` + +Note: This does not yet work on Windows, GraalVM and Quarkus should be rolling out support for Windows soon. + +## OpenAPI (Swagger) documentation +[Specification at swagger.io](https://swagger.io/docs/specification/about/) + +You can take a look at the [OpenAPI definition](http://localhost:8080/openapi?format=json) - automatically generated and included in this service - to determine all available operations exposed by this service. For easy readability you can visualize the OpenAPI definition file using a UI tool like for example available [Swagger UI](https://editor.swagger.io). + +In addition, various clients to interact with this service can be easily generated using this OpenAPI definition. + +When running in either Quarkus Development or Native mode, we also leverage the [Quarkus OpenAPI extension](https://quarkus.io/guides/openapi-swaggerui#use-swagger-ui-for-development) that exposes [Swagger UI](http://localhost:8080/swagger-ui/) that you can use to look at available REST endpoints and send test requests. + +## Test DMN Model using Maven + +Validate the functionality of DMN models before deploying them into a production environment by defining test scenarios in Test Scenario Editor. + +To define test scenarios you need to create a .scesim file inside your project and link it to the DMN model you want to be tested. Run all Test Scenarios, executing: + +```sh +mvn clean test +``` +See results in surefire test report `target/surefire-reports` + +## Example Usage + +Once the service is up and running, you can use the following example to interact with the service. + +### POST /Traffic Violation + +Returns penalty information from the given inputs -- driver and violation: + +Given inputs: + +```json +{ + "Driver":{"Points":2}, + "Violation":{ + "Type":"speed", + "Actual Speed":120, + "Speed Limit":100 + } +} +``` + +Curl command (using the JSON object above): + +```sh +curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"Driver":{"Points":2},"Violation":{"Type":"speed","Actual Speed":120,"Speed Limit":100}}' http://localhost:8080/Traffic%20Violation +``` +or on Windows: + +```sh +curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" -d "{\"Driver\":{\"Points\":2},\"Violation\":{\"Type\":\"speed\",\"Actual Speed\":120,\"Speed Limit\":100}}" http://localhost:8080/Traffic%20Violation +``` + +As response, penalty information is returned. + +Example response: + +```json +{ + "Violation":{ + "Type":"speed", + "Speed Limit":100, + "Actual Speed":120 + }, + "Driver":{ + "Points":2 + }, + "Fine":{ + "Points":3, + "Amount":500 + }, + "Should the driver be suspended?":"No" +} +``` + +The difference from the [dmn-quarkus-example](../dmn-quarkus-example) is that, in the current one, the `Traffic Model` features the import declaration, with definitions coming from the ` Imported Model`. + +### POST /habitability + +Returns habitability information from the given inputs -- oxygen and temperature: + +Given inputs: + +```json +{ + "oxygene": 70, + "temperature": 30 +} +``` + +Curl command (using the JSON object above): + +```sh +curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"oxygene": 70, "temperature": 30}' http://localhost:8080/habitability +``` +or on Windows: + +```sh +curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" -d "{\"oxygene\": 70, \"temperature\": 30}" http://localhost:8080/habitability +``` + +As response, habitability information is returned. + +Example response: + +```json +{ + "oxygene": 70, + "temperature": 30, + "habitability": "somehow doable" +} +``` + + + diff --git a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/pom.xml b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/pom.xml new file mode 100644 index 0000000000..b9df8cd83a --- /dev/null +++ b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/pom.xml @@ -0,0 +1,118 @@ + + + + 4.0.0 + + org.kie.kogito.examples + kogito-quarkus-examples + 999-SNAPSHOT + + dmn-multiple-models-quarkus-example + Kogito Example :: DMN :: Multiple Models + + 3.2.10.Final + quarkus-bom + io.quarkus + 3.2.10.Final + org.kie.kogito + kogito-bom + 999-SNAPSHOT + 999-SNAPSHOT + + + + + ${quarkus.platform.group-id} + ${quarkus.platform.artifact-id} + ${quarkus.platform.version} + pom + import + + + ${kogito.bom.group-id} + ${kogito.bom.artifact-id} + ${kogito.bom.version} + pom + import + + + + + + org.drools + drools-quarkus-decisions + + + io.quarkus + quarkus-resteasy + + + io.quarkus + quarkus-arc + + + io.quarkus + quarkus-resteasy-jackson + + + io.quarkus + quarkus-smallrye-openapi + + + io.quarkus + quarkus-junit5 + test + + + io.rest-assured + rest-assured + test + + + org.kie.kogito + kogito-scenario-simulation + test + + + io.quarkus + quarkus-smallrye-health + + + + ${project.artifactId} + + + ${quarkus.platform.group-id} + quarkus-maven-plugin + ${quarkus-plugin.version} + + + + build + + + + + + + diff --git a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/Imported_Model.dmn b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/Imported_Model.dmn new file mode 100644 index 0000000000..a4440e3b3d --- /dev/null +++ b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/Imported_Model.dmn @@ -0,0 +1,35 @@ + + + + + + + string + + + number + + + string + + + string + + + number + + + diff --git a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/Traffic Violation.dmn b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/Traffic Violation.dmn new file mode 100644 index 0000000000..aa798507d8 --- /dev/null +++ b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/Traffic Violation.dmn @@ -0,0 +1,221 @@ + + + + + + + string + + + date + + + string + + "speed", "parking", "driving under the influence" + + + + number + + + number + + + + + number + + + number + + + + + + + + + + + + + + Violation.Type + + + + + Violation.Actual Speed - Violation.Speed Limit + + + + + + + "speed" + + + [10..30) + + + 500 + + + 3 + + + + + "speed" + + + >= 30 + + + 1000 + + + 7 + + + + + "parking" + + + - + + + 100 + + + 1 + + + + + "driving under the influence" + + + - + + + 1000 + + + 5 + + + + + + + + + Should the driver be suspended due to points on his license? + "Yes", "No" + + + + + + + + + + + + Driver.Points + Fine.Points + + + + + if Total Points >= 20 then "Yes" else "No" + + + + + + + + + + 50.0 + 254.0 + 329.0 + 119.0 + 100.0 + 186.0 + + + 50.0 + 100.0 + 398.0 + + + 398.0 + + + 398.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/infinispan-minimal.yaml b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/application.properties similarity index 88% rename from kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/infinispan-minimal.yaml rename to kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/application.properties index 096c10c838..727b6c82f1 100644 --- a/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/infinispan-minimal.yaml +++ b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/application.properties @@ -17,9 +17,6 @@ # under the License. # -apiVersion: infinispan.org/v1 -kind: Infinispan -metadata: - name: example-infinispan -spec: - replicas: 2 \ No newline at end of file +# Packaging + +quarkus.swagger-ui.always-include=true diff --git a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/habitability.dmn b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/habitability.dmn new file mode 100644 index 0000000000..5ba2839631 --- /dev/null +++ b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/main/resources/habitability.dmn @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + oxygene + + + + + temperature + + + + + + + [10..100] + + + < 40 + + + "somehow doable" + + + + + + + + <10 + + + < 40 + + + "hardly doable" + + + + + + + + - + + + >= 40 + + + "too hot" + + + + + + + + + + + + + 50 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/HabitabilityTest.java b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/HabitabilityTest.java new file mode 100644 index 0000000000..17e2714dc3 --- /dev/null +++ b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/HabitabilityTest.java @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.kie.kogito.dmn.quarkus.example; + +import org.junit.jupiter.api.Test; + +import io.quarkus.test.junit.QuarkusTest; +import io.restassured.http.ContentType; + +import static io.restassured.RestAssured.given; +import static org.hamcrest.Matchers.is; + +@QuarkusTest +public class HabitabilityTest { + + @Test + public void testEvaluateHabitability() { + given() + .body("{\n" + + " \"oxygene\": 70,\n" + + " \"temperature\": 30\n" + + "}") + .contentType(ContentType.JSON) + .when() + .post("/habitability") + .then() + .statusCode(200) + .body("'habitability'", is("somehow doable")); + } +} diff --git a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/NativeHabitabilityIT.java b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/NativeHabitabilityIT.java new file mode 100644 index 0000000000..6bc4f990d8 --- /dev/null +++ b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/NativeHabitabilityIT.java @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.kie.kogito.dmn.quarkus.example; + +import io.quarkus.test.junit.QuarkusIntegrationTest; + +@QuarkusIntegrationTest +public class NativeHabitabilityIT extends HabitabilityTest { + + // Execute the same tests but in native mode. +} \ No newline at end of file diff --git a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/NativeTrafficViolationIT.java b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/NativeTrafficViolationIT.java new file mode 100644 index 0000000000..b43c7dca80 --- /dev/null +++ b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/NativeTrafficViolationIT.java @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.kie.kogito.dmn.quarkus.example; + +import io.quarkus.test.junit.QuarkusIntegrationTest; + +@QuarkusIntegrationTest +public class NativeTrafficViolationIT extends TrafficViolationTest { + + // Execute the same tests but in native mode. +} \ No newline at end of file diff --git a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/TrafficViolationTest.java b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/TrafficViolationTest.java new file mode 100644 index 0000000000..3c42782c77 --- /dev/null +++ b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/TrafficViolationTest.java @@ -0,0 +1,52 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.kie.kogito.dmn.quarkus.example; + +import org.junit.jupiter.api.Test; + +import io.quarkus.test.junit.QuarkusTest; +import io.restassured.http.ContentType; + +import static io.restassured.RestAssured.given; +import static org.hamcrest.Matchers.is; + +@QuarkusTest +public class TrafficViolationTest { + + @Test + public void testEvaluateTrafficViolation() { + given() + .body("{\n" + + " \"Driver\": {\n" + + " \"Points\": 2\n" + + " },\n" + + " \"Violation\": {\n" + + " \"Type\": \"speed\",\n" + + " \"Actual Speed\": 120,\n" + + " \"Speed Limit\": 100\n" + + " }\n" + + "}") + .contentType(ContentType.JSON) + .when() + .post("/Traffic Violation") + .then() + .statusCode(200) + .body("'Should the driver be suspended?'", is("No")); + } +} diff --git a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java new file mode 100644 index 0000000000..4b19a12015 --- /dev/null +++ b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package testscenario; + +/** + * KogitoJunitActivator is a custom JUnit runner that enables the execution of Test Scenario files (*.scesim). + * This activator class, when executed, will load all scesim files available in the project and run them. + * Each row of the scenario will generate a test JUnit result. + */ +@org.junit.runner.RunWith(org.kogito.scenariosimulation.runner.KogitoJunitActivator.class) +public class KogitoScenarioJunitActivatorTest { + +} \ No newline at end of file diff --git a/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/resources/TrafficViolationTest.scesim b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/resources/TrafficViolationTest.scesim new file mode 100644 index 0000000000..ff5d6a2b3e --- /dev/null +++ b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/resources/TrafficViolationTest.scesim @@ -0,0 +1,766 @@ + + + + + + + + + Index + OTHER + + + # + java.lang.Integer + + java.lang.Integer + # + 70 + NOT_EXPRESSION + + + + + Description + OTHER + + + Scenario description + java.lang.String + + java.lang.String + Scenario description + 300 + NOT_EXPRESSION + + + + + Driver + + + Points + + + + 1|5 + GIVEN + + + Driver + Driver + + number + Driver + Points + + 114 + NOT_EXPRESSION + + + + + Violation + + + Type + + + + 1|8 + GIVEN + + + Violation + Violation + + Type + Violation + Type + + 114 + NOT_EXPRESSION + + + + + Violation + + + Speed Limit + + + + 1|9 + GIVEN + + + Violation + Violation + + number + Violation + Speed Limit + + 114 + NOT_EXPRESSION + + + + + Violation + + + Actual Speed + + + + 1|10 + GIVEN + + + Violation + Violation + + number + Violation + Actual Speed + + 114 + NOT_EXPRESSION + + + + + Fine + + + Amount + + + + 1|11 + EXPECT + + + Fine + Fine + + number + Fine + Amount + + 114 + NOT_EXPRESSION + + + + + Fine + + + Points + + + + 1|12 + EXPECT + + + Fine + Fine + + number + Fine + Points + + 114 + NOT_EXPRESSION + + + + + Should the driver be suspended? + + + + 1|13 + EXPECT + + + Should the driver be suspended? + Should the driver be suspended? + + string + Should the driver be suspended? + value + + 114 + NOT_EXPRESSION + + + + + + + + + Scenario description + java.lang.String + + + Description + OTHER + + Above speed limit: 10km/h and 30 km/h + + + + Driver + Driver + + + 1|5 + GIVEN + + 10 + + + + Violation + Violation + + + 1|8 + GIVEN + + "speed" + + + + Violation + Violation + + + 1|9 + GIVEN + + 100 + + + + Violation + Violation + + + 1|10 + GIVEN + + 120 + + + + Fine + Fine + + + 1|11 + EXPECT + + 500 + + + + Fine + Fine + + + 1|12 + EXPECT + + 3 + + + + Should the driver be suspended? + Should the driver be suspended? + + + 1|13 + EXPECT + + "No" + + + + # + java.lang.Integer + + + Index + OTHER + + 1 + + + + + + + + Scenario description + java.lang.String + + + Description + OTHER + + Above speed limit: more than 30 km/h + + + + Driver + Driver + + + 1|5 + GIVEN + + 10 + + + + Violation + Violation + + + 1|8 + GIVEN + + "speed" + + + + Violation + Violation + + + 1|9 + GIVEN + + 100 + + + + Violation + Violation + + + 1|10 + GIVEN + + 150 + + + + Fine + Fine + + + 1|11 + EXPECT + + 1000 + + + + Fine + Fine + + + 1|12 + EXPECT + + 7 + + + + Should the driver be suspended? + Should the driver be suspended? + + + 1|13 + EXPECT + + "No" + + + + # + java.lang.Integer + + + Index + OTHER + + 2 + + + + + + + + Scenario description + java.lang.String + + + Description + OTHER + + Parking violation + + + + Driver + Driver + + + 1|5 + GIVEN + + 10 + + + + Violation + Violation + + + 1|8 + GIVEN + + "parking" + + + + Violation + Violation + + + 1|9 + GIVEN + + + + + Violation + Violation + + + 1|10 + GIVEN + + + + + Fine + Fine + + + 1|11 + EXPECT + + 100 + + + + Fine + Fine + + + 1|12 + EXPECT + + 1 + + + + Should the driver be suspended? + Should the driver be suspended? + + + 1|13 + EXPECT + + "No" + + + + # + java.lang.Integer + + + Index + OTHER + + 3 + + + + + + + + Scenario description + java.lang.String + + + Description + OTHER + + DUI violation + + + + Driver + Driver + + + 1|5 + GIVEN + + 10 + + + + Violation + Violation + + + 1|8 + GIVEN + + "driving under the influence" + + + + Violation + Violation + + + 1|9 + GIVEN + + + + + Violation + Violation + + + 1|10 + GIVEN + + + + + Fine + Fine + + + 1|11 + EXPECT + + 1000 + + + + Fine + Fine + + + 1|12 + EXPECT + + 5 + + + + Should the driver be suspended? + Should the driver be suspended? + + + 1|13 + EXPECT + + "No" + + + + # + java.lang.Integer + + + Index + OTHER + + 4 + + + + + + + + Scenario description + java.lang.String + + + Description + OTHER + + Driver suspended + + + + Driver + Driver + + + 1|5 + GIVEN + + 15 + + + + Violation + Violation + + + 1|8 + GIVEN + + "speed" + + + + Violation + Violation + + + 1|9 + GIVEN + + 100 + + + + Violation + Violation + + + 1|10 + GIVEN + + 140 + + + + Fine + Fine + + + 1|11 + EXPECT + + 1000 + + + + Fine + Fine + + + 1|12 + EXPECT + + 7 + + + + Should the driver be suspended? + Should the driver be suspended? + + + 1|13 + EXPECT + + "Yes" + + + + # + java.lang.Integer + + + Index + OTHER + + 5 + + + + + + + + + + + + 1|1 + GIVEN + + + Empty + java.lang.Void + + java.lang.Void + INSTANCE 1 + PROPERTY 1 + 114 + NOT_EXPRESSION + + + + + + + + + Empty + java.lang.Void + + + 1|1 + GIVEN + + + + + + + + src/main/resources/Traffic Violation.dmn + DMN + https://github.com/kiegroup/drools/kie-dmn/_A4BCA8B8-CF08-433F-93B2-A2598F19ECFF + Traffic Violation + false + false + + + + + \ No newline at end of file diff --git a/kogito-quarkus-examples/trusty-demonstration/docker-compose/prometheus/prometheus.yml b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/resources/application.properties old mode 100755 new mode 100644 similarity index 77% rename from kogito-quarkus-examples/trusty-demonstration/docker-compose/prometheus/prometheus.yml rename to kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/resources/application.properties index 3fba0845b6..a047ea13ba --- a/kogito-quarkus-examples/trusty-demonstration/docker-compose/prometheus/prometheus.yml +++ b/kogito-quarkus-examples/dmn-multiple-models-quarkus-example/src/test/resources/application.properties @@ -17,13 +17,5 @@ # under the License. # -# A scrape configuration containing exactly one endpoint to scrape: -scrape_configs: - - job_name: 'kogito-app' - - scrape_interval: 10s - - metrics_path: /q/metrics - - static_configs: - - targets: ['kogito-app:8080'] \ No newline at end of file +# Quarkus +quarkus.http.test-port=0 \ No newline at end of file diff --git a/kogito-quarkus-examples/dmn-pmml-quarkus-example/README.md b/kogito-quarkus-examples/dmn-pmml-quarkus-example/README.md index 9e6742d842..7e9ca9a780 100644 --- a/kogito-quarkus-examples/dmn-pmml-quarkus-example/README.md +++ b/kogito-quarkus-examples/dmn-pmml-quarkus-example/README.md @@ -11,9 +11,9 @@ Demonstrates DMN on Kogito capabilities, including REST interface code generatio ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed ### Compile and Run in Local Dev Mode @@ -127,6 +127,3 @@ Example response: } ``` -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/dmn-pmml-quarkus-example/operator/dmn-pmml-quarkus-example.yaml b/kogito-quarkus-examples/dmn-pmml-quarkus-example/operator/dmn-pmml-quarkus-example.yaml deleted file mode 100644 index 74713c4dcf..0000000000 --- a/kogito-quarkus-examples/dmn-pmml-quarkus-example/operator/dmn-pmml-quarkus-example.yaml +++ /dev/null @@ -1,40 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: dmn-pmml-quarkus-example -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/dmn-pmml-quarkus-example - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: dmn-pmml-quarkus-example - diff --git a/kogito-quarkus-examples/dmn-pmml-quarkus-example/pom.xml b/kogito-quarkus-examples/dmn-pmml-quarkus-example/pom.xml index 81ca70c52e..f169b77999 100644 --- a/kogito-quarkus-examples/dmn-pmml-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/dmn-pmml-quarkus-example/pom.xml @@ -30,10 +30,10 @@ dmn-pmml-quarkus-example Kogito Example :: DMN :: PMML - QUARKUS - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -61,12 +61,12 @@ - org.kie.kogito - kogito-quarkus-decisions + org.drools + drools-quarkus-decisions - org.kie.kogito - kogito-quarkus-predictions + org.kie + kie-quarkus-predictions io.quarkus diff --git a/kogito-quarkus-examples/dmn-quarkus-example/README.md b/kogito-quarkus-examples/dmn-quarkus-example/README.md index ee5d4bdfb3..18e4a5f7b0 100644 --- a/kogito-quarkus-examples/dmn-quarkus-example/README.md +++ b/kogito-quarkus-examples/dmn-quarkus-example/README.md @@ -11,9 +11,9 @@ Demonstrates DMN on Kogito capabilities, including REST interface code generatio ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVM 19.3.1](https://github.com/oracle/graal/releases/tag/vm-19.3.1) installed @@ -128,7 +128,3 @@ Example response: "Should the driver be suspended?":"No" } ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/dmn-quarkus-example/operator/dmn-quarkus-example.yaml b/kogito-quarkus-examples/dmn-quarkus-example/operator/dmn-quarkus-example.yaml deleted file mode 100644 index 69e8bcd1f0..0000000000 --- a/kogito-quarkus-examples/dmn-quarkus-example/operator/dmn-quarkus-example.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: dmn-quarkus-example -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/dmn-quarkus-example - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: dmn-quarkus-example \ No newline at end of file diff --git a/kogito-quarkus-examples/dmn-quarkus-example/pom.xml b/kogito-quarkus-examples/dmn-quarkus-example/pom.xml index 3af9907697..75b704831c 100644 --- a/kogito-quarkus-examples/dmn-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/dmn-quarkus-example/pom.xml @@ -30,10 +30,10 @@ dmn-quarkus-example Kogito Example :: DMN - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -59,8 +59,8 @@ - org.kie.kogito - kogito-quarkus-decisions + org.drools + drools-quarkus-decisions io.quarkus diff --git a/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/README.md b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/README.md new file mode 100644 index 0000000000..8a49a17980 --- /dev/null +++ b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/README.md @@ -0,0 +1,141 @@ +# DMN + Quarkus example with model included in different jar + +## Description + +A simple DMN service to evaluate a model (traffic violation) that is imported from a different jar. + +Demonstrates DMN on Kogito capabilities, including REST interface code generation. + +## Installing and Running + +### Prerequisites + +You will need: + - Java 17+ installed + - Environment variable JAVA_HOME set accordingly + - Maven 3.9.6+ installed + +When using native image compilation, you will also need: + - [GraalVM 19.3.1](https://github.com/oracle/graal/releases/tag/vm-19.3.1) installed + - Environment variable GRAALVM_HOME set accordingly + - Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be installed too. You also need 'native-image' installed in GraalVM (using 'gu install native-image'). Please refer to [GraalVM installation documentation](https://www.graalvm.org/docs/reference-manual/aot-compilation/#prerequisites) for more details. + +### Compile and Run in Local Dev Mode + +``` +cd ./dmn-consumer-example +mvn clean compile quarkus:dev +``` + +(This requires a previous installation of `dmn-resource-jar`) + +### Package and Run in JVM mode + +``` +mvn clean package +java -jar ./dmn-consumer-example/target/quarkus-app/quarkus-run.jar +``` + +or on Windows + +``` +mvn clean package +java -jar .\dmn-consumer-example\target\quarkus-app\quarkus-run.jar +``` + +### Package and Run using Local Native Image +Note that this requires GRAALVM_HOME to point to a valid GraalVM installation + +``` +mvn clean package -Pnative +``` + +To run the generated native executable, generated in `./dmn-consumer-example/target/`, execute + +``` +./dmn-consumer-example/target/dmn-consumer-example-runner +``` + +Note: This does not yet work on Windows, GraalVM and Quarkus should be rolling out support for Windows soon. + +## OpenAPI (Swagger) documentation +[Specification at swagger.io](https://swagger.io/docs/specification/about/) + +You can take a look at the [OpenAPI definition](http://localhost:8080/openapi?format=json) - automatically generated and included in this service - to determine all available operations exposed by this service. For easy readability you can visualize the OpenAPI definition file using a UI tool like for example available [Swagger UI](https://editor.swagger.io). + +In addition, various clients to interact with this service can be easily generated using this OpenAPI definition. + +When running in either Quarkus Development or Native mode, we also leverage the [Quarkus OpenAPI extension](https://quarkus.io/guides/openapi-swaggerui#use-swagger-ui-for-development) that exposes [Swagger UI](http://localhost:8080/swagger-ui/) that you can use to look at available REST endpoints and send test requests. + +## Test DMN Model using Maven + +Validate the functionality of DMN models before deploying them into a production environment by defining test scenarios in Test Scenario Editor. + +To define test scenarios you need to create a .scesim file inside your project and link it to the DMN model you want to be tested. Run all Test Scenarios, executing: + +```sh +cd ./dmn-consumer-example +mvn clean test +``` +See results in surefire test report `target/surefire-reports` + +(This requires a previous installation of `dmn-resource-jar`) + +## Example Usage + +Once the service is up and running, you can use the following example to interact with the service. + +### POST /Traffic Violation + +Returns penalty information from the given inputs -- driver and violation: + +Given inputs: + +```json +{ + "Driver":{"Points":2}, + "Violation":{ + "Type":"speed", + "Actual Speed":120, + "Speed Limit":100 + } +} +``` + +Curl command (using the JSON object above): + +```sh +curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"Driver":{"Points":2},"Violation":{"Type":"speed","Actual Speed":120,"Speed Limit":100}}' http://localhost:8080/Traffic%20Violation +``` +or on Windows: + +```sh +curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" -d "{\"Driver\":{\"Points\":2},\"Violation\":{\"Type\":\"speed\",\"Actual Speed\":120,\"Speed Limit\":100}}" http://localhost:8080/Traffic%20Violation +``` + +As response, penalty information is returned. + +Example response: + +```json +{ + "Violation":{ + "Type":"speed", + "Speed Limit":100, + "Actual Speed":120 + }, + "Driver":{ + "Points":2 + }, + "Fine":{ + "Points":3, + "Amount":500 + }, + "Should the driver be suspended?":"No" +} +``` + +The difference from the [dmn-quarkus-example](../dmn-quarkus-example) is that, in the current one, the `Traffic Model.dml` is defined in a different jar. + + + diff --git a/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/pom.xml b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/pom.xml new file mode 100644 index 0000000000..082b23fbd8 --- /dev/null +++ b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/pom.xml @@ -0,0 +1,147 @@ + + + 4.0.0 + + org.kie.kogito.examples + dmn-resource-jar-quarkus-example + 999-SNAPSHOT + + + dmn-consumer-example + + + 3.2.10.Final + quarkus-bom + io.quarkus + 3.2.10.Final + org.kie.kogito + kogito-bom + 999-SNAPSHOT + 999-SNAPSHOT + 3.6.1 + + + + + org.kie.kogito.examples + dmn-resource-jar + ${project.version} + + + ${quarkus.platform.group-id} + ${quarkus.platform.artifact-id} + ${quarkus.platform.version} + pom + import + + + ${kogito.bom.group-id} + ${kogito.bom.artifact-id} + ${kogito.bom.version} + pom + import + + + + + + org.kie.kogito.examples + dmn-resource-jar + + + org.drools + drools-quarkus-decisions + + + io.quarkus + quarkus-resteasy + + + io.quarkus + quarkus-arc + + + io.quarkus + quarkus-resteasy-jackson + + + io.quarkus + quarkus-smallrye-openapi + + + io.quarkus + quarkus-junit5 + test + + + io.rest-assured + rest-assured + test + + + org.kie.kogito + kogito-scenario-simulation + test + + + io.quarkus + quarkus-smallrye-health + + + + ${project.artifactId} + + + src/main/resources + + + + ${project.build.directory}/generated-resources + + + + + ${quarkus.platform.group-id} + quarkus-maven-plugin + ${quarkus-plugin.version} + + + + build + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + ${dependency-plugin.version} + + + unpack + generate-resources + + unpack + + + + + org.kie.kogito.examples + dmn-resource-jar + ${project.version} + jar + true + ${project.build.directory}/generated-resources + **/*.dmn + + + + + + + + + diff --git a/kogito-quarkus-examples/trusty-demonstration/docker-compose/grafana/provisioning/dashboards/dashboard.yml b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/src/main/resources/application.properties old mode 100755 new mode 100644 similarity index 79% rename from kogito-quarkus-examples/trusty-demonstration/docker-compose/grafana/provisioning/dashboards/dashboard.yml rename to kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/src/main/resources/application.properties index 1c31f32b3b..727b6c82f1 --- a/kogito-quarkus-examples/trusty-demonstration/docker-compose/grafana/provisioning/dashboards/dashboard.yml +++ b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/src/main/resources/application.properties @@ -17,16 +17,6 @@ # under the License. # -apiVersion: 1 - -providers: -- name: 'Prometheus' - orgId: 1 - folder: '' - type: file - disableDeletion: true - allowUiUpdates: true - editable: true - options: - path: /etc/grafana/provisioning/dashboards +# Packaging +quarkus.swagger-ui.always-include=true diff --git a/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/src/test/java/org/kie/kogito/dmn/consumer/example/NativeTrafficViolationIT.java b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/src/test/java/org/kie/kogito/dmn/consumer/example/NativeTrafficViolationIT.java new file mode 100644 index 0000000000..1d1a4103cc --- /dev/null +++ b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/src/test/java/org/kie/kogito/dmn/consumer/example/NativeTrafficViolationIT.java @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.kie.kogito.dmn.consumer.example; + +import io.quarkus.test.junit.QuarkusIntegrationTest; + +@QuarkusIntegrationTest +public class NativeTrafficViolationIT extends TrafficViolationTest { + + // Execute the same tests but in native mode. +} \ No newline at end of file diff --git a/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/src/test/java/org/kie/kogito/dmn/consumer/example/TrafficViolationTest.java b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/src/test/java/org/kie/kogito/dmn/consumer/example/TrafficViolationTest.java new file mode 100644 index 0000000000..612166f5ea --- /dev/null +++ b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/src/test/java/org/kie/kogito/dmn/consumer/example/TrafficViolationTest.java @@ -0,0 +1,52 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.kie.kogito.dmn.consumer.example; + +import org.junit.jupiter.api.Test; + +import io.quarkus.test.junit.QuarkusTest; +import io.restassured.http.ContentType; + +import static io.restassured.RestAssured.given; +import static org.hamcrest.Matchers.is; + +@QuarkusTest +public class TrafficViolationTest { + + @Test + public void testEvaluateTrafficViolation() { + given() + .body("{\n" + + " \"Driver\": {\n" + + " \"Points\": 2\n" + + " },\n" + + " \"Violation\": {\n" + + " \"Type\": \"speed\",\n" + + " \"Actual Speed\": 120,\n" + + " \"Speed Limit\": 100\n" + + " }\n" + + "}") + .contentType(ContentType.JSON) + .when() + .post("/Traffic Violation") + .then() + .statusCode(200) + .body("'Should the driver be suspended?'", is("No")); + } +} diff --git a/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java new file mode 100644 index 0000000000..4b19a12015 --- /dev/null +++ b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/src/test/java/testscenario/KogitoScenarioJunitActivatorTest.java @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package testscenario; + +/** + * KogitoJunitActivator is a custom JUnit runner that enables the execution of Test Scenario files (*.scesim). + * This activator class, when executed, will load all scesim files available in the project and run them. + * Each row of the scenario will generate a test JUnit result. + */ +@org.junit.runner.RunWith(org.kogito.scenariosimulation.runner.KogitoJunitActivator.class) +public class KogitoScenarioJunitActivatorTest { + +} \ No newline at end of file diff --git a/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/src/test/resources/TrafficViolationTest.scesim b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/src/test/resources/TrafficViolationTest.scesim new file mode 100644 index 0000000000..0a8d8c3f68 --- /dev/null +++ b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/src/test/resources/TrafficViolationTest.scesim @@ -0,0 +1,766 @@ + + + + + + + + + Index + OTHER + + + # + java.lang.Integer + + java.lang.Integer + # + 70 + NOT_EXPRESSION + + + + + Description + OTHER + + + Scenario description + java.lang.String + + java.lang.String + Scenario description + 300 + NOT_EXPRESSION + + + + + Driver + + + Points + + + + 1|5 + GIVEN + + + Driver + Driver + + number + Driver + Points + + 114 + NOT_EXPRESSION + + + + + Violation + + + Type + + + + 1|8 + GIVEN + + + Violation + Violation + + Type + Violation + Type + + 114 + NOT_EXPRESSION + + + + + Violation + + + Speed Limit + + + + 1|9 + GIVEN + + + Violation + Violation + + number + Violation + Speed Limit + + 114 + NOT_EXPRESSION + + + + + Violation + + + Actual Speed + + + + 1|10 + GIVEN + + + Violation + Violation + + number + Violation + Actual Speed + + 114 + NOT_EXPRESSION + + + + + Fine + + + Amount + + + + 1|11 + EXPECT + + + Fine + Fine + + number + Fine + Amount + + 114 + NOT_EXPRESSION + + + + + Fine + + + Points + + + + 1|12 + EXPECT + + + Fine + Fine + + number + Fine + Points + + 114 + NOT_EXPRESSION + + + + + Should the driver be suspended? + + + + 1|13 + EXPECT + + + Should the driver be suspended? + Should the driver be suspended? + + string + Should the driver be suspended? + value + + 114 + NOT_EXPRESSION + + + + + + + + + Scenario description + java.lang.String + + + Description + OTHER + + Above speed limit: 10km/h and 30 km/h + + + + Driver + Driver + + + 1|5 + GIVEN + + 10 + + + + Violation + Violation + + + 1|8 + GIVEN + + "speed" + + + + Violation + Violation + + + 1|9 + GIVEN + + 100 + + + + Violation + Violation + + + 1|10 + GIVEN + + 120 + + + + Fine + Fine + + + 1|11 + EXPECT + + 500 + + + + Fine + Fine + + + 1|12 + EXPECT + + 3 + + + + Should the driver be suspended? + Should the driver be suspended? + + + 1|13 + EXPECT + + "No" + + + + # + java.lang.Integer + + + Index + OTHER + + 1 + + + + + + + + Scenario description + java.lang.String + + + Description + OTHER + + Above speed limit: more than 30 km/h + + + + Driver + Driver + + + 1|5 + GIVEN + + 10 + + + + Violation + Violation + + + 1|8 + GIVEN + + "speed" + + + + Violation + Violation + + + 1|9 + GIVEN + + 100 + + + + Violation + Violation + + + 1|10 + GIVEN + + 150 + + + + Fine + Fine + + + 1|11 + EXPECT + + 1000 + + + + Fine + Fine + + + 1|12 + EXPECT + + 7 + + + + Should the driver be suspended? + Should the driver be suspended? + + + 1|13 + EXPECT + + "No" + + + + # + java.lang.Integer + + + Index + OTHER + + 2 + + + + + + + + Scenario description + java.lang.String + + + Description + OTHER + + Parking violation + + + + Driver + Driver + + + 1|5 + GIVEN + + 10 + + + + Violation + Violation + + + 1|8 + GIVEN + + "parking" + + + + Violation + Violation + + + 1|9 + GIVEN + + + + + Violation + Violation + + + 1|10 + GIVEN + + + + + Fine + Fine + + + 1|11 + EXPECT + + 100 + + + + Fine + Fine + + + 1|12 + EXPECT + + 1 + + + + Should the driver be suspended? + Should the driver be suspended? + + + 1|13 + EXPECT + + "No" + + + + # + java.lang.Integer + + + Index + OTHER + + 3 + + + + + + + + Scenario description + java.lang.String + + + Description + OTHER + + DUI violation + + + + Driver + Driver + + + 1|5 + GIVEN + + 10 + + + + Violation + Violation + + + 1|8 + GIVEN + + "driving under the influence" + + + + Violation + Violation + + + 1|9 + GIVEN + + + + + Violation + Violation + + + 1|10 + GIVEN + + + + + Fine + Fine + + + 1|11 + EXPECT + + 1000 + + + + Fine + Fine + + + 1|12 + EXPECT + + 5 + + + + Should the driver be suspended? + Should the driver be suspended? + + + 1|13 + EXPECT + + "No" + + + + # + java.lang.Integer + + + Index + OTHER + + 4 + + + + + + + + Scenario description + java.lang.String + + + Description + OTHER + + Driver suspended + + + + Driver + Driver + + + 1|5 + GIVEN + + 15 + + + + Violation + Violation + + + 1|8 + GIVEN + + "speed" + + + + Violation + Violation + + + 1|9 + GIVEN + + 100 + + + + Violation + Violation + + + 1|10 + GIVEN + + 140 + + + + Fine + Fine + + + 1|11 + EXPECT + + 1000 + + + + Fine + Fine + + + 1|12 + EXPECT + + 7 + + + + Should the driver be suspended? + Should the driver be suspended? + + + 1|13 + EXPECT + + "Yes" + + + + # + java.lang.Integer + + + Index + OTHER + + 5 + + + + + + + + + + + + 1|1 + GIVEN + + + Empty + java.lang.Void + + java.lang.Void + INSTANCE 1 + PROPERTY 1 + 114 + NOT_EXPRESSION + + + + + + + + + Empty + java.lang.Void + + + 1|1 + GIVEN + + + + + + + + target/generated-resources/Traffic Violation.dmn + DMN + https://github.com/kiegroup/drools/kie-dmn/_A4BCA8B8-CF08-433F-93B2-A2598F19ECFF + Traffic Violation + false + false + + + + + \ No newline at end of file diff --git a/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/explainability.yaml b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/src/test/resources/application.properties similarity index 76% rename from kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/explainability.yaml rename to kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/src/test/resources/application.properties index d883b626b9..a047ea13ba 100644 --- a/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/explainability.yaml +++ b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-consumer-example/src/test/resources/application.properties @@ -17,13 +17,5 @@ # under the License. # -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoSupportingService -metadata: - name: explainability -spec: - serviceType: Explainability - replicas: 1 - image: quay.io/kiegroup/kogito-explainability:1.5 - infra: - - kogito-kafka-infra +# Quarkus +quarkus.http.test-port=0 \ No newline at end of file diff --git a/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-resource-jar/pom.xml b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-resource-jar/pom.xml new file mode 100644 index 0000000000..5b18fbe235 --- /dev/null +++ b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-resource-jar/pom.xml @@ -0,0 +1,32 @@ + + + 4.0.0 + + org.kie.kogito.examples + dmn-resource-jar-quarkus-example + 999-SNAPSHOT + + + dmn-resource-jar + + + 17 + 17 + UTF-8 + + + + + maven-compiler-plugin + + + -parameters + + + + + + + \ No newline at end of file diff --git a/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-resource-jar/src/main/resources/Traffic Violation.dmn b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-resource-jar/src/main/resources/Traffic Violation.dmn new file mode 100644 index 0000000000..109d4689e1 --- /dev/null +++ b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/dmn-resource-jar/src/main/resources/Traffic Violation.dmn @@ -0,0 +1,230 @@ + + + + + + string + + + number + + + string + + + string + + + number + + + + + string + + + date + + + string + + "speed", "parking", "driving under the influence" + + + + number + + + number + + + + + number + + + number + + + + + + + + + + + + + + Violation.Type + + + + + Violation.Actual Speed - Violation.Speed Limit + + + + + + + "speed" + + + [10..30) + + + 500 + + + 3 + + + + + "speed" + + + >= 30 + + + 1000 + + + 7 + + + + + "parking" + + + - + + + 100 + + + 1 + + + + + "driving under the influence" + + + - + + + 1000 + + + 5 + + + + + + + + + Should the driver be suspended due to points on his license? + "Yes", "No" + + + + + + + + + + + + Driver.Points + Fine.Points + + + + + if Total Points >= 20 then "Yes" else "No" + + + + + + + + + + 50.0 + 254.0 + 329.0 + 119.0 + 100.0 + 186.0 + + + 50.0 + 100.0 + 398.0 + + + 398.0 + + + 398.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/pom.xml b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/pom.xml new file mode 100644 index 0000000000..c55419f979 --- /dev/null +++ b/kogito-quarkus-examples/dmn-resource-jar-quarkus-example/pom.xml @@ -0,0 +1,48 @@ + + + + 4.0.0 + + org.kie.kogito.examples + kogito-quarkus-examples + 999-SNAPSHOT + + dmn-resource-jar-quarkus-example + Kogito Example :: DMN :: Resource jar providing model + + + 3.2.10.Final + quarkus-bom + io.quarkus + 3.2.10.Final + org.kie.kogito + kogito-bom + 999-SNAPSHOT + 999-SNAPSHOT + + pom + + dmn-resource-jar + dmn-consumer-example + + diff --git a/kogito-quarkus-examples/dmn-tracing-quarkus/README.md b/kogito-quarkus-examples/dmn-tracing-quarkus/README.md index 2311a41d89..d6e9756e7d 100644 --- a/kogito-quarkus-examples/dmn-tracing-quarkus/README.md +++ b/kogito-quarkus-examples/dmn-tracing-quarkus/README.md @@ -9,9 +9,9 @@ A simple DMN service to evaluate a loan approval and generate tracing events tha ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVM 19.3.1](https://github.com/oracle/graal/releases/tag/vm-19.3.1) installed @@ -138,6 +138,3 @@ When the tracing addon is enabled, the tracing events are emitted and pushed to A `docker-compose` example is provided in the current folder. In particular, when `docker-compose up` is run, a Kafka broker, an Infinispan container and the latest build of the trusty service configured to use Infinispan are deployed. Once the services are up and running, after a decision has been evaluated, you can access the trusty service API to list the evaluations at `localhost:8081/executions` for example. -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/dmn-tracing-quarkus/operator/dmn-quarkus-example.yaml b/kogito-quarkus-examples/dmn-tracing-quarkus/operator/dmn-quarkus-example.yaml deleted file mode 100644 index fc395c3c83..0000000000 --- a/kogito-quarkus-examples/dmn-tracing-quarkus/operator/dmn-quarkus-example.yaml +++ /dev/null @@ -1,49 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - ---- -#Strimzi operator should be pre-installed in namespace -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoInfra -metadata: - name: kogito-kafka-infra -spec: - resource: - apiVersion: kafka.strimzi.io/v1beta2 - kind: Kafka ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: dmn-tracing-quarkus -spec: - type: RemoteSource - gitSource: - contextDir: kogito-quarkus-examples/dmn-tracing-quarkus - uri: "https://github.com/apache/incubator-kie-kogito-examples/" - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: dmn-tracing-quarkus -spec: - infra: - - kogito-kafka-infra diff --git a/kogito-quarkus-examples/dmn-tracing-quarkus/pom.xml b/kogito-quarkus-examples/dmn-tracing-quarkus/pom.xml index 8e062c7c16..f80416df82 100644 --- a/kogito-quarkus-examples/dmn-tracing-quarkus/pom.xml +++ b/kogito-quarkus-examples/dmn-tracing-quarkus/pom.xml @@ -30,10 +30,10 @@ dmn-tracing-quarkus Kogito Example :: DMN Tracing - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -59,16 +59,16 @@ - org.kie.kogito - kogito-quarkus-decisions + org.drools + drools-quarkus-decisions - org.kie.kogito - kogito-addons-quarkus-tracing-decision + org.kie + kie-addons-quarkus-tracing-decision - org.kie.kogito - kogito-addons-quarkus-monitoring-prometheus + org.kie + kie-addons-quarkus-monitoring-prometheus org.kie.kogito diff --git a/kogito-quarkus-examples/flexible-process-quarkus/README.md b/kogito-quarkus-examples/flexible-process-quarkus/README.md index 2f63813716..929fe3b5d0 100644 --- a/kogito-quarkus-examples/flexible-process-quarkus/README.md +++ b/kogito-quarkus-examples/flexible-process-quarkus/README.md @@ -43,9 +43,9 @@ will terminate. You will need: -* Java 11+ installed +* Java 17+ installed * Environment variable JAVA_HOME set accordingly -* Maven 3.8.6+ installed +* Maven 3.9.6+ installed When using native image compilation, you will also need: @@ -100,10 +100,6 @@ In addition, various clients to interact with this service can be easily generat When running in either Quarkus Development or Native mode, we also leverage the [Quarkus OpenAPI extension](https://quarkus.io/guides/openapi-swaggerui#use-swagger-ui-for-development) that exposes [Swagger UI](http://localhost:8080/swagger-ui/) that you can use to look at available REST endpoints and send test requests. -## Deploying with the Kogito Operator - -In the [operator](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). - ## Usage example diff --git a/kogito-quarkus-examples/flexible-process-quarkus/operator/flexible-process-quarkus.yaml b/kogito-quarkus-examples/flexible-process-quarkus/operator/flexible-process-quarkus.yaml deleted file mode 100644 index 7faab42a24..0000000000 --- a/kogito-quarkus-examples/flexible-process-quarkus/operator/flexible-process-quarkus.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: flexible-process-quarkus -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/flexible-process-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: flexible-process-quarkus \ No newline at end of file diff --git a/kogito-quarkus-examples/flexible-process-quarkus/pom.xml b/kogito-quarkus-examples/flexible-process-quarkus/pom.xml index 4ffe07da22..834b432939 100644 --- a/kogito-quarkus-examples/flexible-process-quarkus/pom.xml +++ b/kogito-quarkus-examples/flexible-process-quarkus/pom.xml @@ -30,10 +30,10 @@ flexible-process-quarkus Kogito Example :: Flexible Process - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -59,8 +59,8 @@ - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus diff --git a/kogito-quarkus-examples/kogito-travel-agency/README.md b/kogito-quarkus-examples/kogito-travel-agency/README.md index acebb5995d..c12eb5d51e 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/README.md +++ b/kogito-quarkus-examples/kogito-travel-agency/README.md @@ -28,7 +28,3 @@ Everyone is encouraged to contribute to this tutorial by * create new versions of the tutorial by starting from the last version * blogging about it * using it on conferences and workshops - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/kogito-travel-agency/basic/README.md b/kogito-quarkus-examples/kogito-travel-agency/basic/README.md index 47fdcc54af..77d905e6f4 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/basic/README.md +++ b/kogito-quarkus-examples/kogito-travel-agency/basic/README.md @@ -99,9 +99,9 @@ There will be services implemented to carry on the hotel and flight booking. Imp You will need: -* Java 11+ installed +* Java 17+ installed * Environment variable JAVA_HOME set accordingly -* Maven 3.8.6+ installed +* Maven 3.9.6+ installed When using native image compilation, you will also need: diff --git a/kogito-quarkus-examples/kogito-travel-agency/basic/pom.xml b/kogito-quarkus-examples/kogito-travel-agency/basic/pom.xml index 0c8243037f..aa77cead7c 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/basic/pom.xml +++ b/kogito-quarkus-examples/kogito-travel-agency/basic/pom.xml @@ -32,10 +32,10 @@ UTF-8 UTF-8 - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -69,8 +69,8 @@ - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus org.drools @@ -85,8 +85,8 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-addons-quarkus-monitoring-prometheus + org.kie + kie-addons-quarkus-monitoring-prometheus io.quarkus diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/operator/data-index.yaml b/kogito-quarkus-examples/kogito-travel-agency/extended/operator/data-index.yaml deleted file mode 100644 index 0a199dd9f3..0000000000 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/operator/data-index.yaml +++ /dev/null @@ -1,52 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -#Strimzi operator should be pre-installed in namespace -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoInfra -metadata: - name: kogito-kafka-infra -spec: - resource: - apiVersion: kafka.strimzi.io/v1beta2 - kind: Kafka ---- -#Infinispan operator should be pre-installed in namespace -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoInfra -metadata: - name: kogito-infinispan-infra -spec: - resource: - apiVersion: infinispan.org/v1 - kind: Infinispan ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoSupportingService -metadata: - name: data-index -spec: - # Type of the supporting service - serviceType: DataIndex - # For more information please read: https://docs.jboss.org/kogito/release/latest/html_single/#con_kogito-travel-agency - replicas: 1 - infra: - - kogito-kafka-infra - - kogito-infinispan-infra - diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/operator/travels.yaml b/kogito-quarkus-examples/kogito-travel-agency/extended/operator/travels.yaml deleted file mode 100644 index 5804b0c901..0000000000 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/operator/travels.yaml +++ /dev/null @@ -1,59 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -#Strimzi operator should be pre-installed in namespace -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoInfra -metadata: - name: kogito-kafka-infra -spec: - resource: - apiVersion: kafka.strimzi.io/v1beta2 - kind: Kafka ---- -#Infinispan operator should be pre-installed in namespace -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoInfra -metadata: - name: kogito-infinispan-infra -spec: - resource: - apiVersion: infinispan.org/v1 - kind: Infinispan ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: travels -spec: - type: RemoteSource - gitSource: - contextDir: kogito-quarkus-examples/kogito-travel-agency/extended/travels - uri: "https://github.com/apache/incubator-kie-kogito-examples/" - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: travels -spec: - infra: - - kogito-kafka-infra - - kogito-infinispan-infra diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/operator/visas.yaml b/kogito-quarkus-examples/kogito-travel-agency/extended/operator/visas.yaml deleted file mode 100644 index 45fd717e61..0000000000 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/operator/visas.yaml +++ /dev/null @@ -1,40 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: visas -spec: - type: RemoteSource - gitSource: - contextDir: kogito-quarkus-examples/kogito-travel-agency/extended/visas - uri: "https://github.com/apache/incubator-kie-kogito-examples/" - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: visas -spec: - infra: - - kogito-kafka-infra - - kogito-infinispan-infra - diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/pom.xml b/kogito-quarkus-examples/kogito-travel-agency/extended/pom.xml index cf7f0a6ad9..cfdb351113 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/pom.xml +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/pom.xml @@ -35,10 +35,10 @@ visas - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/travels/README.md b/kogito-quarkus-examples/kogito-travel-agency/extended/travels/README.md index 97bad5ef6f..e2f305dd5c 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/travels/README.md +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/travels/README.md @@ -116,9 +116,9 @@ There will be services implemented to carry on the hotel and flight booking. Imp ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.3.1+ installed diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/travels/pom.xml b/kogito-quarkus-examples/kogito-travel-agency/extended/travels/pom.xml index 1a2f6fdd81..4301d3c141 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/travels/pom.xml +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/travels/pom.xml @@ -30,10 +30,10 @@ travels Kogito Example :: Travel Agency :: Travels - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -67,16 +67,16 @@ - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus - org.kie.kogito - kogito-addons-quarkus-messaging + org.kie + kie-addons-quarkus-messaging - org.kie.kogito - kogito-addons-quarkus-process-svg + org.kie + kie-addons-quarkus-process-svg io.quarkus @@ -99,20 +99,20 @@ quarkus-hibernate-validator - org.kie.kogito - kogito-addons-quarkus-monitoring-prometheus + org.kie + kie-addons-quarkus-monitoring-prometheus - org.kie.kogito - kogito-addons-quarkus-persistence-infinispan + org.kie + kie-addons-quarkus-persistence-infinispan - org.kie.kogito - kogito-addons-quarkus-events-process + org.kie + kie-addons-quarkus-events-process - org.kie.kogito - kogito-addons-quarkus-process-management + org.kie + kie-addons-quarkus-process-management org.drools @@ -143,8 +143,8 @@ test - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/README.md b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/README.md index 4153730b4f..079235da90 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/README.md +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/README.md @@ -60,9 +60,9 @@ Public process that will be responsible for processing visa application ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.3.1+ installed diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/pom.xml b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/pom.xml index 98c8a28c63..50bd622801 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/pom.xml +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/pom.xml @@ -30,10 +30,10 @@ visas Kogito Example :: Travel Agency :: Visas - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -59,16 +59,16 @@ - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus - org.kie.kogito - kogito-addons-quarkus-messaging + org.kie + kie-addons-quarkus-messaging - org.kie.kogito - kogito-addons-quarkus-process-svg + org.kie + kie-addons-quarkus-process-svg io.quarkus @@ -101,28 +101,28 @@ quarkus-smallrye-openapi - org.kie.kogito - kogito-addons-quarkus-monitoring-prometheus + org.kie + kie-addons-quarkus-monitoring-prometheus io.quarkus quarkus-qute - org.kie.kogito - kogito-addons-quarkus-persistence-infinispan + org.kie + kie-addons-quarkus-persistence-infinispan - org.kie.kogito - kogito-addons-quarkus-events-process + org.kie + kie-addons-quarkus-events-process - org.kie.kogito - kogito-addons-quarkus-process-management + org.kie + kie-addons-quarkus-process-management - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files diff --git a/kogito-quarkus-examples/kogito-travel-agency/pom.xml b/kogito-quarkus-examples/kogito-travel-agency/pom.xml index cb88872cb0..82323475d6 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/pom.xml +++ b/kogito-quarkus-examples/kogito-travel-agency/pom.xml @@ -35,10 +35,10 @@ extended - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final diff --git a/kogito-quarkus-examples/ocp-tryout/README.md b/kogito-quarkus-examples/ocp-tryout/README.md index 9bf8422d17..454aeecb52 100644 --- a/kogito-quarkus-examples/ocp-tryout/README.md +++ b/kogito-quarkus-examples/ocp-tryout/README.md @@ -92,8 +92,6 @@ All configuration required to make those connections as well as initializations - `kogito.jobsservice.props` - command line properties for the job service ## Constraints -- Developer Sandbox does not allow to install additional operators - (https://www.youtube.com/watch?v=oDqw8aBGDD8 from 18.02.2021 - time: 9:09) - => cannot use Kogito Operator install - Developer Sandbox sets [resource quotas](https://github.com/codeready-toolchain/host-operator/blob/master/deploy/templates/nstemplatetiers/base/cluster.yaml) per user name ### Memory and cpu requests and limits diff --git a/kogito-quarkus-examples/onboarding-example/README.md b/kogito-quarkus-examples/onboarding-example/README.md index cb5f5afdbd..a9b6a11f3f 100644 --- a/kogito-quarkus-examples/onboarding-example/README.md +++ b/kogito-quarkus-examples/onboarding-example/README.md @@ -27,9 +27,9 @@ You can run the example in any of the following configurations: You will need: -- Java 11+ installed +- Java 17+ installed - Environment variable JAVA_HOME set accordingly -- Maven 3.8.6+ installed +- Maven 3.9.6+ installed When using native image compilation, you will also need: diff --git a/kogito-quarkus-examples/onboarding-example/hr/pom.xml b/kogito-quarkus-examples/onboarding-example/hr/pom.xml index 1db5ac95e3..355e25fa80 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/pom.xml +++ b/kogito-quarkus-examples/onboarding-example/hr/pom.xml @@ -32,12 +32,12 @@ HR related rules for onboarding - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus - org.kie.kogito - kogito-addons-quarkus-monitoring-prometheus + org.kie + kie-addons-quarkus-monitoring-prometheus io.quarkus diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/pom.xml b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/pom.xml index 93f1e20923..153debfede 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/pom.xml +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/pom.xml @@ -33,16 +33,16 @@ - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus - org.kie.kogito - kogito-addons-quarkus-monitoring-prometheus + org.kie + kie-addons-quarkus-monitoring-prometheus - org.kie.kogito - kogito-addons-quarkus-kubernetes + org.kie + kie-addons-quarkus-kubernetes @@ -131,8 +131,8 @@ - org.kie.kogito - kogito-addons-quarkus-persistence-infinispan + org.kie + kie-addons-quarkus-persistence-infinispan diff --git a/kogito-quarkus-examples/onboarding-example/payroll/pom.xml b/kogito-quarkus-examples/onboarding-example/payroll/pom.xml index 129db52056..ad0ade6c36 100644 --- a/kogito-quarkus-examples/onboarding-example/payroll/pom.xml +++ b/kogito-quarkus-examples/onboarding-example/payroll/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Onboarding Example :: Payroll with DMN Payroll related decisions for onboarding - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final @@ -49,8 +49,8 @@ - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus diff --git a/kogito-quarkus-examples/onboarding-example/pom.xml b/kogito-quarkus-examples/onboarding-example/pom.xml index 93f9112b09..1013ffd1e6 100644 --- a/kogito-quarkus-examples/onboarding-example/pom.xml +++ b/kogito-quarkus-examples/onboarding-example/pom.xml @@ -37,10 +37,10 @@ onboarding-quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT diff --git a/kogito-quarkus-examples/pmml-event-driven-quarkus/README.md b/kogito-quarkus-examples/pmml-event-driven-quarkus/README.md index dbb80a2934..b8f1e5baad 100644 --- a/kogito-quarkus-examples/pmml-event-driven-quarkus/README.md +++ b/kogito-quarkus-examples/pmml-event-driven-quarkus/README.md @@ -14,9 +14,9 @@ The main goal behind the addon is to allow Kogito PMML services to be used as pa ### Prerequisites You will need: -- Java 11+ installed +- Java 17+ installed - Environment variable JAVA_HOME set accordingly -- Maven 3.8.6+ installed +- Maven 3.9.6+ installed - [Docker Engine](https://docs.docker.com/engine/) and [Docker Compose](https://docs.docker.com/compose/) installed When using native image compilation, you will also need: @@ -30,8 +30,8 @@ Like the other Kogito AddOns, the only required step to enable it is to include ```xml - org.kie.kogito - kogito-addons-quarkus-events-predictions + org.kie + kie-addons-quarkus-events-predictions ``` diff --git a/kogito-quarkus-examples/pmml-event-driven-quarkus/pom.xml b/kogito-quarkus-examples/pmml-event-driven-quarkus/pom.xml index 590fb854c9..d7b7e62a82 100644 --- a/kogito-quarkus-examples/pmml-event-driven-quarkus/pom.xml +++ b/kogito-quarkus-examples/pmml-event-driven-quarkus/pom.xml @@ -30,10 +30,10 @@ pmml-event-driven-quarkus Kogito Example :: PMML Event-Driven - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -60,13 +60,13 @@ - org.kie.kogito - kogito-quarkus-predictions + org.kie + kie-quarkus-predictions - org.kie.kogito - kogito-addons-quarkus-events-predictions + org.kie + kie-addons-quarkus-events-predictions diff --git a/kogito-quarkus-examples/pmml-incubation-api-quarkus/README.md b/kogito-quarkus-examples/pmml-incubation-api-quarkus/README.md index ad1cc17377..c21e6bd230 100644 --- a/kogito-quarkus-examples/pmml-incubation-api-quarkus/README.md +++ b/kogito-quarkus-examples/pmml-incubation-api-quarkus/README.md @@ -17,9 +17,9 @@ The custom REST endpoint evaluates a PMML that computes a linear regression: ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed ### Compile and Run in Local Dev Mode diff --git a/kogito-quarkus-examples/pmml-incubation-api-quarkus/pom.xml b/kogito-quarkus-examples/pmml-incubation-api-quarkus/pom.xml index 28ad9e4be0..75e063b388 100644 --- a/kogito-quarkus-examples/pmml-incubation-api-quarkus/pom.xml +++ b/kogito-quarkus-examples/pmml-incubation-api-quarkus/pom.xml @@ -30,10 +30,10 @@ pmml-incubation-api-quarkus Kogito Example :: PMML Incubation API With Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -67,8 +67,8 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-quarkus-predictions + org.kie + kie-quarkus-predictions io.quarkus diff --git a/kogito-quarkus-examples/pmml-quarkus-example/README.md b/kogito-quarkus-examples/pmml-quarkus-example/README.md index a458891eab..4bb247a7a7 100644 --- a/kogito-quarkus-examples/pmml-quarkus-example/README.md +++ b/kogito-quarkus-examples/pmml-quarkus-example/README.md @@ -11,9 +11,9 @@ Demonstrates PMML on Kogito capabilities, including REST interface code generati ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVM 19.3.1](https://github.com/oracle/graal/releases/tag/vm-19.3.1) installed @@ -195,7 +195,3 @@ Example response: "categoricalResult":1.381666666666666 } ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/pmml-quarkus-example/operator/pmml-quarkus-example.yaml b/kogito-quarkus-examples/pmml-quarkus-example/operator/pmml-quarkus-example.yaml deleted file mode 100644 index fe8be68924..0000000000 --- a/kogito-quarkus-examples/pmml-quarkus-example/operator/pmml-quarkus-example.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: pmml-quarkus-example -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/pmml-quarkus-example - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: pmml-quarkus-example \ No newline at end of file diff --git a/kogito-quarkus-examples/pmml-quarkus-example/pom.xml b/kogito-quarkus-examples/pmml-quarkus-example/pom.xml index 4f3e42226d..811e936055 100644 --- a/kogito-quarkus-examples/pmml-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/pmml-quarkus-example/pom.xml @@ -30,10 +30,10 @@ pmml-quarkus-example Kogito Example :: PMML - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -59,8 +59,8 @@ - org.kie.kogito - kogito-quarkus-predictions + org.kie + kie-quarkus-predictions io.quarkus diff --git a/kogito-quarkus-examples/pom.xml b/kogito-quarkus-examples/pom.xml index 67e4b8a8dc..4527828151 100644 --- a/kogito-quarkus-examples/pom.xml +++ b/kogito-quarkus-examples/pom.xml @@ -58,6 +58,8 @@ dmn-listener-dtable dmn-pmml-quarkus-example dmn-quarkus-example + dmn-resource-jar-quarkus-example + dmn-multiple-models-quarkus-example dmn-tracing-quarkus flexible-process-quarkus kogito-travel-agency diff --git a/kogito-quarkus-examples/process-business-rules-quarkus/README.md b/kogito-quarkus-examples/process-business-rules-quarkus/README.md index 160be0419f..966243ba00 100644 --- a/kogito-quarkus-examples/process-business-rules-quarkus/README.md +++ b/kogito-quarkus-examples/process-business-rules-quarkus/README.md @@ -54,9 +54,9 @@ This example shows ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.3+ installed @@ -249,7 +249,3 @@ Should return something similar to } ``` and there should be no outstanding task for the person anymore. - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/process-business-rules-quarkus/operator/process-business-rules-quarkus.yaml b/kogito-quarkus-examples/process-business-rules-quarkus/operator/process-business-rules-quarkus.yaml deleted file mode 100644 index b41100cf63..0000000000 --- a/kogito-quarkus-examples/process-business-rules-quarkus/operator/process-business-rules-quarkus.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-business-rules-quarkus -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-business-rules-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-business-rules-quarkus \ No newline at end of file diff --git a/kogito-quarkus-examples/process-business-rules-quarkus/pom.xml b/kogito-quarkus-examples/process-business-rules-quarkus/pom.xml index ce51092202..583252384e 100644 --- a/kogito-quarkus-examples/process-business-rules-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-business-rules-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process Business Rules Quarkus Kogito business rules invocation - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -68,8 +68,8 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus diff --git a/kogito-quarkus-examples/process-decisions-quarkus/README.md b/kogito-quarkus-examples/process-decisions-quarkus/README.md index f2cff4a768..7714b8c8bd 100644 --- a/kogito-quarkus-examples/process-decisions-quarkus/README.md +++ b/kogito-quarkus-examples/process-decisions-quarkus/README.md @@ -111,9 +111,9 @@ The DMN file where this decision is declared is [TrafficViolation.dmn](src/main/ ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.3+ installed @@ -277,8 +277,3 @@ After the Curl command, you should see a similar console log } ``` In this case the driver license is expired when the DRL is evaluated because the DriverService generated an expired date for the driver's license thus DMN is not evaluated, so the `validLicense` is `false`, `suspended` and `fine` are `null`. - - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). \ No newline at end of file diff --git a/kogito-quarkus-examples/process-decisions-quarkus/pom.xml b/kogito-quarkus-examples/process-decisions-quarkus/pom.xml index bc135b21b3..f5f659804f 100644 --- a/kogito-quarkus-examples/process-decisions-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-decisions-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process :: Decisions :: Quarkus Process with DMN and DRL integration - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -68,8 +68,8 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/README.md b/kogito-quarkus-examples/process-decisions-rest-quarkus/README.md index 2850fbfb1a..e65fb32fae 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/README.md +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/README.md @@ -145,9 +145,9 @@ The DMN file where this decision is declared is [TrafficViolation.dmn](src/main/ ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.3+ installed @@ -326,8 +326,3 @@ After the Curl command, you should see a similar console log } ``` In this case the driver license is expired when the DRL is evaluated because the DriverService generated an expired date for the driver's license thus DMN is not evaluated, so the `validLicense` is `false` and `trafficViolationResponse` is `null`. - - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). \ No newline at end of file diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/pom.xml b/kogito-quarkus-examples/process-decisions-rest-quarkus/pom.xml index 45c79e0d01..552cfb4573 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/pom.xml @@ -32,10 +32,10 @@ Process with DMN and DRL integration through REST - Quarkus 8080 - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -69,8 +69,8 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus diff --git a/kogito-quarkus-examples/process-decisions-rules-quarkus/README.md b/kogito-quarkus-examples/process-decisions-rules-quarkus/README.md index 811b7c9406..67112c8adf 100644 --- a/kogito-quarkus-examples/process-decisions-rules-quarkus/README.md +++ b/kogito-quarkus-examples/process-decisions-rules-quarkus/README.md @@ -111,9 +111,9 @@ The DMN file where this decision is declared is [TrafficViolation.dmn](src/main/ ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.1+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.3+ installed @@ -334,8 +334,3 @@ After the Curl command, you should see a similar console log } ``` In this case the driver license is expired when the DRL is evaluated because the DriverService generated an expired date for the driver's license thus DMN is not evaluated, so the `validLicense` is `false`, `suspended` and `fine` are `null`. - - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). \ No newline at end of file diff --git a/kogito-quarkus-examples/process-decisions-rules-quarkus/pom.xml b/kogito-quarkus-examples/process-decisions-rules-quarkus/pom.xml index 5bd0cc7034..d82fc29543 100644 --- a/kogito-quarkus-examples/process-decisions-rules-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-decisions-rules-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process :: Decisions :: Rules :: Quarkus Process with DRL, DMN and DRL integration - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -68,8 +68,8 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus diff --git a/kogito-quarkus-examples/process-error-handling/README.md b/kogito-quarkus-examples/process-error-handling/README.md index 862062c7bd..32817d65ac 100644 --- a/kogito-quarkus-examples/process-error-handling/README.md +++ b/kogito-quarkus-examples/process-error-handling/README.md @@ -58,9 +58,9 @@ The `Apply` script calls the corresponding method of the class `ErrorHandlingScr ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.3+ installed @@ -246,7 +246,3 @@ Follow all the step in the previous paragraph, but complete the `Repair` task pr ``` Catch all ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/process-error-handling/operator/process-scripts-quarkus.yaml b/kogito-quarkus-examples/process-error-handling/operator/process-scripts-quarkus.yaml deleted file mode 100644 index 87e6f0fe9c..0000000000 --- a/kogito-quarkus-examples/process-error-handling/operator/process-scripts-quarkus.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-error-handling -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-error-handling - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-error-handling diff --git a/kogito-quarkus-examples/process-error-handling/pom.xml b/kogito-quarkus-examples/process-error-handling/pom.xml index 08f8dc7996..8edae24e1c 100644 --- a/kogito-quarkus-examples/process-error-handling/pom.xml +++ b/kogito-quarkus-examples/process-error-handling/pom.xml @@ -30,10 +30,10 @@ Kogito Example :: Process Scripts With Quarkus Kogito scripts invocation - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -67,8 +67,8 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-quarkus-processes + org.jbpm + jbpm-quarkus io.quarkus diff --git a/kogito-quarkus-examples/process-incubation-api-quarkus/README.md b/kogito-quarkus-examples/process-incubation-api-quarkus/README.md index 1e5427c8a9..39880893f4 100644 --- a/kogito-quarkus-examples/process-incubation-api-quarkus/README.md +++ b/kogito-quarkus-examples/process-incubation-api-quarkus/README.md @@ -16,9 +16,9 @@ The custom REST endpoint evaluates a process that expects a name: ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed ### Compile and Run in Local Dev Mode diff --git a/kogito-quarkus-examples/process-incubation-api-quarkus/pom.xml b/kogito-quarkus-examples/process-incubation-api-quarkus/pom.xml index 282a6dcc3e..07d30ca167 100644 --- a/kogito-quarkus-examples/process-incubation-api-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-incubation-api-quarkus/pom.xml @@ -30,10 +30,10 @@ process-incubation-api-quarkus Kogito Example :: Process Incubation API With Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -67,8 +67,8 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-quarkus-processes + org.jbpm + jbpm-quarkus io.quarkus diff --git a/kogito-quarkus-examples/process-infinispan-persistence-quarkus/README.md b/kogito-quarkus-examples/process-infinispan-persistence-quarkus/README.md index 87d26274b4..0c6ccf1e09 100644 --- a/kogito-quarkus-examples/process-infinispan-persistence-quarkus/README.md +++ b/kogito-quarkus-examples/process-infinispan-persistence-quarkus/README.md @@ -72,9 +72,9 @@ You can install Infinispan server by downloading version 12.x from the [official ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.3+ installed @@ -214,7 +214,3 @@ where uuid is the id of the deal review and tuuid is the id of the user task you ``` Review of the deal very good work for traveller Doe ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/process-infinispan-persistence-quarkus/operator/process-infinispan-persistence-quarkus.yaml b/kogito-quarkus-examples/process-infinispan-persistence-quarkus/operator/process-infinispan-persistence-quarkus.yaml deleted file mode 100644 index 49e3f6c398..0000000000 --- a/kogito-quarkus-examples/process-infinispan-persistence-quarkus/operator/process-infinispan-persistence-quarkus.yaml +++ /dev/null @@ -1,48 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -#Infinispan operator should be pre-installed in namespace -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoInfra -metadata: - name: kogito-infinispan-infra -spec: - resource: - apiVersion: infinispan.org/v1 - kind: Infinispan ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-infinispan-persistence-quarkus -spec: - type: RemoteSource - gitSource: - contextDir: kogito-quarkus-examples/process-infinispan-persistence-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-infinispan-persistence-quarkus -spec: - infra: - - kogito-infinispan-infra \ No newline at end of file diff --git a/kogito-quarkus-examples/process-infinispan-persistence-quarkus/pom.xml b/kogito-quarkus-examples/process-infinispan-persistence-quarkus/pom.xml index 17bc78302d..595c2b0035 100644 --- a/kogito-quarkus-examples/process-infinispan-persistence-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-infinispan-persistence-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process Infinispan Persistence Quarkus Process with Infinispan persistence - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -69,16 +69,16 @@ - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus quarkus-smallrye-openapi - org.kie.kogito - kogito-addons-quarkus-persistence-infinispan + org.kie + kie-addons-quarkus-persistence-infinispan io.quarkus diff --git a/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/README.md b/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/README.md index eecf76b13c..886e93b4ec 100644 --- a/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/README.md +++ b/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/README.md @@ -89,9 +89,9 @@ https://kafka.apache.org/quickstart ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.3+ installed diff --git a/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/pom.xml b/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/pom.xml index 997c1e64a4..2c8e4d3e2a 100644 --- a/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process with Kafka and Quarkus, multiple channels, avro serialization Kogito with Kafka - Quarkus, using one channel per message name - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -60,20 +60,20 @@ - org.kie.kogito - kogito-addons-quarkus-messaging + org.kie + kie-addons-quarkus-messaging io.quarkus quarkus-smallrye-reactive-messaging-kafka - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus - org.kie.kogito - kogito-addons-quarkus-marshallers-avro + org.kie + kie-addons-quarkus-marshallers-avro io.quarkus diff --git a/kogito-quarkus-examples/process-kafka-multi-quarkus/README.md b/kogito-quarkus-examples/process-kafka-multi-quarkus/README.md index cbcdfffa1c..d824553492 100644 --- a/kogito-quarkus-examples/process-kafka-multi-quarkus/README.md +++ b/kogito-quarkus-examples/process-kafka-multi-quarkus/README.md @@ -78,9 +78,9 @@ https://kafka.apache.org/quickstart ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.3+ installed @@ -248,6 +248,3 @@ mp.messaging.outgoing.no\u0020travel.connector=smallrye-kafka mp.messaging.outgoing.no\u0020travel.topic=cancelledtravellers mp.messaging.outgoing.no\u0020travel.value.serializer=org.apache.kafka.common.serialization.StringSerializer ``` -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/process-kafka-multi-quarkus/operator/process-kafka-multi-quarkus.yaml b/kogito-quarkus-examples/process-kafka-multi-quarkus/operator/process-kafka-multi-quarkus.yaml deleted file mode 100644 index 172824f643..0000000000 --- a/kogito-quarkus-examples/process-kafka-multi-quarkus/operator/process-kafka-multi-quarkus.yaml +++ /dev/null @@ -1,52 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -#Strimzi operator should be pre-installed in namespace -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoInfra -metadata: - name: kogito-kafka-infra -spec: - resource: - apiVersion: kafka.strimzi.io/v1beta2 - kind: Kafka ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-kafka-quickstart-quarkus -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-kafka-multi-quickstart-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-kafka-multi-quickstart-quarkus -spec: - infra: - - kogito-kafka-infra diff --git a/kogito-quarkus-examples/process-kafka-multi-quarkus/pom.xml b/kogito-quarkus-examples/process-kafka-multi-quarkus/pom.xml index abdb175c13..ffdf51f941 100644 --- a/kogito-quarkus-examples/process-kafka-multi-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-kafka-multi-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process with Kafka and Quarkus, multiple channels Kogito with Kafka - Quarkus, using one channel per message name - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -61,20 +61,20 @@ - org.kie.kogito - kogito-addons-quarkus-events-process + org.kie + kie-addons-quarkus-events-process - org.kie.kogito - kogito-addons-quarkus-messaging + org.kie + kie-addons-quarkus-messaging io.quarkus quarkus-smallrye-reactive-messaging-kafka - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus diff --git a/kogito-quarkus-examples/process-kafka-persistence-quarkus/README.md b/kogito-quarkus-examples/process-kafka-persistence-quarkus/README.md index e235339474..8c1e8b8bd8 100644 --- a/kogito-quarkus-examples/process-kafka-persistence-quarkus/README.md +++ b/kogito-quarkus-examples/process-kafka-persistence-quarkus/README.md @@ -74,9 +74,9 @@ docker-compose up ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 20.2+ installed @@ -198,7 +198,3 @@ where uuid is the id of the deal review and tuuid is the id of the user task you ``` Review of the deal very good work for traveller Doe ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/process-kafka-persistence-quarkus/operator/process-kafka-persistence-quarkus.yaml b/kogito-quarkus-examples/process-kafka-persistence-quarkus/operator/process-kafka-persistence-quarkus.yaml deleted file mode 100644 index b824bbf469..0000000000 --- a/kogito-quarkus-examples/process-kafka-persistence-quarkus/operator/process-kafka-persistence-quarkus.yaml +++ /dev/null @@ -1,48 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -#Infinispan operator should be pre-installed in namespace -apiVersion: app.kiegroup.org/v1alpha1 -kind: KogitoInfra -metadata: - name: kogito-kafka-infra -spec: - resource: - apiVersion: kafka.strimzi.io/v1beta2 - kind: Kafka ---- -apiVersion: app.kiegroup.org/v1alpha1 -kind: KogitoBuild -metadata: - name: process-kafka-persistence-quarkus -spec: - type: RemoteSource - gitSource: - contextDir: kogito-quarkus-examples/process-kafka-persistence-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1alpha1 -kind: KogitoRuntime -metadata: - name: process-kafka-persistence-quarkus -spec: - infra: - - kogito-kafka-infra \ No newline at end of file diff --git a/kogito-quarkus-examples/process-kafka-persistence-quarkus/pom.xml b/kogito-quarkus-examples/process-kafka-persistence-quarkus/pom.xml index 75a0681749..5581660fec 100644 --- a/kogito-quarkus-examples/process-kafka-persistence-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-kafka-persistence-quarkus/pom.xml @@ -33,10 +33,10 @@ Kogito Example :: Process Kafka Persistence Quarkus Process with Kafka persistence - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -62,12 +62,12 @@ - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus - org.kie.kogito - kogito-addons-quarkus-persistence-kafka + org.kie + kie-addons-quarkus-persistence-kafka io.quarkus diff --git a/kogito-quarkus-examples/process-kafka-quickstart-quarkus/README.md b/kogito-quarkus-examples/process-kafka-quickstart-quarkus/README.md index d52ca0c19c..db4bbe384a 100644 --- a/kogito-quarkus-examples/process-kafka-quickstart-quarkus/README.md +++ b/kogito-quarkus-examples/process-kafka-quickstart-quarkus/README.md @@ -78,9 +78,9 @@ https://kafka.apache.org/quickstart ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.3+ installed @@ -235,7 +235,3 @@ One Liner ``` this will not result in message being send to `processedtravelers` topic. - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/process-kafka-quickstart-quarkus/operator/process-kafka-quickstart-quarkus.yaml b/kogito-quarkus-examples/process-kafka-quickstart-quarkus/operator/process-kafka-quickstart-quarkus.yaml deleted file mode 100644 index 2e7b87e03c..0000000000 --- a/kogito-quarkus-examples/process-kafka-quickstart-quarkus/operator/process-kafka-quickstart-quarkus.yaml +++ /dev/null @@ -1,52 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -#Strimzi operator should be pre-installed in namespace -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoInfra -metadata: - name: kogito-kafka-infra -spec: - resource: - apiVersion: kafka.strimzi.io/v1beta2 - kind: Kafka ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-kafka-quickstart-quarkus -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-kafka-quickstart-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-kafka-quickstart-quarkus -spec: - infra: - - kogito-kafka-infra \ No newline at end of file diff --git a/kogito-quarkus-examples/process-kafka-quickstart-quarkus/pom.xml b/kogito-quarkus-examples/process-kafka-quickstart-quarkus/pom.xml index cf9a24b09f..78e4b86cfa 100644 --- a/kogito-quarkus-examples/process-kafka-quickstart-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-kafka-quickstart-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process with Kafka and Quarkus Kogito with Kafka - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -64,12 +64,12 @@ quarkus-smallrye-reactive-messaging-kafka - org.kie.kogito - kogito-addons-quarkus-messaging + org.kie + kie-addons-quarkus-messaging - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus diff --git a/kogito-quarkus-examples/process-knative-quickstart-quarkus/README.md b/kogito-quarkus-examples/process-knative-quickstart-quarkus/README.md index 12f0d099c7..dd8e63dd42 100644 --- a/kogito-quarkus-examples/process-knative-quickstart-quarkus/README.md +++ b/kogito-quarkus-examples/process-knative-quickstart-quarkus/README.md @@ -78,9 +78,9 @@ For local testing only you can use [Podman](https://podman.io/getting-started/in You will need: -- Java 11+ installed +- Java 17+ installed - Environment variable JAVA_HOME set accordingly -- Maven 3.8.6+ installed +- Maven 3.9.6+ installed When using native image compilation, you will also need: diff --git a/kogito-quarkus-examples/process-knative-quickstart-quarkus/pom.xml b/kogito-quarkus-examples/process-knative-quickstart-quarkus/pom.xml index c016c804f4..32220f8a1b 100644 --- a/kogito-quarkus-examples/process-knative-quickstart-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-knative-quickstart-quarkus/pom.xml @@ -32,10 +32,10 @@ Kogito with Knative Eventing - Quarkus 2.33.2 - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -69,17 +69,17 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-quarkus-rules + org.drools + drools-quarkus-rules - org.kie.kogito - kogito-quarkus-processes + org.jbpm + jbpm-quarkus - org.kie.kogito - kogito-addons-quarkus-knative-eventing + org.kie + kie-addons-quarkus-knative-eventing io.quarkus diff --git a/kogito-quarkus-examples/process-mongodb-persistence-quarkus/README.md b/kogito-quarkus-examples/process-mongodb-persistence-quarkus/README.md index e0d1701d54..274e6ab13f 100644 --- a/kogito-quarkus-examples/process-mongodb-persistence-quarkus/README.md +++ b/kogito-quarkus-examples/process-mongodb-persistence-quarkus/README.md @@ -71,9 +71,9 @@ For more details you can check applications.properties. ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.3+ installed diff --git a/kogito-quarkus-examples/process-mongodb-persistence-quarkus/operator/process-mongodb-persistence-quarkus.yaml b/kogito-quarkus-examples/process-mongodb-persistence-quarkus/operator/process-mongodb-persistence-quarkus.yaml deleted file mode 100644 index 87936fe87f..0000000000 --- a/kogito-quarkus-examples/process-mongodb-persistence-quarkus/operator/process-mongodb-persistence-quarkus.yaml +++ /dev/null @@ -1,48 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -## MongoDB operator should be pre-installed in namespace -apiVersion: app.kiegroup.org/v1alpha1 -kind: KogitoInfra -metadata: - name: kogito-mongodb -spec: - resource: - apiVersion: mongodb.com/v1 - kind: MongoDB ---- -apiVersion: app.kiegroup.org/v1alpha1 -kind: KogitoBuild -metadata: - name: process-mongodb -spec: - type: RemoteSource - gitSource: - contextDir: kogito-quarkus-examples/process-mongodb-persistence-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1alpha1 -kind: KogitoRuntime -metadata: - name: process-mongodb -spec: - infra: - - kogito-mongodb \ No newline at end of file diff --git a/kogito-quarkus-examples/process-mongodb-persistence-quarkus/pom.xml b/kogito-quarkus-examples/process-mongodb-persistence-quarkus/pom.xml index 4653dc95fc..53e2a68d27 100644 --- a/kogito-quarkus-examples/process-mongodb-persistence-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-mongodb-persistence-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process MongoDB Persistence Quarkus Process with MongoDB persistence - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -68,16 +68,16 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus quarkus-smallrye-openapi - org.kie.kogito - kogito-addons-quarkus-persistence-mongodb + org.kie + kie-addons-quarkus-persistence-mongodb io.quarkus @@ -142,8 +142,8 @@ - org.kie.kogito - kogito-addons-quarkus-events-process + org.kie + kie-addons-quarkus-events-process io.quarkus diff --git a/kogito-quarkus-examples/process-monitoring-quarkus/README.md b/kogito-quarkus-examples/process-monitoring-quarkus/README.md index 99363fb1c7..168989e9ae 100644 --- a/kogito-quarkus-examples/process-monitoring-quarkus/README.md +++ b/kogito-quarkus-examples/process-monitoring-quarkus/README.md @@ -8,9 +8,9 @@ This example demonstrates how to enable and consume the runtime metrics monitori You will need: -- Java 11+ installed +- Java 17+ installed - Environment variable JAVA_HOME set accordingly -- Maven 3.8.6+ installed +- Maven 3.9.6+ installed - Docker 19+ (only if you want to run the integration tests and/or you want to use the `docker-compose` script provided in this example). ### How to enable the feature @@ -20,8 +20,8 @@ Import the following dependency in your `pom.xml`: ```XML - org.kie.kogito - kogito-addons-quarkus-monitoring-prometheus + org.kie + kie-addons-quarkus-monitoring-prometheus ``` diff --git a/kogito-quarkus-examples/process-monitoring-quarkus/pom.xml b/kogito-quarkus-examples/process-monitoring-quarkus/pom.xml index 0e5a28290c..83b6ac6e23 100755 --- a/kogito-quarkus-examples/process-monitoring-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-monitoring-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process Monitoring :: Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -61,12 +61,12 @@ - org.kie.kogito - kogito-quarkus-processes + org.jbpm + jbpm-quarkus - org.kie.kogito - kogito-addons-quarkus-monitoring-prometheus + org.kie + kie-addons-quarkus-monitoring-prometheus io.quarkus diff --git a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/pom.xml b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/pom.xml index 73367135dc..d90cf967f3 100644 --- a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/pom.xml @@ -35,10 +35,10 @@ 1.7 - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -66,8 +66,8 @@ - org.kie.kogito - kogito-quarkus-processes + org.jbpm + jbpm-quarkus io.quarkus @@ -79,12 +79,12 @@ - org.kie.kogito - kogito-addons-quarkus-persistence-mongodb + org.kie + kie-addons-quarkus-persistence-mongodb - org.kie.kogito - kogito-addons-quarkus-events-mongodb + org.kie + kie-addons-quarkus-events-mongodb io.quarkus diff --git a/kogito-quarkus-examples/process-performance-client/pom.xml b/kogito-quarkus-examples/process-performance-client/pom.xml index 93626b973c..f297352f5e 100755 --- a/kogito-quarkus-examples/process-performance-client/pom.xml +++ b/kogito-quarkus-examples/process-performance-client/pom.xml @@ -33,10 +33,10 @@ Kogito Example :: Client Performance test Client Performance test - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT diff --git a/kogito-quarkus-examples/process-performance-quarkus/README.md b/kogito-quarkus-examples/process-performance-quarkus/README.md index f36be8e99c..8c5c2c4ef5 100644 --- a/kogito-quarkus-examples/process-performance-quarkus/README.md +++ b/kogito-quarkus-examples/process-performance-quarkus/README.md @@ -18,9 +18,9 @@ Kafka cluster installed and available over the network. Refer to [Kafka Apache s ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed - Apache Kafka When using native image compilation, you will also need: diff --git a/kogito-quarkus-examples/process-performance-quarkus/pom.xml b/kogito-quarkus-examples/process-performance-quarkus/pom.xml index 75e5202dd3..2213bcba54 100755 --- a/kogito-quarkus-examples/process-performance-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-performance-quarkus/pom.xml @@ -33,10 +33,10 @@ Kogito Example :: Quarkus Performance test Quarkus Performance test - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -66,12 +66,12 @@ quarkus-smallrye-reactive-messaging-kafka - org.kie.kogito - kogito-addons-quarkus-messaging + org.kie + kie-addons-quarkus-messaging - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus diff --git a/kogito-quarkus-examples/process-postgresql-persistence-quarkus/README.md b/kogito-quarkus-examples/process-postgresql-persistence-quarkus/README.md index efe0b3d683..b56e9a7058 100644 --- a/kogito-quarkus-examples/process-postgresql-persistence-quarkus/README.md +++ b/kogito-quarkus-examples/process-postgresql-persistence-quarkus/README.md @@ -83,9 +83,9 @@ Optionally and for convenience, a docker-compose [configuration file](docker-com ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.3+ installed diff --git a/kogito-quarkus-examples/process-postgresql-persistence-quarkus/pom.xml b/kogito-quarkus-examples/process-postgresql-persistence-quarkus/pom.xml index 807e9b8081..452876fdd7 100644 --- a/kogito-quarkus-examples/process-postgresql-persistence-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-postgresql-persistence-quarkus/pom.xml @@ -36,10 +36,10 @@ Kogito Example :: Process PostgreSQL Persistence Quarkus Process with PostgreSQL persistence - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -73,12 +73,12 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus - org.kie.kogito - kogito-addons-quarkus-persistence-jdbc + org.kie + kie-addons-quarkus-persistence-jdbc io.quarkus @@ -134,8 +134,8 @@ - org.kie.kogito - kogito-addons-quarkus-events-process + org.kie + kie-addons-quarkus-events-process io.quarkus diff --git a/kogito-quarkus-examples/process-quarkus-example/README.md b/kogito-quarkus-examples/process-quarkus-example/README.md index 44c0e70b67..4323470447 100644 --- a/kogito-quarkus-examples/process-quarkus-example/README.md +++ b/kogito-quarkus-examples/process-quarkus-example/README.md @@ -13,9 +13,9 @@ Based on these two processes (defined using BPMN 2.0 format), the custom data ob ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVM 19.1.1](https://github.com/oracle/graal/releases/tag/vm-19.1.1) installed @@ -292,7 +292,3 @@ Example response: } } ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/process-quarkus-example/operator/process-quarkus-example.yaml b/kogito-quarkus-examples/process-quarkus-example/operator/process-quarkus-example.yaml deleted file mode 100644 index f143c6d0fa..0000000000 --- a/kogito-quarkus-examples/process-quarkus-example/operator/process-quarkus-example.yaml +++ /dev/null @@ -1,53 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-quarkus-example -spec: - type: RemoteSource - gitSource: - contextDir: kogito-quarkus-examples/process-quarkus-example - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: -#uncomment to enable persistence -#--- -##Infinispan operator should be pre-installed in namespace -#apiVersion: app.kiegroup.org/v1beta1 -#kind: KogitoInfra -#metadata: -# name: kogito-infinispan-infra -#spec: -# resource: -# apiVersion: infinispan.org/v1 -# kind: Infinispan ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-quarkus-example -# uncomment to enable persistence -#spec: -# infra: -# - kogito-infinispan-infra - #env: - # - name: MAVEN_ARGS_APPEND - # value: "-Ppersistence" \ No newline at end of file diff --git a/kogito-quarkus-examples/process-quarkus-example/pom.xml b/kogito-quarkus-examples/process-quarkus-example/pom.xml index 998885113d..ee90f21630 100755 --- a/kogito-quarkus-examples/process-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/process-quarkus-example/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process and Quarkus Order management service - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -60,12 +60,12 @@ - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus - org.kie.kogito - kogito-addons-quarkus-process-management + org.kie + kie-addons-quarkus-process-management io.quarkus @@ -134,8 +134,8 @@ - org.kie.kogito - kogito-addons-quarkus-persistence-infinispan + org.kie + kie-addons-quarkus-persistence-infinispan @@ -163,8 +163,8 @@ - org.kie.kogito - kogito-addons-quarkus-events-process + org.kie + kie-addons-quarkus-events-process io.quarkus diff --git a/kogito-quarkus-examples/process-rest-service-call-quarkus/README.md b/kogito-quarkus-examples/process-rest-service-call-quarkus/README.md index 0a9af86068..4db274c004 100644 --- a/kogito-quarkus-examples/process-rest-service-call-quarkus/README.md +++ b/kogito-quarkus-examples/process-rest-service-call-quarkus/README.md @@ -48,9 +48,9 @@ during REST service invocation. ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.1+ installed @@ -144,7 +144,3 @@ After the above command nothing will show on Quarkus log as the user is skipped * Curl Log

- -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/process-rest-service-call-quarkus/operator/process-service-rest-call-quarkus.yaml b/kogito-quarkus-examples/process-rest-service-call-quarkus/operator/process-service-rest-call-quarkus.yaml deleted file mode 100644 index a3cc78d961..0000000000 --- a/kogito-quarkus-examples/process-rest-service-call-quarkus/operator/process-service-rest-call-quarkus.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-service-rest-call-quarkus -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-service-rest-call-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-service-rest-call-quarkus \ No newline at end of file diff --git a/kogito-quarkus-examples/process-rest-service-call-quarkus/pom.xml b/kogito-quarkus-examples/process-rest-service-call-quarkus/pom.xml index f59a2e732b..419577209e 100644 --- a/kogito-quarkus-examples/process-rest-service-call-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-rest-service-call-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process Service Rest Cal with Quarkus Kogito service invocation using REST - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -68,8 +68,8 @@ quarkus-resteasy-jackson
- org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus diff --git a/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/README.md b/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/README.md index faaa6ee043..ed307fdb71 100644 --- a/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/README.md +++ b/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/README.md @@ -17,9 +17,9 @@ and returns the sum. ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVm](https://www.graalvm.org/downloads/) 20.2.0+ installed @@ -93,9 +93,3 @@ curl response will be something like this, which includes field `sum`, the resul ```text {"id":"8e79ac60-c0c1-40d0-808e-8d3585307661","randomNumber":8,"sum":344,"inputNumbers":{"numbers":[1,2,3,4,5,6,7,8,7]}} ``` - - -``` -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/pom.xml b/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/pom.xml index d5b02e7af5..71ef15a776 100644 --- a/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process Rest :: Quarkus Invoking multiple Rest WS using RestWorkItemHandler - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -60,8 +60,8 @@ - org.kie.kogito - kogito-quarkus-processes + org.jbpm + jbpm-quarkus org.kie.kogito diff --git a/kogito-quarkus-examples/process-rest-workitem-quarkus/README.md b/kogito-quarkus-examples/process-rest-workitem-quarkus/README.md index be4e40faca..91c464c7b8 100644 --- a/kogito-quarkus-examples/process-rest-workitem-quarkus/README.md +++ b/kogito-quarkus-examples/process-rest-workitem-quarkus/README.md @@ -52,9 +52,9 @@ during REST service invocation. ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.1+ installed @@ -148,7 +148,3 @@ After the above command nothing will show on Quarkus log as the user is skipped * Curl Log

- -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/process-rest-workitem-quarkus/operator/process-service-rest-call-quarkus.yaml b/kogito-quarkus-examples/process-rest-workitem-quarkus/operator/process-service-rest-call-quarkus.yaml deleted file mode 100644 index a3cc78d961..0000000000 --- a/kogito-quarkus-examples/process-rest-workitem-quarkus/operator/process-service-rest-call-quarkus.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-service-rest-call-quarkus -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-service-rest-call-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-service-rest-call-quarkus \ No newline at end of file diff --git a/kogito-quarkus-examples/process-rest-workitem-quarkus/pom.xml b/kogito-quarkus-examples/process-rest-workitem-quarkus/pom.xml index f2dcc8d19a..31fc602a3c 100644 --- a/kogito-quarkus-examples/process-rest-workitem-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-rest-workitem-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process Service Rest WorkItem call with Quarkus Kogito service invocation using REST work item and Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -68,8 +68,8 @@ quarkus-resteasy-jackson
- org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus diff --git a/kogito-quarkus-examples/process-saga-quarkus/README.md b/kogito-quarkus-examples/process-saga-quarkus/README.md index 3316acafb5..53fa0887eb 100644 --- a/kogito-quarkus-examples/process-saga-quarkus/README.md +++ b/kogito-quarkus-examples/process-saga-quarkus/README.md @@ -43,7 +43,7 @@ This is the BPMN process that represents the Order Saga, and it is the one being ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - Maven 3.8.6+ installed @@ -208,7 +208,3 @@ In the console executing the application you can check the log it with the execu 17:16:17:747 WARN [org.kie.kogito.examples.StockService] Cancel Stock for 9098daa2-f40f-4231-995a-1c7d159df190 17:16:17:747 WARN [org.kie.kogito.examples.OrderService] Failed Order 12345678 ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). \ No newline at end of file diff --git a/kogito-quarkus-examples/process-saga-quarkus/pom.xml b/kogito-quarkus-examples/process-saga-quarkus/pom.xml index 1a00c6322f..8671a3fec1 100644 --- a/kogito-quarkus-examples/process-saga-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-saga-quarkus/pom.xml @@ -33,10 +33,10 @@ How to implement Saga with a BPMN Process using Compensations - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -64,8 +64,8 @@ - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus diff --git a/kogito-quarkus-examples/process-scripts-quarkus/README.md b/kogito-quarkus-examples/process-scripts-quarkus/README.md index 8d404152b7..13eb9996dd 100644 --- a/kogito-quarkus-examples/process-scripts-quarkus/README.md +++ b/kogito-quarkus-examples/process-scripts-quarkus/README.md @@ -28,9 +28,9 @@ This example shows ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.3+ installed @@ -113,7 +113,3 @@ And also in Quarkus log you should see a log entry: ``` Hello john" ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/process-scripts-quarkus/operator/process-scripts-quarkus.yaml b/kogito-quarkus-examples/process-scripts-quarkus/operator/process-scripts-quarkus.yaml deleted file mode 100644 index be06e47cde..0000000000 --- a/kogito-quarkus-examples/process-scripts-quarkus/operator/process-scripts-quarkus.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-scripts-quarkus -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-scripts-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-scripts-quarkus diff --git a/kogito-quarkus-examples/process-scripts-quarkus/pom.xml b/kogito-quarkus-examples/process-scripts-quarkus/pom.xml index bc10c3edb2..87a933a1c3 100644 --- a/kogito-quarkus-examples/process-scripts-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-scripts-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process Scripts With Quarkus Kogito scripts invocation - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -68,8 +68,8 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus diff --git a/kogito-quarkus-examples/process-service-calls-quarkus/README.md b/kogito-quarkus-examples/process-service-calls-quarkus/README.md index cc0d37ca74..1c67012d9a 100644 --- a/kogito-quarkus-examples/process-service-calls-quarkus/README.md +++ b/kogito-quarkus-examples/process-service-calls-quarkus/README.md @@ -65,9 +65,9 @@ This example shows ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.1+ installed @@ -170,7 +170,3 @@ curl -X POST -H 'Content-Type:application/json' -H 'Accept:application/json' -d After the above command you should see a log similar to the following

- -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/process-service-calls-quarkus/operator/process-service-calls-quarkus.yaml b/kogito-quarkus-examples/process-service-calls-quarkus/operator/process-service-calls-quarkus.yaml deleted file mode 100644 index 604cfe0672..0000000000 --- a/kogito-quarkus-examples/process-service-calls-quarkus/operator/process-service-calls-quarkus.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-service-calls-quarkus -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-service-calls-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-service-calls-quarkus \ No newline at end of file diff --git a/kogito-quarkus-examples/process-service-calls-quarkus/pom.xml b/kogito-quarkus-examples/process-service-calls-quarkus/pom.xml index b1561b07c5..37737919cf 100644 --- a/kogito-quarkus-examples/process-service-calls-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-service-calls-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process Service Calls with Quarkus Kogito service invocation - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -68,8 +68,8 @@ quarkus-resteasy-jackson
- org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus diff --git a/kogito-quarkus-examples/process-timer-quarkus/README.md b/kogito-quarkus-examples/process-timer-quarkus/README.md index 002b44af58..74908c24bf 100644 --- a/kogito-quarkus-examples/process-timer-quarkus/README.md +++ b/kogito-quarkus-examples/process-timer-quarkus/README.md @@ -84,9 +84,9 @@ This needs to be given when starting process instance as delay attribute of type ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.3+ installed @@ -148,7 +148,7 @@ To be able to use Kogito Job Service as timer service , an additional dependency ```xml - org.kie.kogito + org.kie kogito-addons-quarkus-jobs-management ``` @@ -316,9 +316,3 @@ Before timer... waiting for R2/PT1S After Timer After Timer ``` - -## Deploy on OpenShift - -This example can run on OpenShift 4 instance. Use [Kogito operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift) to deploy this example and instantiate also the Jobs service. Kogito operator will take care of configuring this example to successfully connect to the Jobs service. - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the Kogito Operator. diff --git a/kogito-quarkus-examples/process-timer-quarkus/operator/jobs-service.yaml b/kogito-quarkus-examples/process-timer-quarkus/operator/jobs-service.yaml deleted file mode 100644 index 30fa9ed8cb..0000000000 --- a/kogito-quarkus-examples/process-timer-quarkus/operator/jobs-service.yaml +++ /dev/null @@ -1,43 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -#uncomment to enable persistence -##Infinispan operator should be pre-installed in namespace -#apiVersion: app.kiegroup.org/v1beta1 -#kind: KogitoInfra -#metadata: -# name: kogito-infinispan-infra -#spec: -# resource: -# apiVersion: infinispan.org/v1 -# kind: Infinispan -#--- -# deploy this service if you wish to enable Jobs Service integration. -# Make sure to follow "Use Kogito Job Service as external timer service" in the README -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoSupportingService -metadata: - name: jobs-service -spec: - serviceType: JobsService - replicas: 1 - #uncomment to enable persistence -# infra: -# - kogito-infinispan-infra - diff --git a/kogito-quarkus-examples/process-timer-quarkus/operator/process-timer-quarkus.yaml b/kogito-quarkus-examples/process-timer-quarkus/operator/process-timer-quarkus.yaml deleted file mode 100644 index cfccfbda03..0000000000 --- a/kogito-quarkus-examples/process-timer-quarkus/operator/process-timer-quarkus.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-timer-quarkus -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-timer-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-timer-quarkus \ No newline at end of file diff --git a/kogito-quarkus-examples/process-timer-quarkus/pom.xml b/kogito-quarkus-examples/process-timer-quarkus/pom.xml index 870943d671..a6970198a6 100644 --- a/kogito-quarkus-examples/process-timer-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-timer-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process Timer with Quarkus Kogito with timers - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -60,8 +60,8 @@ - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus @@ -78,14 +78,14 @@ - org.kie.kogito + org.kie kogito-addons-quarkus-jobs-management @@ -120,7 +120,7 @@ - org.kie.kogito + org.kie kogito-addons-quarkus-jobs-service-embedded diff --git a/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/README.md b/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/README.md index d86e426542..9b18f5c84f 100644 --- a/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/README.md +++ b/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/README.md @@ -54,9 +54,9 @@ To learn more about custom lifecycle, look at the following classes: ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.3+ installed @@ -265,7 +265,3 @@ You should see a similar message after performing the second line approval after ```json {"id":"f498de73-e02d-4829-905e-2f768479a4f1", "approver":"admin","firstLineApproval":true, "secondLineApproval":true,"traveller":{"firstName":"John","lastName":"Doe","email":"jon.doe@example.com","nationality":"American","address":{"street":"main street","city":"Boston","zipCode":"10005","country":"US"}}} ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/operator/process-usertasks-lifecycle-quarkus.yaml b/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/operator/process-usertasks-lifecycle-quarkus.yaml deleted file mode 100644 index adfe580a35..0000000000 --- a/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/operator/process-usertasks-lifecycle-quarkus.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-usertasks-lifecycle-quarkus -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-usertasks-lifecycle-quarkus \ No newline at end of file diff --git a/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/pom.xml b/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/pom.xml index 725314e0ab..187a22c05d 100644 --- a/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process Usertasks With Custom Lifecycle Kogito user tasks orchestration with custom life cycle - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -68,16 +68,16 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus org.kie.kogito process-workitems - org.kie.kogito - kogito-addons-quarkus-task-management + org.jbpm + jbpm-addons-quarkus-task-management io.quarkus @@ -103,12 +103,12 @@ notification - org.kie.kogito - kogito-addons-quarkus-mail + org.jbpm + jbpm-addons-quarkus-mail - org.kie.kogito - kogito-addons-quarkus-task-notification + org.jbpm + jbpm-addons-quarkus-task-notification io.quarkus diff --git a/kogito-quarkus-examples/process-usertasks-quarkus-with-console/README.md b/kogito-quarkus-examples/process-usertasks-quarkus-with-console/README.md index 0662085a5d..a2c92d324f 100644 --- a/kogito-quarkus-examples/process-usertasks-quarkus-with-console/README.md +++ b/kogito-quarkus-examples/process-usertasks-quarkus-with-console/README.md @@ -81,9 +81,9 @@ The required *Kogito and Infrastructure Services* for this example are: ### Prerequisites -* Java 11+ installed +* Java 17+ installed * Environment variable JAVA_HOME set accordingly -* Maven 3.8.6+ installed +* Maven 3.9.6+ installed * Docker and Docker Compose to run the required example infrastructure. And when using native image compilation, you will also need: diff --git a/kogito-quarkus-examples/process-usertasks-quarkus-with-console/pom.xml b/kogito-quarkus-examples/process-usertasks-quarkus-with-console/pom.xml index 5766794cf8..31c387074f 100644 --- a/kogito-quarkus-examples/process-usertasks-quarkus-with-console/pom.xml +++ b/kogito-quarkus-examples/process-usertasks-quarkus-with-console/pom.xml @@ -30,10 +30,10 @@ process-usertasks-quarkus-with-console Kogito Example :: Process with Usertasks Quarkus :: Console - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -59,8 +59,8 @@ - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus @@ -89,17 +89,17 @@ - org.kie.kogito - kogito-addons-quarkus-events-process + org.kie + kie-addons-quarkus-events-process - org.kie.kogito - kogito-addons-quarkus-process-management + org.kie + kie-addons-quarkus-process-management - org.kie.kogito - kogito-addons-quarkus-process-svg + org.kie + kie-addons-quarkus-process-svg @@ -119,8 +119,8 @@ test - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files @@ -150,8 +150,8 @@ - org.kie.kogito - kogito-addons-quarkus-persistence-infinispan + org.kie + kie-addons-quarkus-persistence-infinispan @@ -164,8 +164,8 @@ - org.kie.kogito - kogito-addons-quarkus-persistence-infinispan + org.kie + kie-addons-quarkus-persistence-infinispan @@ -202,8 +202,8 @@ - org.kie.kogito - kogito-addons-quarkus-persistence-jdbc + org.kie + kie-addons-quarkus-persistence-jdbc io.quarkus diff --git a/kogito-quarkus-examples/process-usertasks-quarkus/README.md b/kogito-quarkus-examples/process-usertasks-quarkus/README.md index 40f704c0a2..ff6548c8b2 100644 --- a/kogito-quarkus-examples/process-usertasks-quarkus/README.md +++ b/kogito-quarkus-examples/process-usertasks-quarkus/README.md @@ -42,9 +42,9 @@ This example shows ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.3+ installed @@ -201,7 +201,3 @@ You should see a similar message after performing the second line approval after ```json {"id":"f498de73-e02d-4829-905e-2f768479a4f1", "approver":"admin","firstLineApproval":true, "secondLineApproval":true,"traveller":{"firstName":"John","lastName":"Doe","email":"jon.doe@example.com","nationality":"American","address":{"street":"main street","city":"Boston","zipCode":"10005","country":"US"}}} ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/process-usertasks-quarkus/operator/process-usertasks-quarkus.yaml b/kogito-quarkus-examples/process-usertasks-quarkus/operator/process-usertasks-quarkus.yaml deleted file mode 100644 index 7ddab454d9..0000000000 --- a/kogito-quarkus-examples/process-usertasks-quarkus/operator/process-usertasks-quarkus.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-usertasks-quarkus -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-usertasks-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-usertasks-quarkus \ No newline at end of file diff --git a/kogito-quarkus-examples/process-usertasks-quarkus/pom.xml b/kogito-quarkus-examples/process-usertasks-quarkus/pom.xml index 8a0c0c01c0..82273f7520 100644 --- a/kogito-quarkus-examples/process-usertasks-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-usertasks-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process with Usertasks Quarkus Kogito user tasks orchestration - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -68,8 +68,8 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus @@ -90,8 +90,8 @@ quarkus-smallrye-health - org.kie.kogito - kogito-addons-quarkus-persistence-rocksdb + org.kie + kie-addons-quarkus-persistence-rocksdb diff --git a/kogito-quarkus-examples/process-usertasks-timer-data-index-persistence-addon-quarkus/docker-compose/docker-compose.yml b/kogito-quarkus-examples/process-usertasks-timer-data-index-persistence-addon-quarkus/docker-compose/docker-compose.yml index 0a057a07fc..7c10e20f1e 100644 --- a/kogito-quarkus-examples/process-usertasks-timer-data-index-persistence-addon-quarkus/docker-compose/docker-compose.yml +++ b/kogito-quarkus-examples/process-usertasks-timer-data-index-persistence-addon-quarkus/docker-compose/docker-compose.yml @@ -43,22 +43,19 @@ services: data-index: container_name: data-index - image: quay.io/kiegroup/kogito-data-index-postgresql:${KOGITO_VERSION} + image: quay.io/kiegroup/kogito-data-index-postgresql-nightly:${KOGITO_VERSION} profiles: [ "infra", "example", "full" ] ports: - "8180:8080" depends_on: postgres: condition: service_healthy - volumes: - - ./persistence:/home/kogito/data/protobufs/ environment: QUARKUS_DATASOURCE_JDBC_URL: "jdbc:postgresql://postgres:5432/kogito" QUARKUS_DATASOURCE_USERNAME: kogito-user QUARKUS_DATASOURCE_PASSWORD: kogito-pass QUARKUS_HTTP_CORS_ORIGINS: "/.*/" KOGITO_DATA_INDEX_QUARKUS_PROFILE: "http-events-support" - KOGITO_DATA_INDEX_PROPS: -Dkogito.protobuf.folder=/home/kogito/data/protobufs/ extra_hosts: - "${DOCKER_GATEWAY_HOST}:host-gateway" diff --git a/kogito-quarkus-examples/process-usertasks-timer-data-index-persistence-addon-quarkus/docker-compose/startServices.sh b/kogito-quarkus-examples/process-usertasks-timer-data-index-persistence-addon-quarkus/docker-compose/startServices.sh index 5ff991124a..4aebd0e1b3 100755 --- a/kogito-quarkus-examples/process-usertasks-timer-data-index-persistence-addon-quarkus/docker-compose/startServices.sh +++ b/kogito-quarkus-examples/process-usertasks-timer-data-index-persistence-addon-quarkus/docker-compose/startServices.sh @@ -38,13 +38,6 @@ elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then echo "DOCKER_GATEWAY_HOST=172.17.0.1" >> ".env" fi -if [ ! -d "./persistence" ] -then - echo "$KOGITO_EXAMPLE_PERSISTENCE does not exist. Have you compiled the project? mvn clean install -DskipTests" - exit 1 -fi -PERSISTENCE_FOLDER=./persistence - if [ ! -d "./svg" ] then echo "$KOGITO_EXAMPLE_SVG_FOLDER does not exist. Have you compiled the project? mvn clean install -DskipTests" diff --git a/kogito-quarkus-examples/process-usertasks-timer-data-index-persistence-addon-quarkus/pom.xml b/kogito-quarkus-examples/process-usertasks-timer-data-index-persistence-addon-quarkus/pom.xml index 9843eec268..2388b56b22 100644 --- a/kogito-quarkus-examples/process-usertasks-timer-data-index-persistence-addon-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-usertasks-timer-data-index-persistence-addon-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process Usertasks with Timer Data Index persistence addon Quarkus Kogito user tasks orchestration with security enabled on REST api using the Data Index Persistence addon - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom kogito-apps-bom @@ -84,30 +84,30 @@ - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus - org.kie.kogito - kogito-quarkus-processes + org.jbpm + jbpm-quarkus - org.kie.kogito - kogito-addons-quarkus-process-management + org.kie + kie-addons-quarkus-process-management - org.kie.kogito + org.kie kogito-addons-quarkus-jobs-management - org.kie.kogito - kogito-addons-quarkus-process-svg + org.kie + kie-addons-quarkus-process-svg - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files @@ -120,19 +120,19 @@ quarkus-agroal
- org.kie.kogito - kogito-addons-quarkus-persistence-jdbc + org.kie + kie-addons-quarkus-persistence-jdbc - org.kie.kogito + org.kie kogito-addons-quarkus-data-index-persistence-postgresql - org.kie.kogito + org.kie kogito-addons-quarkus-jobs @@ -142,12 +142,12 @@ - org.kie.kogito - kogito-addons-data-audit-jpa-quarkus + org.kie + kogito-addons-quarkus-data-audit-jpa - org.kie.kogito - kogito-addons-data-audit-quarkus + org.kie + kogito-addons-quarkus-data-audit
@@ -170,8 +170,8 @@
- org.kie.kogito - runtime-tools-quarkus-extension + org.jbpm + jbpm-quarkus-devui @@ -211,9 +211,6 @@ - - - diff --git a/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/README.md b/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/README.md index b994a22213..6ad8af5e3b 100644 --- a/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/README.md +++ b/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/README.md @@ -25,9 +25,9 @@ The required *Kogito and Infrastructure Services* for this example are: ### Prerequisites -* Java 11+ installed +* Java 17+ installed * Environment variable JAVA_HOME set accordingly -* Maven 3.8.6+ installed +* Maven 3.9.6+ installed * Docker and Docker Compose to run the required example infrastructure. And when using native image compilation, you will also need: diff --git a/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/pom.xml b/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/pom.xml index a31e87b611..04cdbea30e 100644 --- a/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/pom.xml +++ b/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/pom.xml @@ -30,10 +30,10 @@ process-usertasks-timer-quarkus-with-console Kogito Example :: Process UserTasks with Timer Quarkus :: Console - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -59,8 +59,8 @@ - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus @@ -89,21 +89,21 @@ - org.kie.kogito - kogito-addons-quarkus-events-process + org.kie + kie-addons-quarkus-events-process - org.kie.kogito - kogito-addons-quarkus-process-management + org.kie + kie-addons-quarkus-process-management - org.kie.kogito + org.kie kogito-addons-quarkus-jobs-management - org.kie.kogito - kogito-addons-quarkus-process-svg + org.kie + kie-addons-quarkus-process-svg @@ -123,8 +123,8 @@ test - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files @@ -154,8 +154,8 @@ - org.kie.kogito - kogito-addons-quarkus-persistence-infinispan + org.kie + kie-addons-quarkus-persistence-infinispan @@ -167,8 +167,8 @@ - org.kie.kogito - kogito-addons-quarkus-persistence-infinispan + org.kie + kie-addons-quarkus-persistence-infinispan @@ -205,8 +205,8 @@
- org.kie.kogito - kogito-addons-quarkus-persistence-jdbc + org.kie + kie-addons-quarkus-persistence-jdbc io.quarkus diff --git a/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus-with-console/README.md b/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus-with-console/README.md index d934c40ae0..9c88e4641b 100644 --- a/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus-with-console/README.md +++ b/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus-with-console/README.md @@ -24,9 +24,9 @@ This example shows ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed - [jq](https://stedolan.github.io/jq) tool installed. You can download it from [here](https://stedolan.github.io/jq/download) - Docker and Docker Compose to run the required example infrastructure. diff --git a/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus-with-console/pom.xml b/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus-with-console/pom.xml index c1ae763226..b3be304537 100644 --- a/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus-with-console/pom.xml +++ b/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus-with-console/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process Usertasks Security OIDC Keycloak Quarkus :: Console Kogito user tasks orchestration with security enabled on REST api - open id connect adapter(keycloak) - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -60,8 +60,8 @@ - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus @@ -82,8 +82,8 @@ - org.kie.kogito - kogito-addons-quarkus-persistence-infinispan + org.kie + kie-addons-quarkus-persistence-infinispan @@ -96,17 +96,17 @@ - org.kie.kogito - kogito-addons-quarkus-events-process + org.kie + kie-addons-quarkus-events-process - org.kie.kogito - kogito-addons-quarkus-process-management + org.kie + kie-addons-quarkus-process-management - org.kie.kogito - kogito-addons-quarkus-process-svg + org.kie + kie-addons-quarkus-process-svg @@ -135,8 +135,8 @@ quarkus-smallrye-health - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files diff --git a/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/README.md b/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/README.md index 9257226808..31aee80af1 100644 --- a/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/README.md +++ b/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/README.md @@ -22,9 +22,9 @@ This example shows ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed - [jq](https://stedolan.github.io/jq) tool installed. You can download it from [here](https://stedolan.github.io/jq/download) - Docker diff --git a/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/pom.xml b/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/pom.xml index 244bab9fcd..e977d5283e 100644 --- a/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process Usertasks With Security OIDC Keycloak Quarkus Kogito user tasks orchestration with security enabled on REST api - open id connect adapter(keycloak) - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -76,8 +76,8 @@ quarkus-jsonp - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus diff --git a/kogito-quarkus-examples/process-usertasks-with-security-quarkus/README.md b/kogito-quarkus-examples/process-usertasks-with-security-quarkus/README.md index 46029a5d58..fce12e858f 100644 --- a/kogito-quarkus-examples/process-usertasks-with-security-quarkus/README.md +++ b/kogito-quarkus-examples/process-usertasks-with-security-quarkus/README.md @@ -22,9 +22,9 @@ This example shows ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.1+ installed @@ -173,7 +173,3 @@ plus the approver who made the first one. } } ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/process-usertasks-with-security-quarkus/operator/process-tasks-security-quarkus.yaml b/kogito-quarkus-examples/process-usertasks-with-security-quarkus/operator/process-tasks-security-quarkus.yaml deleted file mode 100644 index 04f2b5cf90..0000000000 --- a/kogito-quarkus-examples/process-usertasks-with-security-quarkus/operator/process-tasks-security-quarkus.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-tasks-security-quarkus -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-usertasks-with-security-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-tasks-security-quarkus \ No newline at end of file diff --git a/kogito-quarkus-examples/process-usertasks-with-security-quarkus/pom.xml b/kogito-quarkus-examples/process-usertasks-with-security-quarkus/pom.xml index 8a3c60abe2..94d56c0bcd 100644 --- a/kogito-quarkus-examples/process-usertasks-with-security-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-usertasks-with-security-quarkus/pom.xml @@ -31,10 +31,10 @@ Kogito Example :: Process Usertasks With Security Quarkus Kogito user tasks orchestration with security enabled on REST api - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -68,8 +68,8 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-quarkus + org.jbpm + jbpm-with-drools-quarkus io.quarkus diff --git a/kogito-quarkus-examples/rules-incubation-api-quarkus/README.md b/kogito-quarkus-examples/rules-incubation-api-quarkus/README.md index 40f0ec36b9..004207a5ac 100644 --- a/kogito-quarkus-examples/rules-incubation-api-quarkus/README.md +++ b/kogito-quarkus-examples/rules-incubation-api-quarkus/README.md @@ -17,9 +17,9 @@ The custom REST endpoint evaluates a rule unit that returns a hello world messag ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed ### Compile and Run in Local Dev Mode diff --git a/kogito-quarkus-examples/rules-incubation-api-quarkus/pom.xml b/kogito-quarkus-examples/rules-incubation-api-quarkus/pom.xml index 7fe3f1f94c..bcdc81069e 100644 --- a/kogito-quarkus-examples/rules-incubation-api-quarkus/pom.xml +++ b/kogito-quarkus-examples/rules-incubation-api-quarkus/pom.xml @@ -30,10 +30,10 @@ rules-incubation-api-quarkus Kogito Example :: Rules Incubation API With Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -67,8 +67,8 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-quarkus-rules + org.drools + drools-quarkus-rules io.quarkus diff --git a/kogito-quarkus-examples/rules-legacy-quarkus-example/README.md b/kogito-quarkus-examples/rules-legacy-quarkus-example/README.md index 39d07ba0a1..2bfb609983 100644 --- a/kogito-quarkus-examples/rules-legacy-quarkus-example/README.md +++ b/kogito-quarkus-examples/rules-legacy-quarkus-example/README.md @@ -11,9 +11,9 @@ An injectable KieRuntimeBuilder is generated, so you can create Drools v7 KieBas ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVM 21.1.0](https://github.com/graalvm/graalvm-ce-builds/releases/tag/vm-21.1.0) installed diff --git a/kogito-quarkus-examples/rules-legacy-quarkus-example/pom.xml b/kogito-quarkus-examples/rules-legacy-quarkus-example/pom.xml index 2c0c1dbda9..d121a90b73 100644 --- a/kogito-quarkus-examples/rules-legacy-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/rules-legacy-quarkus-example/pom.xml @@ -30,10 +30,10 @@ rules-legacy-quarkus-example Kogito Example :: Rules Legacy API - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -59,8 +59,8 @@ - org.kie.kogito - kogito-quarkus-rules + org.drools + drools-quarkus-rules io.quarkus diff --git a/kogito-quarkus-examples/rules-quarkus-helloworld/README.md b/kogito-quarkus-examples/rules-quarkus-helloworld/README.md index 5ad78a8941..1ab5d159af 100644 --- a/kogito-quarkus-examples/rules-quarkus-helloworld/README.md +++ b/kogito-quarkus-examples/rules-quarkus-helloworld/README.md @@ -9,9 +9,9 @@ A minimal hello world rule service. ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVM 19.1.1](https://github.com/oracle/graal/releases/tag/vm-19.1.1) installed @@ -66,7 +66,3 @@ curl -H "Content-Type: application/json" -X POST -d '{"strings":["hello"]}' http ``` the service will return `["hello", "world"]` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/rules-quarkus-helloworld/operator/rules-quarkus-helloworld.yaml b/kogito-quarkus-examples/rules-quarkus-helloworld/operator/rules-quarkus-helloworld.yaml deleted file mode 100644 index 4e7885e3e9..0000000000 --- a/kogito-quarkus-examples/rules-quarkus-helloworld/operator/rules-quarkus-helloworld.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: rules-quarkus-helloworld -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/rules-quarkus-helloworld - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: rules-quarkus-helloworld diff --git a/kogito-quarkus-examples/rules-quarkus-helloworld/pom.xml b/kogito-quarkus-examples/rules-quarkus-helloworld/pom.xml index 425bbcafcf..231d9eb4c7 100755 --- a/kogito-quarkus-examples/rules-quarkus-helloworld/pom.xml +++ b/kogito-quarkus-examples/rules-quarkus-helloworld/pom.xml @@ -30,10 +30,10 @@ rules-quarkus-helloworld Kogito Example :: Rules HelloWorld - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -59,8 +59,8 @@ - org.kie.kogito - kogito-quarkus-rules + org.drools + drools-quarkus-rules io.quarkus diff --git a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/README.md b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/README.md index 504e15027f..b73807e272 100644 --- a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/README.md +++ b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/README.md @@ -14,9 +14,9 @@ The main goal behind the addon is to allow Kogito DRL services to be used as par ### Prerequisites You will need: -- Java 11+ installed +- Java 17+ installed - Environment variable JAVA_HOME set accordingly -- Maven 3.8.6+ installed +- Maven 3.9.6+ installed - [Docker Engine](https://docs.docker.com/engine/) and [Docker Compose](https://docs.docker.com/compose/) installed When using native image compilation, you will also need: @@ -30,8 +30,8 @@ Like the other Kogito AddOns, the only required step to enable it is to include ```xml - org.kie.kogito - kogito-addons-quarkus-events-rules + org.drools + drools-addons-quarkus-events-rules ``` diff --git a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/pom.xml b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/pom.xml index 81e7cca553..02ffc3aca6 100644 --- a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/pom.xml +++ b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/pom.xml @@ -32,10 +32,10 @@ ruleunit-event-driven-quarkus Kogito Example :: Rule Unit Event-Driven :: Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -61,13 +61,13 @@ - org.kie.kogito - kogito-quarkus-rules + org.drools + drools-quarkus-rules - org.kie.kogito - kogito-addons-quarkus-events-rules + org.drools + drools-addons-quarkus-events-rules diff --git a/kogito-quarkus-examples/ruleunit-quarkus-example/README.md b/kogito-quarkus-examples/ruleunit-quarkus-example/README.md index fbfee94e76..24b5ca60fd 100644 --- a/kogito-quarkus-examples/ruleunit-quarkus-example/README.md +++ b/kogito-quarkus-examples/ruleunit-quarkus-example/README.md @@ -11,9 +11,9 @@ REST endpoints are generated from query rules. You can insert `LoanApplication` ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVM 19.2.1](https://github.com/oracle/graal/releases/tag/vm-19.2.1) installed @@ -123,7 +123,3 @@ Example response: } ] ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/ruleunit-quarkus-example/operator/ruleunit-quarkus-example.yaml b/kogito-quarkus-examples/ruleunit-quarkus-example/operator/ruleunit-quarkus-example.yaml deleted file mode 100644 index cbf179d3cf..0000000000 --- a/kogito-quarkus-examples/ruleunit-quarkus-example/operator/ruleunit-quarkus-example.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: ruleunit-quarkus-example -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/ruleunit-quarkus-example - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: ruleunit-quarkus-example \ No newline at end of file diff --git a/kogito-quarkus-examples/ruleunit-quarkus-example/pom.xml b/kogito-quarkus-examples/ruleunit-quarkus-example/pom.xml index 528d4171ed..53df702943 100644 --- a/kogito-quarkus-examples/ruleunit-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/ruleunit-quarkus-example/pom.xml @@ -30,10 +30,10 @@ ruleunit-quarkus-example Kogito Example :: RuleUnit - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -59,8 +59,8 @@ - org.kie.kogito - kogito-quarkus-rules + org.drools + drools-quarkus-rules io.quarkus diff --git a/kogito-quarkus-examples/trusty-demonstration/README.md b/kogito-quarkus-examples/trusty-demonstration/README.md deleted file mode 100644 index 224c851e77..0000000000 --- a/kogito-quarkus-examples/trusty-demonstration/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# Trusty demonstation - -This is a demonstration of the trusty AI tracing capabilities. - -NOTE: In order to play with the demo, ensure that you are on the stable branch or on the branch of a specific release (for example the branch for the release `0.17` is `0.17.x`). -The `main` branch is aligned to the latest changes in all the repositories. This means that `main` might be using some new operator features not included in the release that we use in this demo: don't use it! - -In the two subfolders [kubernetes](/kubernetes) and [docker-compose](/docker-compose) you can find all the instructions to run the demo on `kubernetes` and `docker-compose`. \ No newline at end of file diff --git a/kogito-quarkus-examples/trusty-demonstration/docker-compose/README.md b/kogito-quarkus-examples/trusty-demonstration/docker-compose/README.md deleted file mode 100644 index e1047dbb02..0000000000 --- a/kogito-quarkus-examples/trusty-demonstration/docker-compose/README.md +++ /dev/null @@ -1,57 +0,0 @@ -# Trusty demonstation - -This is a demonstration of the trusty AI tracing capabilities. - -NOTE: In order to play with the demo, ensure that you are on the stable branch or on the branch of a specific release (for example the branch for the release `0.17` is `0.17.x`). -The `main` branch is aligned to the latest changes in all the repositories. This means that `main` might be using some new operator features not included in the release that we use in this demo: don't use it! - -## Requirements - -- docker version > 19.03.12 -- java version > 11 -- maven version > 3.8.1 -- docker-compose version > 1.25.2 - -Note: also previous versions of `docker` and `docker-compose` might work, but they were not tested. - -## Build your kogito runtime application - -In this example, we will use the `dmn-tracing-quarkus` application that you can find in the root of this repository. This kogito application is using the `tracing-addon` so to export the tracing information that will be used by the trusty and explainability services for further analysis. - -Navigate under the folder `kogito-examples/kogito-quarkus-examples/dmn-tracing-quarkus` and run -```bash -mvn clean package -DskipTests -``` - -Copy the generated dashboards from `dmn-tracing-quarkus/target/classes/META-INF/resources/monitoring/dashboards/*` to the directory `trusty-demonstration/docker-compose/grafana/provisioning/dashboards`. - -Now you need to have an account on a remote hub like `quay` or `dockerhub` for example. Assuming that you have an account on `quay` and you are using `docker`, build the image with -```bash -docker build --tag quay.io//dmn-tracing-quarkus:1.0.0 . -``` -replacing the string `` with your namespace (i.e. your username). - -Push the image -```bash -docker push quay.io//dmn-tracing-quarkus:1.0.0 -``` - -## Deploy the services with docker-compose - -Switch to the current directory `trusty-demonstration/docker-compose` and edit the `docker-compose.yml` file and replace the image for the service `kogito-app` with the image tag you've just created (`quay.io//dmn-tracing-quarkus:1.0.0`). - -Then simply start it with - -```bash -docker-compose up -``` - -The applications will be available in few minutes at the following addresses: -- Kogito application: [http://localhost:8080](http://localhost:8080). You can use the swagger-ui at the address [http://localhost:8080/swagger-ui](http://localhost:8080/swagger-ui) and execute a simple request for example with the following payload -```JSON -{"Bribe": 1000,"Client": {"age": 43,"existing payments": 100,"salary": 1950},"Loan": {"duration": 15,"installment": 180}, "SupremeDirector": "Yes"} -``` -- AuditUI: [http://localhost:1338](http://localhost:1338). -- Grafana: [http://localhost:3000](http://localhost:3000). - -For more info about the AuditUI, you can have a look at the [official documentation](https://docs.jboss.org/kogito/release/latest/html_single/#proc-audit-console-using_kogito-dmn-models). Note that the documentation covers the scenario of the AuditUI deployed with the Kogito Operator on Openshift, but the part specific for the AuditUI (alias for trusty-ui) is valid for this scenario as well. \ No newline at end of file diff --git a/kogito-quarkus-examples/trusty-demonstration/docker-compose/docker-compose.yml b/kogito-quarkus-examples/trusty-demonstration/docker-compose/docker-compose.yml deleted file mode 100644 index af85530ae6..0000000000 --- a/kogito-quarkus-examples/trusty-demonstration/docker-compose/docker-compose.yml +++ /dev/null @@ -1,128 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -version: '2' - -services: - zookeeper: - image: wurstmeister/zookeeper:3.4.6 - ports: - - "2181:2181" - environment: - LOG_DIR: "/tmp/logs" - - kafka: - image: wurstmeister/kafka:2.12-2.2.1 - depends_on: - - zookeeper - ports: - - "9092:9092" - expose: - - "9093" - environment: - KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:9092 - KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT - KAFKA_LISTENERS: INSIDE://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092 - KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 - KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE - LOG_DIR: "/tmp/logs" - - kafdrop: - image: obsidiandynamics/kafdrop - depends_on: - - kafka - ports: - - "9000:9000" - environment: - KAFKA_BROKERCONNECT: "kafka:9093" - JVM_OPTS: "-Xms32M -Xmx64M" - SERVER_SERVLET_CONTEXTPATH: "/" - - infinispan: - image: infinispan/server:14.0.4.Final - container_name: infinispan - ports: - - "11222:11222" - command: "-c infinispan-demo.xml" - volumes: - - ./infinispan/infinispan.xml:/opt/infinispan/server/conf/infinispan-demo.xml:z - - kogito-app: - image: quay.io//dmn-tracing-quarkus:1.0.0 - ports: - - 8080:8080 - environment: - KAFKA_BOOTSTRAP_SERVERS: kafka:9093 - KOGITO_SERVICE_URL: http://kogito-app:8080 - depends_on: - - kafka - - explainability: - image: quay.io/kiegroup/kogito-explainability:1.5 - depends_on: - - kafka - - kogito-app - environment: - KAFKA_BOOTSTRAP_SERVERS: kafka:9093 - KAFKA_APPLICATION_FAILURE_STRATEGY: "ignore" - ports: - - 1336:8080 - - trusty: - image: quay.io/kiegroup/kogito-trusty-infinispan:1.5 - depends_on: - - kafka - - infinispan - environment: - KAFKA_BOOTSTRAP_SERVERS: kafka:9093 - QUARKUS_INFINISPAN_CLIENT_HOSTS: infinispan:11222 - QUARKUS_INFINISPAN_CLIENT_USE_AUTH: "false" - KAFKA_APPLICATION_FAILURE_STRATEGY: "ignore" - ports: - - 1337:8080 - - trusty-ui: - image: quay.io/kiegroup/kogito-trusty-ui:1.5 - depends_on: - - kafka - environment: - KOGITO_TRUSTY_ENDPOINT: http://localhost:1337 - ports: - - 1338:8080 - - prometheus: - image: prom/prometheus:v2.8.0 - volumes: - - ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml - command: - - '--config.file=/etc/prometheus/prometheus.yml' - ports: - - '9090:9090' - depends_on: - - kogito-app - - grafana: - image: grafana/grafana:6.6.1 - depends_on: - - prometheus - ports: - - 3000:3000 - volumes: - - ./grafana/provisioning/:/etc/grafana/provisioning/ - - ./grafana/grafana.ini:/etc/grafana/grafana.ini diff --git a/kogito-quarkus-examples/trusty-demonstration/docker-compose/grafana/grafana.ini b/kogito-quarkus-examples/trusty-demonstration/docker-compose/grafana/grafana.ini deleted file mode 100755 index 208ef27194..0000000000 --- a/kogito-quarkus-examples/trusty-demonstration/docker-compose/grafana/grafana.ini +++ /dev/null @@ -1,3 +0,0 @@ -[auth.anonymous] -enabled = true -org_role = Admin diff --git a/kogito-quarkus-examples/trusty-demonstration/docker-compose/grafana/provisioning/datasources/datasource.yml b/kogito-quarkus-examples/trusty-demonstration/docker-compose/grafana/provisioning/datasources/datasource.yml deleted file mode 100755 index 14e5b05c55..0000000000 --- a/kogito-quarkus-examples/trusty-demonstration/docker-compose/grafana/provisioning/datasources/datasource.yml +++ /dev/null @@ -1,69 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -# config file version -apiVersion: 1 - -# list of datasources that should be deleted from the database -deleteDatasources: - - name: Prometheus - orgId: 1 - -# list of datasources to insert/update depending -# whats available in the database -datasources: - # name of the datasource. Required -- name: Prometheus - # datasource type. Required - type: prometheus - # access mode. direct or proxy. Required - access: proxy - # org id. will default to orgId 1 if not specified - orgId: 1 - # url - url: http://prometheus:9090 - # database password, if used - password: - # database user, if used - user: - # database name, if used - database: - # enable/disable basic auth - basicAuth: true - # basic auth username - basicAuthUser: admin - # basic auth password - basicAuthPassword: foobar - # enable/disable with credentials headers - withCredentials: - # mark as default datasource. Max one per org - isDefault: true - # fields that will be converted to json and stored in json_data - jsonData: - graphiteVersion: "1.1" - tlsAuth: false - tlsAuthWithCACert: false - # json object of data that will be encrypted. - secureJsonData: - tlsCACert: "..." - tlsClientCert: "..." - tlsClientKey: "..." - version: 1 - # allow users to edit datasources from the UI. - editable: true diff --git a/kogito-quarkus-examples/trusty-demonstration/docker-compose/infinispan/infinispan.xml b/kogito-quarkus-examples/trusty-demonstration/docker-compose/infinispan/infinispan.xml deleted file mode 100644 index a466561b9f..0000000000 --- a/kogito-quarkus-examples/trusty-demonstration/docker-compose/infinispan/infinispan.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/kogito-quarkus-examples/trusty-demonstration/kubernetes/README.md b/kogito-quarkus-examples/trusty-demonstration/kubernetes/README.md deleted file mode 100644 index 3ae346ef44..0000000000 --- a/kogito-quarkus-examples/trusty-demonstration/kubernetes/README.md +++ /dev/null @@ -1,187 +0,0 @@ -# Trusty demonstation - -This is a demonstration of the trusty AI tracing capabilities. - -NOTE: In order to play with the demo, ensure that you are on the stable branch or on the branch of a specific release (for example the branch for the release `0.17` is `0.17.x`). -The `main` branch is aligned to the latest changes in all the repositories. This means that `main` might be using some new operator features not included in the release that we use in this demo: don't use it! - -## Requirements - -- docker version > 19.03.12 -- minikube version > 1.16.0 -- java version > 11 -- maven version > 3.8.1 -- kubernetes version > 1.20 - -Note: also previous versions of `docker`, `minikube` and `kubernetes` might work, but they were not tested. - -## Build your kogito runtime application - -In this example, we will use the `dmn-tracing-quarkus` application that you can find in the root of this repository. This kogito application is using the `tracing-addon` so to export the tracing information that will be used by the trusty and explainability services for further analysis. - -Navigate under the folder `kogito-examples/kogito-quarkus-examples/dmn-tracing-quarkus` and run -```bash -mvn clean package -DskipTests -``` - -Now you need to have an account on a remote hub like `quay` or `dockerhub` for example. Assuming that you have an account on `quay` and you are using `docker`, build the image with -```bash -docker build --tag quay.io//dmn-tracing-quarkus:1.0.0 . -``` -replacing the string `` with your namespace (i.e. your username). - -Push the image -```bash -docker push quay.io//dmn-tracing-quarkus:1.0.0 -``` - -## Deploy the infrastructure with minishift/kubernetes - -Navigate back to the current directory where this `README.md` file is stored. - -The first step is to start your `minikube` cluster: - -```bash -minikube start -minikube addons enable ingress -minikube addons enable olm -``` - -Create a new project called (for example) `trusty-demo` - -```bash -PROJECT_NAME=trusty-demo -kubectl create namespace "$PROJECT_NAME" -``` - -Set the Kogito release version - -```bash -KOGITO_VERSION=v1.5.0 -``` - -Deploy the kogito operator in the cluster -```bash -wget https://github.com/apache/incubator-kie-kogito-operator/releases/download/${KOGITO_VERSION}/kogito-operator.yaml -kubectl apply -f kogito-operator.yaml -``` - -You should see that the `kogito-operator` has one pod running within some minutes: the command `kubectl get pods -n kogito-operator-system` should return something like - -```bash -NAME READY STATUS RESTARTS AGE -kogito-operator-controller-manager-7456474485-hn89d 2/2 Running 0 63s - -``` - -Install the [Infinispan operator](https://operatorhub.io/operator/infinispan/2.0.x/infinispan-operator.v2.0.6) version 2.0.6. -Pay attention that by default the Infinispan operator is installed on the namespace `my-infinispan`. You have to download the `yaml` file and change the namespace of the custom resources accordingly to your namespace. - -```bash -wget https://operatorhub.io/install/2.0.x/infinispan.yaml -sed -i "s/namespace: my-infinispan/namespace: ${PROJECT_NAME}/g" infinispan.yaml -sed -i "s/- my-infinispan/- ${PROJECT_NAME}/g" infinispan.yaml -kubectl apply -f infinispan.yaml -n ${PROJECT_NAME} -``` - -If the infinispan operator does not show under your namespace, please ensure that all the pods under the namespace `olm` are up and running. If the catalog pod is in Crashloop status, the workaround is to delete the pod and wait until it gets redeployed automatically. - -Install `strimzi` operator with - -```bash -TARGET_DIR="." -STRIMZI_VERSION=0.28.0 - -wget "https://github.com/strimzi/strimzi-kafka-operator/releases/download/${STRIMZI_VERSION}/strimzi-${STRIMZI_VERSION}.tar.gz" -P "$TARGET_DIR/" -tar zxf "${TARGET_DIR}/strimzi-${STRIMZI_VERSION}.tar.gz" -C "$TARGET_DIR" -find strimzi-${STRIMZI_VERSION}/install/cluster-operator -name '*RoleBinding*.yaml' -type f -exec sed -i "s/namespace: .*/namespace: ${PROJECT_NAME}/" {} \; -kubectl apply -f strimzi-${STRIMZI_VERSION}/install/cluster-operator/ -n ${PROJECT_NAME} -``` - -Deploy kafka and infinispan resources with -```bash -kubectl apply -f resources/kafka.yaml -n ${PROJECT_NAME} -kubectl apply -f resources/kafka-topics.yaml -n ${PROJECT_NAME} -kubectl apply -f resources/infinispan-minimal.yaml -n ${PROJECT_NAME} -``` - -Deploy the `KogitoInfra` custom resources, so that the Kogito operator bind the kogito applications with the infinispan and kafka resources. -```bash -kubectl apply -f resources/kogito-infra.yaml -n ${PROJECT_NAME} -``` - -Deploy the Trusty service and expose it - -```bash -kubectl apply -f resources/trusty.yaml -n ${PROJECT_NAME} -kubectl expose deployment trusty -n ${PROJECT_NAME} --type=NodePort --name=trusty-np -minikube service trusty-np -n ${PROJECT_NAME} -``` - -Take the exposed address and replace the env variables `KOGITO_TRUSTY_ENDPOINT` and `KOGITO_TRUSTY_WS_URL` in the file `resources/trusty-ui.yaml`. For example, if the address is `http://172.17.0.2:1337`, then the content of the file should be -```bash -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoSupportingService -metadata: - name: trusty-ui -spec: - serviceType: TrustyUI - replicas: 1 - image: quay.io/kiegroup/kogito-trusty-ui:1.4 - env: - - name: KOGITO_TRUSTY_ENDPOINT - value: http://172.17.0.2:1337 - - name: KOGITO_TRUSTY_WS_URL - value: ws://172.17.0.2:1337 -``` - -Modify the content of the file `resources/dmn-tracing-quarkus.yaml` with the information you used in the first section. The content should look like the following - -```yaml -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: dmn-tracing-quarkus - labels: - app: dmn-tracing-quarkus -spec: - replicas: 1 - image: quay.io//dmn-tracing-quarkus:999-SNAPSHOT # <---- replace with your image - infra: - - kogito-kafka-infra - env: - - name: KOGITO_SERVICE_URL - value: http://dmn-tracing-quarkus:8080 -``` - -It's time to deploy all the resources with the commands -```bash -kubectl apply -f resources/trusty-ui.yaml -n ${PROJECT_NAME} -kubectl apply -f resources/explainability.yaml -n ${PROJECT_NAME} -kubectl apply -f resources/dmn-tracing-quarkus.yaml -n ${PROJECT_NAME} -``` - -Expose the Kogito runtime service with - -```bash -kubectl expose deployment dmn-tracing-quarkus -n ${PROJECT_NAME} --type=NodePort --name=dmn-tracing-quarkus-np -minikube service dmn-tracing-quarkus-np -n ${PROJECT_NAME} -``` - -A new tab in your browser should be opened automatically. Navigate under the path `/q/swagger-ui` and execute a post request on the endpoint `LoanEligibility` with the following payload: -```json -{"Bribe": 1000,"Client": {"age": 43,"existing payments": 100,"salary": 1950},"Loan": {"duration": 15,"installment": 180}, "SupremeDirector": "Yes"} -``` - -![SwaggerUI](images/swagger-ui.png) - -Expose the audit ui (alias trusty-ui) with -```bash -kubectl expose deployment trusty-ui -n ${PROJECT_NAME} --type=NodePort --name=trusty-ui-np -minikube service trusty-ui-np -n ${PROJECT_NAME} -``` - -And navigate through the decisions that have been taken by the kogito-runtime service. Enjoy! - -![ExecutionList](images/executionsTrustyUI.png) -![ExecutionDetail](images/executionDetail.png) diff --git a/kogito-quarkus-examples/trusty-demonstration/kubernetes/images/executionDetail.png b/kogito-quarkus-examples/trusty-demonstration/kubernetes/images/executionDetail.png deleted file mode 100644 index 5e59b35a2c..0000000000 Binary files a/kogito-quarkus-examples/trusty-demonstration/kubernetes/images/executionDetail.png and /dev/null differ diff --git a/kogito-quarkus-examples/trusty-demonstration/kubernetes/images/executionsTrustyUI.png b/kogito-quarkus-examples/trusty-demonstration/kubernetes/images/executionsTrustyUI.png deleted file mode 100644 index ad0de61782..0000000000 Binary files a/kogito-quarkus-examples/trusty-demonstration/kubernetes/images/executionsTrustyUI.png and /dev/null differ diff --git a/kogito-quarkus-examples/trusty-demonstration/kubernetes/images/swagger-ui.png b/kogito-quarkus-examples/trusty-demonstration/kubernetes/images/swagger-ui.png deleted file mode 100644 index 5fad0c5d3a..0000000000 Binary files a/kogito-quarkus-examples/trusty-demonstration/kubernetes/images/swagger-ui.png and /dev/null differ diff --git a/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/dmn-tracing-quarkus.yaml b/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/dmn-tracing-quarkus.yaml deleted file mode 100644 index 8a77f6d563..0000000000 --- a/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/dmn-tracing-quarkus.yaml +++ /dev/null @@ -1,33 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: dmn-tracing-quarkus - labels: - app: dmn-tracing-quarkus -spec: - replicas: 1 - image: quay.io//dmn-tracing-quarkus:999-SNAPSHOT # <---- replace with your image - infra: - - kogito-kafka-infra - env: - - name: KOGITO_SERVICE_URL - value: http://dmn-tracing-quarkus:8080 diff --git a/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/kafka-topics.yaml b/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/kafka-topics.yaml deleted file mode 100644 index c4d40383d8..0000000000 --- a/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/kafka-topics.yaml +++ /dev/null @@ -1,59 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: kafka.strimzi.io/v1beta2 -kind: KafkaTopic -metadata: - name: trusty-explainability-request - labels: - strimzi.io/cluster: "my-cluster" -spec: - partitions: 1 - replicas: 1 ---- -apiVersion: kafka.strimzi.io/v1beta2 -kind: KafkaTopic -metadata: - name: trusty-explainability-result - labels: - strimzi.io/cluster: "my-cluster" -spec: - partitions: 1 - replicas: 1 ---- -apiVersion: kafka.strimzi.io/v1beta2 -kind: KafkaTopic -metadata: - name: kogito-tracing-decision - labels: - strimzi.io/cluster: "my-cluster" -spec: - partitions: 1 - replicas: 1 ---- -apiVersion: kafka.strimzi.io/v1beta2 -kind: KafkaTopic -metadata: - name: kogito-tracing-model - labels: - strimzi.io/cluster: "my-cluster" -spec: - partitions: 1 - replicas: 1 ---- \ No newline at end of file diff --git a/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/kafka.yaml b/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/kafka.yaml deleted file mode 100644 index 5968354c14..0000000000 --- a/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/kafka.yaml +++ /dev/null @@ -1,59 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: kafka.strimzi.io/v1beta2 -kind: Kafka -metadata: - name: my-cluster -spec: - kafka: - replicas: 1 - listeners: - - name: plain - port: 9092 - type: internal - tls: false - - name: tls - port: 9093 - type: internal - tls: true - - name: external - type: nodeport - tls: false - port: 9094 - storage: - type: jbod - volumes: - - id: 0 - type: persistent-claim - size: 100Gi - deleteClaim: false - config: - offsets.topic.replication.factor: 1 - transaction.state.log.replication.factor: 1 - transaction.state.log.min.isr: 1 - zookeeper: - replicas: 1 - storage: - type: persistent-claim - size: 100Gi - deleteClaim: false - entityOperator: - topicOperator: {} - userOperator: {} \ No newline at end of file diff --git a/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/kogito-infra.yaml b/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/kogito-infra.yaml deleted file mode 100644 index 2560341dbf..0000000000 --- a/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/kogito-infra.yaml +++ /dev/null @@ -1,40 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -#Strimzi operator should be pre-installed in namespace -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoInfra -metadata: - name: kogito-kafka-infra -spec: - resource: - apiVersion: kafka.strimzi.io/v1beta2 - kind: Kafka - name: my-cluster ---- -#Infinispan operator should be pre-installed in namespace -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoInfra -metadata: - name: kogito-infinispan-infra -spec: - resource: - apiVersion: infinispan.org/v1 - kind: Infinispan - name: example-infinispan diff --git a/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/trusty-ui.yaml b/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/trusty-ui.yaml deleted file mode 100644 index 48c448d322..0000000000 --- a/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/trusty-ui.yaml +++ /dev/null @@ -1,32 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoSupportingService -metadata: - name: trusty-ui -spec: - serviceType: TrustyUI - replicas: 1 - image: quay.io/kiegroup/kogito-trusty-ui:1.5 - env: - - name: KOGITO_TRUSTY_ENDPOINT - value: http://172.17.0.2 - - name: KOGITO_TRUSTY_WS_URL - value: ws://172.17.0.2 diff --git a/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/trusty.yaml b/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/trusty.yaml deleted file mode 100644 index 6a0ad0d213..0000000000 --- a/kogito-quarkus-examples/trusty-demonstration/kubernetes/resources/trusty.yaml +++ /dev/null @@ -1,32 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoSupportingService -metadata: - name: trusty - labels: - app: trusty -spec: - serviceType: TrustyAI - replicas: 1 - image: quay.io/kiegroup/kogito-trusty-infinispan:1.5 - infra: - - kogito-kafka-infra - - kogito-infinispan-infra diff --git a/kogito-quarkus-examples/trusty-tracing-quarkus-devservices/README.md b/kogito-quarkus-examples/trusty-tracing-quarkus-devservices/README.md index 89e550ff84..6a23b722e3 100644 --- a/kogito-quarkus-examples/trusty-tracing-quarkus-devservices/README.md +++ b/kogito-quarkus-examples/trusty-tracing-quarkus-devservices/README.md @@ -10,9 +10,9 @@ PostgreSQL instance and a User Interface can be launched from Quarkus DevMode to ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed - A Docker environment ### Compile and Run in Local Dev Mode diff --git a/kogito-quarkus-examples/trusty-tracing-quarkus-devservices/pom.xml b/kogito-quarkus-examples/trusty-tracing-quarkus-devservices/pom.xml index d5aa60ed53..ede25ad44a 100644 --- a/kogito-quarkus-examples/trusty-tracing-quarkus-devservices/pom.xml +++ b/kogito-quarkus-examples/trusty-tracing-quarkus-devservices/pom.xml @@ -30,10 +30,10 @@ trusty-tracing-quarkus-devservices Kogito Example :: Trusty Tracing - Quarkus DevServices - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -59,16 +59,16 @@ - org.kie.kogito - kogito-quarkus-decisions + org.drools + drools-quarkus-decisions - org.kie.kogito - kogito-addons-quarkus-tracing-decision + org.kie + kie-addons-quarkus-tracing-decision - org.kie.kogito - runtime-tools-quarkus-extension + org.jbpm + jbpm-quarkus-devui io.quarkus diff --git a/kogito-springboot-examples/decisiontable-springboot-example/README.md b/kogito-springboot-examples/decisiontable-springboot-example/README.md index 7433b5f040..e0096074ae 100644 --- a/kogito-springboot-examples/decisiontable-springboot-example/README.md +++ b/kogito-springboot-examples/decisiontable-springboot-example/README.md @@ -131,7 +131,3 @@ Example response: } ] ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-springboot-examples/decisiontable-springboot-example/operator/decisiontable-springboot-example.yaml b/kogito-springboot-examples/decisiontable-springboot-example/operator/decisiontable-springboot-example.yaml deleted file mode 100644 index 844a8c845d..0000000000 --- a/kogito-springboot-examples/decisiontable-springboot-example/operator/decisiontable-springboot-example.yaml +++ /dev/null @@ -1,43 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: decisiontable-springboot-example -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/decisiontable-springboot-example - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: decisiontable-springboot-example -spec: - runtime: springboot - diff --git a/kogito-springboot-examples/decisiontable-springboot-example/pom.xml b/kogito-springboot-examples/decisiontable-springboot-example/pom.xml index a281bddb7e..8c712c0013 100644 --- a/kogito-springboot-examples/decisiontable-springboot-example/pom.xml +++ b/kogito-springboot-examples/decisiontable-springboot-example/pom.xml @@ -53,8 +53,8 @@ spring-boot-starter-actuator - org.kie.kogito - kogito-decisions-spring-boot-starter + org.drools + drools-decisions-spring-boot-starter diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/README.md b/kogito-springboot-examples/dmn-drools-springboot-metrics/README.md index 2a14643672..c3ba3e7d9f 100644 --- a/kogito-springboot-examples/dmn-drools-springboot-metrics/README.md +++ b/kogito-springboot-examples/dmn-drools-springboot-metrics/README.md @@ -18,8 +18,8 @@ Import the following dependency in your `pom.xml`: ```XML - org.kie.kogito - kogito-addons-springboot-monitoring-prometheus + org.kie + kie-addons-springboot-monitoring-prometheus ``` diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/pom.xml b/kogito-springboot-examples/dmn-drools-springboot-metrics/pom.xml index c302afe697..f696d327b7 100755 --- a/kogito-springboot-examples/dmn-drools-springboot-metrics/pom.xml +++ b/kogito-springboot-examples/dmn-drools-springboot-metrics/pom.xml @@ -51,17 +51,17 @@ - org.kie.kogito - kogito-decisions-spring-boot-starter + org.drools + drools-decisions-spring-boot-starter - org.kie.kogito - kogito-rules-spring-boot-starter + org.drools + drools-rules-spring-boot-starter - org.kie.kogito - kogito-addons-springboot-monitoring-prometheus + org.kie + kie-addons-springboot-monitoring-prometheus diff --git a/kogito-springboot-examples/dmn-event-driven-springboot/README.md b/kogito-springboot-examples/dmn-event-driven-springboot/README.md index 407365fb4c..797290755d 100644 --- a/kogito-springboot-examples/dmn-event-driven-springboot/README.md +++ b/kogito-springboot-examples/dmn-event-driven-springboot/README.md @@ -25,8 +25,8 @@ Like the other Kogito AddOns, the only required step to enable it is to include ```xml - org.kie.kogito - kogito-addons-springboot-event-decisions + org.kie + kie-addons-springboot-event-decisions ``` diff --git a/kogito-springboot-examples/dmn-event-driven-springboot/pom.xml b/kogito-springboot-examples/dmn-event-driven-springboot/pom.xml index f15815f820..8af19b7539 100644 --- a/kogito-springboot-examples/dmn-event-driven-springboot/pom.xml +++ b/kogito-springboot-examples/dmn-event-driven-springboot/pom.xml @@ -57,12 +57,12 @@ - org.kie.kogito - kogito-decisions-spring-boot-starter + org.drools + drools-decisions-spring-boot-starter - org.kie.kogito - kogito-addons-springboot-events-decisions + org.kie + kie-addons-springboot-events-decisions diff --git a/kogito-springboot-examples/dmn-listener-springboot/README.md b/kogito-springboot-examples/dmn-listener-springboot/README.md index 7da22a86e5..787c6f1553 100644 --- a/kogito-springboot-examples/dmn-listener-springboot/README.md +++ b/kogito-springboot-examples/dmn-listener-springboot/README.md @@ -86,9 +86,3 @@ Example response: "Should the driver be suspended?":"No" } ``` - - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). - diff --git a/kogito-springboot-examples/dmn-listener-springboot/operator/dmn-springboot-example.yaml b/kogito-springboot-examples/dmn-listener-springboot/operator/dmn-springboot-example.yaml deleted file mode 100644 index eb46fa58f3..0000000000 --- a/kogito-springboot-examples/dmn-listener-springboot/operator/dmn-springboot-example.yaml +++ /dev/null @@ -1,43 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: dmn-listener-springboot -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/dmn-listener-springboot - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: dmn-listener-springboot -spec: - runtime: springboot - diff --git a/kogito-springboot-examples/dmn-listener-springboot/pom.xml b/kogito-springboot-examples/dmn-listener-springboot/pom.xml index 9bd44f1037..da3397efec 100644 --- a/kogito-springboot-examples/dmn-listener-springboot/pom.xml +++ b/kogito-springboot-examples/dmn-listener-springboot/pom.xml @@ -57,8 +57,8 @@ - org.kie.kogito - kogito-decisions-spring-boot-starter + org.drools + drools-decisions-spring-boot-starter org.springframework.boot diff --git a/kogito-springboot-examples/dmn-pmml-springboot-example/README.md b/kogito-springboot-examples/dmn-pmml-springboot-example/README.md index b64f96cc72..5a80a8c52a 100644 --- a/kogito-springboot-examples/dmn-pmml-springboot-example/README.md +++ b/kogito-springboot-examples/dmn-pmml-springboot-example/README.md @@ -108,10 +108,3 @@ Example response: "Decision":"sunglasses" } ``` - - - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). - diff --git a/kogito-springboot-examples/dmn-pmml-springboot-example/operator/dmn-pmml-springboot-example.yaml b/kogito-springboot-examples/dmn-pmml-springboot-example/operator/dmn-pmml-springboot-example.yaml deleted file mode 100644 index d500c425ca..0000000000 --- a/kogito-springboot-examples/dmn-pmml-springboot-example/operator/dmn-pmml-springboot-example.yaml +++ /dev/null @@ -1,44 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: dmn-pmml-springboot-example -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/dmn-pmml-springboot-example - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: dmn-pmml-springboot-example -spec: - runtime: springboot - - diff --git a/kogito-springboot-examples/dmn-pmml-springboot-example/pom.xml b/kogito-springboot-examples/dmn-pmml-springboot-example/pom.xml index 5703d3ad10..1b47ef23c9 100644 --- a/kogito-springboot-examples/dmn-pmml-springboot-example/pom.xml +++ b/kogito-springboot-examples/dmn-pmml-springboot-example/pom.xml @@ -56,12 +56,12 @@ - org.kie.kogito - kogito-decisions-spring-boot-starter + org.drools + drools-decisions-spring-boot-starter - org.kie.kogito - kogito-predictions-spring-boot-starter + org.kie + kie-predictions-spring-boot-starter diff --git a/kogito-springboot-examples/dmn-springboot-example/README.md b/kogito-springboot-examples/dmn-springboot-example/README.md index ab8e58e95d..faac896f3f 100644 --- a/kogito-springboot-examples/dmn-springboot-example/README.md +++ b/kogito-springboot-examples/dmn-springboot-example/README.md @@ -84,11 +84,6 @@ Example response: } ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). - ## Developer notes In order to have the DMN generated resources properly scanned by Spring Boot, please ensure the DMN model namespaces diff --git a/kogito-springboot-examples/dmn-springboot-example/operator/dmn-springboot-example.yaml b/kogito-springboot-examples/dmn-springboot-example/operator/dmn-springboot-example.yaml deleted file mode 100644 index b4f32b7ed8..0000000000 --- a/kogito-springboot-examples/dmn-springboot-example/operator/dmn-springboot-example.yaml +++ /dev/null @@ -1,42 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: dmn-springboot-example -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/dmn-springboot-example - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: dmn-springboot-example -spec: - runtime: springboot \ No newline at end of file diff --git a/kogito-springboot-examples/dmn-springboot-example/pom.xml b/kogito-springboot-examples/dmn-springboot-example/pom.xml index 14510567d0..f42eb86e67 100644 --- a/kogito-springboot-examples/dmn-springboot-example/pom.xml +++ b/kogito-springboot-examples/dmn-springboot-example/pom.xml @@ -57,8 +57,8 @@ - org.kie.kogito - kogito-decisions-spring-boot-starter + org.drools + drools-decisions-spring-boot-starter org.springframework.boot diff --git a/kogito-springboot-examples/dmn-tracing-springboot/operator/dmn-tracing-springboot.yaml b/kogito-springboot-examples/dmn-tracing-springboot/operator/dmn-tracing-springboot.yaml deleted file mode 100644 index b4f32b7ed8..0000000000 --- a/kogito-springboot-examples/dmn-tracing-springboot/operator/dmn-tracing-springboot.yaml +++ /dev/null @@ -1,42 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: dmn-springboot-example -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/dmn-springboot-example - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: dmn-springboot-example -spec: - runtime: springboot \ No newline at end of file diff --git a/kogito-springboot-examples/dmn-tracing-springboot/pom.xml b/kogito-springboot-examples/dmn-tracing-springboot/pom.xml index 2ba93ea583..c6cb6c754c 100644 --- a/kogito-springboot-examples/dmn-tracing-springboot/pom.xml +++ b/kogito-springboot-examples/dmn-tracing-springboot/pom.xml @@ -57,17 +57,17 @@ - org.kie.kogito - kogito-decisions-spring-boot-starter + org.drools + drools-decisions-spring-boot-starter - org.kie.kogito - kogito-addons-springboot-tracing-decision + org.kie + kie-addons-springboot-tracing-decision - org.kie.kogito - kogito-addons-springboot-monitoring-prometheus + org.kie + kie-addons-springboot-monitoring-prometheus diff --git a/kogito-springboot-examples/flexible-process-springboot/README.md b/kogito-springboot-examples/flexible-process-springboot/README.md index c0e20b8c13..23b32b1d13 100644 --- a/kogito-springboot-examples/flexible-process-springboot/README.md +++ b/kogito-springboot-examples/flexible-process-springboot/README.md @@ -77,10 +77,6 @@ In addition, various clients to interact with this service can be easily generat When running in either Quarkus Development or Native mode, we also leverage the [Quarkus OpenAPI extension](https://quarkus.io/guides/openapi-swaggerui#use-swagger-ui-for-development) that exposes [Swagger UI](http://localhost:8080/swagger-ui.html) that you can use to look at available REST endpoints and send test requests. -## Deploying with the Kogito Operator - -In the [operator](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). - ## Usage example ### Create a support case diff --git a/kogito-springboot-examples/flexible-process-springboot/operator/flexible-process-springboot.yaml b/kogito-springboot-examples/flexible-process-springboot/operator/flexible-process-springboot.yaml deleted file mode 100644 index 617dad07df..0000000000 --- a/kogito-springboot-examples/flexible-process-springboot/operator/flexible-process-springboot.yaml +++ /dev/null @@ -1,43 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: flexible-process-springboot -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/flexible-process-springboot - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: flexible-process-springboot -spec: - runtime: springboot - diff --git a/kogito-springboot-examples/flexible-process-springboot/pom.xml b/kogito-springboot-examples/flexible-process-springboot/pom.xml index a0c6b7e2e3..3da05ac205 100644 --- a/kogito-springboot-examples/flexible-process-springboot/pom.xml +++ b/kogito-springboot-examples/flexible-process-springboot/pom.xml @@ -59,8 +59,8 @@ - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter org.springframework.boot diff --git a/kogito-springboot-examples/onboarding-springboot/pom.xml b/kogito-springboot-examples/onboarding-springboot/pom.xml index 2118547092..14ae22674a 100644 --- a/kogito-springboot-examples/onboarding-springboot/pom.xml +++ b/kogito-springboot-examples/onboarding-springboot/pom.xml @@ -50,20 +50,20 @@ - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter org.springframework.boot spring-boot-starter-actuator - org.kie.kogito - kogito-addons-springboot-monitoring-prometheus + org.kie + kie-addons-springboot-monitoring-prometheus - org.kie.kogito - kogito-addons-springboot-kubernetes + org.kie + kie-addons-springboot-kubernetes @@ -120,8 +120,8 @@ - org.kie.kogito - kogito-addons-springboot-persistence-infinispan + org.kie + kie-addons-springboot-persistence-infinispan org.infinispan diff --git a/kogito-springboot-examples/pmml-event-driven-springboot/README.md b/kogito-springboot-examples/pmml-event-driven-springboot/README.md index 1b48d14087..33a1fd3cc3 100644 --- a/kogito-springboot-examples/pmml-event-driven-springboot/README.md +++ b/kogito-springboot-examples/pmml-event-driven-springboot/README.md @@ -25,8 +25,8 @@ Like the other Kogito AddOns, the only required step to enable it is to include ```xml - org.kie.kogito - kogito-addons-springboot-event-predictions + org.kie + kie-addons-springboot-event-predictions ``` diff --git a/kogito-springboot-examples/pmml-event-driven-springboot/pom.xml b/kogito-springboot-examples/pmml-event-driven-springboot/pom.xml index e3d2994096..3f8d5163d7 100644 --- a/kogito-springboot-examples/pmml-event-driven-springboot/pom.xml +++ b/kogito-springboot-examples/pmml-event-driven-springboot/pom.xml @@ -51,12 +51,12 @@ - org.kie.kogito - kogito-predictions-spring-boot-starter + org.kie + kie-predictions-spring-boot-starter - org.kie.kogito - kogito-addons-springboot-events-predictions + org.kie + kie-addons-springboot-events-predictions diff --git a/kogito-springboot-examples/pmml-springboot-example/README.md b/kogito-springboot-examples/pmml-springboot-example/README.md index 456ca115cd..5dd7fdf712 100644 --- a/kogito-springboot-examples/pmml-springboot-example/README.md +++ b/kogito-springboot-examples/pmml-springboot-example/README.md @@ -154,8 +154,3 @@ Example response: "categoricalResult":1.381666666666666 } ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). - diff --git a/kogito-springboot-examples/pmml-springboot-example/operator/pmml-springboot-example.yaml b/kogito-springboot-examples/pmml-springboot-example/operator/pmml-springboot-example.yaml deleted file mode 100644 index 5e11bcb16c..0000000000 --- a/kogito-springboot-examples/pmml-springboot-example/operator/pmml-springboot-example.yaml +++ /dev/null @@ -1,42 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: pmml-springboot-example -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-springboot-examples/pmml-springboot-example - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: pmml-springboot-example -spec: - runtime: springboot \ No newline at end of file diff --git a/kogito-springboot-examples/pmml-springboot-example/pom.xml b/kogito-springboot-examples/pmml-springboot-example/pom.xml index 3144320cd4..4c037773aa 100644 --- a/kogito-springboot-examples/pmml-springboot-example/pom.xml +++ b/kogito-springboot-examples/pmml-springboot-example/pom.xml @@ -51,8 +51,8 @@ - org.kie.kogito - kogito-predictions-spring-boot-starter + org.kie + kie-predictions-spring-boot-starter org.springframework.boot diff --git a/kogito-springboot-examples/process-business-rules-springboot/README.md b/kogito-springboot-examples/process-business-rules-springboot/README.md index ce7d99f049..a4caef0ff5 100644 --- a/kogito-springboot-examples/process-business-rules-springboot/README.md +++ b/kogito-springboot-examples/process-business-rules-springboot/README.md @@ -226,7 +226,3 @@ Should return something similar to } ``` and there should be no outstanding task for the person anymore. - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-springboot-examples/process-business-rules-springboot/operator/process-business-rules-springboot.yaml b/kogito-springboot-examples/process-business-rules-springboot/operator/process-business-rules-springboot.yaml deleted file mode 100644 index 94a013c1ee..0000000000 --- a/kogito-springboot-examples/process-business-rules-springboot/operator/process-business-rules-springboot.yaml +++ /dev/null @@ -1,42 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-business-rules-springboot -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-business-rules-springboot - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-business-rules-springboot -spec: - runtime: springboot \ No newline at end of file diff --git a/kogito-springboot-examples/process-business-rules-springboot/pom.xml b/kogito-springboot-examples/process-business-rules-springboot/pom.xml index c5d8e82df1..eab978f2d7 100644 --- a/kogito-springboot-examples/process-business-rules-springboot/pom.xml +++ b/kogito-springboot-examples/process-business-rules-springboot/pom.xml @@ -52,12 +52,12 @@ - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter - org.kie.kogito - kogito-rules-spring-boot-starter + org.drools + drools-rules-spring-boot-starter diff --git a/kogito-springboot-examples/process-decisions-rest-springboot/README.md b/kogito-springboot-examples/process-decisions-rest-springboot/README.md index fd42534ac3..6afb4cc6de 100644 --- a/kogito-springboot-examples/process-decisions-rest-springboot/README.md +++ b/kogito-springboot-examples/process-decisions-rest-springboot/README.md @@ -305,8 +305,3 @@ After the Curl command, you should see a similar console log } ``` In this case the driver license is expired when the DRL is evaluated because the DriverService generated an expired date for the driver's license thus DMN is not evaluated, so the `validLicense` is `false` and `trafficViolationResponse` is `null`. - - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). \ No newline at end of file diff --git a/kogito-springboot-examples/process-decisions-rest-springboot/pom.xml b/kogito-springboot-examples/process-decisions-rest-springboot/pom.xml index b58a0f79d4..757640cc02 100644 --- a/kogito-springboot-examples/process-decisions-rest-springboot/pom.xml +++ b/kogito-springboot-examples/process-decisions-rest-springboot/pom.xml @@ -55,12 +55,12 @@ - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter - org.kie.kogito - kogito-decisions-spring-boot-starter + org.drools + drools-decisions-spring-boot-starter diff --git a/kogito-springboot-examples/process-decisions-rules-springboot/README.md b/kogito-springboot-examples/process-decisions-rules-springboot/README.md index 69289d2ec6..20354bf578 100644 --- a/kogito-springboot-examples/process-decisions-rules-springboot/README.md +++ b/kogito-springboot-examples/process-decisions-rules-springboot/README.md @@ -314,8 +314,3 @@ After the Curl command, you should see a similar console log } ``` In this case the driver license is expired when the DRL is evaluated because the DriverService generated an expired date for the driver's license thus DMN is not evaluated, so the `validLicense` is `false`, `suspended` and `fine` are `null`. - - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). \ No newline at end of file diff --git a/kogito-springboot-examples/process-decisions-rules-springboot/pom.xml b/kogito-springboot-examples/process-decisions-rules-springboot/pom.xml index b9853a366a..916d17e4df 100644 --- a/kogito-springboot-examples/process-decisions-rules-springboot/pom.xml +++ b/kogito-springboot-examples/process-decisions-rules-springboot/pom.xml @@ -55,12 +55,12 @@ - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter - org.kie.kogito - kogito-decisions-spring-boot-starter + org.drools + drools-decisions-spring-boot-starter diff --git a/kogito-springboot-examples/process-decisions-springboot/README.md b/kogito-springboot-examples/process-decisions-springboot/README.md index e549d18fe8..340100da45 100644 --- a/kogito-springboot-examples/process-decisions-springboot/README.md +++ b/kogito-springboot-examples/process-decisions-springboot/README.md @@ -257,8 +257,3 @@ After the Curl command, you should see a similar console log } ``` In this case the driver license is expired when the DRL is evaluated because the DriverService generated an expired date for the driver's license thus DMN is not evaluated, so the `validLicense` is `false`, `suspended` and `fine` are `null`. - - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). \ No newline at end of file diff --git a/kogito-springboot-examples/process-decisions-springboot/pom.xml b/kogito-springboot-examples/process-decisions-springboot/pom.xml index c926ba0449..cfce235bf7 100644 --- a/kogito-springboot-examples/process-decisions-springboot/pom.xml +++ b/kogito-springboot-examples/process-decisions-springboot/pom.xml @@ -55,12 +55,12 @@ - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter - org.kie.kogito - kogito-decisions-spring-boot-starter + org.drools + drools-decisions-spring-boot-starter diff --git a/kogito-springboot-examples/process-infinispan-persistence-springboot/README.md b/kogito-springboot-examples/process-infinispan-persistence-springboot/README.md index 012cff730a..2d0f0c8606 100644 --- a/kogito-springboot-examples/process-infinispan-persistence-springboot/README.md +++ b/kogito-springboot-examples/process-infinispan-persistence-springboot/README.md @@ -176,7 +176,3 @@ where uuid is the id of the deal review and tuuid is the id of the user task you ``` Review of the deal very good work for traveller Doe ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-springboot-examples/process-infinispan-persistence-springboot/operator/process-infinispan-persistence-springboot.yaml b/kogito-springboot-examples/process-infinispan-persistence-springboot/operator/process-infinispan-persistence-springboot.yaml deleted file mode 100644 index 87a711b76c..0000000000 --- a/kogito-springboot-examples/process-infinispan-persistence-springboot/operator/process-infinispan-persistence-springboot.yaml +++ /dev/null @@ -1,54 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -#Infinispan operator should be pre-installed in namespace -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoInfra -metadata: - name: kogito-infinispan-infra -spec: - resource: - apiVersion: infinispan.org/v1 - kind: Infinispan ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-infinispan-persistence-springboot -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-infinispan-persistence-springboot - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-infinispan-persistence-springboot -spec: - runtime: springboot - infra: - - kogito-infinispan-infra \ No newline at end of file diff --git a/kogito-springboot-examples/process-infinispan-persistence-springboot/pom.xml b/kogito-springboot-examples/process-infinispan-persistence-springboot/pom.xml index f70655eded..8bdb6faa44 100644 --- a/kogito-springboot-examples/process-infinispan-persistence-springboot/pom.xml +++ b/kogito-springboot-examples/process-infinispan-persistence-springboot/pom.xml @@ -60,8 +60,8 @@ - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter org.springframework.boot @@ -78,8 +78,8 @@ kogito-api - org.kie.kogito - kogito-addons-springboot-persistence-infinispan + org.kie + kie-addons-springboot-persistence-infinispan diff --git a/kogito-springboot-examples/process-kafka-multi-springboot/README.md b/kogito-springboot-examples/process-kafka-multi-springboot/README.md index a16c6273f8..0d2adfcbc8 100644 --- a/kogito-springboot-examples/process-kafka-multi-springboot/README.md +++ b/kogito-springboot-examples/process-kafka-multi-springboot/README.md @@ -190,7 +190,3 @@ One Liner ``` this will result in message being send to `cancelledtravelers` topic. - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-springboot-examples/process-kafka-multi-springboot/operator/process-kafka-multi-springboot.yaml b/kogito-springboot-examples/process-kafka-multi-springboot/operator/process-kafka-multi-springboot.yaml deleted file mode 100644 index 96cbed36c3..0000000000 --- a/kogito-springboot-examples/process-kafka-multi-springboot/operator/process-kafka-multi-springboot.yaml +++ /dev/null @@ -1,54 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -#Strimzi operator should be pre-installed in namespace -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoInfra -metadata: - name: kogito-kafka-infra -spec: - resource: - apiVersion: kafka.strimzi.io/v1beta2 - kind: Kafka ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-kafka-quickstart-springboot -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-kafka-multi-springboot - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-kafka-multi-springboot -spec: - runtime: springboot - infra: - - kogito-kafka-infra diff --git a/kogito-springboot-examples/process-kafka-multi-springboot/pom.xml b/kogito-springboot-examples/process-kafka-multi-springboot/pom.xml index 6cd38d733a..b19e6f4227 100644 --- a/kogito-springboot-examples/process-kafka-multi-springboot/pom.xml +++ b/kogito-springboot-examples/process-kafka-multi-springboot/pom.xml @@ -60,18 +60,18 @@ spring-kafka - org.kie.kogito - kogito-addons-springboot-messaging + org.kie + kie-addons-springboot-messaging com.fasterxml.jackson.core jackson-databind - + - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter diff --git a/kogito-springboot-examples/process-kafka-quickstart-springboot/README.md b/kogito-springboot-examples/process-kafka-quickstart-springboot/README.md index 22e6164fe3..576a919211 100644 --- a/kogito-springboot-examples/process-kafka-quickstart-springboot/README.md +++ b/kogito-springboot-examples/process-kafka-quickstart-springboot/README.md @@ -183,7 +183,3 @@ One Liner ``` this will not result in message being send to `processedtravelers` topic. - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-springboot-examples/process-kafka-quickstart-springboot/operator/process-kafka-quickstart-springboot.yaml b/kogito-springboot-examples/process-kafka-quickstart-springboot/operator/process-kafka-quickstart-springboot.yaml deleted file mode 100644 index f1d0005eed..0000000000 --- a/kogito-springboot-examples/process-kafka-quickstart-springboot/operator/process-kafka-quickstart-springboot.yaml +++ /dev/null @@ -1,54 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -#Strimzi operator should be pre-installed in namespace -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoInfra -metadata: - name: kogito-kafka-infra -spec: - resource: - apiVersion: kafka.strimzi.io/v1beta2 - kind: Kafka ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-kafka-quickstart-springboot -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-kafka-quickstart-springboot - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-kafka-quickstart-springboot -spec: - runtime: springboot - infra: - - kogito-kafka-infra \ No newline at end of file diff --git a/kogito-springboot-examples/process-kafka-quickstart-springboot/pom.xml b/kogito-springboot-examples/process-kafka-quickstart-springboot/pom.xml index b6f71e02e7..96b266c079 100644 --- a/kogito-springboot-examples/process-kafka-quickstart-springboot/pom.xml +++ b/kogito-springboot-examples/process-kafka-quickstart-springboot/pom.xml @@ -60,18 +60,18 @@ spring-kafka - org.kie.kogito - kogito-addons-springboot-messaging + org.kie + kie-addons-springboot-messaging com.fasterxml.jackson.core jackson-databind - + - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter diff --git a/kogito-springboot-examples/process-mongodb-persistence-springboot/operator/process-mongodb-persistence-springboot.yaml b/kogito-springboot-examples/process-mongodb-persistence-springboot/operator/process-mongodb-persistence-springboot.yaml deleted file mode 100644 index a58205b2cb..0000000000 --- a/kogito-springboot-examples/process-mongodb-persistence-springboot/operator/process-mongodb-persistence-springboot.yaml +++ /dev/null @@ -1,48 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -## MongoDB operator should be pre-installed in namespace -apiVersion: app.kiegroup.org/v1alpha1 -kind: KogitoInfra -metadata: - name: kogito-mongodb -spec: - resource: - apiVersion: mongodb.com/v1 - kind: MongoDB ---- -apiVersion: app.kiegroup.org/v1alpha1 -kind: KogitoBuild -metadata: - name: process-mongodb -spec: - type: RemoteSource - gitSource: - contextDir: kogito-quarkus-examples/process-mongodb-persistence-springboot - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1alpha1 -kind: KogitoRuntime -metadata: - name: process-mongodb -spec: - infra: - - kogito-mongodb \ No newline at end of file diff --git a/kogito-springboot-examples/process-mongodb-persistence-springboot/pom.xml b/kogito-springboot-examples/process-mongodb-persistence-springboot/pom.xml index 5b144590ba..7254b0f4fd 100644 --- a/kogito-springboot-examples/process-mongodb-persistence-springboot/pom.xml +++ b/kogito-springboot-examples/process-mongodb-persistence-springboot/pom.xml @@ -61,10 +61,10 @@ spring-boot-starter-data-mongodb - + - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter org.kie.kogito @@ -72,8 +72,8 @@ - org.kie.kogito - kogito-addons-springboot-persistence-mongodb + org.kie + kie-addons-springboot-persistence-mongodb @@ -132,8 +132,8 @@ - org.kie.kogito - kogito-addons-springboot-events-process-kafka + org.kie + kie-addons-springboot-events-process-kafka diff --git a/kogito-springboot-examples/process-monitoring-springboot/README.md b/kogito-springboot-examples/process-monitoring-springboot/README.md index c6829345bc..4ec50b0d17 100644 --- a/kogito-springboot-examples/process-monitoring-springboot/README.md +++ b/kogito-springboot-examples/process-monitoring-springboot/README.md @@ -20,8 +20,8 @@ Import the following dependency in your `pom.xml`: ```XML - org.kie.kogito - kogito-addons-springboot-monitoring-prometheus + org.kie + kie-addons-springboot-monitoring-prometheus ``` diff --git a/kogito-springboot-examples/process-monitoring-springboot/pom.xml b/kogito-springboot-examples/process-monitoring-springboot/pom.xml index b4742580f2..9c811e618b 100644 --- a/kogito-springboot-examples/process-monitoring-springboot/pom.xml +++ b/kogito-springboot-examples/process-monitoring-springboot/pom.xml @@ -51,12 +51,12 @@ - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter - org.kie.kogito - kogito-addons-springboot-monitoring-prometheus + org.kie + kie-addons-springboot-monitoring-prometheus diff --git a/kogito-springboot-examples/process-outbox-mongodb-springboot/pom.xml b/kogito-springboot-examples/process-outbox-mongodb-springboot/pom.xml index 21dd048786..bb8aacbd91 100644 --- a/kogito-springboot-examples/process-outbox-mongodb-springboot/pom.xml +++ b/kogito-springboot-examples/process-outbox-mongodb-springboot/pom.xml @@ -61,20 +61,20 @@ kogito-api - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter org.springframework.boot spring-boot-starter-data-mongodb - org.kie.kogito - kogito-addons-springboot-persistence-mongodb + org.kie + kie-addons-springboot-persistence-mongodb - org.kie.kogito - kogito-addons-springboot-events-mongodb + org.kie + kie-addons-springboot-events-mongodb diff --git a/kogito-springboot-examples/process-performance-springboot/pom.xml b/kogito-springboot-examples/process-performance-springboot/pom.xml index 2711e2a9e3..78d1619f5d 100755 --- a/kogito-springboot-examples/process-performance-springboot/pom.xml +++ b/kogito-springboot-examples/process-performance-springboot/pom.xml @@ -71,13 +71,13 @@ spring-kafka - org.kie.kogito - kogito-addons-springboot-messaging + org.kie + kie-addons-springboot-messaging - org.kie.kogito - kogito-spring-boot-starter + org.jbpm + jbpm-with-drools-spring-boot-starter - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter org.kie.kogito kogito-api - org.kie.kogito - kogito-addons-springboot-persistence-jdbc + org.kie + kie-addons-springboot-persistence-jdbc org.postgresql @@ -130,8 +130,8 @@ - org.kie.kogito - kogito-addons-springboot-events-process-kafka + org.kie + kie-addons-springboot-events-process-kafka diff --git a/kogito-springboot-examples/process-rest-service-call-springboot/README.md b/kogito-springboot-examples/process-rest-service-call-springboot/README.md index f5c24b34c4..2a7c02beff 100644 --- a/kogito-springboot-examples/process-rest-service-call-springboot/README.md +++ b/kogito-springboot-examples/process-rest-service-call-springboot/README.md @@ -118,7 +118,3 @@ After the above command nothing will show on Springboot log as the user is skipp * Curl Log

- -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-springboot-examples/process-rest-service-call-springboot/operator/process-service-rest-call-springboot.yaml b/kogito-springboot-examples/process-rest-service-call-springboot/operator/process-service-rest-call-springboot.yaml deleted file mode 100644 index b9a4502582..0000000000 --- a/kogito-springboot-examples/process-rest-service-call-springboot/operator/process-service-rest-call-springboot.yaml +++ /dev/null @@ -1,42 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-service-rest-call-springboot -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-service-rest-call-springboot - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-service-rest-call-springboot -spec: - runtime: springboot \ No newline at end of file diff --git a/kogito-springboot-examples/process-rest-service-call-springboot/pom.xml b/kogito-springboot-examples/process-rest-service-call-springboot/pom.xml index a2742bd291..83d769ede8 100644 --- a/kogito-springboot-examples/process-rest-service-call-springboot/pom.xml +++ b/kogito-springboot-examples/process-rest-service-call-springboot/pom.xml @@ -56,10 +56,10 @@ spring-boot-starter-actuator
- + - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter org.springframework.boot diff --git a/kogito-springboot-examples/process-scripts-springboot/README.md b/kogito-springboot-examples/process-scripts-springboot/README.md index e28edd82e8..0c6ec26108 100644 --- a/kogito-springboot-examples/process-scripts-springboot/README.md +++ b/kogito-springboot-examples/process-scripts-springboot/README.md @@ -91,7 +91,3 @@ And also in SpringBoot log you should see a log entry: ``` Hello john ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-springboot-examples/process-scripts-springboot/operator/process-scripts-springboot.yaml b/kogito-springboot-examples/process-scripts-springboot/operator/process-scripts-springboot.yaml deleted file mode 100644 index f211f37ec9..0000000000 --- a/kogito-springboot-examples/process-scripts-springboot/operator/process-scripts-springboot.yaml +++ /dev/null @@ -1,42 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-scripts-springboot -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-scripts-springboot - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-scripts-springboot -spec: - runtime: springboot \ No newline at end of file diff --git a/kogito-springboot-examples/process-scripts-springboot/pom.xml b/kogito-springboot-examples/process-scripts-springboot/pom.xml index 75b3ce392c..fbfeb1b245 100644 --- a/kogito-springboot-examples/process-scripts-springboot/pom.xml +++ b/kogito-springboot-examples/process-scripts-springboot/pom.xml @@ -56,10 +56,10 @@ spring-boot-starter-actuator - + - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter org.springframework.boot diff --git a/kogito-springboot-examples/process-service-calls-springboot/README.md b/kogito-springboot-examples/process-service-calls-springboot/README.md index 378511107c..fe5eaadd8a 100644 --- a/kogito-springboot-examples/process-service-calls-springboot/README.md +++ b/kogito-springboot-examples/process-service-calls-springboot/README.md @@ -146,7 +146,3 @@ curl -X POST -H 'Content-Type:application/json' -H 'Accept:application/json' -d After the above command you should see a log similar to the following

- -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-springboot-examples/process-service-calls-springboot/operator/process-service-calls-springboot.yaml b/kogito-springboot-examples/process-service-calls-springboot/operator/process-service-calls-springboot.yaml deleted file mode 100644 index ceda118127..0000000000 --- a/kogito-springboot-examples/process-service-calls-springboot/operator/process-service-calls-springboot.yaml +++ /dev/null @@ -1,42 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-service-calls-springboot -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-service-calls-springboot - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-service-calls-springboot -spec: - runtime: springboot \ No newline at end of file diff --git a/kogito-springboot-examples/process-service-calls-springboot/pom.xml b/kogito-springboot-examples/process-service-calls-springboot/pom.xml index db13e2d41c..e2d2dc5be5 100644 --- a/kogito-springboot-examples/process-service-calls-springboot/pom.xml +++ b/kogito-springboot-examples/process-service-calls-springboot/pom.xml @@ -56,10 +56,10 @@ spring-boot-starter-actuator
- + - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter org.springframework.boot diff --git a/kogito-springboot-examples/process-springboot-example/README.md b/kogito-springboot-examples/process-springboot-example/README.md index 1db4819ece..007daf6ad2 100644 --- a/kogito-springboot-examples/process-springboot-example/README.md +++ b/kogito-springboot-examples/process-springboot-example/README.md @@ -203,7 +203,3 @@ Example response: } } ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-springboot-examples/process-springboot-example/operator/process-springboot-example.yaml b/kogito-springboot-examples/process-springboot-example/operator/process-springboot-example.yaml deleted file mode 100644 index f4ecb08bbe..0000000000 --- a/kogito-springboot-examples/process-springboot-example/operator/process-springboot-example.yaml +++ /dev/null @@ -1,59 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -# uncomment to enable persistence -##Infinispan operator should be pre-installed in namespace -#apiVersion: app.kiegroup.org/v1beta1 -#kind: KogitoInfra -#metadata: -# name: kogito-infinispan-infra -#spec: -# resource: -# apiVersion: infinispan.org/v1 -# kind: Infinispan ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-springboot-example -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-springboot-example - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-springboot-example -spec: - runtime: springboot - # uncomment to enable persistence - #env: - # - name: MAVEN_ARGS_APPEND - # value: "-Ppersistence" -# infra: -# - kogito-infinispan-infra \ No newline at end of file diff --git a/kogito-springboot-examples/process-springboot-example/pom.xml b/kogito-springboot-examples/process-springboot-example/pom.xml index f30bdaf6b9..8819269eb5 100644 --- a/kogito-springboot-examples/process-springboot-example/pom.xml +++ b/kogito-springboot-examples/process-springboot-example/pom.xml @@ -67,12 +67,12 @@ kogito-api - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter - org.kie.kogito - kogito-addons-springboot-process-management + org.kie + kie-addons-springboot-process-management org.springframework.kafka @@ -135,8 +135,8 @@
- org.kie.kogito - kogito-addons-springboot-persistence-infinispan + org.kie + kie-addons-springboot-persistence-infinispan org.infinispan @@ -156,8 +156,8 @@
- org.kie.kogito - kogito-addons-springboot-events-process-kafka + org.kie + kie-addons-springboot-events-process-kafka diff --git a/kogito-springboot-examples/process-timer-springboot/README.md b/kogito-springboot-examples/process-timer-springboot/README.md index a990a7b2b8..b812cd080b 100644 --- a/kogito-springboot-examples/process-timer-springboot/README.md +++ b/kogito-springboot-examples/process-timer-springboot/README.md @@ -290,12 +290,6 @@ In all cases replace `{version}` with actual Kogito version to be used (Job Serv After that you can redo the timer queries described above. -## Deploy on OpenShift - -This example can run on OpenShift 4 instance. Use [Kogito operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift) to deploy this example and instantiate also the Jobs service. Kogito operator will take care of configuring this example to successfully connect to the Jobs service. - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the Kogito Operator. - ### Test your application Generated application comes with sample test process that allows you to verify if the application is working as expected. Simply execute following command to try it out diff --git a/kogito-springboot-examples/process-timer-springboot/operator/jobs-service.yaml b/kogito-springboot-examples/process-timer-springboot/operator/jobs-service.yaml deleted file mode 100644 index 1787b1f45d..0000000000 --- a/kogito-springboot-examples/process-timer-springboot/operator/jobs-service.yaml +++ /dev/null @@ -1,44 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -#uncomment to enable persistence -##Infinispan operator should be pre-installed in namespace -#apiVersion: app.kiegroup.org/v1beta1 -#kind: KogitoInfra -#metadata: -# name: kogito-infinispan-infra -#spec: -# resource: -# apiVersion: infinispan.org/v1 -# kind: Infinispan -#--- -# deploy this service if you wish to enable Jobs Service integration. -# Make sure to follow "Use Kogito Job Service as external timer service" in the README -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoSupportingService -metadata: - name: jobs-service -spec: - # Type of supporting service - serviceType: JobsService - replicas: 1 - #uncomment to enable persistence -# infra: -# - kogito-infinispan-infra - diff --git a/kogito-springboot-examples/process-timer-springboot/operator/process-timer-springboot.yaml b/kogito-springboot-examples/process-timer-springboot/operator/process-timer-springboot.yaml deleted file mode 100644 index 1b16eee740..0000000000 --- a/kogito-springboot-examples/process-timer-springboot/operator/process-timer-springboot.yaml +++ /dev/null @@ -1,42 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-timer-springboot -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-timer-springboot - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-timer-springboot -spec: - runtime: springboot \ No newline at end of file diff --git a/kogito-springboot-examples/process-timer-springboot/pom.xml b/kogito-springboot-examples/process-timer-springboot/pom.xml index 0ad486246a..83e6be552d 100644 --- a/kogito-springboot-examples/process-timer-springboot/pom.xml +++ b/kogito-springboot-examples/process-timer-springboot/pom.xml @@ -61,7 +61,7 @@ jobs-service - org.kie.kogito + org.kie kogito-addons-springboot-jobs-management @@ -74,21 +74,21 @@ spring-boot-starter-actuator
- + - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter - org.kie.kogito + org.kie kogito-addons-springboot-jobs-management - org.kie.kogito - kogito-addons-springboot-process-management + org.kie + kie-addons-springboot-process-management @@ -97,8 +97,8 @@ infinispan-spring-boot3-starter-remote
- org.kie.kogito - kogito-addons-springboot-persistence-infinispan + org.kie + kie-addons-springboot-persistence-infinispan -->
diff --git a/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/README.md b/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/README.md index 7039a5ebb3..8a94a44b37 100644 --- a/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/README.md +++ b/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/README.md @@ -240,7 +240,3 @@ You should see a similar message after performing the second line approval after ```json {"id":"f498de73-e02d-4829-905e-2f768479a4f1", "approver":"admin","firstLineApproval":true, "secondLineApproval":true,"traveller":{"firstName":"John","lastName":"Doe","email":"jon.doe@example.com","nationality":"American","address":{"street":"main street","city":"Boston","zipCode":"10005","country":"US"}}} ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/operator/process-usertasks-lifecycle-springboot.yaml b/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/operator/process-usertasks-lifecycle-springboot.yaml deleted file mode 100644 index 4fadf4c42b..0000000000 --- a/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/operator/process-usertasks-lifecycle-springboot.yaml +++ /dev/null @@ -1,42 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-usertasks-lifecycle-springboot -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-usertasks-custom-lifecycle-springboot - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-usertasks-lifecycle-springboot -spec: - runtime: springboot \ No newline at end of file diff --git a/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/pom.xml b/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/pom.xml index 4131afd37c..f09999dfed 100644 --- a/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/pom.xml +++ b/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/pom.xml @@ -63,10 +63,10 @@ spring-boot-starter-actuator
- + - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter org.kie.kogito @@ -74,8 +74,8 @@ - org.kie.kogito - kogito-addons-springboot-task-management + org.jbpm + jbpm-addons-springboot-task-management @@ -90,12 +90,12 @@ notification - org.kie.kogito - kogito-addons-springboot-mail + org.jbpm + jbpm-addons-springboot-mail - org.kie.kogito - kogito-addons-springboot-task-notification + org.jbpm + jbpm-addons-springboot-task-notification org.springframework.kafka @@ -107,15 +107,15 @@ persistence - org.kie.kogito - kogito-addons-springboot-persistence-infinispan + org.kie + kie-addons-springboot-persistence-infinispan org.infinispan infinispan-spring-boot3-starter-remote - org.kie.kogito + org.kie kogito-addons-springboot-jobs-management diff --git a/kogito-springboot-examples/process-usertasks-springboot-with-console/README.md b/kogito-springboot-examples/process-usertasks-springboot-with-console/README.md index 09a1d7dec7..f42d43c673 100644 --- a/kogito-springboot-examples/process-usertasks-springboot-with-console/README.md +++ b/kogito-springboot-examples/process-usertasks-springboot-with-console/README.md @@ -227,7 +227,3 @@ Check the process instance details at Kogito Management Console, and verify the

- -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-springboot-examples/process-usertasks-springboot-with-console/pom.xml b/kogito-springboot-examples/process-usertasks-springboot-with-console/pom.xml index 34762af696..084ab8db19 100644 --- a/kogito-springboot-examples/process-usertasks-springboot-with-console/pom.xml +++ b/kogito-springboot-examples/process-usertasks-springboot-with-console/pom.xml @@ -57,10 +57,10 @@ spring-boot-starter-actuator
- + - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter @@ -82,24 +82,24 @@
- org.kie.kogito - kogito-addons-springboot-events-process-kafka + org.kie + kie-addons-springboot-events-process-kafka - org.kie.kogito - kogito-addons-springboot-persistence-infinispan + org.kie + kie-addons-springboot-persistence-infinispan org.infinispan infinispan-spring-boot3-starter-remote - org.kie.kogito - kogito-addons-springboot-process-svg + org.kie + kie-addons-springboot-process-svg - org.kie.kogito - kogito-addons-springboot-process-management + org.kie + kie-addons-springboot-process-management org.springframework.kafka diff --git a/kogito-springboot-examples/process-usertasks-springboot/README.md b/kogito-springboot-examples/process-usertasks-springboot/README.md index f1ade1de67..7a21181886 100644 --- a/kogito-springboot-examples/process-usertasks-springboot/README.md +++ b/kogito-springboot-examples/process-usertasks-springboot/README.md @@ -175,7 +175,3 @@ You should see a similar message after performing the second line approval after ```json {"id":"f498de73-e02d-4829-905e-2f768479a4f1", "approver":"admin","firstLineApproval":true, "secondLineApproval":true,"traveller":{"firstName":"John","lastName":"Doe","email":"jon.doe@example.com","nationality":"American","address":{"street":"main street","city":"Boston","zipCode":"10005","country":"US"}}} ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-springboot-examples/process-usertasks-springboot/operator/process-usertasks-springboot.yaml b/kogito-springboot-examples/process-usertasks-springboot/operator/process-usertasks-springboot.yaml deleted file mode 100644 index db8703b8a8..0000000000 --- a/kogito-springboot-examples/process-usertasks-springboot/operator/process-usertasks-springboot.yaml +++ /dev/null @@ -1,43 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-usertasks-springboot -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-usertasks-springboot - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-usertasks-springboot -spec: - runtime: springboot \ No newline at end of file diff --git a/kogito-springboot-examples/process-usertasks-springboot/pom.xml b/kogito-springboot-examples/process-usertasks-springboot/pom.xml index 245b7f4bdd..4078512b46 100644 --- a/kogito-springboot-examples/process-usertasks-springboot/pom.xml +++ b/kogito-springboot-examples/process-usertasks-springboot/pom.xml @@ -56,10 +56,10 @@ spring-boot-starter-actuator - + - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter org.springframework.boot diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/pom.xml b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/pom.xml index c9f06fec02..cfbfd16d79 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/pom.xml +++ b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/pom.xml @@ -64,10 +64,10 @@ spring-boot-starter-actuator - + - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter org.kie.kogito @@ -83,24 +83,24 @@ - org.kie.kogito - kogito-addons-springboot-events-process-kafka + org.kie + kie-addons-springboot-events-process-kafka - org.kie.kogito - kogito-addons-springboot-persistence-infinispan + org.kie + kie-addons-springboot-persistence-infinispan org.infinispan infinispan-spring-boot3-starter-remote - org.kie.kogito - kogito-addons-springboot-process-svg + org.kie + kie-addons-springboot-process-svg - org.kie.kogito - kogito-addons-springboot-process-management + org.kie + kie-addons-springboot-process-management org.springframework.kafka diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/pom.xml b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/pom.xml index d48a61f9e5..675a521a99 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/pom.xml +++ b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/pom.xml @@ -64,10 +64,10 @@ spring-boot-starter-oauth2-resource-server - + - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter org.springframework.boot diff --git a/kogito-springboot-examples/process-usertasks-with-security-springboot/README.md b/kogito-springboot-examples/process-usertasks-with-security-springboot/README.md index c0ea4efc12..a1c67b174e 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-springboot/README.md +++ b/kogito-springboot-examples/process-usertasks-with-security-springboot/README.md @@ -150,7 +150,3 @@ plus the approver who made the first one. } } ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-springboot-examples/process-usertasks-with-security-springboot/operator/process-tasks-security-springboot.yaml b/kogito-springboot-examples/process-usertasks-with-security-springboot/operator/process-tasks-security-springboot.yaml deleted file mode 100644 index 62b0d1ee68..0000000000 --- a/kogito-springboot-examples/process-usertasks-with-security-springboot/operator/process-tasks-security-springboot.yaml +++ /dev/null @@ -1,42 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: process-tasks-security-springboot -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/process-usertasks-with-security-springboot - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: process-tasks-security-springboot -spec: - runtime: springboot \ No newline at end of file diff --git a/kogito-springboot-examples/process-usertasks-with-security-springboot/pom.xml b/kogito-springboot-examples/process-usertasks-with-security-springboot/pom.xml index aa8eb7d5b7..ef31889a0e 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-springboot/pom.xml +++ b/kogito-springboot-examples/process-usertasks-with-security-springboot/pom.xml @@ -60,10 +60,10 @@ spring-boot-starter-security - + - org.kie.kogito - kogito-processes-spring-boot-starter + org.jbpm + jbpm-spring-boot-starter diff --git a/kogito-springboot-examples/rules-legacy-springboot-example/README.md b/kogito-springboot-examples/rules-legacy-springboot-example/README.md index 6a5caa4340..c272139876 100644 --- a/kogito-springboot-examples/rules-legacy-springboot-example/README.md +++ b/kogito-springboot-examples/rules-legacy-springboot-example/README.md @@ -95,7 +95,3 @@ Example response: } ] ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-springboot-examples/rules-legacy-springboot-example/operator/ruleunit-springboot-example.yaml b/kogito-springboot-examples/rules-legacy-springboot-example/operator/ruleunit-springboot-example.yaml deleted file mode 100644 index 6df41d8093..0000000000 --- a/kogito-springboot-examples/rules-legacy-springboot-example/operator/ruleunit-springboot-example.yaml +++ /dev/null @@ -1,42 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: ruleunit-springboot-example -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/ruleunit-springboot-example - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: ruleunit-springboot-example -spec: - runtime: springboot \ No newline at end of file diff --git a/kogito-springboot-examples/rules-legacy-springboot-example/pom.xml b/kogito-springboot-examples/rules-legacy-springboot-example/pom.xml index 5e51e630e6..23b33d2916 100644 --- a/kogito-springboot-examples/rules-legacy-springboot-example/pom.xml +++ b/kogito-springboot-examples/rules-legacy-springboot-example/pom.xml @@ -55,8 +55,8 @@ spring-boot-starter-actuator - org.kie.kogito - kogito-rules-spring-boot-starter + org.drools + drools-rules-spring-boot-starter diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/README.md b/kogito-springboot-examples/ruleunit-event-driven-springboot/README.md index bd5febc87e..a22962f99e 100644 --- a/kogito-springboot-examples/ruleunit-event-driven-springboot/README.md +++ b/kogito-springboot-examples/ruleunit-event-driven-springboot/README.md @@ -25,8 +25,8 @@ Like the other Kogito AddOns, the only required step to enable it is to include ```xml - org.kie.kogito - kogito-addons-springboot-event-rules + org.drools + drools-addons-springboot-event-rules ``` diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/pom.xml b/kogito-springboot-examples/ruleunit-event-driven-springboot/pom.xml index 70a90749d7..7127d84d34 100644 --- a/kogito-springboot-examples/ruleunit-event-driven-springboot/pom.xml +++ b/kogito-springboot-examples/ruleunit-event-driven-springboot/pom.xml @@ -55,12 +55,12 @@ spring-boot-starter-actuator
- org.kie.kogito - kogito-rules-spring-boot-starter + org.drools + drools-rules-spring-boot-starter - org.kie.kogito - kogito-addons-springboot-events-rules + org.drools + drools-addons-springboot-events-rules diff --git a/kogito-springboot-examples/ruleunit-springboot-example/README.md b/kogito-springboot-examples/ruleunit-springboot-example/README.md index 954be29be5..8b6bb20633 100644 --- a/kogito-springboot-examples/ruleunit-springboot-example/README.md +++ b/kogito-springboot-examples/ruleunit-springboot-example/README.md @@ -95,7 +95,3 @@ Example response: } ] ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-springboot-examples/ruleunit-springboot-example/operator/ruleunit-springboot-example.yaml b/kogito-springboot-examples/ruleunit-springboot-example/operator/ruleunit-springboot-example.yaml deleted file mode 100644 index 6df41d8093..0000000000 --- a/kogito-springboot-examples/ruleunit-springboot-example/operator/ruleunit-springboot-example.yaml +++ /dev/null @@ -1,42 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: ruleunit-springboot-example -spec: - type: RemoteSource - runtime: springboot - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/ruleunit-springboot-example - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: ruleunit-springboot-example -spec: - runtime: springboot \ No newline at end of file diff --git a/kogito-springboot-examples/ruleunit-springboot-example/pom.xml b/kogito-springboot-examples/ruleunit-springboot-example/pom.xml index 7a75adba96..600214fdd2 100644 --- a/kogito-springboot-examples/ruleunit-springboot-example/pom.xml +++ b/kogito-springboot-examples/ruleunit-springboot-example/pom.xml @@ -55,8 +55,8 @@ spring-boot-starter-actuator - org.kie.kogito - kogito-rules-spring-boot-starter + org.drools + drools-rules-spring-boot-starter diff --git a/serverless-workflow-examples/serverless-workflow-annotations-description/README.md b/serverless-workflow-examples/serverless-workflow-annotations-description/README.md index 419c103172..041f50ddac 100644 --- a/serverless-workflow-examples/serverless-workflow-annotations-description/README.md +++ b/serverless-workflow-examples/serverless-workflow-annotations-description/README.md @@ -44,9 +44,9 @@ paths: ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVm](https://www.graalvm.org/downloads/) 19.3.1+ installed diff --git a/serverless-workflow-examples/serverless-workflow-annotations-description/pom.xml b/serverless-workflow-examples/serverless-workflow-annotations-description/pom.xml index 635b7f58fe..d2f2636c3e 100644 --- a/serverless-workflow-examples/serverless-workflow-annotations-description/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-annotations-description/pom.xml @@ -38,16 +38,16 @@ Kogito Example :: Serverless Workflow Annotations and Description:: Quarkus Kogito Serverless Workflow Example - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final 3.22.0 org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 @@ -83,11 +83,11 @@
org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-annotations-description/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-annotations-description/src/main/resources/application.properties index fa834ae2ac..483bbb8b02 100644 --- a/serverless-workflow-examples/serverless-workflow-annotations-description/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-annotations-description/src/main/resources/application.properties @@ -23,6 +23,3 @@ %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin diff --git a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/README.md index 6ecec35db3..ca1d64c237 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/README.md @@ -20,9 +20,9 @@ The service is described using JSON format as defined in the ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVm](https://www.graalvm.org/downloads/) 19.3.1+ installed - Environment variable GRAALVM_HOME set accordingly diff --git a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/pom.xml b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/pom.xml index 6172a6fc4a..f70b5902af 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/pom.xml @@ -32,15 +32,15 @@ callback-event-service Kogito Example :: Serverless Workflow CallBack Over HTTP Quarkus :: Callback Event Service - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 diff --git a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/resources/application.properties index ac50073e89..659be82bcc 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/resources/application.properties @@ -29,6 +29,3 @@ quarkus.http.port=8181 %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin diff --git a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-workflow/pom.xml b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-workflow/pom.xml index ed48366abb..1bc7f44e9c 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-workflow/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-workflow/pom.xml @@ -33,15 +33,15 @@ Kogito Example :: Serverless Workflow CallBack Over HTTP Quarkus :: Service Kogito Serverless Workflow Callback Example Over HTTP - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 2.33.2 2.35.0 @@ -80,11 +80,11 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-callback-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-callback-quarkus/README.md index 5712e4bd3e..4f1fa2e1b1 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-callback-quarkus/README.md @@ -50,9 +50,9 @@ In this way a container for PostgreSQL will be started on port 5432. ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed - Docker and Docker Compose to run the required example infrastructure. When using native image compilation, you will also need: diff --git a/serverless-workflow-examples/serverless-workflow-callback-quarkus/docker-compose/docker-compose.yml b/serverless-workflow-examples/serverless-workflow-callback-quarkus/docker-compose/docker-compose.yml index 4c605c2bec..14e0bdd7e9 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-quarkus/docker-compose/docker-compose.yml +++ b/serverless-workflow-examples/serverless-workflow-callback-quarkus/docker-compose/docker-compose.yml @@ -83,7 +83,7 @@ services: data-index: container_name: data-index - image: quay.io/kiegroup/kogito-data-index-postgresql:${KOGITO_VERSION} + image: quay.io/kiegroup/kogito-data-index-postgresql-nightly:latest ports: - "8180:8080" depends_on: @@ -97,6 +97,10 @@ services: QUARKUS_DATASOURCE_JDBC_URL: "jdbc:postgresql://postgres:5432/kogito" QUARKUS_DATASOURCE_USERNAME: kogito-user QUARKUS_DATASOURCE_PASSWORD: kogito-pass + QUARKUS_PROFILE: kafka-events-support + KOGITO_DATA_INDEX_QUARKUS_PROFILE: kafka-events-support + QUARKUS_FLYWAY_MIGRATE_AT_START: "true" + QUARKUS_FLYWAY_TABLE: data-index-flyway KAFKA_BOOTSTRAP_SERVERS: kafka:29092 QUARKUS_HTTP_CORS_ORIGINS: "/.*/" KOGITO_DATA_INDEX_PROPS: -Dquarkus.hibernate-orm.database.generation=update diff --git a/serverless-workflow-examples/serverless-workflow-callback-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-callback-quarkus/pom.xml index 6acca1b25c..2dc7c13696 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-callback-quarkus/pom.xml @@ -37,15 +37,15 @@ Kogito Example :: Serverless Workflow Callback :: Quarkus Kogito Serverless Workflow Callback Example - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 @@ -73,24 +73,24 @@ kogito-quarkus-serverless-workflow - org.kie.kogito - kogito-addons-quarkus-messaging + org.kie + kie-addons-quarkus-messaging io.quarkus quarkus-smallrye-reactive-messaging-kafka - org.kie.kogito - kogito-addons-quarkus-events-process + org.kie + kie-addons-quarkus-events-process - org.kie.kogito - kogito-addons-quarkus-process-management + org.kie + kie-addons-quarkus-process-management org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui @@ -107,8 +107,8 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-addons-quarkus-persistence-jdbc + org.kie + kie-addons-quarkus-persistence-jdbc io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/resources/application.properties index 9fb8268b41..05736d7b90 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/resources/application.properties @@ -72,6 +72,6 @@ quarkus.native.native-image-xmx=8g %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin + + + diff --git a/serverless-workflow-examples/serverless-workflow-camel-routes/pom.xml b/serverless-workflow-examples/serverless-workflow-camel-routes/pom.xml index 39a60a0078..9e806dbb18 100644 --- a/serverless-workflow-examples/serverless-workflow-camel-routes/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-camel-routes/pom.xml @@ -39,14 +39,14 @@ Kogito Serverless Workflow Camel Routes Example - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT - 11 + 17 3.8.1 3.0.0-M7 diff --git a/serverless-workflow-examples/serverless-workflow-camel-routes/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-camel-routes/src/main/resources/application.properties index f8afab61c0..7599f54a41 100644 --- a/serverless-workflow-examples/serverless-workflow-camel-routes/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-camel-routes/src/main/resources/application.properties @@ -32,6 +32,3 @@ quarkus.cxf.path=/ws %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:1.32 -%container.quarkus.jib.working-directory=/home/kogito/bin diff --git a/serverless-workflow-examples/serverless-workflow-compensation-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-compensation-quarkus/README.md index 0688f1e701..03186f82b9 100644 --- a/serverless-workflow-examples/serverless-workflow-compensation-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-compensation-quarkus/README.md @@ -13,9 +13,9 @@ The process result is a boolean field `compensated` which value should match `sh ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVm](https://www.graalvm.org/downloads/) 19.3.1+ installed diff --git a/serverless-workflow-examples/serverless-workflow-compensation-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-compensation-quarkus/pom.xml index a4e4fcf1e4..f86ec69c16 100644 --- a/serverless-workflow-examples/serverless-workflow-compensation-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-compensation-quarkus/pom.xml @@ -37,16 +37,16 @@ Kogito Example :: Serverless Workflow Compensation :: Quarkus Kogito Serverless Workflow Error Compensation - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 3.0.0-M7 - 11 + 17 0.1.3 @@ -88,11 +88,11 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.rest-assured @@ -183,8 +183,8 @@
- org.kie.kogito - kogito-addons-quarkus-persistence-jdbc + org.kie + kie-addons-quarkus-persistence-jdbc io.quarkiverse.embedded.postgresql diff --git a/serverless-workflow-examples/serverless-workflow-compensation-quarkus/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-compensation-quarkus/src/main/resources/application.properties index b38ac6440f..34043ef3dd 100644 --- a/serverless-workflow-examples/serverless-workflow-compensation-quarkus/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-compensation-quarkus/src/main/resources/application.properties @@ -30,7 +30,4 @@ quarkus.native.native-image-xmx=8g %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/README.md index 0b073d10fe..84d174c315 100644 --- a/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/README.md @@ -19,9 +19,9 @@ This is the infrastructure required to integrate with [Knative Eventing](https:/ ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed - [Docker Engine](https://docs.docker.com/engine/) and [Docker Compose](https://docs.docker.com/compose/) installed When using native image compilation, you will also need: diff --git a/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/operator/startevent-sw.yaml b/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/operator/startevent-sw.yaml index 21c75ad5c7..fb3df1f118 100644 --- a/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/operator/startevent-sw.yaml +++ b/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/operator/startevent-sw.yaml @@ -17,15 +17,15 @@ # under the License. # -apiVersion: sw.kogito.kie.org/v1alpha08 -kind: KogitoServerlessWorkflow +apiVersion: sonataflow.org/v1alpha08 +kind: SonataFlow metadata: name: startevent annotations: - sw.kogito.kie.org/description: Serverless Workflow for each example on k8s! - sw.kogito.kie.org/version: 0.0.1 - sw.kogito.kie.org/profile: dev - sw.kogito.kie.org/resource-openapi: openapi-configmap + sonataflow.org/description: Serverless Workflow for each example on k8s! + sonataflow.org/version: 0.0.1 + sonataflow.org/profile: dev + sonataflow.org/resource-openapi: openapi-configmap spec: flow: start: printWaitMessage diff --git a/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/pom.xml index 09d25df64a..af52a03fa0 100644 --- a/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/pom.xml @@ -39,15 +39,15 @@ Kogito Example :: Serverless Workflow Consuming Events Over HTTP :: Quarkus Kogito Serverless Workflow Consuming Events Over HTTP - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 @@ -84,15 +84,15 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files - org.kie.kogito - kogito-addons-quarkus-process-management + org.kie + kie-addons-quarkus-process-management io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/src/main/resources/application.properties index 32290663b9..03172d7eb3 100644 --- a/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/src/main/resources/application.properties @@ -31,6 +31,3 @@ mp.messaging.incoming.start.path=/startevent %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin diff --git a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/README.md index 527c61b5f2..83535e600b 100644 --- a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/README.md @@ -90,9 +90,9 @@ to ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVm](https://www.graalvm.org/downloads/) 19.3.1+ installed diff --git a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/pom.xml index 3c0d01a420..d57a0600a0 100644 --- a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/pom.xml @@ -37,15 +37,15 @@ Kogito Example :: Serverless Workflow Correlation :: Quarkus Kogito Serverless Workflow Correlation Example - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 @@ -73,8 +73,8 @@ kogito-quarkus-serverless-workflow - org.kie.kogito - kogito-addons-quarkus-messaging + org.kie + kie-addons-quarkus-messaging io.quarkus @@ -94,11 +94,11 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files @@ -190,8 +190,8 @@ - org.kie.kogito - kogito-addons-quarkus-persistence-jdbc + org.kie + kie-addons-quarkus-persistence-jdbc io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/resources/application.properties index cc63608152..307953b261 100644 --- a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/resources/application.properties @@ -104,6 +104,3 @@ quarkus.grpc.dev-mode.force-server-start=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin diff --git a/serverless-workflow-examples/serverless-workflow-custom-function-knative/README.md b/serverless-workflow-examples/serverless-workflow-custom-function-knative/README.md index b3d6d32e2b..4243d40c5b 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-function-knative/README.md +++ b/serverless-workflow-examples/serverless-workflow-custom-function-knative/README.md @@ -14,7 +14,7 @@ The service is described using JSON format as defined in the ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - Maven 3.8.6++ installed When using native image compilation, you will also need: diff --git a/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/pom.xml b/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/pom.xml index ae50f13c7f..e0c14d0ec5 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/pom.xml @@ -32,15 +32,15 @@ custom-function-knative-service Kogito Example :: Serverless Workflow Custom Function Knative :: Service - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 diff --git a/serverless-workflow-examples/serverless-workflow-custom-function-knative/workflow/pom.xml b/serverless-workflow-examples/serverless-workflow-custom-function-knative/workflow/pom.xml index 5fff3a07f1..26fd62fc32 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-function-knative/workflow/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-custom-function-knative/workflow/pom.xml @@ -33,15 +33,15 @@ Kogito Example :: Serverless Workflow Custom Function Knative :: Workflow Kogito Serverless Workflow Custom Function Knative - Workflow - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 2.33.2 2.35.0 @@ -80,22 +80,22 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files - org.kie.kogito + org.kie kogito-addons-quarkus-knative-serving - org.kie.kogito - kogito-addons-quarkus-kubernetes + org.kie + kie-addons-quarkus-kubernetes - org.kie.kogito + org.kie kogito-addons-quarkus-fabric8-kubernetes-service-catalog diff --git a/serverless-workflow-examples/serverless-workflow-custom-type/pom.xml b/serverless-workflow-examples/serverless-workflow-custom-type/pom.xml index 12ab3e3f21..3b1c3f2066 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-type/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-custom-type/pom.xml @@ -38,15 +38,15 @@ 3.8.1 - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.0.0-M7 - 11 + 17 1.7.30 diff --git a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-type-example/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-type-example/src/main/resources/application.properties index cf9e09501c..1e67c7e96d 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-type-example/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-type-example/src/main/resources/application.properties @@ -26,7 +26,4 @@ quarkus.devservices.enabled=false %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-data-index-persistence-addon-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-data-index-persistence-addon-quarkus/README.md index 36579c6e4f..366dd2c979 100644 --- a/serverless-workflow-examples/serverless-workflow-data-index-persistence-addon-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-data-index-persistence-addon-quarkus/README.md @@ -29,9 +29,9 @@ In this way a container for PostgreSQL will be started on port 5432. ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed - Docker and Docker Compose to run the required example infrastructure. When using native image compilation, you will also need: diff --git a/serverless-workflow-examples/serverless-workflow-data-index-persistence-addon-quarkus/docker-compose/docker-compose.yml b/serverless-workflow-examples/serverless-workflow-data-index-persistence-addon-quarkus/docker-compose/docker-compose.yml index 56070ccab4..f6e0697dfd 100644 --- a/serverless-workflow-examples/serverless-workflow-data-index-persistence-addon-quarkus/docker-compose/docker-compose.yml +++ b/serverless-workflow-examples/serverless-workflow-data-index-persistence-addon-quarkus/docker-compose/docker-compose.yml @@ -30,7 +30,7 @@ services: data-index: container_name: data-index - image: quay.io/kiegroup/kogito-data-index-postgresql:${KOGITO_VERSION} + image: quay.io/kiegroup/kogito-data-index-postgresql-nightly:latest ports: - "8180:8080" depends_on: diff --git a/serverless-workflow-examples/serverless-workflow-data-index-persistence-addon-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-data-index-persistence-addon-quarkus/pom.xml index 6867e7376e..f05a6de5dc 100644 --- a/serverless-workflow-examples/serverless-workflow-data-index-persistence-addon-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-data-index-persistence-addon-quarkus/pom.xml @@ -17,15 +17,15 @@ Kogito Example :: Serverless Workflow Data Index persistence addon :: Quarkus Kogito Serverless Workflow Data Index persistence addon Example - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 @@ -61,8 +61,8 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-addons-quarkus-persistence-jdbc + org.kie + kie-addons-quarkus-persistence-jdbc io.quarkus @@ -73,16 +73,16 @@ quarkus-jdbc-postgresql - org.kie.kogito - kogito-addons-quarkus-process-management + org.kie + kie-addons-quarkus-process-management org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus @@ -90,15 +90,7 @@ test - io.quarkus - quarkus-resteasy - - - io.quarkus - quarkus-resteasy-jackson - - - org.kie.kogito + org.kie kogito-addons-quarkus-data-index-persistence-postgresql diff --git a/serverless-workflow-examples/serverless-workflow-data-index-persistence-addon-quarkus/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-data-index-persistence-addon-quarkus/src/main/resources/application.properties index a35fb1cfe2..0542e7832c 100644 --- a/serverless-workflow-examples/serverless-workflow-data-index-persistence-addon-quarkus/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-data-index-persistence-addon-quarkus/src/main/resources/application.properties @@ -25,9 +25,8 @@ quarkus.native.native-image-xmx=8g %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin %container.quarkus.container-image.name=serverless-workflow-service +# Security +quarkus.oidc.enabled=false diff --git a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/README.md index 67f56851bf..374599bc03 100644 --- a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/README.md @@ -50,9 +50,9 @@ In this way a container for PostgreSQL will be started on port 5432. ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed - Docker and Docker Compose to run the required example infrastructure. When using native image compilation, you will also need: @@ -118,12 +118,14 @@ Once all services bootstrap, the following ports will be assigned on your local - PgAdmin: 8055 - serverless-workflow-service: 8080 -> **_NOTE:_** This step requires the project to be compiled, please consider running a ```mvn clean package -Dcontainer``` command on the project root before running the ```docker-compose up``` for the first time or any time you modify the project. +> **_NOTE:_** This step requires the project to be compiled, please consider running a ```mvn clean package -P container,data-index-addon``` command on the project root before running the ```docker-compose up``` for the first time or any time you modify the project. Once started you can simply stop all services by executing the ```docker-compose -f docker-compose.yml stop```. All created containers can be removed by executing the ```docker-compose -f docker-compose.yml rm```. +Data Index GraphQL UI is available at http://localhost:8080/q/graphql-ui/ + This example provides also the configuration needed to see the dataindex deployed as a standalone service following the steps: - Execute @@ -205,4 +207,4 @@ After a while (note that to you need give time for event to be consumed) you sh ### Query process details in Data Index -Data Index GraphQL UI is available at http://localhost:8080/q/graphql-ui/ \ No newline at end of file +Data Index GraphQL UI is available at http://localhost:8180/graphiql/ \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/docker-compose/docker-compose-with-data-index.yml b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/docker-compose/docker-compose-with-data-index.yml index f27c5c0880..accb9a8cbb 100644 --- a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/docker-compose/docker-compose-with-data-index.yml +++ b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/docker-compose/docker-compose-with-data-index.yml @@ -20,40 +20,6 @@ version: '2.1' services: - zookeeper: - container_name: zookeeper - image: strimzi/kafka:0.20.1-kafka-2.6.0 - command: [ - "sh", "-c", - "bin/zookeeper-server-start.sh config/zookeeper.properties" - ] - ports: - - "2181:2181" - environment: - LOG_DIR: "/tmp/logs" - - kafka: - image: strimzi/kafka:0.20.1-kafka-2.6.0 - container_name: kafka - command: [ - "sh", "-c", - "bin/kafka-server-start.sh config/server.properties --override inter.broker.listener.name=$${KAFKA_INTER_BROKER_LISTENER_NAME} --override listener.security.protocol.map=$${KAFKA_LISTENER_SECURITY_PROTOCOL_MAP} --override listeners=$${KAFKA_LISTENERS} --override advertised.listeners=$${KAFKA_ADVERTISED_LISTENERS} --override zookeeper.connect=$${KAFKA_ZOOKEEPER_CONNECT}" - ] - depends_on: - - zookeeper - ports: - - "9092:9092" - environment: - KAFKA_BROKER_ID: 0 - KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 - KAFKA_LISTENERS: INTERNAL://kafka:29092,EXTERNAL://kafka:9092 - KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:29092,EXTERNAL://localhost:9092 - KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT - KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL - KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true" - KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 - LOG_DIR: "/tmp/logs" - postgres: container_name: postgres image: postgres:13.4-alpine3.14 @@ -83,7 +49,7 @@ services: data-index: container_name: data-index - image: quay.io/kiegroup/kogito-data-index-postgresql:${KOGITO_VERSION} + image: quay.io/kiegroup/kogito-data-index-postgresql-nightly:latest ports: - "8180:8080" depends_on: @@ -100,9 +66,7 @@ services: KOGITO_DATA_INDEX_QUARKUS_PROFILE: http-events-support QUARKUS_FLYWAY_MIGRATE_AT_START: "true" QUARKUS_FLYWAY_TABLE: data-index-flyway - QUARKUS_HIBERNATE_ORM_DATABASE_GENERATION: update - KOGITO_DATA_INDEX_PROPS: -Dquarkus.hibernate-orm.database.generation=update -Dquarkus.log.category."org.kie.kogito.index".min-level=DEBUG -Dquarkus.log.category."org.kie.kogito.index".level=DEBUG - + KOGITO_DATA_INDEX_PROPS: -Dquarkus.hibernate-orm.database.generation=update serverless-workflow-service: container_name: serverless-workflow-service @@ -110,8 +74,6 @@ services: ports: - "8080:8080" depends_on: - kafka: - condition: service_started postgres: condition: service_healthy data-index: diff --git a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/pom.xml index 7daa8a54d0..b388d83641 100644 --- a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/pom.xml @@ -37,15 +37,15 @@ Kogito Example :: Serverless Workflow Data Index :: Quarkus Kogito Serverless Workflow Data Index Example - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 @@ -73,8 +73,8 @@ kogito-quarkus-serverless-workflow - org.kie.kogito - kogito-addons-quarkus-messaging + org.kie + kie-addons-quarkus-messaging io.quarkus @@ -82,7 +82,7 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui io.quarkus @@ -98,8 +98,8 @@ quarkus-resteasy-jackson - org.kie.kogito - kogito-addons-quarkus-persistence-jdbc + org.kie + kie-addons-quarkus-persistence-jdbc io.quarkus @@ -148,7 +148,6 @@ data-index-addon - true data-index-addon @@ -160,7 +159,7 @@
- org.kie.kogito + org.kie kogito-addons-quarkus-data-index-postgresql @@ -218,16 +217,16 @@ quarkus-container-image-jib
- org.kie.kogito - kogito-addons-quarkus-events-process + org.kie + kie-addons-quarkus-events-process - org.kie.kogito - kogito-addons-quarkus-process-management + org.kie + kie-addons-quarkus-process-management - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files
diff --git a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/resources/application.properties index 5a7d177d58..5a65acb07b 100644 --- a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/resources/application.properties @@ -51,6 +51,8 @@ quarkus.flyway.migrate-at-start=true quarkus.kubernetes-client.devservices.enabled=false quarkus.native.native-image-xmx=8g +# Security +quarkus.oidc.enabled=false # profile to pack this example into a container, to use it execute activate the maven container profile, -Dcontainer %container.quarkus.container-image.build=true @@ -58,9 +60,6 @@ quarkus.native.native-image-xmx=8g %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin %data-index-addon.quarkus.kogito.devservices.enabled=false %data-index-addon.quarkus.datasource.devservices.enabled=true @@ -92,4 +91,5 @@ quarkus.native.native-image-xmx=8g %http-events.mp.messaging.outgoing.kogito-processdefinitions-events.connector=quarkus-http %http-events.mp.messaging.outgoing.kogito-processdefinitions-events.topic=kogito-processdefinitions-events -%http-events.mp.messaging.outgoing.kogito-processdefinitions-events.url=http://data-index:8180/processes +%http-events.mp.messaging.outgoing.kogito-processdefinitions-events.url=http://data-index:8180/definitions +%http-events.mp.messaging.outgoing.kogito-processdefinitions-events.method=POST \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/test/resources/application.properties b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/test/resources/application.properties index 1c385db7f3..e0723a1fac 100644 --- a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/test/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/test/resources/application.properties @@ -17,4 +17,5 @@ # under the License. # -quarkus.kogito.devservices.enabled=false \ No newline at end of file +quarkus.kogito.devservices.enabled=true +quarkus.flyway.table=test_flyway \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-error-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-error-quarkus/README.md index 75ab1ffe51..8cf7623931 100644 --- a/serverless-workflow-examples/serverless-workflow-error-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-error-quarkus/README.md @@ -17,9 +17,9 @@ Hence, this workflow expects JSON input containing a natural number. This number ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVm](https://www.graalvm.org/downloads/) 19.3.1+ installed diff --git a/serverless-workflow-examples/serverless-workflow-error-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-error-quarkus/pom.xml index 2197037be9..8386c4a170 100644 --- a/serverless-workflow-examples/serverless-workflow-error-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-error-quarkus/pom.xml @@ -37,14 +37,14 @@ Kogito Example :: Serverless Workflow Error :: Quarkus Kogito Serverless Workflow Error Example - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT - 11 + 17 3.8.1 3.0.0-M7 @@ -82,11 +82,11 @@
org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/resources/application.properties index a0e08deb92..835a80df6b 100644 --- a/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/resources/application.properties @@ -26,7 +26,4 @@ quarkus.native.native-image-xmx=8g %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-events-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-events-quarkus/README.md index 39193b78ee..9593da9378 100644 --- a/serverless-workflow-examples/serverless-workflow-events-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-events-quarkus/README.md @@ -19,9 +19,9 @@ Here is the overall architecture of this example: ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed - Apache Kafka installed When using native image compilation, you will also need: diff --git a/serverless-workflow-examples/serverless-workflow-events-quarkus/operator/serverless-workflow-events-quarkus.yaml b/serverless-workflow-examples/serverless-workflow-events-quarkus/operator/serverless-workflow-events-quarkus.yaml deleted file mode 100644 index 464f1f36ca..0000000000 --- a/serverless-workflow-examples/serverless-workflow-events-quarkus/operator/serverless-workflow-events-quarkus.yaml +++ /dev/null @@ -1,52 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -#Strimzi operator should be pre-installed in namespace -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoInfra -metadata: - name: kogito-kafka-infra -spec: - resource: - apiVersion: kafka.strimzi.io/v1beta2 - kind: Kafka ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: serverless-workflow-events-quarkus -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/serverless-workflow-events-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: serverless-workflow-events-quarkus -spec: - infra: - - kogito-kafka-infra \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-events-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-events-quarkus/pom.xml index 13e8a8b527..6975755e5c 100644 --- a/serverless-workflow-examples/serverless-workflow-events-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-events-quarkus/pom.xml @@ -37,15 +37,15 @@ Kogito Example :: Serverless Workflow Events :: Quarkus Kogito Serverless Workflow Example - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 999-SNAPSHOT @@ -95,15 +95,15 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-marshallers-avro + org.kie + kie-addons-quarkus-marshallers-avro - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/resources/application.properties index 994441fa93..39e1b63ac0 100644 --- a/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/resources/application.properties @@ -49,6 +49,3 @@ quarkus.native.native-image-xmx=8g %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin diff --git a/serverless-workflow-examples/serverless-workflow-expression-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-expression-quarkus/README.md index ee9d93b4a0..9c795c53fa 100644 --- a/serverless-workflow-examples/serverless-workflow-expression-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-expression-quarkus/README.md @@ -13,9 +13,9 @@ The service accepts an array of complex numbers (x being the real coordinate and ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVm](https://www.graalvm.org/downloads/) 19.3.1+ installed diff --git a/serverless-workflow-examples/serverless-workflow-expression-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-expression-quarkus/pom.xml index db452bb5c9..f17c960ddb 100644 --- a/serverless-workflow-examples/serverless-workflow-expression-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-expression-quarkus/pom.xml @@ -37,14 +37,14 @@ Kogito Example :: Serverless Workflow Expression :: Quarkus Kogito Serverless Workflow Expression Example - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT - 11 + 17 3.8.1 3.0.0-M7 @@ -82,11 +82,11 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-expression-quarkus/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-expression-quarkus/src/main/resources/application.properties index 51af282246..6e0c07135b 100644 --- a/serverless-workflow-examples/serverless-workflow-expression-quarkus/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-expression-quarkus/src/main/resources/application.properties @@ -28,7 +28,4 @@ quarkus.devservices.enabled=false %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-foreach-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-foreach-quarkus/README.md index d6a0ac8e1e..4ef85e8329 100644 --- a/serverless-workflow-examples/serverless-workflow-foreach-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-foreach-quarkus/README.md @@ -14,9 +14,9 @@ The service is described using JSON format as defined in the ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVm](https://www.graalvm.org/downloads/) 19.3.1+ installed diff --git a/serverless-workflow-examples/serverless-workflow-foreach-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-foreach-quarkus/pom.xml index 1c15c18a5b..05b76f2acf 100644 --- a/serverless-workflow-examples/serverless-workflow-foreach-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-foreach-quarkus/pom.xml @@ -37,14 +37,14 @@ Kogito Example :: Serverless Workflow For Each :: Quarkus Kogito Serverless Workflow For Each Example - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT - 11 + 17 3.8.1 3.0.0-M7 @@ -87,11 +87,11 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.rest-assured diff --git a/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/main/resources/application.properties index cf9e09501c..1e67c7e96d 100644 --- a/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/main/resources/application.properties @@ -26,7 +26,4 @@ quarkus.devservices.enabled=false %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/main/resources/foreach.sw.json b/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/main/resources/foreach.sw.json index 5532eed27f..dbd6852ad6 100644 --- a/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/main/resources/foreach.sw.json +++ b/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/main/resources/foreach.sw.json @@ -6,9 +6,9 @@ "start": "start", "functions": [ { - "name": "printMessage", - "type": "custom", - "operation": "sysout" + "name": "double", + "type": "expression", + "operation": "$WORKFLOW.prevActionResult*2" }, { "name": "increase", @@ -30,18 +30,11 @@ "actions": [ { "name":"increase", - "functionRef": { - "refName": "increase" - } + "functionRef": "increase" }, { - "name": "printAction", - "functionRef": { - "refName": "printMessage", - "arguments": { - "message": ".item" - } - } + "name": "double", + "functionRef": "double" }], "end": true } diff --git a/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/test/java/org/kie/kogito/examples/ForEachRestIT.java b/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/test/java/org/kie/kogito/examples/ForEachRestIT.java index f185daf26d..8b8b06e115 100644 --- a/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/test/java/org/kie/kogito/examples/ForEachRestIT.java +++ b/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/test/java/org/kie/kogito/examples/ForEachRestIT.java @@ -41,7 +41,7 @@ void testForEachRest() { .post("/foreach") .then() .statusCode(201) - .body("workflowdata.output", is(Arrays.asList(2, 3, 4))) + .body("workflowdata.output", is(Arrays.asList(4, 6, 8))) .body("workflowdata.input", nullValue()); } } diff --git a/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/README.md index 06876d9d63..e9b9645243 100644 --- a/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/README.md @@ -61,9 +61,9 @@ Also, there is the Swagger UI that can also be used to explore the APIs in this ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVm](https://www.graalvm.org/downloads/) 20.2.0+ installed diff --git a/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/pom.xml index 120afd5b7e..c2aa4e6922 100644 --- a/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/pom.xml @@ -39,15 +39,15 @@ 8080 - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 ${version.surefire.plugin} 2.33.2 @@ -73,16 +73,16 @@ - org.kie.kogito - kogito-quarkus-rules + org.drools + drools-quarkus-rules org.kie.kogito kogito-quarkus-serverless-workflow - org.kie.kogito - kogito-addons-quarkus-knative-eventing + org.kie + kie-addons-quarkus-knative-eventing org.kie.kogito @@ -110,11 +110,11 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/src/main/resources/application.properties index 537214ac4b..3063f22f91 100644 --- a/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/src/main/resources/application.properties @@ -50,6 +50,3 @@ org.kie.kogito.addons.knative.eventing.generate-kogito-source=true %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin diff --git a/serverless-workflow-examples/serverless-workflow-functions-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-functions-quarkus/README.md index aaac4d822c..e59d9bf7a6 100644 --- a/serverless-workflow-examples/serverless-workflow-functions-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-functions-quarkus/README.md @@ -18,9 +18,9 @@ Finally, the resulting integer is printed using sysout script. ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVm](https://www.graalvm.org/downloads/) 20.2.0+ installed @@ -110,6 +110,3 @@ In Quarkus you should see the log message printed: ```text The sum is: 387 ``` -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/serverless-workflow-examples/serverless-workflow-functions-quarkus/operator/serverless-workflow-greeting-quarkus.yaml b/serverless-workflow-examples/serverless-workflow-functions-quarkus/operator/serverless-workflow-greeting-quarkus.yaml deleted file mode 100644 index 6ea9cc119e..0000000000 --- a/serverless-workflow-examples/serverless-workflow-functions-quarkus/operator/serverless-workflow-greeting-quarkus.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: serverless-workflow-greeting-quarkus -spec: - type: RemoteSource - #envs: - # envs can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/serverless-workflow-greeting-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: serverless-workflow-greeting-quarkus \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-functions-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-functions-quarkus/pom.xml index 6bf2bf883a..4fce1c7553 100644 --- a/serverless-workflow-examples/serverless-workflow-functions-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-functions-quarkus/pom.xml @@ -39,15 +39,15 @@ 8080 - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 2.33.2 @@ -97,11 +97,11 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-functions-quarkus/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-functions-quarkus/src/main/resources/application.properties index cf547c4fc1..fc862dced8 100644 --- a/serverless-workflow-examples/serverless-workflow-functions-quarkus/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-functions-quarkus/src/main/resources/application.properties @@ -32,7 +32,4 @@ quarkus.swagger-ui.always-include=true %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-funqy/README.md b/serverless-workflow-examples/serverless-workflow-funqy/README.md index eb78c6fa04..1771f6dd14 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/README.md +++ b/serverless-workflow-examples/serverless-workflow-funqy/README.md @@ -17,9 +17,9 @@ orchestrate any services you want. ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVm](https://www.graalvm.org/downloads/) 19.3.1+ installed diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/pom.xml b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/pom.xml index e2d5c45394..4c341aba66 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/pom.xml @@ -31,12 +31,12 @@ Kogito Example :: Serverless Workflow :: Funqy :: Services Kogito Serverless Workflow Funqy Services - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final 3.8.1 - 11 + 17 3.0.0-M7 2.2 diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/resources/application.properties index 4964f61609..22cef7da81 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/resources/application.properties @@ -27,7 +27,4 @@ quarkus.native.native-image-xmx=8g %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/pom.xml b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/pom.xml index 2ed177321e..f3a4bd953b 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/pom.xml @@ -31,15 +31,15 @@ Kogito Example :: Serverless Workflow :: Funqy :: Workflow Kogito Serverless Workflow Funqy Workflow - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 2.33.2 diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/src/main/resources/application.properties index 579623f8ac..617635fa97 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/src/main/resources/application.properties @@ -28,7 +28,4 @@ quarkus.devservices.enabled=false %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/README.md b/serverless-workflow-examples/serverless-workflow-github-showcase/README.md index 92d902859e..177d40b34f 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/README.md +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/README.md @@ -49,7 +49,7 @@ Alternatively, you can also install it via [OperatorHub](https://operatorhub.io/ In your local machine you will need: 1. To clone this repository and go to `serverless-workflow-github-showcase` directory (`git clone https://github.com/apache/incubator-kie-kogito-examples.git && cd serverless-workflow-github-showcase`) -2. [Java 11 SDK](https://openjdk.java.net/install/) +2. [Java 17 SDK](https://openjdk.java.net/install/) 3. [Maven 3.8.1+](https://maven.apache.org/install.html) 4. [Podman](https://podman.io/getting-started/installation.html) or Docker to build the images 5. `kubectl` or `oc` client diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/pom.xml b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/pom.xml index 441958378e..fa3f5adca9 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/pom.xml @@ -36,7 +36,7 @@ io.quarkus 2.13.1.Final 3.8.1 - 11 + 17 diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/resources/application.properties index 0c98d495f5..0abadfa507 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/resources/application.properties @@ -31,7 +31,4 @@ quarkus.native.enable-https-url-handler=true %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/pom.xml b/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/pom.xml index 87ff53f377..47d49f7164 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/pom.xml @@ -37,7 +37,7 @@ 2.13.1.Final 2.3.0 3.8.1 - 11 + 17
diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/main/resources/application.properties index 3e01b21cd5..80d5cb9819 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/main/resources/application.properties @@ -29,6 +29,3 @@ quarkus.index-dependency.cloudevents.artifact-id=cloudevents-http-restful-ws %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/pom.xml b/serverless-workflow-examples/serverless-workflow-github-showcase/pom.xml index 54e879527e..d4aa14f13d 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/pom.xml @@ -42,7 +42,7 @@ notification-service - 3.0.5 + 3.1.6 3.0.0-M7 0.11.2 1.116 diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/pom.xml b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/pom.xml index 6c50260718..8b948626fb 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/pom.xml @@ -39,7 +39,7 @@ kogito-bom 1.29.0.Final 3.8.1 - 11 + 17 @@ -65,8 +65,8 @@ kogito-quarkus-serverless-workflow
- org.kie.kogito - kogito-addons-quarkus-knative-eventing + org.kie + kie-addons-quarkus-knative-eventing io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/application.properties index 1144a5fdd1..1e456969aa 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/application.properties @@ -41,7 +41,4 @@ mp.messaging.outgoing.checker_workflow_backend.url=${K_SINK} %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin diff --git a/serverless-workflow-examples/serverless-workflow-greeting-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-greeting-quarkus/README.md index 8f325790bd..a0f38d3892 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-greeting-quarkus/README.md @@ -24,9 +24,9 @@ The function then prints out the greeting to the console. ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVm](https://www.graalvm.org/downloads/) 19.3.1+ installed @@ -140,7 +140,3 @@ Hello from YAML Workflow, John ``` You can also change the language parameter value to "Spanish" to get the greeting in Spanish. - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/serverless-workflow-examples/serverless-workflow-greeting-quarkus/operator/serverless-workflow-greeting-quarkus.yaml b/serverless-workflow-examples/serverless-workflow-greeting-quarkus/operator/serverless-workflow-greeting-quarkus.yaml deleted file mode 100644 index eeba091290..0000000000 --- a/serverless-workflow-examples/serverless-workflow-greeting-quarkus/operator/serverless-workflow-greeting-quarkus.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: serverless-workflow-greeting-quarkus -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/serverless-workflow-greeting-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: serverless-workflow-greeting-quarkus \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-greeting-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-greeting-quarkus/pom.xml index 635b995824..4800e00de8 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-greeting-quarkus/pom.xml @@ -37,14 +37,14 @@ Kogito Example :: Serverless Workflow Greeting :: Quarkus Kogito Serverless Workflow Example - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT - 11 + 17 3.8.1 3.0.0-M7 @@ -86,11 +86,11 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-greeting-quarkus/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-greeting-quarkus/src/main/resources/application.properties index a0e08deb92..835a80df6b 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-quarkus/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-greeting-quarkus/src/main/resources/application.properties @@ -26,7 +26,4 @@ quarkus.native.native-image-xmx=8g %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/README.md index 02547b78ff..4849929b87 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/README.md @@ -25,9 +25,9 @@ The languages supported currently are English and Spanish. In case a supported l ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVm](https://www.graalvm.org/downloads/) 19.3.1+ installed diff --git a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/pom.xml index 5a2b251691..edb7b2ea42 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/pom.xml @@ -31,15 +31,15 @@ Kogito Example :: Serverless Workflow Greeting :: gRPC Client :: Quarkus Kogito Serverless Workflow Example that test a simple gRPC service - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 @@ -95,11 +95,11 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files
diff --git a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/src/main/resources/application.properties index e45cd186d3..357dbd5bd7 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/src/main/resources/application.properties @@ -34,6 +34,3 @@ quarkus.devservices.enabled=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin diff --git a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/README.md index 9fad0bb3c1..d75d0ab2d2 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/README.md @@ -9,7 +9,7 @@ This module contains a simple greeting gRPC server definition and implementation ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - Maven 3.8.6+ installed diff --git a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/pom.xml index 1ebfc54e1a..9e2f328822 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/pom.xml @@ -33,7 +33,7 @@ Kogito Serverless Workflow Example that defines a simple gRPC service - Quarkus 3.8.1 - 11 + 17 3.0.0-M7 3.22.0 1.56.0 diff --git a/serverless-workflow-examples/serverless-workflow-hello-world/pom.xml b/serverless-workflow-examples/serverless-workflow-hello-world/pom.xml index db35022b12..4fd5ac2aa2 100644 --- a/serverless-workflow-examples/serverless-workflow-hello-world/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-hello-world/pom.xml @@ -39,15 +39,15 @@ Kogito Serverless Workflow Example - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 999-SNAPSHOT - 11 + 17 3.8.1 3.0.0-M7 ${version.surefire.plugin} @@ -90,11 +90,11 @@
org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-hello-world/src/main/docker/Dockerfile.jvm b/serverless-workflow-examples/serverless-workflow-hello-world/src/main/docker/Dockerfile.jvm index b85ab2029c..c7f1b5276c 100644 --- a/serverless-workflow-examples/serverless-workflow-hello-world/src/main/docker/Dockerfile.jvm +++ b/serverless-workflow-examples/serverless-workflow-hello-world/src/main/docker/Dockerfile.jvm @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-hello-world/src/main/docker/Dockerfile.legacy-jar b/serverless-workflow-examples/serverless-workflow-hello-world/src/main/docker/Dockerfile.legacy-jar index 14a009717f..a34cf8fdbe 100644 --- a/serverless-workflow-examples/serverless-workflow-hello-world/src/main/docker/Dockerfile.legacy-jar +++ b/serverless-workflow-examples/serverless-workflow-hello-world/src/main/docker/Dockerfile.legacy-jar @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-hello-world/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-hello-world/src/main/resources/application.properties index fa834ae2ac..eb1ab3c488 100644 --- a/serverless-workflow-examples/serverless-workflow-hello-world/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-hello-world/src/main/resources/application.properties @@ -23,6 +23,4 @@ %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin + diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/README.md b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/README.md index 899c593e08..3418e2f7a4 100644 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/README.md +++ b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/README.md @@ -9,7 +9,7 @@ You can easily deploy this example on Minikube by using the provided `deploy.sh` 1. Installed Minikube 2. Installed [Knative Quickstart](https://knative.dev/docs/getting-started/quickstart-install/) on your Minikube installation. It adds a new `knative` profile to your cluster, so bear in mind that every command on Minikube must be followed by `-p knative`. -3. Installed JDK 11, Maven, NPM, and Docker in order to build all the parts of the example. +3. Installed JDK 17, Maven, NPM, and Docker in order to build all the parts of the example. Start the tunnel in a separate terminal: diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/aggregator/src/main/docker/Dockerfile.jvm b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/aggregator/src/main/docker/Dockerfile.jvm index c32eda3b00..996836bb3d 100644 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/aggregator/src/main/docker/Dockerfile.jvm +++ b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/aggregator/src/main/docker/Dockerfile.jvm @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/aggregator/src/main/docker/Dockerfile.legacy-jar b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/aggregator/src/main/docker/Dockerfile.legacy-jar index bf40fa6a1d..20f4e5c6dd 100644 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/aggregator/src/main/docker/Dockerfile.legacy-jar +++ b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/aggregator/src/main/docker/Dockerfile.legacy-jar @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/deploy.sh b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/deploy.sh index 876af41cab..5273539ea4 100755 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/deploy.sh +++ b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/deploy.sh @@ -143,7 +143,7 @@ add_flow_url_to_ui() { expose_loanbroker_ui() { echo "Exposing UI, please run 'minikube tunnel -p knative' in a separate terminal" - kubectl expose deployment loanbroker-ui --name=loanbroker-ui-external --type=LoadBalancer --port=8080 -n ${NAMESPACE} + kubectl expose deployment serverless-workflow-loanbroker-showcase-ui --name=loanbroker-ui-external --type=LoadBalancer --port=8080 -n ${NAMESPACE} sleep 5 LOANBROKER_EXTERNAL_IP=$(kubectl get service loanbroker-ui-external -o=jsonpath --template="{.status.loadBalancer.ingress[0].ip}" -n loanbroker-example) echo "To access the loanbroker-example UI please use this url: http://$LOANBROKER_EXTERNAL_IP:8080" diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/pom.xml b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/pom.xml index ca6dc4a461..0c90c537b6 100644 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/pom.xml @@ -57,15 +57,15 @@ kogito-quarkus-serverless-workflow - org.kie.kogito - kogito-addons-quarkus-knative-eventing + org.kie + kie-addons-quarkus-knative-eventing - org.kie.kogito - kogito-addons-quarkus-kubernetes + org.kie + kie-addons-quarkus-kubernetes - org.kie.kogito + org.kie kogito-addons-quarkus-fabric8-kubernetes-service-catalog @@ -194,8 +194,8 @@
- org.kie.kogito - kogito-addons-quarkus-persistence-jdbc + org.kie + kie-addons-quarkus-persistence-jdbc io.quarkus @@ -206,7 +206,7 @@ quarkus-agroal - org.kie.kogito + org.kie kogito-addons-quarkus-jobs-knative-eventing diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/docker/Dockerfile.jvm b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/docker/Dockerfile.jvm index e92d3fdf44..327d69d924 100644 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/docker/Dockerfile.jvm +++ b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/docker/Dockerfile.jvm @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/docker/Dockerfile.legacy-jar b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/docker/Dockerfile.legacy-jar index fd3bc8a552..68540059c8 100644 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/docker/Dockerfile.legacy-jar +++ b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/docker/Dockerfile.legacy-jar @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/resources/application.properties index c73fc30684..89219144b3 100644 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/resources/application.properties @@ -20,6 +20,7 @@ kogito.service.url=${KOGITO_SERVICE_CLUSTER_URL:http://localhost:8080} kogito.messaging.as-cloudevents=true +kogito.addon.messaging.outgoing.cloudEventMode.kogito_outgoing_stream=structured quarkus.http.cors.origins=* diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/src/main/docker/Dockerfile.jvm b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/src/main/docker/Dockerfile.jvm index 0a21739272..231bbb25f3 100644 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/src/main/docker/Dockerfile.jvm +++ b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/src/main/docker/Dockerfile.jvm @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/src/main/docker/Dockerfile.legacy-jar b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/src/main/docker/Dockerfile.legacy-jar index b85a4b4e95..9dd33ad4e1 100644 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/src/main/docker/Dockerfile.legacy-jar +++ b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/src/main/docker/Dockerfile.legacy-jar @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/pom.xml b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/pom.xml index 6dc817c285..02b661869f 100644 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/pom.xml @@ -39,10 +39,10 @@ serverless-workflow-loanbroker-showcase pom - 3.2.9.Final + 3.2.10.Final io.quarkus quarkus-bom - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -59,7 +59,7 @@ 3.0.0-M7 3.8.1 - 11 + 17 ${version.surefire.plugin} diff --git a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/kubernetes/data-index-services.yml b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/kubernetes/data-index-services.yml index f191c7ef7e..8f739b156b 100644 --- a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/kubernetes/data-index-services.yml +++ b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/kubernetes/data-index-services.yml @@ -88,16 +88,98 @@ spec: value: "http-events-support" - name: QUARKUS_HTTP_PORT value: "8080" + - name: KOGITO_SERVICE_URL + value: http://data-index-service-postgresql --- apiVersion: eventing.knative.dev/v1 kind: Trigger metadata: - name: data-index-service-postgresql-processes-trigger + name: data-index-service-postgresql-process-definition-trigger spec: broker: default filter: attributes: - type: ProcessInstanceEvent + type: ProcessDefinitionEvent + subscriber: + ref: + apiVersion: v1 + kind: Service + name: data-index-service-postgresql + uri: /definitions +--- +apiVersion: eventing.knative.dev/v1 +kind: Trigger +metadata: + name: data-index-service-postgresql-process-error-trigger +spec: + broker: default + filter: + attributes: + type: ProcessInstanceErrorDataEvent + subscriber: + ref: + apiVersion: v1 + kind: Service + name: data-index-service-postgresql + uri: /processes +--- +apiVersion: eventing.knative.dev/v1 +kind: Trigger +metadata: + name: data-index-service-postgresql-process-node-trigger +spec: + broker: default + filter: + attributes: + type: ProcessInstanceNodeDataEvent + subscriber: + ref: + apiVersion: v1 + kind: Service + name: data-index-service-postgresql + uri: /processes +--- +apiVersion: eventing.knative.dev/v1 +kind: Trigger +metadata: + name: data-index-service-postgresql-process-sla-trigger +spec: + broker: default + filter: + attributes: + type: ProcessInstanceSLADataEvent + subscriber: + ref: + apiVersion: v1 + kind: Service + name: data-index-service-postgresql + uri: /processes +--- +apiVersion: eventing.knative.dev/v1 +kind: Trigger +metadata: + name: data-index-service-postgresql-process-state-trigger +spec: + broker: default + filter: + attributes: + type: ProcessInstanceStateDataEvent + subscriber: + ref: + apiVersion: v1 + kind: Service + name: data-index-service-postgresql + uri: /processes +--- +apiVersion: eventing.knative.dev/v1 +kind: Trigger +metadata: + name: data-index-service-postgresql-process-variable-trigger +spec: + broker: default + filter: + attributes: + type: ProcessInstanceVariableDataEvent subscriber: ref: apiVersion: v1 diff --git a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/kubernetes/supporting-services.yml b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/kubernetes/supporting-services.yml index 64eab99807..f82d323c74 100644 --- a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/kubernetes/supporting-services.yml +++ b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/kubernetes/supporting-services.yml @@ -173,6 +173,8 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace + - name: KOGITO_SERVICE_URL + value: http://jobs-service-postgresql - name: JOBS_SERVICE_PERSISTENCE value: "postgresql" - name: KOGITO_JOBS_SERVICE_HTTP_JOB_STATUS_CHANGE_EVENTS diff --git a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/pom.xml b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/pom.xml index 2e7e30fdf4..7354b7fce8 100644 --- a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/pom.xml @@ -39,10 +39,10 @@ serverless-workflow-newsletter-subscription pom - 3.2.9.Final + 3.2.10.Final io.quarkus quarkus-bom - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -50,7 +50,7 @@ 5.1.3 3.6.0 3.8.1 - 11 + 17 ${version.surefire.plugin} diff --git a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/pom.xml b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/pom.xml index 12b2e8e849..95366d5e26 100644 --- a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/pom.xml @@ -78,42 +78,42 @@ - org.kie.kogito - kogito-addons-quarkus-kubernetes + org.kie + kie-addons-quarkus-kubernetes - org.kie.kogito + org.kie kogito-addons-quarkus-fabric8-kubernetes-service-catalog - org.kie.kogito - kogito-addons-quarkus-messaging + org.kie + kie-addons-quarkus-messaging - org.kie.kogito - kogito-addons-quarkus-knative-eventing + org.kie + kie-addons-quarkus-knative-eventing - org.kie.kogito - kogito-addons-quarkus-events-process + org.kie + kie-addons-quarkus-events-process org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files - org.kie.kogito - kogito-addons-quarkus-process-management + org.kie + kie-addons-quarkus-process-management @@ -246,8 +246,8 @@ quarkus-container-image-jib - org.kie.kogito - kogito-addons-quarkus-persistence-jdbc + org.kie + kie-addons-quarkus-persistence-jdbc io.quarkus @@ -258,7 +258,7 @@ quarkus-agroal - org.kie.kogito + org.kie kogito-addons-quarkus-jobs-knative-eventing diff --git a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/src/main/resources/application-knative.properties b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/src/main/resources/application-knative.properties index 008cfa2a48..8ce2a74312 100644 --- a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/src/main/resources/application-knative.properties +++ b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/src/main/resources/application-knative.properties @@ -37,37 +37,19 @@ quarkus.datasource.password=${POSTGRES_PASSWORD:pass} # Events produced by kogito-addons-quarkus-jobs-knative-eventing to program the timers on the jobs service. mp.messaging.outgoing.kogito-job-service-job-request-events.connector=quarkus-http -# The K_SINK variable is automatically injected by the Knative ecosystem. The default value http://localhost:8280 -# is used for local testing. mp.messaging.outgoing.kogito-job-service-job-request-events.url=${K_SINK:http://localhost:8280/v2/jobs/events} mp.messaging.outgoing.kogito-job-service-job-request-events.method=POST -# process, variables and user tasks events configuration. -mp.messaging.outgoing.kogito-processinstances-events.connector=quarkus-http -mp.messaging.outgoing.kogito-processinstances-events.url=${K_SINK:http://localhost:8180/processes} -mp.messaging.outgoing.kogito-processinstances-events.method=POST - kogito.events.usertasks.enabled=false -mp.messaging.outgoing.kogito-usertaskinstances-events.connector=quarkus-http -mp.messaging.outgoing.kogito-usertaskinstances-events.url=${K_SINK:http://localhost:8180/tasks} -mp.messaging.outgoing.kogito-usertaskinstances-events.method=POST - kogito.events.variables.enabled=false -mp.messaging.outgoing.kogito-variables-events.connector=quarkus-http -mp.messaging.outgoing.kogito-variables-events.url=${K_SINK:http://localhost:8180/variables} -mp.messaging.outgoing.kogito-variables-events.method=POST - -mp.messaging.outgoing.kogito-processdefinitions-events.connector=quarkus-http -mp.messaging.outgoing.kogito-processdefinitions-events.url={K_SINK:http://localhost:8180/definitions} -mp.messaging.outgoing.kogito-processdefinitions-events.method=POST +kogito.addon.messaging.outgoing.cloudEventMode=structured ## Knative integration: -# Use the Kogito service discovery mechanism to get the subscription-service url and set an env var with name SUBSCRIPTION_SERVICE_URL +# Use the Kogito service discovery mechanism to get the subscription-service url # For more information see: # https://kiegroup.github.io/kogito-docs/serverlessworkflow/latest/cloud/kubernetes-service-discovery.html -# https://quarkus.io/guides/deploying-to-kubernetes#environment-variables-from-keyvalue-pairs -quarkus.knative.env.vars.subscription_service_url=${knative:services.v1.serving.knative.dev/newsletter-showcase/subscription-service} +quarkus.rest-client.subscription_service_yaml.url=${knative:services.v1.serving.knative.dev/newsletter-showcase/subscription-service} # Configure current deployment to set an env var with name POSTGRES_HOST # For more information see: https://quarkus.io/guides/deploying-to-kubernetes#environment-variables-from-keyvalue-pairs @@ -84,7 +66,9 @@ quarkus.knative.env.vars.postgres_host=newsletter-postgres # you can change this property with -Pknative -Dquarkus.container-image.group from the command line. quarkus.container-image.group=dev.local quarkus.kubernetes.deployment-target=knative +# The name of the application. This value will be used for naming Kubernetes resources like: Deployment, Service, etc. quarkus.knative.name=subscription-flow +quarkus.container-image.name=${quarkus.knative.name} quarkus.knative.image-pull-policy=IfNotPresent # Kogito Knative integration diff --git a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/src/main/resources/application.properties index eb97107b39..86b736b0b6 100644 --- a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/src/main/resources/application.properties @@ -30,7 +30,7 @@ quarkus.log.category."org.kie.kogito.addon.quarkus.messaging".level=DEBUG # Internally, Kogito Serverless Workflow uses the Quarkus OpenAPI Generator extension. # The default value http://localhost:8282 is used for local testing. In kubernetes environments, the env var # SUBSCRIPTION_SERVICE_URL will be used instead. This env var is configured in the application-knative.properties file. -quarkus.rest-client.subscription_service_yaml.url=${SUBSCRIPTION_SERVICE_URL:http://localhost:8282} +quarkus.rest-client.subscription_service_yaml.url=http://localhost:8282 mp.messaging.incoming.kogito_incoming_stream.connector=quarkus-http mp.messaging.incoming.kogito_incoming_stream.path=/ @@ -47,26 +47,7 @@ mp.messaging.outgoing.kogito_outgoing_stream.url=${K_SINK:http://localhost:8181} %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin - -# process, variables and user tasks events configuration. -mp.messaging.outgoing.kogito-processinstances-events.connector=quarkus-http -mp.messaging.outgoing.kogito-processinstances-events.url=http://localhost:8180/processes -mp.messaging.outgoing.kogito-processinstances-events.method=POST kogito.events.usertasks.enabled=false -mp.messaging.outgoing.kogito-usertaskinstances-events.connector=quarkus-http -mp.messaging.outgoing.kogito-usertaskinstances-events.url=http://localhost:8180/tasks -mp.messaging.outgoing.kogito-usertaskinstances-events.method=POST - kogito.events.variables.enabled=false -mp.messaging.outgoing.kogito-variables-events.connector=quarkus-http -mp.messaging.outgoing.kogito-variables-events.url=http://localhost:8180/variables -mp.messaging.outgoing.kogito-variables-events.method=POST -# process definitions events configuration. -mp.messaging.outgoing.kogito-processdefinitions-events.connector=quarkus-http -mp.messaging.outgoing.kogito-processdefinitions-events.url=http://localhost:8180/definitions -mp.messaging.outgoing.kogito-processdefinitions-events.method=POST diff --git a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-service/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-service/src/main/resources/application.properties index 56362445c2..fdabd6120e 100644 --- a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-service/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-service/src/main/resources/application.properties @@ -27,6 +27,3 @@ quarkus.native.native-image-xmx=8g %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/pom.xml b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/pom.xml index 9b7cfda4e7..c82933550d 100644 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/pom.xml @@ -30,15 +30,15 @@ acme-financial-service Kogito Example :: Serverless Workflow Oauth2 Orchestration Example :: ACME Financial Service - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 3.22.0 diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/src/main/docker/Dockerfile.jvm b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/src/main/docker/Dockerfile.jvm index a5d1510824..66a75a263d 100644 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/src/main/docker/Dockerfile.jvm +++ b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/src/main/docker/Dockerfile.jvm @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/src/main/docker/Dockerfile.legacy-jar b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/src/main/docker/Dockerfile.legacy-jar index d90445070a..08c2ec28bd 100644 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/src/main/docker/Dockerfile.legacy-jar +++ b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/src/main/docker/Dockerfile.legacy-jar @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/src/main/resources/application.properties index 9da00942ab..b2e303fe3e 100644 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/src/main/resources/application.properties @@ -40,7 +40,4 @@ quarkus.oidc.tenant-enabled=true %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/README.md b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/README.md index c9b52c7ec6..f3ed523731 100644 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/README.md +++ b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/README.md @@ -40,9 +40,9 @@ You can navigate to this URL [Keycloak console](http://localhost:8281/auth) to c ### Prerequisites You will need: -- Java 11+ installed +- Java 17+ installed - Environment variable JAVA_HOME set accordingly -- Maven 3.8.6+ installed +- Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVm](https://www.graalvm.org/downloads/) 19.3.1+ installed diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/pom.xml b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/pom.xml index bd83135e91..9a8dc66d8c 100644 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/pom.xml @@ -32,15 +32,15 @@ Kogito Example :: Serverless Workflow Oauth2 Orchestration Example :: Currency Exchange - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 @@ -88,11 +88,11 @@
org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/docker/Dockerfile.jvm b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/docker/Dockerfile.jvm index 28f6495c83..234e2ff8fa 100644 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/docker/Dockerfile.jvm +++ b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/docker/Dockerfile.jvm @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/docker/Dockerfile.legacy-jar b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/docker/Dockerfile.legacy-jar index 77f6fdc177..ae4e430263 100644 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/docker/Dockerfile.legacy-jar +++ b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/docker/Dockerfile.legacy-jar @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/resources/application.properties index 23c0e03ce2..acf5d3b30e 100644 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/resources/application.properties @@ -39,6 +39,3 @@ quarkus.oidc-client.acme_financial_oauth.credentials.client-secret.value=secret %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin diff --git a/serverless-workflow-examples/serverless-workflow-openvino-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-openvino-quarkus/README.md index b2ab550f8c..b55278b4d5 100644 --- a/serverless-workflow-examples/serverless-workflow-openvino-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-openvino-quarkus/README.md @@ -11,9 +11,9 @@ The flow, given an image file name containing a dog image, returns that dog's ra ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed - Python 3+ installed. In Linux system is usually pre-installed. In case you have an older version or you are not using Linux, check [here](https://wiki.python.org/moin/BeginnersGuide/Download) - Pip installed. In case it not there, run `python -m ensurepip --upgrade` - Python required libraries, equivalent to run `pip install -r requirements.txt` and `pip install jep`, will be automatically installed when running Maven. diff --git a/serverless-workflow-examples/serverless-workflow-openvino-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-openvino-quarkus/pom.xml index b8fafc5aa4..f1f1313fbf 100644 --- a/serverless-workflow-examples/serverless-workflow-openvino-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-openvino-quarkus/pom.xml @@ -44,7 +44,7 @@ org.kie.kogito kogito-bom 999-SNAPSHOT - 11 + 17 1.6.0 3.8.1 3.0.0-M7 @@ -88,11 +88,11 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-openvino-quarkus/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-openvino-quarkus/src/main/resources/application.properties index fd7f461cbb..c220b65aae 100644 --- a/serverless-workflow-examples/serverless-workflow-openvino-quarkus/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-openvino-quarkus/src/main/resources/application.properties @@ -28,7 +28,4 @@ quarkus.devservices.enabled=false %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-order-processing/README.md b/serverless-workflow-examples/serverless-workflow-order-processing/README.md index 4b73857961..24c913075d 100644 --- a/serverless-workflow-examples/serverless-workflow-order-processing/README.md +++ b/serverless-workflow-examples/serverless-workflow-order-processing/README.md @@ -39,9 +39,9 @@ receiving your events. ### Prerequisites You will need: -- Java 11+ installed +- Java 17+ installed - Environment variable JAVA_HOME set accordingly -- Maven 3.8.6+ installed +- Maven 3.9.6+ installed When using native image compilation, you will also need: - GraalVM 19.3+ installed diff --git a/serverless-workflow-examples/serverless-workflow-order-processing/pom.xml b/serverless-workflow-examples/serverless-workflow-order-processing/pom.xml index 76c94a2209..69247b2886 100644 --- a/serverless-workflow-examples/serverless-workflow-order-processing/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-order-processing/pom.xml @@ -38,16 +38,16 @@ Kogito Example :: Serverless Workflow Order Processing - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 2.33.2 - 11 + 17 3.0.0-M7 @@ -75,8 +75,8 @@ kogito-quarkus-serverless-workflow - org.kie.kogito - kogito-addons-quarkus-knative-eventing + org.kie + kie-addons-quarkus-knative-eventing io.quarkus @@ -92,11 +92,11 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-order-processing/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-order-processing/src/main/resources/application.properties index 74f3823419..a120da6e1f 100644 --- a/serverless-workflow-examples/serverless-workflow-order-processing/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-order-processing/src/main/resources/application.properties @@ -43,7 +43,4 @@ quarkus.swagger-ui.always-include=true %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin diff --git a/serverless-workflow-examples/serverless-workflow-parallel-execution/pom.xml b/serverless-workflow-examples/serverless-workflow-parallel-execution/pom.xml index 74c359c2a6..e695bce93a 100644 --- a/serverless-workflow-examples/serverless-workflow-parallel-execution/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-parallel-execution/pom.xml @@ -39,15 +39,15 @@ Kogito Serverless Workflow Example - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 999-SNAPSHOT - 11 + 17 3.8.1 3.0.0-M7 ${version.surefire.plugin} diff --git a/serverless-workflow-examples/serverless-workflow-parallel-execution/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-parallel-execution/src/main/resources/application.properties index 73f781ddaa..e248eb1d7e 100644 --- a/serverless-workflow-examples/serverless-workflow-parallel-execution/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-parallel-execution/src/main/resources/application.properties @@ -22,7 +22,4 @@ %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-python-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-python-quarkus/README.md index 21de2466b1..9721186d96 100644 --- a/serverless-workflow-examples/serverless-workflow-python-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-python-quarkus/README.md @@ -9,7 +9,7 @@ This example contains a simple workflow definition that executes numpy generator ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - Maven 3.8.6+ installed - Python3 installed diff --git a/serverless-workflow-examples/serverless-workflow-python-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-python-quarkus/pom.xml index 70485ab060..edef0088fe 100644 --- a/serverless-workflow-examples/serverless-workflow-python-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-python-quarkus/pom.xml @@ -37,14 +37,14 @@ Kogito Example :: Serverless Workflow Python :: Quarkus Kogito Serverless Workflow Python Example - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT - 11 + 17 1.6.0 3.8.1 3.0.0-M7 @@ -88,11 +88,11 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-qas-service-showcase/pom.xml b/serverless-workflow-examples/serverless-workflow-qas-service-showcase/pom.xml index 97a7cbf025..fc5aa023a7 100644 --- a/serverless-workflow-examples/serverless-workflow-qas-service-showcase/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-qas-service-showcase/pom.xml @@ -47,7 +47,7 @@ 5.1.3 3.6.0 3.8.1 - 11 + 17 ${version.surefire.plugin}
diff --git a/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-answer-service/README.md b/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-answer-service/README.md index a16984631f..4649f393b8 100644 --- a/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-answer-service/README.md +++ b/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-answer-service/README.md @@ -50,9 +50,9 @@ In this way, a container for PostgreSQL will be started on port 5432. ### Prerequisites You will need: -- Java 11+ installed +- Java 17+ installed - Environment variable JAVA_HOME set accordingly -- Maven 3.8.6+ installed +- Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVm](https://www.graalvm.org/downloads/) 19.3.1+ installed diff --git a/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-answer-service/pom.xml b/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-answer-service/pom.xml index efb5604ca3..c98b9a19c5 100644 --- a/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-answer-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-answer-service/pom.xml @@ -31,10 +31,10 @@ query-answer-service Kogito Example :: Serverless Workflow Query and Answer :: Workflow Service - 3.2.9.Final + 3.2.10.Final io.quarkus quarkus-bom - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -79,16 +79,16 @@
org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files - org.kie.kogito - kogito-addons-quarkus-messaging + org.kie + kie-addons-quarkus-messaging @@ -199,8 +199,8 @@
- org.kie.kogito - kogito-addons-quarkus-persistence-jdbc + org.kie + kie-addons-quarkus-persistence-jdbc io.quarkus @@ -255,12 +255,12 @@ quarkus-container-image-jib - org.kie.kogito - kogito-addons-quarkus-persistence-postgresql + org.kie + kie-addons-quarkus-persistence-postgresql - org.kie.kogito - kogito-addons-quarkus-knative-eventing + org.kie + kie-addons-quarkus-knative-eventing diff --git a/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-answer-service/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-answer-service/src/main/resources/application.properties index fed3afb307..e26b8d9519 100644 --- a/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-answer-service/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-answer-service/src/main/resources/application.properties @@ -31,6 +31,3 @@ quarkus.http.test-port=0 %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin diff --git a/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-service/pom.xml b/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-service/pom.xml index 07572a182a..32835f6e5e 100644 --- a/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-service/pom.xml @@ -31,10 +31,10 @@ query-service Kogito Example :: Serverless Workflow Query and Answer :: Query Service - 3.2.9.Final + 3.2.10.Final io.quarkus quarkus-bom - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-service/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-service/src/main/resources/application.properties index 72ce6e8c5e..de02d67ac5 100644 --- a/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-service/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-service/src/main/resources/application.properties @@ -29,6 +29,3 @@ quarkus.swagger-ui.always-include=true %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin diff --git a/serverless-workflow-examples/serverless-workflow-saga-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-saga-quarkus/README.md index 967b0415a9..404477ee45 100644 --- a/serverless-workflow-examples/serverless-workflow-saga-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-saga-quarkus/README.md @@ -32,9 +32,9 @@ This is the Serverless Workflow that represents the Order Saga. ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVM 21.3.0+](https://github.com/oracle/graal/releases/tag/vm-21.3.0) @@ -191,9 +191,3 @@ In the console executing the application, you can check the log with the execute 2021-12-21 09:20:45,968 INFO [org.kie.kog.exa.StockService] (executor-thread-0) Cancel Stock 8cc0144b-87e0-47ed-8d8f-eedbe4b69abe 2021-12-21 09:20:45,970 INFO [org.kie.kog.exa.OrderService] (executor-thread-0) Order Failed 03e6cf79-3301-434b-b5e1-d6899b5639aa ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). - -See also: [SAGA PATTERN WITH PROCESSES AND KOGITO – PART 1](https://blog.kie.org/2021/11/saga-pattern-with-processes-and-kogito-part-1.html) diff --git a/serverless-workflow-examples/serverless-workflow-saga-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-saga-quarkus/pom.xml index 29eb154b2f..517fc973af 100644 --- a/serverless-workflow-examples/serverless-workflow-saga-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-saga-quarkus/pom.xml @@ -37,15 +37,15 @@ How to implement Saga with a Serverless Workflow - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.22.0 3.0.0-M7 ${version.surefire.plugin} @@ -81,11 +81,11 @@
org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files diff --git a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/resources/application.properties index 73f781ddaa..e248eb1d7e 100644 --- a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/resources/application.properties @@ -22,7 +22,4 @@ %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/README.md index f483420a97..474fafd955 100644 --- a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/README.md @@ -20,9 +20,9 @@ service to store the data before it finishes execution. ### Prerequisites You will need: - - Java 11+ installed + - Java 17+ installed - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + - Maven 3.9.6+ installed When using native image compilation, you will also need: - [GraalVm](https://www.graalvm.org/downloads/) 19.3.1+ installed diff --git a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/operator/serverless-workflow-service-calls-quarkus.yaml b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/operator/serverless-workflow-service-calls-quarkus.yaml deleted file mode 100644 index f1f58725c4..0000000000 --- a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/operator/serverless-workflow-service-calls-quarkus.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoBuild -metadata: - name: serverless-workflow-service-calls-quarkus -spec: - type: RemoteSource - #env: - # env can be used to set variables during build - #- name: MY_CUSTOM_ENV - # value: "my value" - gitSource: - contextDir: kogito-quarkus-examples/serverless-workflow-service-calls-quarkus - uri: 'https://github.com/apache/incubator-kie-kogito-examples' - # set your maven nexus repository to speed up the build time - #mavenMirrorURL: ---- -apiVersion: app.kiegroup.org/v1beta1 -kind: KogitoRuntime -metadata: - name: serverless-workflow-service-calls-quarkus \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/pom.xml index 6083aeff00..921a31f44e 100644 --- a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/pom.xml @@ -37,15 +37,15 @@ Kogito Example :: Serverless Workflow Service Calls :: Quarkus Kogito Serverless Workflow Example - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 2.33.2 @@ -91,11 +91,11 @@
org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/resources/application.properties index a0e08deb92..835a80df6b 100644 --- a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/resources/application.properties @@ -26,7 +26,4 @@ quarkus.native.native-image-xmx=8g %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-stock-profit/fake-stock-service/src/main/docker/Dockerfile.jvm b/serverless-workflow-examples/serverless-workflow-stock-profit/fake-stock-service/src/main/docker/Dockerfile.jvm index 93dd02d618..cd45ab0d97 100644 --- a/serverless-workflow-examples/serverless-workflow-stock-profit/fake-stock-service/src/main/docker/Dockerfile.jvm +++ b/serverless-workflow-examples/serverless-workflow-stock-profit/fake-stock-service/src/main/docker/Dockerfile.jvm @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-stock-profit/fake-stock-service/src/main/docker/Dockerfile.legacy-jar b/serverless-workflow-examples/serverless-workflow-stock-profit/fake-stock-service/src/main/docker/Dockerfile.legacy-jar index 87393e85ab..41d1621f24 100644 --- a/serverless-workflow-examples/serverless-workflow-stock-profit/fake-stock-service/src/main/docker/Dockerfile.legacy-jar +++ b/serverless-workflow-examples/serverless-workflow-stock-profit/fake-stock-service/src/main/docker/Dockerfile.legacy-jar @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-stock-profit/fake-stock-service/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-stock-profit/fake-stock-service/src/main/resources/application.properties index 4641f6c4b8..98dfa696af 100644 --- a/serverless-workflow-examples/serverless-workflow-stock-profit/fake-stock-service/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-stock-profit/fake-stock-service/src/main/resources/application.properties @@ -24,7 +24,4 @@ quarkus.http.port=8181 %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-stock-profit/pom.xml b/serverless-workflow-examples/serverless-workflow-stock-profit/pom.xml index 4e3d724d99..989128e568 100644 --- a/serverless-workflow-examples/serverless-workflow-stock-profit/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-stock-profit/pom.xml @@ -42,15 +42,15 @@ fake-stock-service - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 ${version.surefire.plugin} 3.0.0-beta-8 diff --git a/serverless-workflow-examples/serverless-workflow-stock-profit/real-stock-service/src/main/docker/Dockerfile.jvm b/serverless-workflow-examples/serverless-workflow-stock-profit/real-stock-service/src/main/docker/Dockerfile.jvm index 93dd02d618..cd45ab0d97 100644 --- a/serverless-workflow-examples/serverless-workflow-stock-profit/real-stock-service/src/main/docker/Dockerfile.jvm +++ b/serverless-workflow-examples/serverless-workflow-stock-profit/real-stock-service/src/main/docker/Dockerfile.jvm @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-stock-profit/real-stock-service/src/main/docker/Dockerfile.legacy-jar b/serverless-workflow-examples/serverless-workflow-stock-profit/real-stock-service/src/main/docker/Dockerfile.legacy-jar index 87393e85ab..41d1621f24 100644 --- a/serverless-workflow-examples/serverless-workflow-stock-profit/real-stock-service/src/main/docker/Dockerfile.legacy-jar +++ b/serverless-workflow-examples/serverless-workflow-stock-profit/real-stock-service/src/main/docker/Dockerfile.legacy-jar @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-stock-profit/real-stock-service/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-stock-profit/real-stock-service/src/main/resources/application.properties index ad01ef277b..fc350f01e5 100644 --- a/serverless-workflow-examples/serverless-workflow-stock-profit/real-stock-service/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-stock-profit/real-stock-service/src/main/resources/application.properties @@ -24,7 +24,4 @@ quarkus.http.port=8383 %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-stock-profit/stock-portfolio-service/src/main/docker/Dockerfile.jvm b/serverless-workflow-examples/serverless-workflow-stock-profit/stock-portfolio-service/src/main/docker/Dockerfile.jvm index 93dd02d618..cd45ab0d97 100644 --- a/serverless-workflow-examples/serverless-workflow-stock-profit/stock-portfolio-service/src/main/docker/Dockerfile.jvm +++ b/serverless-workflow-examples/serverless-workflow-stock-profit/stock-portfolio-service/src/main/docker/Dockerfile.jvm @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-stock-profit/stock-portfolio-service/src/main/docker/Dockerfile.legacy-jar b/serverless-workflow-examples/serverless-workflow-stock-profit/stock-portfolio-service/src/main/docker/Dockerfile.legacy-jar index 87393e85ab..41d1621f24 100644 --- a/serverless-workflow-examples/serverless-workflow-stock-profit/stock-portfolio-service/src/main/docker/Dockerfile.legacy-jar +++ b/serverless-workflow-examples/serverless-workflow-stock-profit/stock-portfolio-service/src/main/docker/Dockerfile.legacy-jar @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-stock-profit/stock-portfolio-service/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-stock-profit/stock-portfolio-service/src/main/resources/application.properties index ea46e86634..2b3e37e96e 100644 --- a/serverless-workflow-examples/serverless-workflow-stock-profit/stock-portfolio-service/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-stock-profit/stock-portfolio-service/src/main/resources/application.properties @@ -24,7 +24,4 @@ quarkus.http.port=8282 %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-stock-profit/stock-profit/src/main/docker/Dockerfile.jvm b/serverless-workflow-examples/serverless-workflow-stock-profit/stock-profit/src/main/docker/Dockerfile.jvm index afc63a04c0..bf21486a69 100644 --- a/serverless-workflow-examples/serverless-workflow-stock-profit/stock-profit/src/main/docker/Dockerfile.jvm +++ b/serverless-workflow-examples/serverless-workflow-stock-profit/stock-profit/src/main/docker/Dockerfile.jvm @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-stock-profit/stock-profit/src/main/docker/Dockerfile.legacy-jar b/serverless-workflow-examples/serverless-workflow-stock-profit/stock-profit/src/main/docker/Dockerfile.legacy-jar index 2b592069c0..b189bdf3f0 100644 --- a/serverless-workflow-examples/serverless-workflow-stock-profit/stock-profit/src/main/docker/Dockerfile.legacy-jar +++ b/serverless-workflow-examples/serverless-workflow-stock-profit/stock-profit/src/main/docker/Dockerfile.legacy-jar @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-stock-profit/stock-profit/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-stock-profit/stock-profit/src/main/resources/application.properties index ed770d55f7..b944624580 100644 --- a/serverless-workflow-examples/serverless-workflow-stock-profit/stock-profit/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-stock-profit/stock-profit/src/main/resources/application.properties @@ -27,7 +27,4 @@ quarkus.rest-client.stock_portfolio_svc_yaml.url=http://localhost:8282/ %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/pom.xml b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/pom.xml index 22950fafc8..04d25a6369 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/pom.xml @@ -30,15 +30,15 @@ conversion-workflow-full Kogito Example :: Serverless Workflow Temperature Conversion :: Conversion Full Service - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 ${version.surefire.plugin} 2.33.2 @@ -84,11 +84,11 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/src/main/resources/application.properties index 4f669af3ab..1ce4302a08 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/src/main/resources/application.properties @@ -35,7 +35,4 @@ kogito.sw.operationIdStrategy=FULL_URI %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/pom.xml b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/pom.xml index 21b725dd84..87e8350b57 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/pom.xml @@ -30,15 +30,15 @@ conversion-workflow-function Kogito Example :: Serverless Workflow Temperature Conversion :: Conversion Function Service - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 ${version.surefire.plugin} 2.33.2 @@ -84,11 +84,11 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/src/main/resources/application.properties index cd825baa04..1b3906418b 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/src/main/resources/application.properties @@ -35,7 +35,4 @@ kogito.sw.operationIdStrategy=FUNCTION_NAME %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/pom.xml b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/pom.xml index 532bf9c4df..9e20c64b52 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/pom.xml @@ -30,15 +30,15 @@ conversion-workflow-spec Kogito Example :: Serverless Workflow Temperature Conversion :: Conversion Spec Service - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 ${version.surefire.plugin} 2.33.2 @@ -84,11 +84,11 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/src/main/resources/application.properties index 7a652693f9..e1dba8408f 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/src/main/resources/application.properties @@ -35,7 +35,4 @@ kogito.sw.operationIdStrategy=SPEC_TITLE %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/README.md b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/README.md index 679d40b57f..e0e39c4c98 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/README.md +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/README.md @@ -24,9 +24,9 @@ Finally, the result will be returned to the caller, the final product of the equ You will need: -- Java 11+ installed +- Java 17+ installed - Environment variable `JAVA_HOME` set accordingly -- Maven 3.8.6+ installed +- Maven 3.9.6+ installed When using native image compilation, you will also need: @@ -108,7 +108,3 @@ You should have a reply similar to this one: } } ``` - -## Deploying with Kogito Operator - -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/pom.xml b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/pom.xml index f950e213ea..eab38437df 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/pom.xml @@ -30,15 +30,15 @@ conversion-workflow Kogito Example :: Serverless Workflow Temperature Conversion :: Conversion Service - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT 3.8.1 - 11 + 17 3.0.0-M7 ${version.surefire.plugin} 2.33.2 @@ -80,11 +80,11 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/src/main/resources/application.properties index 65632d0bba..ab2c443a8e 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/src/main/resources/application.properties @@ -33,7 +33,4 @@ quarkus.rest-client.multiplication_yaml.url=http://localhost:8282 %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/pom.xml b/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/pom.xml index 68af4e1bbb..ef40f3d600 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/pom.xml @@ -30,12 +30,12 @@ multiplication-service Kogito Example :: Serverless Workflow Temperature Conversion :: Multiplication Service - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final 3.8.1 - 11 + 17 3.0.0-M7 ${version.surefire.plugin} diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/resources/application.properties index b5d77d8a45..26552ec40d 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/resources/application.properties @@ -27,7 +27,4 @@ quarkus.swagger-ui.always-include=true %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/pom.xml b/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/pom.xml index fa21be9285..eccbe3c694 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/pom.xml @@ -30,12 +30,12 @@ subtraction-service Kogito Example :: Serverless Workflow Temperature Conversion :: Subtraction Service - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final 3.8.1 - 11 + 17 3.0.0-M7 ${version.surefire.plugin} diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/resources/application.properties index b5d77d8a45..26552ec40d 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/resources/application.properties @@ -27,7 +27,4 @@ quarkus.swagger-ui.always-include=true %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/pom.xml b/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/pom.xml index 7ff5ad1e0b..4f265432bd 100644 --- a/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/pom.xml @@ -38,14 +38,14 @@ Kogito Example :: Serverless Workflow Testing with REST Assured :: Quarkus Kogito Serverless Workflow Example - Quarkus - 3.2.9.Final + 3.2.10.Final quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT - 11 + 17 3.8.1 3.0.0-M7 ${version.surefire.plugin} @@ -88,11 +88,11 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/src/main/docker/Dockerfile.jvm b/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/src/main/docker/Dockerfile.jvm index de3293361a..9ba0eaf662 100644 --- a/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/src/main/docker/Dockerfile.jvm +++ b/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/src/main/docker/Dockerfile.jvm @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/src/main/docker/Dockerfile.legacy-jar b/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/src/main/docker/Dockerfile.legacy-jar index 3b3db7d9c4..6420308f26 100644 --- a/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/src/main/docker/Dockerfile.legacy-jar +++ b/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/src/main/docker/Dockerfile.legacy-jar @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/src/main/resources/application.properties index 73f781ddaa..e248eb1d7e 100644 --- a/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/src/main/resources/application.properties @@ -22,7 +22,4 @@ %container.quarkus.container-image.push=false %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local -%container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin \ No newline at end of file +%container.quarkus.container-image.tag=1.0-SNAPSHOT \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/pom.xml b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/pom.xml index e69b16b1e8..2b8df219a5 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/pom.xml @@ -40,11 +40,11 @@ UTF-8 quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT - 11 + 17 3.8.1 3.0.0-M7 ${version.surefire.plugin} @@ -105,11 +105,11 @@ org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files @@ -126,19 +126,19 @@ quarkus-agroal
- org.kie.kogito - kogito-addons-quarkus-persistence-jdbc + org.kie + kie-addons-quarkus-persistence-jdbc - org.kie.kogito + org.kie kogito-addons-quarkus-jobs-service-embedded - org.kie.kogito + org.kie kogito-addons-quarkus-data-index-inmemory @@ -253,11 +253,11 @@ quarkus-container-image-jib
- org.kie.kogito - kogito-addons-quarkus-kubernetes + org.kie + kie-addons-quarkus-kubernetes - org.kie.kogito + org.kie kogito-addons-quarkus-fabric8-kubernetes-service-catalog
diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/docker/Dockerfile.jvm b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/docker/Dockerfile.jvm index 6b93296be6..e680317f5a 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/docker/Dockerfile.jvm +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/docker/Dockerfile.jvm @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/docker/Dockerfile.legacy-jar b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/docker/Dockerfile.legacy-jar index a217de4a04..de6cfc6cd8 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/docker/Dockerfile.legacy-jar +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/docker/Dockerfile.legacy-jar @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/resources/application.properties index f1964662d4..370f3de745 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/resources/application.properties @@ -51,6 +51,3 @@ mp.messaging.outgoing.response_events.method=POST %container.quarkus.container-image.registry=dev.local %quarkus.container-image.name=timeouts-showcase-embedded %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/pom.xml b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/pom.xml index b99ad931ea..0661a8674c 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/pom.xml @@ -40,7 +40,7 @@ UTF-8 quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT @@ -97,20 +97,20 @@ kogito-quarkus-serverless-workflow
- org.kie.kogito - kogito-addons-quarkus-kubernetes + org.kie + kie-addons-quarkus-kubernetes - org.kie.kogito + org.kie kogito-addons-quarkus-fabric8-kubernetes-service-catalog org.kie.kogito - kogito-quarkus-serverless-workflow-devui + sonataflow-quarkus-devui - org.kie.kogito - kogito-addons-quarkus-source-files + org.kie + kie-addons-quarkus-source-files @@ -216,20 +216,20 @@
- org.kie.kogito - kogito-addons-quarkus-events-process + org.kie + kie-addons-quarkus-events-process - org.kie.kogito - kogito-addons-quarkus-knative-eventing + org.kie + kie-addons-quarkus-knative-eventing - org.kie.kogito + org.kie kogito-addons-quarkus-jobs-knative-eventing - org.kie.kogito - kogito-addons-quarkus-persistence-jdbc + org.kie + kie-addons-quarkus-persistence-jdbc io.quarkus diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/resources/application.properties index 51bcda8c6f..70b46247a4 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/resources/application.properties @@ -43,6 +43,3 @@ mp.messaging.outgoing.response_events.method=POST %container.quarkus.container-image.group=${USER} %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/pom.xml b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/pom.xml index bf985feee0..8dc6814643 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/pom.xml @@ -40,11 +40,11 @@ UTF-8 quarkus-bom io.quarkus - 3.2.9.Final + 3.2.10.Final org.kie.kogito kogito-bom 999-SNAPSHOT - 11 + 17 3.8.1 3.0.0-M7 ${version.surefire.plugin} diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/docker/Dockerfile.jvm b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/docker/Dockerfile.jvm index 11f0918ef3..3db101ec90 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/docker/Dockerfile.jvm +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/docker/Dockerfile.jvm @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/docker/Dockerfile.legacy-jar b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/docker/Dockerfile.legacy-jar index ca97968c69..0889a78b3a 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/docker/Dockerfile.legacy-jar +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/docker/Dockerfile.legacy-jar @@ -75,7 +75,7 @@ # accessed directly. (example: "foo.example.com,bar.example.com") # ### -FROM registry.access.redhat.com/ubi8/openjdk-11:1.11 +FROM registry.access.redhat.com/ubi8/openjdk-17:latest ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/resources/application.properties index 0fa9072386..8e88a7a63c 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/resources/application.properties @@ -37,6 +37,3 @@ quarkus.rest-client.workflow_timeouts.url=http://localhost:9090 %container.quarkus.container-image.registry=dev.local %container.quarkus.container-image.name=timeouts-showcase-operator-devprofile-ui %container.quarkus.container-image.tag=1.0-SNAPSHOT -%container.quarkus.jib.jvm-entrypoint=/home/kogito/kogito-app-launch.sh -%container.quarkus.jib.base-jvm-image=quay.io/kiegroup/kogito-runtime-jvm:latest -%container.quarkus.jib.working-directory=/home/kogito/bin