Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync main branch with Apache main branch #33

Merged
merged 23 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d5b66e6
NO_ISSUE: fixing named datasource's configuration for `data-index-inm…
pefernan May 9, 2024
ea7b9c7
kie-kogito-examples-1915: Loan broker example updates after the migra…
wmedvede May 13, 2024
233fc9e
kie-issues#1123:unify maven projects configuration (#1911)
jstastny-cz May 14, 2024
ce2f242
Adding subflow example using exclusive (#1918)
fjtirado May 14, 2024
0a5ade7
NO-ISSUE: unify kogito version property name (#1920)
jstastny-cz May 16, 2024
1ffbc4c
[incubator-kie-issues#1209] Enable scesim for DRL in kogito (#1921)
gitgabrio May 16, 2024
f9aca38
kie-kogito-examples-1922: Serverless Workflow Operator DataIndex Use …
wmedvede May 20, 2024
45672a1
kie-issues#1123: add snapshots repository to resolve parent (#1924)
jstastny-cz May 22, 2024
3526085
[fix_rules_scesim_naming] Fix names and Readme for rules-legacy-scesi…
gitgabrio May 23, 2024
7fe188d
[incubator-kie-issues#1249] Fix REST call in process-rest-workitem-qu…
martinweiler May 23, 2024
736bf2a
[incubator-kie-issues#1260] Add note to README files of workflow exam…
martinweiler May 24, 2024
2dba422
Disable examples using tracing-decisions addon. (#1930)
baldimir May 29, 2024
badd27d
1285: remove unnecessary base image from quarkus example (#1934)
porcelli May 31, 2024
8829243
incubator-kie-issues#1198: Copy the Compact Architecture Example into…
pefernan Jun 3, 2024
a03d36e
[incubator-kie-issues#1292] Fix README in process-saga-quarkus (#1938)
martinweiler Jun 3, 2024
59262ac
[incubator-kie-issues#1291] Fix README in process-rest-workitem-multi…
martinweiler Jun 4, 2024
4c6885a
[incubator-kie-issues-1290] Fix application.properties in process-pos…
martinweiler Jun 4, 2024
e4f67ad
[incubator-kie-issues#1293] Documents dmn-15 kogito quarkus example. …
gitgabrio Jun 5, 2024
7dfec22
NO_ISSUE: Fix Kafka examples README.md (#1941)
pefernan Jun 5, 2024
a03e6e7
[incubator-kie-issues-1295] Examples clean up (#1940)
Abhitocode Jun 5, 2024
c6427fa
1289: using jakarka instead javax. (#1935)
porcelli Jun 5, 2024
9d5c900
Fix scesim files paths (#1942)
yesamer Jun 5, 2024
6932e92
NO ISSUE: align containers with JDK17 and ubi 9 (#1943)
porcelli Jun 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
496 changes: 496 additions & 0 deletions kogito-quarkus-examples/dmn-15-quarkus-example/README.md

Large diffs are not rendered by default.

26 changes: 25 additions & 1 deletion kogito-quarkus-examples/dmn-15-quarkus-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<kogito.bom.version>999-SNAPSHOT</kogito.bom.version>
<version.org.kie.kogito>999-SNAPSHOT</version.org.kie.kogito>
<dependency-plugin.version>3.6.1</dependency-plugin.version>
<enable.runtime.typecheck>true</enable.runtime.typecheck>
</properties>
<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -104,6 +105,25 @@
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>set-system-properties</goal>
</goals>
<configuration>
<properties>
<property>
<name>org.kie.dmn.runtime.typecheck</name>
<value>${enable.runtime.typecheck}</value>
</property>
</properties>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
Expand Down Expand Up @@ -138,7 +158,11 @@
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/generated-resources</outputDirectory>
<includes>valid_models/**/*.dmn</includes>
<includes>valid_models/DMNv1_5/**/AllowedValuesChecksInsideCollection.dmn,
valid_models/DMNv1_5/**/TypeConstraintsChecks.dmn,
valid_models/DMNv1_5/**/Imported_Model_Unamed.dmn,
valid_models/DMNv1_5/**/Importing_EmptyNamed_Model_With_Href_Namespace.dmn
</includes>
</artifactItem>
</artifactItems>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@
</scesimData>
</background>
<settings>
<dmnFilePath>src/main/resources/Traffic Violation.dmn</dmnFilePath>
<dmnFilePath>../../main/resources/Traffic Violation.dmn</dmnFilePath>
<type>DMN</type>
<dmnNamespace>https://github.com/kiegroup/drools/kie-dmn/_A4BCA8B8-CF08-433F-93B2-A2598F19ECFF</dmnNamespace>
<dmnName>Traffic Violation</dmnName>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
</scesimData>
</background>
<settings>
<dmnFilePath>src/main/resources/KiePMMLRegression.dmn</dmnFilePath>
<dmnFilePath>../../main/resources/KiePMMLRegression.dmn</dmnFilePath>
<type>DMN</type>
<dmnNamespace>https://kiegroup.org/dmn/_51A1FD67-8A67-4332-9889-B718BE8B7456</dmnNamespace>
<dmnName>TestRegressionDMN</dmnName>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@
</scesimData>
</background>
<settings>
<dmnFilePath>src/main/resources/Traffic Violation.dmn</dmnFilePath>
<dmnFilePath>../../main/resources/Traffic Violation.dmn</dmnFilePath>
<type>DMN</type>
<dmnNamespace>https://github.com/kiegroup/drools/kie-dmn/_A4BCA8B8-CF08-433F-93B2-A2598F19ECFF</dmnNamespace>
<dmnName>Traffic Violation</dmnName>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@
</scesimData>
</background>
<settings>
<dmnFilePath>target/generated-resources/Traffic Violation.dmn</dmnFilePath>
<dmnFilePath>../../../target/generated-resources/Traffic Violation.dmn</dmnFilePath>
<type>DMN</type>
<dmnNamespace>https://github.com/kiegroup/drools/kie-dmn/_A4BCA8B8-CF08-433F-93B2-A2598F19ECFF</dmnNamespace>
<dmnName>Traffic Violation</dmnName>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/kogito-travel-agency-jvm
#
###
FROM fabric8/java-alpine-openjdk11-jre
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/using-kogito
#
###
FROM registry.access.redhat.com/ubi8/ubi-minimal
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/ubi-minimal:9.4
WORKDIR /work/
COPY target/*-runner /work/application
RUN chmod 775 /work
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/kogito-travel-agency-travels-jvm
#
###
FROM fabric8/java-alpine-openjdk11-jre
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/using-kogito
#
###
FROM registry.access.redhat.com/ubi8/ubi-minimal
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/ubi-minimal:9.4
WORKDIR /work/
COPY target/*-runner /work/application
RUN chmod 775 /work
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/kogito-travel-agency-visas-jvm
#
###
FROM fabric8/java-alpine-openjdk11-jre
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/sample-kogito
#
###
FROM registry.access.redhat.com/ubi8/ubi-minimal
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/ubi-minimal:9.4
WORKDIR /work/
COPY target/*-runner /work/application
RUN chmod 775 /work
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ mvn clean package quarkus:dev
```

### Compile and Run using Local Native Image
Note that the following configuration property needs to be added to `application.properties` in order to enable automatic registration of `META-INF/services` entries required by the workflow engine:
```
quarkus.native.auto-service-loader-registration=true
```

Note that this requires GRAALVM_HOME to point to a valid GraalVM installation

Expand Down
4 changes: 1 addition & 3 deletions kogito-quarkus-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
<module>dmn-quarkus-example</module>
<module>dmn-resource-jar-quarkus-example</module>
<module>dmn-multiple-models-quarkus-example</module>
<module>dmn-tracing-quarkus</module>
<module>flexible-process-quarkus</module>
<module>kogito-travel-agency</module>
<module>onboarding-example</module>
Expand Down Expand Up @@ -97,15 +96,14 @@
<module>process-usertasks-custom-lifecycle-quarkus</module>
<module>process-usertasks-quarkus</module>
<module>process-usertasks-timer-quarkus-with-console</module>
<module>process-usertasks-timer-data-index-persistence-addon-quarkus</module>
<module>process-usertasks-with-security-oidc-quarkus</module>
<module>process-usertasks-with-security-quarkus</module>
<module>rules-incubation-api-quarkus</module>
<module>rules-legacy-quarkus-example</module>
<module>rules-legacy-scesim-quarkus-example</module>
<module>rules-quarkus-helloworld</module>
<module>ruleunit-event-driven-quarkus</module>
<module>ruleunit-quarkus-example</module>
<module>trusty-tracing-quarkus-devservices</module>
</modules>
</profile>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ java -jar target\quarkus-app\quarkus-run.jar
```

### Package and Run using Local Native Image
Note that the following configuration property needs to be added to `application.properties` in order to enable automatic registration of `META-INF/services` entries required by the workflow engine:
```
quarkus.native.auto-service-loader-registration=true
```

Note that this requires GRAALVM_HOME to point to a valid GraalVM installation

```sh
Expand Down Expand Up @@ -206,7 +211,7 @@ Should return something like
```


Then to see the Task created perfor the following command
Then to see the Task created perform the following command

```
curl http://localhost:8080/persons/{uuid}/ChildrenHandling/{tuuid}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# docker run -i --rm -p 8080:8080 quarkus/process-business-rules-quarkus-jvm
#
###
FROM fabric8/java-alpine-openjdk11-jre
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/openjdk-17:1.18
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.native -t quarkus/kogito-infinispan-persistence-quarkus .
# docker build -f src/main/docker/Dockerfile.native -t quarkus/process-business-rules-quarkus .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/kogito-infinispan-persistence-quarkus
# docker run -i --rm -p 8080:8080 quarkus/process-business-rules-quarkus
#
###
FROM registry.access.redhat.com/ubi8/ubi-minimal
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/ubi-minimal:9.4
WORKDIR /work/
COPY target/*-runner /work/application
RUN chmod 775 /work
Expand Down

This file was deleted.

Loading
Loading