Skip to content

Commit

Permalink
Merge pull request #33 from rgdoliveira/sync_main
Browse files Browse the repository at this point in the history
Sync main branch with Apache main branch
  • Loading branch information
rgdoliveira authored Jun 11, 2024
2 parents 16efdba + 6932e92 commit fbd8a5c
Show file tree
Hide file tree
Showing 206 changed files with 3,327 additions and 7,627 deletions.
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

0 comments on commit fbd8a5c

Please sign in to comment.