From 19022fb5941224e35b377744c9a4ad606a964cdc Mon Sep 17 00:00:00 2001 From: Gabriele-Cardosi Date: Thu, 16 May 2024 11:33:49 +0200 Subject: [PATCH] [incubator-kie-issues#1209] Implemented scesim rules springboot example --- .../pom.xml | 6 +- .../ScenarioJunitActivatorTest.java | 3 + .../src/test/resources/application.properties | 6 +- kogito-springboot-examples/pom.xml | 1 + .../README.md | 80 +++++ .../pom.xml | 115 ++++++++ .../java/org/kie/kogito/legacy/Hello.java | 41 +++ .../org/kie/kogito/legacy/HelloEndpoint.java | 48 +++ .../legacy/KogitoSpringbootApplication.java | 30 ++ .../java/org/kie/kogito/legacy/Message.java | 14 + .../src/main/resources/META-INF/kmodule.xml | 6 + .../src/main/resources/application.properties | 20 ++ .../org/kie/kogito/legacy/HelloRule.drl | 17 ++ .../org/kie/kogito/legacy/RestQueryTest.java | 82 ++++++ .../ScenarioJunitActivatorTest.java | 8 + .../src/test/resources/HelloScesim.scesim | 273 ++++++++++++++++++ .../src/test/resources/logback-test.xml | 37 +++ 17 files changed, 783 insertions(+), 4 deletions(-) create mode 100644 kogito-springboot-examples/rules-legacy-scesim-springboot-example/README.md create mode 100644 kogito-springboot-examples/rules-legacy-scesim-springboot-example/pom.xml create mode 100644 kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/java/org/kie/kogito/legacy/Hello.java create mode 100644 kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/java/org/kie/kogito/legacy/HelloEndpoint.java create mode 100644 kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/java/org/kie/kogito/legacy/KogitoSpringbootApplication.java create mode 100644 kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/java/org/kie/kogito/legacy/Message.java create mode 100644 kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/resources/META-INF/kmodule.xml create mode 100644 kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/resources/application.properties create mode 100644 kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/resources/org/kie/kogito/legacy/HelloRule.drl create mode 100644 kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/java/org/kie/kogito/legacy/RestQueryTest.java create mode 100644 kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/java/testscenario/ScenarioJunitActivatorTest.java create mode 100644 kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/resources/HelloScesim.scesim create mode 100644 kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/resources/logback-test.xml diff --git a/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/pom.xml b/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/pom.xml index 2f95699a9e..e069ae3a6f 100644 --- a/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/pom.xml @@ -30,10 +30,10 @@ rules-legacy-scesim-quarkus-example Kogito Example :: Rules Legacy API HELLO - Quarkus - 3.2.10.Final + 3.8.4 quarkus-bom io.quarkus - 3.2.10.Final + 3.8.4 org.kie.kogito kogito-bom 999-SNAPSHOT @@ -58,7 +58,7 @@ org.drools drools-xml-support - ${kogito.bom.version} + ${version.org.kie.kogito} test diff --git a/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/test/java/testscenario/ScenarioJunitActivatorTest.java b/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/test/java/testscenario/ScenarioJunitActivatorTest.java index 8ac19c8385..f4c49e1042 100644 --- a/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/test/java/testscenario/ScenarioJunitActivatorTest.java +++ b/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/test/java/testscenario/ScenarioJunitActivatorTest.java @@ -1,8 +1,11 @@ package testscenario; +import io.quarkus.test.junit.QuarkusTest; + /** * Do not remove this file */ +@QuarkusTest @org.junit.runner.RunWith(org.drools.scenariosimulation.backend.runner.ScenarioJunitActivator.class) public class ScenarioJunitActivatorTest { } \ No newline at end of file diff --git a/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/test/resources/application.properties b/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/test/resources/application.properties index a047ea13ba..0841afd173 100644 --- a/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/test/resources/application.properties +++ b/kogito-quarkus-examples/rules-legacy-scesim-quarkus-example/src/test/resources/application.properties @@ -18,4 +18,8 @@ # # Quarkus -quarkus.http.test-port=0 \ No newline at end of file +quarkus.http.test-port=0 + +quarkus.log.level=INFO +quarkus.log.category."org.kie.kogito".level=DEBUG +quarkus.log.category."org.drools".level=DEBUG \ No newline at end of file diff --git a/kogito-springboot-examples/pom.xml b/kogito-springboot-examples/pom.xml index 7755fbd52e..3becc1edd0 100644 --- a/kogito-springboot-examples/pom.xml +++ b/kogito-springboot-examples/pom.xml @@ -88,6 +88,7 @@ process-usertasks-with-security-oidc-springboot process-usertasks-with-security-springboot rules-legacy-springboot-example + rules-legacy-scesim-springboot-example ruleunit-event-driven-springboot ruleunit-springboot-example diff --git a/kogito-springboot-examples/rules-legacy-scesim-springboot-example/README.md b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/README.md new file mode 100644 index 0000000000..58196d10ca --- /dev/null +++ b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/README.md @@ -0,0 +1,80 @@ +# RuleUnit + Spring Boot example + +## Description + +A simple rule service to validate `Hello` fact. + +An injectable KieRuntimeBuilder is generated, so you can create Drools v7 KieBase and KieSession out of it. + +## Installing and Running + +### Prerequisites + +You will need: + - Java 11+ installed + - Environment variable JAVA_HOME set accordingly + - Maven 3.8.6+ installed + +### Compile and Run + +```sh +mvn clean compile spring-boot:run +``` + +### Package and Run + +```sh +mvn clean package +java -jar target/ruleunit-springboot-example.jar +``` + +## OpenAPI (Swagger) documentation +[Specification at swagger.io](https://swagger.io/docs/specification/about/) + +You can take a look at the [OpenAPI definition](http://localhost:8080/v3/api-docs) - automatically generated and included in this service - to determine all available operations exposed by this service. For easy readability you can visualize the OpenAPI definition file using a UI tool like for example available [Swagger UI](https://editor.swagger.io). + +In addition, various clients to interact with this service can be easily generated using this OpenAPI definition. + +## Example Usage + +Once the service is up and running, you can use the following examples to interact with the service. + +### POST /find-approved + +Returns approved Hello from the given fact: + +```sh +curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"approved":false, "greeting":"foo"}' http://localhost:8080/find-approved +``` +or on windows + +```sh +curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" -d "{\"approved\":false, \"greeting\":\"foo\"}" http://localhost:8080/find-approved +``` + +As response the modified Hello is returned. + +Example response: + +```json +{"greeting":"foo","approved":true} +``` + +Returns denied Hello from the given fact: + +```sh +curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"approved":false, "greeting":"bar"}' http://localhost:8080/find-approved +``` +or on windows + +```sh +curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" -d "{\"approved\":false, \"greeting\":\"bar\"}" http://localhost:8080/find-approved +``` + +As response the modified Hello is returned. + +Example response: + +```json +{"greeting":"bar","approved":false} +``` diff --git a/kogito-springboot-examples/rules-legacy-scesim-springboot-example/pom.xml b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/pom.xml new file mode 100644 index 0000000000..4caf524d53 --- /dev/null +++ b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/pom.xml @@ -0,0 +1,115 @@ + + + + 4.0.0 + + + org.kie.kogito.examples + kogito-springboot-examples + 999-SNAPSHOT + + rules-legacy-scesim-springboot-example + Kogito Example :: Rules Legacy API HELLO - Spring Boot + + + 999-SNAPSHOT + 999-SNAPSHOT + + + + + + org.kie.kogito + kogito-spring-boot-bom + ${kogito.bom.version} + pom + import + + + org.drools + drools-xml-support + ${version.org.kie.kogito} + test + + + + + + + org.springframework.boot + spring-boot-starter-actuator + + + org.drools + drools-rules-spring-boot-starter + + + + + org.springframework.boot + spring-boot-starter-test + test + + + io.rest-assured + rest-assured + test + + + + org.kie.kogito + kogito-scenario-simulation + test + + + org.drools + drools-xml-support + test + + + + + ${project.artifactId} + + + org.kie.kogito + kogito-maven-plugin + ${version.org.kie.kogito} + true + + + org.springframework.boot + spring-boot-maven-plugin + + + + repackage + + + + + + + + diff --git a/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/java/org/kie/kogito/legacy/Hello.java b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/java/org/kie/kogito/legacy/Hello.java new file mode 100644 index 0000000000..c31b21812f --- /dev/null +++ b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/java/org/kie/kogito/legacy/Hello.java @@ -0,0 +1,41 @@ +package org.kie.kogito.legacy; + +/** + * This class was automatically generated by the data modeler tool. + */ + +public class Hello implements java.io.Serializable { + + static final long serialVersionUID = 1L; + + @org.kie.api.definition.type.Label("Greeting") + private java.lang.String greeting; + + @org.kie.api.definition.type.Label(value = "Approved") + private java.lang.Boolean approved; + + public Hello() { + } + + public java.lang.String getGreeting() { + return this.greeting; + } + + public void setGreeting(java.lang.String greeting) { + this.greeting = greeting; + } + + public java.lang.Boolean getApproved() { + return this.approved; + } + + public void setApproved(java.lang.Boolean approved) { + this.approved = approved; + } + + public Hello(java.lang.String greeting, java.lang.Boolean approved) { + this.greeting = greeting; + this.approved = approved; + } + +} \ No newline at end of file diff --git a/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/java/org/kie/kogito/legacy/HelloEndpoint.java b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/java/org/kie/kogito/legacy/HelloEndpoint.java new file mode 100644 index 0000000000..d46dadb289 --- /dev/null +++ b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/java/org/kie/kogito/legacy/HelloEndpoint.java @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.kie.kogito.legacy; + +import org.kie.api.runtime.KieRuntimeBuilder; +import org.kie.api.runtime.KieSession; +import org.springframework.http.MediaType; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +@RequestMapping("/find-approved") +public class HelloEndpoint { + + private final KieRuntimeBuilder kieRuntimeBuilder; + + public HelloEndpoint(KieRuntimeBuilder kieRuntimeBuilder) { + this.kieRuntimeBuilder = kieRuntimeBuilder; + } + + @PostMapping(produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE) + public Hello executeQuery(@RequestBody(required = true) Hello hello) { + KieSession session = kieRuntimeBuilder.newKieSession(); + + session.insert(hello); + session.fireAllRules(); + + return hello; + } +} diff --git a/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/java/org/kie/kogito/legacy/KogitoSpringbootApplication.java b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/java/org/kie/kogito/legacy/KogitoSpringbootApplication.java new file mode 100644 index 0000000000..d8e30b0e1f --- /dev/null +++ b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/java/org/kie/kogito/legacy/KogitoSpringbootApplication.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.kie.kogito.legacy; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.drools.**" }) +public class KogitoSpringbootApplication { + + public static void main(String[] args) { + SpringApplication.run(KogitoSpringbootApplication.class, args); + } +} diff --git a/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/java/org/kie/kogito/legacy/Message.java b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/java/org/kie/kogito/legacy/Message.java new file mode 100644 index 0000000000..7a83c9cccf --- /dev/null +++ b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/java/org/kie/kogito/legacy/Message.java @@ -0,0 +1,14 @@ +package org.kie.kogito.legacy; + +/** + * This class was automatically generated by the data modeler tool. + */ + +public class Message implements java.io.Serializable { + + static final long serialVersionUID = 1L; + + public Message() { + } + +} \ No newline at end of file diff --git a/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/resources/META-INF/kmodule.xml b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/resources/META-INF/kmodule.xml new file mode 100644 index 0000000000..ec643fc191 --- /dev/null +++ b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/resources/META-INF/kmodule.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/resources/application.properties b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/resources/application.properties new file mode 100644 index 0000000000..4e8da841ca --- /dev/null +++ b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/resources/application.properties @@ -0,0 +1,20 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +server.address=0.0.0.0 \ No newline at end of file diff --git a/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/resources/org/kie/kogito/legacy/HelloRule.drl b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/resources/org/kie/kogito/legacy/HelloRule.drl new file mode 100644 index 0000000000..ec0b1865a7 --- /dev/null +++ b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/main/resources/org/kie/kogito/legacy/HelloRule.drl @@ -0,0 +1,17 @@ +package org.kie.kogito.legacy; + +import org.kie.kogito.legacy.Hello; + +rule HelloApprove when + $l: Hello( greeting.equals("foo") ) +then + System.out.println("HelloApprove"); + modify($l) { setApproved(true) }; +end + +rule HelloDeny when + $l: Hello( greeting != "foo" ) +then + System.out.println("HelloDeny"); + modify($l) { setApproved(false) }; +end \ No newline at end of file diff --git a/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/java/org/kie/kogito/legacy/RestQueryTest.java b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/java/org/kie/kogito/legacy/RestQueryTest.java new file mode 100644 index 0000000000..eda31d57ad --- /dev/null +++ b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/java/org/kie/kogito/legacy/RestQueryTest.java @@ -0,0 +1,82 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.kie.kogito.legacy; + +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.boot.test.web.server.LocalServerPort; +import org.springframework.test.annotation.DirtiesContext; + +import io.restassured.RestAssured; +import io.restassured.http.ContentType; + +import static io.restassured.RestAssured.given; +import static org.hamcrest.core.Is.is; + +@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = KogitoSpringbootApplication.class) +@DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_CLASS) +public class RestQueryTest { + + @LocalServerPort + private int port; + + @BeforeEach + public void setUp() { + RestAssured.port = port; + } + + private static final String JSON_APPROVED_PAYLOAD = + "{\n" + + " \"approved\":false,\n" + + " \"greeting\":\"foo\"\n" + + "}"; + private static final String JSON_DENIED_PAYLOAD = + "{\n" + + " \"approved\":false,\n" + + " \"greeting\":\"bar\"\n" + + "}"; + + @Test + @Disabled // temporary + public void testApproved() { + given() + .body(JSON_APPROVED_PAYLOAD) + .contentType(ContentType.JSON) + .when() + .post("/find-approved") + .then() + .statusCode(200) + .body("approved", is(true)); + } + + @Test + @Disabled // temporary + public void testDenied() { + given() + .body(JSON_DENIED_PAYLOAD) + .contentType(ContentType.JSON) + .when() + .post("/find-approved") + .then() + .statusCode(200) + .body("approved", is(false)); + } +} diff --git a/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/java/testscenario/ScenarioJunitActivatorTest.java b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/java/testscenario/ScenarioJunitActivatorTest.java new file mode 100644 index 0000000000..8ac19c8385 --- /dev/null +++ b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/java/testscenario/ScenarioJunitActivatorTest.java @@ -0,0 +1,8 @@ +package testscenario; + +/** + * Do not remove this file + */ +@org.junit.runner.RunWith(org.drools.scenariosimulation.backend.runner.ScenarioJunitActivator.class) +public class ScenarioJunitActivatorTest { +} \ No newline at end of file diff --git a/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/resources/HelloScesim.scesim b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/resources/HelloScesim.scesim new file mode 100644 index 0000000000..eddc80af23 --- /dev/null +++ b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/resources/HelloScesim.scesim @@ -0,0 +1,273 @@ + + + + + + + + Index + OTHER + + + # + java.lang.Integer + + java.lang.Integer + # + NOT_EXPRESSION + 70.0 + + + + + Description + OTHER + + + Scenario description + java.lang.String + + java.lang.String + Scenario description + NOT_EXPRESSION + 300.0 + + + + + Hello + + + greeting + + + + 1|1 + GIVEN + + + 1|1 + org.kie.kogito.legacy.Hello + + java.lang.String + Hello + greeting + NOT_EXPRESSION + 337.66666666666663 + + + + + Hello + + + greeting + + + + 1|2 + EXPECT + + + 1|1 + org.kie.kogito.legacy.Hello + + java.lang.String + Hello + greeting + NOT_EXPRESSION + 337.66666666666663 + + + + + Hello + + + approved + + + + 1715763614877 + EXPECT + + + 1|1 + org.kie.kogito.legacy.Hello + + java.lang.Boolean + Hello + approved + NOT_EXPRESSION + 337.66666666666663 + + + + + + + + + Scenario description + java.lang.String + + + Description + OTHER + + Approved + + + + # + java.lang.Integer + + + Index + OTHER + + 1 + + + + 1|1 + org.kie.kogito.legacy.Hello + + + 1|1 + GIVEN + + foo + + + + 1|1 + org.kie.kogito.legacy.Hello + + + 1|2 + EXPECT + + foo + + + + 1|1 + org.kie.kogito.legacy.Hello + + + 1715763614877 + EXPECT + + true + + + + + + + + Scenario description + java.lang.String + + + Description + OTHER + + Denied + + + + # + java.lang.Integer + + + Index + OTHER + + 2 + + + + 1|1 + org.kie.kogito.legacy.Hello + + + 1|1 + GIVEN + + bar + + + + 1|1 + org.kie.kogito.legacy.Hello + + + 1|2 + EXPECT + + bar + + + + 1|1 + org.kie.kogito.legacy.Hello + + + 1715763614877 + EXPECT + + false + + + + + + + + + + + + 1|1 + GIVEN + + + Empty + java.lang.Void + + java.lang.Void + INSTANCE 1 + PROPERTY 1 + NOT_EXPRESSION + 114.0 + + + + + + + + + Empty + java.lang.Void + + + 1|1 + GIVEN + + + + + + + + RULE + false + false + + + + + \ No newline at end of file diff --git a/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/resources/logback-test.xml b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/resources/logback-test.xml new file mode 100644 index 0000000000..4ca6ba0f5e --- /dev/null +++ b/kogito-springboot-examples/rules-legacy-scesim-springboot-example/src/test/resources/logback-test.xml @@ -0,0 +1,37 @@ + + + + + + + %date{HH:mm:ss.SSS} [%thread] %-5level %class{36}.%method:%line - %msg%n + + + + + + + + + + + \ No newline at end of file