Skip to content

Instantly share code, notes, and snippets.

@tkobayas
tkobayas / gist:8972d63f2ef49bc65b540d96cd059d6b
Created October 2, 2024 09:20
sestting.xml for pgp check
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<pluginGroups>
</pluginGroups>
<proxies>
</proxies>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>aggregator-project</artifactId>
<version>1.0-SNAPSHOT</version>
public static final String JSON2 =
"""
{
"rules": [
{
"Rule": {
"name": "r1",
"condition": {
"AllCondition": [
{
@tkobayas
tkobayas / output of running fixed test_is_not_defined.yml
Created September 10, 2024 05:48
output of running fixed test_is_not_defined.yml
$ ./run_examples1.sh
RUNNING examples/test_is_not_defined.yml
2024-09-10 14:44:36,776 - asyncio - DEBUG - Using selector: EpollSelector
2024-09-10 14:44:36,776 - ansible_rulebook.app - DEBUG - Loading rules from the file system ./examples/test_is_not_defined.yml
2024-09-10 14:44:36,790 - ansible_rulebook.condition_parser - DEBUG - [Identifier(value='event.beta'), 'is', String(value='defined')]
2024-09-10 14:44:36,795 - ansible_rulebook.condition_parser - DEBUG - [Identifier(value='event.beta.xheaders.age'), 'is not', String(value='defined')]
2024-09-10 14:44:36,795 - ansible_rulebook.app - INFO - Starting sources
2024-09-10 14:44:36,795 - ansible_rulebook.app - INFO - Starting rules
2024-09-10 14:44:36,795 - ansible_rulebook.engine - DEBUG - run_ruleset
2024-09-10 14:44:36,796 - drools.ruleset - INFO - Using jar: /home/tkobayas/usr/work/latest-tmp/drools_jpy/src/drools/jars/drools-ansible-rulebook-integration-runtime-1.0.6-SNAPSHOT.jar
@tkobayas
tkobayas / output of running test_is_not_defined.yml
Created September 10, 2024 05:24
output of running test_is_not_defined.yml
(venv) [tkobayas tests]$ ./run_examples1.sh
RUNNING examples/test_is_not_defined.yml
2024-09-10 14:21:37,663 - asyncio - DEBUG - Using selector: EpollSelector
2024-09-10 14:21:37,663 - ansible_rulebook.app - DEBUG - Loading rules from the file system ./examples/test_is_not_defined.yml
2024-09-10 14:21:37,677 - ansible_rulebook.condition_parser - DEBUG - [Identifier(value='event.beta.xheaders.age'), 'is not', String(value='defined')]
2024-09-10 14:21:37,678 - ansible_rulebook.app - INFO - Starting sources
2024-09-10 14:21:37,678 - ansible_rulebook.app - INFO - Starting rules
2024-09-10 14:21:37,678 - ansible_rulebook.engine - DEBUG - run_ruleset
2024-09-10 14:21:37,679 - drools.ruleset - INFO - Using jar: /home/tkobayas/usr/work/latest-tmp/drools_jpy/src/drools/jars/drools-ansible-rulebook-integration-runtime-1.0.6-SNAPSHOT.jar
2024-09-10 14:21:37,769 - drools.ruleset - DEBUG - Creating Drools Ruleset
@tkobayas
tkobayas / retryFailedDeploymentCount debug log
Created September 9, 2024 09:03
retryFailedDeploymentCount debug log
[INFO] --- deploy:3.1.1:deploy (default-deploy) @ simple-pojo06 ---
[INFO] execute GET http://localhost:8081/repository/maven-snapshots/org/example/deploy/multi-artifacts/1.0.0-SNAPSHOT/maven-metadata.xml HTTP/1.1
[INFO] execute done GET http://localhost:8081/repository/maven-snapshots/org/example/deploy/multi-artifacts/1.0.0-SNAPSHOT/maven-metadata.xml HTTP/1.1
[INFO] execute GET http://localhost:8081/repository/maven-snapshots/org/example/deploy/multi-artifacts/1.0.0-SNAPSHOT/maven-metadata.xml.sha1 HTTP/1.1
[INFO] execute done GET http://localhost:8081/repository/maven-snapshots/org/example/deploy/multi-artifacts/1.0.0-SNAPSHOT/maven-metadata.xml.sha1 HTTP/1.1
[INFO] execute GET http://localhost:8081/repository/maven-snapshots/org/example/deploy/simple-pojo01/1.0.0-SNAPSHOT/maven-metadata.xml HTTP/1.1
[INFO] execute done GET http://localhost:8081/repository/maven-snapshots/org/example/deploy/simple-pojo01/1.0.0-SNAPSHOT/maven-metadata.xml HTTP/1.1
[INFO] execute GET http://localhost:8081/repository/maven-s
@tkobayas
tkobayas / maven-resolver-debug.diff
Created September 9, 2024 09:00
maven-resolver-debug.diff
diff --git a/maven-resolver-connector-basic/src/main/java/org/eclipse/aether/connector/basic/BasicRepositoryConnector.java b/maven-resolver-connector-basic/src/main/java/org/eclipse/aether/connector/basic/BasicRepositoryConnector.java
index 11e9a913..027112e9 100644
--- a/maven-resolver-connector-basic/src/main/java/org/eclipse/aether/connector/basic/BasicRepositoryConnector.java
+++ b/maven-resolver-connector-basic/src/main/java/org/eclipse/aether/connector/basic/BasicRepositoryConnector.java
@@ -556,11 +556,12 @@ final class BasicRepositoryConnector implements RepositoryConnector {
baos.write(buffer, 0, read);
}
}
-
+ LOGGER.info("runTask : uploading " + file.getName());
@tkobayas
tkobayas / possible-PR-to-drools-website.diff
Created June 14, 2022 06:29
possible-PR-to-drools-website
diff --git a/templates/_content_learn_documentation.ftl b/templates/_content_learn_documentation.ftl
index 5d26b07..8b140c7 100644
--- a/templates/_content_learn_documentation.ftl
+++ b/templates/_content_learn_documentation.ftl
@@ -15,6 +15,10 @@
<p><strong>Documentation for Drools ${pom.latestFinal.version}</strong></p>
<div class="ulist">
<ul>
+ <li>
+ <p><span class="image"><img src="documentation.png" alt="Documentation"></span>
[INFO] Running org.kie.karaf.itest.blueprint.KieBlueprintProcessDependencyKarafIntegrationTest
16:34:22.902 [main] INFO o.k.k.i.AbstractKarafIntegrationTest.<clinit>:131 - KIE Project Version : 7.56.0-SNAPSHOT
16:34:22.927 [main] INFO o.k.k.i.AbstractKarafIntegrationTest.getKarafDistributionOption:179 - *** The karaf version is 4.2.3 ***
16:34:22.927 [main] INFO o.k.k.i.AbstractKarafIntegrationTest.getKarafDistributionOption:180 - *** The cxf version is 3.2.14 ***
16:34:22.927 [main] INFO o.k.k.i.AbstractKarafIntegrationTest.getKarafDistributionOption:181 - *** The camel version is 2.21.5 ***
16:34:22.943 [main] INFO o.k.k.i.AbstractKarafIntegrationTest.getFeaturesUrl:294 - Features URL: mvn:org.kie/kie-karaf-features/7.56.0-SNAPSHOT/xml/features
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender (file:/home/tkobayas/usr/work/BXMSPROD-1372/droolsjbpm-integration/kie-osgi/kie-
@tkobayas
tkobayas / MvelConstraint.java
Created March 12, 2021 01:22
fully synchronized MVELConditionEvaluator
protected boolean evaluate(InternalFactHandle handle, InternalWorkingMemory workingMemory, Tuple tuple) {
if (!jitted) {
int jittingThreshold = TEST_JITTING ? 0 : workingMemory.getKnowledgeBase().getConfiguration().getJittingThreshold();
if (conditionEvaluator == null) {
if (jittingThreshold == 0 && !isDynamic) { // Only for test purposes or when jitting is enforced at first evaluation
synchronized (this) {
if (conditionEvaluator == null) {
conditionEvaluator = forceJitEvaluator(handle, workingMemory, tuple);
}
}