Skip to content

Instantly share code, notes, and snippets.

View danielezonca's full-sized avatar

Daniele Zonca danielezonca

  • Red Hat
  • Milan, Italy
View GitHub Profile
apiVersion: apps/v1
kind: Deployment
metadata:
name: sample-kogito
namespace: cloud-sweet-cloud
spec:
selector:
matchLabels:
app: sample-kogito
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.376 s
[INFO] Finished at: 2020-04-03T09:05:25+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:1.3.0.Final:native-image (default) on project sample-kogito: Failed to generate native image: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR] [error]: Build step org.kie.kogito.quarkus.deployment.KogitoAssetsProcessor#generateModel threw an exception: java.lang.IllegalArgumentException: 'other' is different type of Path
[ERROR] at java.base/sun.nio.fs.UnixPath.relativize(UnixPath.java:429)
[ERROR] at java.base/sun.nio.fs.UnixPath.relativize(UnixPath.java:43)
[ERROR] at org.kie.kogito.codegen.decision.DecisionContainerGenerator.classDeclaration(DecisionContainerGenerator.java:74)
[ERROR] at org.kie.kogito.codegen.ApplicationGenerator.generate
[INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building fat jar: /home/dzonca/IdeaProjects/RHSummit/home-automation-poc/sample-kogito/target/sample-kogito-1.0-SNAPSHOT-runner.jar
[WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Duplicate entry META-INF/kie.conf entry from org.kie.kogito:drools-compiler::jar:0.9.0(compile) will be ignored. Existing file was provided by org.kie.kogito:drools-core::jar:0.9.0(compile)
[WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Duplicate entry META-INF/kie.conf entry from org.kie.kogito:kogito-ruleunits::jar:0.9.0(compile) will be ignored. Existing file was provided by org.kie.kogito:drools-core::jar:0.9.0(compile)
[WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Duplicate entry META-INF/kie.conf entry from org.drools:drools-model-compiler::jar:7.34.0.Final(compile) will be ignored. Existing file was provided by org.kie.kogito:drools-core::jar:0.9.0(compile)
[WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep]

TrustyAI POC README

Requirements

  • git
  • mvn
  • Java 11
  • docker
  • docker-compose
  • MongoDB for persistence (see installation guide if needed)
  • npm
[INFO] Running io.quarkus.it.kogito.drools.newunit.NewUnitTest
May 21, 2020 12:04:58 PM io.quarkus.deployment.dev.DevModeMain start
ERROR: Quarkus dev mode failed to start in curation phase
io.quarkus.bootstrap.BootstrapException: Failed to create the application model for org.kie.kogito:kogito-quarkus-integration-test-hot-reload::jar:8.0.0-SNAPSHOT
at io.quarkus.bootstrap.BootstrapAppModelFactory.resolveAppModel(BootstrapAppModelFactory.java:301)
at io.quarkus.bootstrap.app.QuarkusBootstrap.bootstrap(QuarkusBootstrap.java:140)
at io.quarkus.deployment.dev.DevModeMain.start(DevModeMain.java:115)
at io.quarkus.test.QuarkusDevModeTest.beforeEach(QuarkusDevModeTest.java:154)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeBeforeEachCallbacks$1(TestMethodTestDescriptor.java:154)
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeBeforeMethodsOrCallbacksUntilExceptionOccurs$5(TestMethodTestDescriptor.java:190)
./kie-wb-distributions/business-central-parent/business-central-webapp/src/main/webapp/WEB-INF/beans.xml:<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" bean-discovery-mode="all">
./kie-wb-distributions/business-central-parent/business-monitoring-webapp/src/main/webapp/WEB-INF/beans.xml:<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" bean-discovery-mode="all">
./jbpm-wb/jbpm-wb-case-mgmt/jbpm-wb-case-mgmt-backend/src/main/resources/META-INF/beans.xml:<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" bean-discovery-mode="all">
./jbpm-wb/jbpm-wb-case-mgmt/jbpm-wb-case-mgmt-client/src/main/resources/META-INF/beans.xml:<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" bean-discovery-mode="none">
./jbpm-wb/jbpm-wb-case-mgmt/jbpm-wb-case-mgmt-showcase/src/main/webapp/WEB-INF/beans.xml:<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" bean-discovery-mode="all">
./jbpm-wb/jbpm-wb-common/jbpm-wb-common-client/src/main/resources/META-INF/beans.xml:<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" bean-discovery-mod
[INFO] --- maven-failsafe-plugin:2.22.2:integration-test (default) @ process-infinispan-persistence-quarkus ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.acme.deals.DealsRestIT
2020-07-21 14:08:35,166 INFO [org.tes.doc.DockerClientProviderStrategy] (main) Loaded org.testcontainers.dockerclient.EnvironmentAndSystemPropertyClientProviderStrategy from ~/.testcontainers.properties, will try it first
2020-07-21 14:08:35,783 INFO [org.tes.doc.EnvironmentAndSystemPropertyClientProviderStrategy] (main) Found docker client settings from environment
2020-07-21 14:08:35,784 INFO [org.tes.doc.DockerClientProviderStrategy] (main) Found Docker environment with Environment variables, system properties and defaults. Resolved dockerHost=unix:///var/run/docker.sock
2020-07-21 14:08:36,094 INFO [org.tes.DockerClientFactory] (main) Docker host IP address is localhost
package org.kie.kogito.explainability;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.web.client.WebClientOptions;
import io.vertx.mutiny.core.Vertx;
import io.vertx.mutiny.core.buffer.Buffer;
import io.vertx.mutiny.ext.web.client.HttpRequest;
import io.vertx.mutiny.ext.web.client.WebClient;
import org.eclipse.microprofile.context.ThreadContext;
import org.kie.kogito.explainability.model.*;
{
"serviceUrl": "http://localhost:8080/Traffic%20Violation/dmnresult",
"modelName": "Traffic Violation",
"namespace": "https://github.com/kiegroup/drools/kie-dmn/_A4BCA8B8-CF08-433F-93B2-A2598F19ECFF",
"inputs": {
"Violation": {
"Code": null,
"Date": null,
"Type": null,
"Speed Limit": null,
<?xml version="1.0" encoding="UTF-8"?>
<PMML xmlns="http://www.dmg.org/PMML-4_4" version="4.4">
<Header copyright="Copyright (c) 2018 Software AG" description="Default Description">
<Application name="Nyoka" version="4.3.0"/>
<Timestamp>2020-10-07 16:44:09.216900</Timestamp>
</Header>
<DataDictionary numberOfFields="3">
<DataField name="amount" optype="continuous" dataType="double"/>
<DataField name="holder_index" optype="continuous" dataType="double"/>
<DataField name="dispute_risk" optype="categorical" dataType="integer">