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
- kind: bridge
metadata:
name: my-bridge
- kind: source
metadata:
name: source-name
bridge_id: c64kfqla5bkhm18frpdg
connector_type_id: slack_source_0.1
connector_spec:
title Counterfactual (websocket)
AuditUI->TrustyService:CounterfactualRequest
activate TrustyService
note over TrustyService:Add distribution data\n(if available)
database Kafka
TrustyService->Kafka:CounterfactualRequest(id)
deactivate TrustyService
title Counterfactual (REST)
AuditUI->TrustyService:CounterfactualRequest
activate AuditUI
activate TrustyService
note over TrustyService:Add distribution data\n(if available)
TrustyService->ExplainableService:CounterfactualRequest(id)
activate ExplainableService
title Counterfactual (message)
AuditUI->TrustyService:CounterfactualRequest
activate AuditUI
activate TrustyService
note over TrustyService:Add distribution data\n(if available)
database Kafka
TrustyService->Kafka:CounterfactualRequest(id)
AuditUI<-TrustyService:CounterfactualRequest(id)
2020-12-10T15:10:38.0964400Z [ERROR] testPerturbCurrencyFeature Time elapsed: 0.008 s <<< ERROR!
2020-12-10T15:10:38.0965451Z java.lang.IllegalArgumentException
2020-12-10T15:10:38.0975367Z at java.base/java.util.Currency.getInstance(Currency.java:393)
2020-12-10T15:10:38.0986989Z at org.kie.kogito.explainability.model.TypeTest.testPerturbCurrencyFeature(TypeTest.java:234)
2020-12-10T15:10:38.0989425Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2020-12-10T15:10:38.0991564Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2020-12-10T15:10:38.1009678Z at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2020-12-10T15:10:38.1011820Z at java.base/java.lang.reflect.Method.invoke(Method.java:566)
2020-12-10T15:10:38.1013513Z at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:688)
2020-12-10T15:10:38.1031735Z at org.junit.jupiter.e
00:12:24.712 [main] DEBUG org.reflections.Reflections - could not scan file Jenkinsfile.quarkus in url file:/home/jenkins/workspace/KIE_kogito_kogito-quarkus_master/jenkins-tests/target/test-classes/ with scanner SubTypesScanner
org.reflections.ReflectionsException: could not create class object from file Jenkinsfile.quarkus
at org.reflections.scanners.AbstractScanner.scan(AbstractScanner.java:32)
at org.reflections.Reflections.scan(Reflections.java:253)
at org.reflections.Reflections.scan(Reflections.java:202)
at org.reflections.Reflections.<init>(Reflections.java:123)
at com.homeaway.devtools.jenkins.testing.LocalProjectPipelineExtensionDetector.getClassesOfTypeInPackage(LocalProjectPipelineExtensionDetector.java:61)
at com.homeaway.devtools.jenkins.testing.LocalProjectPipelineExtensionDetector$getClassesOfTypeInPackage.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ kogito-drools ---
[INFO] org.kie.kogito:kogito-drools:jar:1.0.0-SNAPSHOT
[INFO] +- org.kie.kogito:drools-core:jar:1.0.0-SNAPSHOT:compile
[INFO] | +- org.drools:drools-core:jar:7.45.0.Final:compile
[INFO] | | +- org.kie.soup:kie-soup-xstream:jar:7.45.0.Final:compile
[INFO] | | \- commons-codec:commons-codec:jar:1.11:compile
[INFO] | +- com.thoughtworks.xstream:xstream:jar:1.4.11.1:compile
[INFO] | | +- xmlpull:xmlpull:jar:1.1.3.1:compile
[INFO] | | \- xpp3:xpp3_min:jar:1.1.4c:compile
[INFO] | +- org.kie.kogito:kogito-api:jar:1.0.0-SNAPSHOT:compile
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ kogito-drools ---
[INFO] org.kie.kogito:kogito-drools:jar:1.0.0-SNAPSHOT
[INFO] +- org.kie.kogito:drools-core:jar:1.0.0-SNAPSHOT:compile
[INFO] |  +- org.drools:drools-core:jar:7.46.0-SNAPSHOT:compile
[INFO] |  |  +- org.kie.soup:kie-soup-xstream:jar:7.46.0-SNAPSHOT:compile
[INFO] |  |  \- commons-codec:commons-codec:jar:1.11:compile
[INFO] |  +- com.thoughtworks.xstream:xstream:jar:1.4.11.1:compile
[INFO] |  |  +- xmlpull:xmlpull:jar:1.1.3.1:compile
[INFO] |  |  \- xpp3:xpp3_min:jar:1.1.4c:compile

Use case: Card transaction dispute

End user can dispute a card transaction and the system has to decide if the dispute can be automatically processed (aka accept the dispute and refund the user) or if it requires to have manual verification

Prerequisitive:

NOTE: be sure PMML file is a valid XML

Steps:

[dzonca@dzonca kie-server-integ-tests-scenario-simulation]$ mvn clean install -Pwildfly -Dit.test=ScenarioSimulationIntegrationTest
[INFO] Scanning for projects...
[INFO]
[INFO] -----< org.kie.server:kie-server-integ-tests-scenario-simulation >------
[INFO] Building KIE :: Execution Server :: Tests :: Scenario Simulation Integration Tests 7.45.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ kie-server-integ-tests-scenario-simulation ---
[INFO] Deleting /home/dzonca/IdeaProjects/KieGroup/droolsjbpm-integration/kie-server-parent/kie-server-tests/kie-server-integ-tests-scenario-simulation/target
[INFO]