From 77ec2e8f5db0b2ddbbb32272926655457233f411 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 30 Aug 2023 16:56:55 -0300 Subject: [PATCH 1/3] [KOGITO-7513] - Replace Kogito-examples group-id from 'org.kie.kogito.example' to 'org.acme' Signed-off-by: Your Name --- .../quarkus-3/patches/0001_before_sh.patch | 36 +- .../decisiontable-quarkus-example/pom.xml | 2 +- .../kogito => acme}/queries/Applicant.java | 2 +- .../org/acme}/queries/LoanApplication.java | 2 +- .../main/java/org/acme}/queries/LoanUnit.java | 2 +- .../org/acme}/queries/LoanUnit.drl.xls | Bin 12288 -> 11776 bytes .../quarkus/NativeRestQueryIT.java | 2 +- .../decisiontable/quarkus/RestQueryTest.java | 2 +- .../dmn-drools-quarkus-metrics/pom.xml | 2 +- .../app/CustomDMNRuntimeEventListener.java | 4 +- .../app/RuleEventListenerConfig.java | 4 +- .../examples/CustomRuleEventListener.java | 4 +- .../{kie/kogito => acme}/examples/Hello.java | 2 +- .../resources/org/acme}/examples/Hello.drl | 2 +- .../examples/LoanEligibility.dmn | 0 .../examples/Traffic Violation.dmn | 0 .../examples/quarkus/DashboardsListIT.java | 2 +- .../examples/quarkus/DroolsMetricsIT.java | 8 +- .../quarkus/GrafanaDockerComposeIT.java | 8 +- .../examples/quarkus/LoanEligibilityIT.java | 12 +- .../quarkus/ProjectMetadataProvider.java | 2 +- .../dmn-event-driven-quarkus/pom.xml | 2 +- .../examples/DmnEventDrivenIT.java | 2 +- .../examples/NativeDmnEventDrivenIT.java | 2 +- .../dmn-incubation-api-quarkus/pom.xml | 2 +- .../dmn-knative-quickstart-quarkus/pom.xml | 2 +- .../examples/CloudEventListenerTest.java | 2 +- .../examples/TopicsInformationTest.java | 2 +- .../dmn-listener-dtable/pom.xml | 2 +- .../ExampleDMNRuntimeEventListener.java | 2 +- .../example/dtlistener/PeriodicJobBean.java | 2 +- .../example/dtlistener/DecisionTableTest.java | 2 +- .../dmn-listener-quarkus/pom.xml | 2 +- .../ExampleDMNRuntimeEventListener.java | 2 +- .../ExampleDecisionEventListenerConfig.java | 2 +- .../LoggingDMNRuntimeEventListener.java | 2 +- .../listener/NativeTrafficViolationIT.java | 2 +- .../TrafficViolationListenerTest.java | 6 +- .../listener/TrafficViolationTest.java | 2 +- .../mock/MockDMNRuntimeEventListener.java | 2 +- .../dmn-pmml-quarkus-example/pom.xml | 2 +- .../pmml/quarkus/example/CommonTestUtils.java | 2 +- .../quarkus/example/DMNMiningModelTest.java | 2 +- .../quarkus/example/DMNRegressionTest.java | 2 +- .../quarkus/example/DMNScoreCardTest.java | 2 +- .../dmn/pmml/quarkus/example/DMNTreeTest.java | 2 +- .../quarkus/example/DecisionTreeTest.java | 6 +- .../dmn/pmml/quarkus/example/LinRegTest.java | 6 +- .../pmml/quarkus/example/MiningModelTest.java | 6 +- .../example/NativeDMNRegressionIT.java | 2 +- .../pmml/quarkus/example/NativeDMNTreeIT.java | 2 +- .../quarkus/example/NativeDecisionTreeIT.java | 2 +- .../pmml/quarkus/example/NativeLinRegIT.java | 2 +- .../pmml/quarkus/example/ScoreCardTest.java | 6 +- .../dmn-quarkus-example/pom.xml | 2 +- .../example/NativeTrafficViolationIT.java | 2 +- .../quarkus/example/TrafficViolationTest.java | 2 +- .../dmn-tracing-quarkus/pom.xml | 2 +- .../quarkus/tracing/LoanEligibilityIT.java | 6 +- .../tracing/NativeLoanEligibilityIT.java | 2 +- .../matcher/StringMatchesUUIDPattern.java | 2 +- .../flexible-process-quarkus/pom.xml | 2 +- .../flexible/example/model/Comment.java | 2 +- .../acme}/flexible/example/model/Product.java | 2 +- .../flexible/example/model/Questionnaire.java | 2 +- .../acme}/flexible/example/model/State.java | 2 +- .../flexible/example/model/SupportCase.java | 6 +- .../example/service/CommentService.java | 15 +- .../example/service/StateService.java | 8 +- .../example/service/TriageService.java | 6 +- .../src/main/resources/service-desk.bpmn | 88 +- .../quarkus/ServiceDeskProcessTest.java | 10 +- .../kogito-travel-agency/basic/pom.xml | 2 +- .../kogito-travel-agency/extended/pom.xml | 2 +- .../extended/travels/pom.xml | 2 +- .../{kie/kogito => acme}/app/VertxRouter.java | 2 +- .../extended/visas/pom.xml | 2 +- .../app/ProcessEventListenerConfig.java | 2 +- .../{kie/kogito => acme}/app/VertxRouter.java | 2 +- ...icationPrometheusProcessEventListener.java | 2 +- .../kogito-travel-agency/pom.xml | 2 +- .../onboarding-example/hr/pom.xml | 2 +- .../kogito => acme}/examples/hr/Address.java | 2 +- .../examples/hr/Department.java | 2 +- .../examples/hr/DepartmentModel.java | 8 +- .../kogito => acme}/examples/hr/Employee.java | 10 +- .../examples/hr/EmployeeRepository.java | 2 +- .../examples/hr/EmployeeValidation.java | 2 +- .../examples/hr/EmployeeValidationModel.java | 8 +- .../kogito => acme}/examples/hr/IdModel.java | 8 +- .../examples/hr/IdResource.java | 2 +- .../examples/hr/department.drl | 2 +- .../examples/hr/employeeValidation.drl | 2 +- .../examples/hr/DepartmentTest.java | 2 +- .../examples/hr/EmployeeValidationTest.java | 2 +- .../onboarding-quarkus/pom.xml | 2 +- .../examples/BaseWorkItemHandlerConfig.java | 4 +- .../examples/WorkItemHandlerConfig.java | 2 +- .../examples/onboarding/Address.java | 2 +- .../DecisionTaskWorkItemHandler.java | 2 +- .../examples/onboarding/Employee.java | 10 +- .../acme}/examples/onboarding/Payroll.java | 3 +- .../examples/onboarding/DecisionTasks.wid | 0 .../examples/onboarding/onboarding.bpmn | 32 +- .../examples/onboarding/setupHR.bpmn | 8 +- .../examples/onboarding/setupPayroll.bpmn | 20 +- .../examples/WorkItemHandlerConfig.java | 4 +- .../onboarding/OnboardingEndpointIT.java | 4 +- .../test/RecordedOutputWorkItemHandler.java | 2 +- .../onboarding-example/payroll/pom.xml | 2 +- .../examples/payroll/Address.java | 2 +- .../examples/payroll/Employee.java | 10 +- .../examples/payroll/Payroll.java | 8 +- .../examples/payroll/paymentDate.dmn | 0 .../examples/payroll/taxRate.dmn | 0 .../examples/payroll/vacationDays.dmn | 0 .../examples/payroll/PaymentDateTest.java | 2 +- .../examples/payroll/TaxRateTest.java | 2 +- .../examples/payroll/VacationDaysTest.java | 2 +- .../onboarding-example/pom.xml | 2 +- .../pmml-event-driven-quarkus/pom.xml | 2 +- .../examples/PmmlEventDrivenIT.java | 2 +- .../pmml-incubation-api-quarkus/pom.xml | 2 +- .../pmml-quarkus-example/pom.xml | 2 +- .../pmml/quarkus/example/CommonTestUtils.java | 2 +- .../pmml/quarkus/example/LinRegTest.java | 6 +- .../pmml/quarkus/example/MiningModelTest.java | 6 +- .../quarkus/example/NativeLinRegTestIT.java | 2 +- .../example/NativeMiningModelTestIT.java | 2 +- .../example/NativeSampleMineTestIT.java | 2 +- .../example/NativeSimpleScorecardTestIT.java | 2 +- .../pmml/quarkus/example/SampleMineTest.java | 6 +- .../quarkus/example/SimpleScorecardTest.java | 6 +- kogito-quarkus-examples/pom.xml | 2 +- .../process-business-rules-quarkus/mvnw | 310 --- .../process-business-rules-quarkus/mvnw.cmd | 182 -- .../process-business-rules-quarkus/pom.xml | 2 +- .../process-decisions-quarkus/README.md | 10 +- .../process-decisions-quarkus/pom.xml | 2 +- .../{kie/kogito => acme}/traffic/Driver.java | 2 +- .../traffic/DriverService.java | 2 +- .../src/main/java/org/acme}/traffic/Fine.java | 2 +- .../traffic/LicenseValidationService.java | 2 +- .../java/org/acme}/traffic/Violation.java | 2 +- .../resources/LicenseValidationService.drl | 2 +- .../src/main/resources/traffic-rules-dmn.bpmn | 38 +- .../acme}/traffic/NativeTrafficProcessIT.java | 2 +- .../traffic/TrafficProcessIT.java | 2 +- .../process-decisions-rest-quarkus/README.md | 14 +- .../process-decisions-rest-quarkus/pom.xml | 2 +- .../main/java/org/acme}/traffic/Driver.java | 2 +- .../traffic/DriverService.java | 2 +- .../src/main/java/org/acme}/traffic/Fine.java | 2 +- .../traffic/LicenseValidationRestClient.java | 2 +- .../traffic/LicenseValidationRestService.java | 2 +- .../traffic/LicenseValidationService.java | 2 +- .../traffic/TrafficViolationResponse.java | 2 +- .../traffic/TrafficViolationRestClient.java | 2 +- .../traffic/TrafficViolationRestService.java | 2 +- .../java/org/acme}/traffic/Violation.java | 2 +- .../resources/LicenseValidationService.drl | 2 +- .../src/main/resources/application.properties | 4 +- .../traffic-rules-dmn-service-task.bpmn | 44 +- .../main/resources/traffic-rules-dmn-wih.bpmn | 36 +- .../acme}/traffic/NativeTrafficProcessIT.java | 2 +- .../traffic/TrafficProcessIT.java | 2 +- .../process-decisions-rules-quarkus/README.md | 10 +- .../process-decisions-rules-quarkus/pom.xml | 2 +- .../traffic/DriverService.java | 4 +- .../src/main/java/org/acme}/traffic/Fine.java | 2 +- .../java/org/acme}/traffic/Violation.java | 2 +- .../LicenseValidatedService.java | 2 +- .../traffic/licensevalidated/Validated.java | 2 +- .../traffic/licensevalidation/Driver.java | 2 +- .../LicenseValidationService.java | 46 + .../LicenseValidationService.java | 46 - .../resources/LicenseValidatedService.drl | 2 +- .../resources/LicenseValidationService.drl | 2 +- .../src/main/resources/traffic-rules-dmn.bpmn | 54 +- .../acme}/traffic/NativeTrafficProcessIT.java | 2 +- .../traffic/TrafficProcessIT.java | 2 +- .../process-error-handling/mvnw | 310 --- .../process-error-handling/mvnw.cmd | 182 -- .../process-error-handling/pom.xml | 2 +- .../process-incubation-api-quarkus/pom.xml | 2 +- .../mvnw | 310 --- .../mvnw.cmd | 182 -- .../pom.xml | 2 +- .../process-kafka-avro-multi-quarkus/pom.xml | 2 +- .../src/main/resources/handle-travellers.bpmn | 2 +- .../process-kafka-multi-quarkus/pom.xml | 2 +- .../src/main/resources/handle-travellers.bpmn | 2 +- .../process-kafka-persistence-quarkus/pom.xml | 2 +- .../process-kafka-quickstart-quarkus/mvnw | 310 --- .../process-kafka-quickstart-quarkus/mvnw.cmd | 182 -- .../process-kafka-quickstart-quarkus/pom.xml | 2 +- .../src/main/resources/handle-travellers.bpmn | 2 +- .../process-knative-quickstart-quarkus/mvnw | 310 --- .../mvnw.cmd | 182 -- .../pom.xml | 2 +- .../src/main/resources/handle-travellers.bpmn | 2 +- .../pom.xml | 2 +- .../process-monitoring-quarkus/pom.xml | 2 +- .../examples/quarkus/CalculationService.java | 4 +- .../examples/quarkus/demo/Order.java | 2 +- .../acme/examples/quarkus/orderItems.bpmn2 | 224 ++ .../org/acme/examples/quarkus}/orders.bpmn2 | 12 +- .../kogito/examples/quarkus/orderItems.bpmn2 | 224 -- .../quarkus/DashboardGenerationIT.java | 2 +- .../quarkus/NativeDashboardGenerationIT.java | 2 +- .../examples/quarkus/ProcessMetricsTest.java | 10 +- .../quarkus/ProjectMetadataProvider.java | 2 +- .../process-outbox-mongodb-quarkus/pom.xml | 2 +- .../examples/CalculationService.java | 4 +- .../examples/PersonValidationService.java | 4 +- .../java/org/acme}/examples/demo/Order.java | 2 +- .../java/org/acme}/examples/demo/Person.java | 2 +- .../src/main/resources/application.properties | 2 +- .../examples/PersonValidationService.drl | 4 +- .../org/acme}/examples/orderItems.bpmn2 | 12 +- .../resources/org/acme}/examples/orders.bpmn2 | 12 +- .../org/acme}/examples/persons.bpmn2 | 18 +- .../quarkus/outbox/OutboxIT.java | 4 +- .../process-performance-client/pom.xml | 2 +- .../client/AsyncRestDispatcher.java | 2 +- .../performance/client/KafkaDispatcher.java | 2 +- .../performance/client/MainRunner.java | 5 +- .../performance/client/RequestDispatcher.java | 2 +- .../client/RequestDispatcherFactory.java | 2 +- .../client/RequestDispatcherRunner.java | 2 +- .../client/SyncRestDispatcher.java | 2 +- .../process-performance-quarkus/README.md | 2 +- .../process-performance-quarkus/pom.xml | 2 +- .../org/acme}/examples/kafkaTest.bpmn2 | 2 +- .../examples/kafkaTestOtherChannel.bpmn2 | 2 +- .../resources/org/acme}/examples/test.bpmn2 | 2 +- .../pom.xml | 2 +- .../process-quarkus-example/pom.xml | 2 +- .../examples/CalculationService.java | 4 +- .../examples/PersonValidationService.java | 4 +- .../kogito => acme}/examples/demo/Order.java | 2 +- .../java/org/acme}/examples/demo/Person.java | 2 +- .../examples/PersonValidationService.drl | 4 +- .../kogito => acme}/examples/orderItems.bpmn2 | 12 +- .../resources/org/acme/examples}/orders.bpmn2 | 12 +- .../org/acme}/examples/persons.bpmn2 | 18 +- .../examples/OrdersProcessIT.java | 4 +- .../examples/OrdersRestIT.java | 2 +- .../examples/PersonProcessIT.java | 4 +- .../examples/PersonsRestIT.java | 2 +- .../process-rest-service-call-quarkus/mvnw | 310 --- .../mvnw.cmd | 182 -- .../process-rest-service-call-quarkus/pom.xml | 2 +- .../pom.xml | 2 +- .../process-rest-workitem-quarkus/pom.xml | 2 +- .../process-saga-quarkus/README.md | 22 +- .../process-saga-quarkus/pom.xml | 2 +- .../kogito => acme}/examples/MockService.java | 2 +- .../examples/OrderService.java | 2 +- .../examples/PaymentService.java | 2 +- .../kogito => acme}/examples/Response.java | 2 +- .../examples/ServiceException.java | 2 +- .../examples/ShippingService.java | 2 +- .../examples/StockService.java | 2 +- .../resources/order-saga-error-handling.bpmn2 | 66 +- .../src/main/resources/order-saga.bpmn2 | 62 +- .../examples/ProcessSagaIT.java | 2 +- .../process-scripts-quarkus/mvnw | 310 --- .../process-scripts-quarkus/mvnw.cmd | 182 -- .../process-scripts-quarkus/pom.xml | 2 +- .../process-service-calls-quarkus/mvnw | 310 --- .../process-service-calls-quarkus/mvnw.cmd | 182 -- .../process-service-calls-quarkus/pom.xml | 2 +- .../process-timer-quarkus/mvnw | 310 --- .../process-timer-quarkus/mvnw.cmd | 182 -- .../process-timer-quarkus/pom.xml | 2 +- .../mvnw | 310 --- .../mvnw.cmd | 182 -- .../pom.xml | 2 +- .../pom.xml | 2 +- .../{kie/kogito => acme}/hr/Candidate.java | 2 +- .../src/main/resources/hiring.bpmn | 12 +- .../kogito => acme}/hr/HiringProcessIT.java | 2 +- .../process-usertasks-quarkus/mvnw | 310 --- .../process-usertasks-quarkus/mvnw.cmd | 182 -- .../process-usertasks-quarkus/pom.xml | 2 +- .../pom.xml | 2 +- .../{kie/kogito => acme}/hr/Candidate.java | 2 +- .../src/main/resources/hiring.bpmn | 12 +- .../kogito => acme}/hr/HiringProcessIT.java | 2 +- .../pom.xml | 2 +- .../mvnw | 310 --- .../mvnw.cmd | 182 -- .../pom.xml | 2 +- .../mvnw | 310 --- .../mvnw.cmd | 182 -- .../pom.xml | 2 +- .../rules-incubation-api-quarkus/pom.xml | 2 +- .../acme/{ => examples}/CustomRestRules.java | 3 +- .../{kie/kogito => acme}/examples/Hello.java | 2 +- .../{kie/kogito => acme}/examples/Hello.drl | 2 +- .../rules-legacy-quarkus-example/pom.xml | 2 +- .../main/java/org/acme}/legacy/Applicant.java | 2 +- .../legacy/FindApprovedLoansEndpoint.java | 2 +- .../legacy/LoanApplication.java | 2 +- .../main/java/org/acme}/legacy/LoanDto.java | 2 +- .../resources/org/acme}/legacy/LoanRules.drl | 4 +- .../NativeRestQueryTestIT.java | 2 +- .../{kie/kogito => acme}/RestQueryTest.java | 2 +- .../rules-quarkus-helloworld/pom.xml | 2 +- .../{kie/kogito => acme}/examples/Hello.java | 2 +- .../examples/MyAgendaEventListener.java | 2 +- .../resources/org/acme}/examples/Hello.drl | 2 +- .../kogito => acme}/examples/HelloTest.java | 2 +- .../ruleunit-event-driven-quarkus/README.md | 6 +- .../ruleunit-event-driven-quarkus/out.txt | 1950 ----------------- .../ruleunit-event-driven-quarkus/pom.xml | 2 +- .../kogito => acme}/queries/AllAmounts.java | 2 +- .../java/org/acme}/queries/Applicant.java | 2 +- .../org/acme}/queries/LoanApplication.java | 2 +- .../main/java/org/acme}/queries/LoanUnit.java | 2 +- .../org/acme}/queries/RuleUnitQuery.drl | 6 +- .../examples/RuleUnitEventDrivenIT.java | 2 +- .../find_all_application_amounts/input.json | 2 +- .../find_all_application_amounts/output.json | 2 +- .../events/query/find_approved/input.json | 2 +- .../events/query/find_approved/output.json | 2 +- .../input.json | 2 +- .../output.json | 2 +- .../ruleunit-quarkus-example/pom.xml | 2 +- .../kogito => acme}/queries/AllAmounts.java | 2 +- .../java/org/acme}/queries/Applicant.java | 2 +- .../org/acme}/queries/LoanApplication.java | 2 +- .../main/java/org/acme}/queries/LoanUnit.java | 2 +- .../org/acme}/queries/RuleUnitQuery.drl | 6 +- .../ruleunit/NativeRestQueryTestIT.java | 2 +- .../quarkus/ruleunit/RestQueryTest.java | 2 +- .../pom.xml | 2 +- .../decisiontable-springboot-example/pom.xml | 2 +- .../kogito => acme}/queries/Applicant.java | 2 +- .../queries}/KogitoSpringbootApplication.java | 4 +- .../queries/LoanApplication.java | 2 +- .../main/java/org/acme}/queries/LoanUnit.java | 2 +- .../org/acme}/queries/LoanUnit.drl.xls | Bin 12288 -> 11776 bytes .../springboot/RestQueryTest.java | 4 +- .../dmn-drools-springboot-metrics/pom.xml | 4 +- ...-dmn-drools-springboot-metrics-Custom.json | 212 +- ...-dmn-drools-springboot-metrics-Custom.json | 470 +++- .../app/CustomDMNRuntimeEventListener.java | 4 +- .../app/RuleEventListenerConfig.java | 4 +- .../examples/CustomRuleEventListener.java | 4 +- .../{kie/kogito => acme}/examples/Hello.java | 2 +- .../KogitoSpringbootApplication.java | 4 +- .../{kie/kogito => acme}/examples/Hello.drl | 2 +- .../examples/LoanEligibility.dmn | 0 .../examples/Traffic Violation.dmn | 0 .../springboot/DashboardsListTest.java | 2 +- .../springboot/DroolsMetricsTest.java | 8 +- .../springboot/GrafanaDockerComposeIT.java | 6 +- .../springboot/LoanEligibilityTest.java | 13 +- .../springboot/ProjectMetadataProvider.java | 2 +- .../dmn-event-driven-springboot/pom.xml | 2 +- .../example/KogitoSpringbootApplication.java | 4 +- .../examples/DmnEventDrivenIT.java | 4 +- .../dmn-listener-springboot/pom.xml | 2 +- .../ExampleDMNRuntimeEventListener.java | 2 +- .../ExampleDecisionEventListenerConfig.java | 2 +- .../listener/KogitoSpringbootApplication.java | 27 + .../LoggingDMNRuntimeEventListener.java | 2 +- .../TrafficViolationListenerTest.java | 7 +- .../listener/TrafficViolationTest.java | 2 +- .../mock/MockDMNRuntimeEventListener.java | 2 +- .../dmn-pmml-springboot-example/pom.xml | 2 +- .../example}/KogitoSpringbootApplication.java | 4 +- .../example/KogitoSpringbootApplication.java | 27 - .../springboot/example/CommonTestUtils.java | 2 +- .../example/DMNMiningModelTest.java | 2 +- .../springboot/example/DMNRegressionTest.java | 2 +- .../springboot/example/DMNScoreCardTest.java | 2 +- .../pmml/springboot/example/DMNTreeTest.java | 2 +- .../springboot/example/DecisionTreeTest.java | 6 +- .../pmml/springboot/example/LinRegTest.java | 15 +- .../springboot/example/MiningModelTest.java | 15 +- .../springboot/example/ScoreCardTest.java | 10 +- .../dmn-springboot-example/README.md | 2 +- .../dmn-springboot-example/pom.xml | 2 +- .../example/KogitoSpringbootApplication.java | 27 + .../example/KogitoSpringbootApplication.java | 27 - .../example/TrafficViolationTest.java | 2 +- .../dmn-tracing-springboot/pom.xml | 2 +- .../tracing/KogitoSpringbootApplication.java | 4 +- .../springboot/tracing/LoanEligibilityIT.java | 4 +- .../matcher/StringMatchesUUIDPattern.java | 2 +- .../flexible-process-springboot/pom.xml | 2 +- .../flexible/example/model/Comment.java | 2 +- .../acme}/flexible/example/model/Product.java | 2 +- .../flexible/example/model/Questionnaire.java | 2 +- .../acme}/flexible/example/model/State.java | 2 +- .../flexible/example/model/SupportCase.java | 6 +- .../example/service/CommentService.java | 15 +- .../example/service/StateService.java | 8 +- .../example/service/TriageService.java | 6 +- .../tests}/KogitoSpringbootApplication.java | 4 +- .../tests/KogitoSpringbootApplication.java | 28 - .../src/main/resources/service-desk.bpmn | 88 +- .../springboot/ServiceDeskProcessTest.java | 15 +- .../onboarding-springboot/pom.xml | 2 +- .../examples/KogitoOnboardingApplication.java | 4 +- .../examples/WorkItemHandlerConfig.java | 4 +- .../examples/onboarding/Address.java | 2 +- .../DecisionTaskWorkItemHandler.java | 2 +- .../examples/onboarding/Employee.java | 10 +- .../acme}/examples/onboarding/Payroll.java | 3 +- .../examples/onboarding/DecisionTasks.wid | 0 .../examples/onboarding/onboarding.bpmn | 32 +- .../examples/onboarding/setupHR.bpmn | 8 +- .../examples/onboarding/setupPayroll.bpmn | 20 +- .../onboarding/OnboardingEndpointIT.java | 6 +- .../test/RecordedOutputWorkItemHandler.java | 2 +- .../test/RecordedWorkItemHandlerConfig.java | 2 +- .../pmml-event-driven-springboot/pom.xml | 2 +- .../example}/KogitoSpringbootApplication.java | 4 +- .../examples/PmmlEventDrivenIT.java | 4 +- .../pmml-springboot-example/pom.xml | 2 +- .../example}/KogitoSpringbootApplication.java | 4 +- .../springboot/example/CommonTestUtils.java | 2 +- .../pmml/springboot/example/LinRegTest.java | 6 +- .../springboot/example/MiningModelTest.java | 6 +- .../springboot/example/SampleMineTest.java | 9 +- .../example/SimpleScorecardTest.java | 9 +- kogito-springboot-examples/pom.xml | 2 +- .../process-business-rules-springboot/mvnw | 310 --- .../mvnw.cmd | 182 -- .../process-business-rules-springboot/pom.xml | 2 +- ...KogitoInfinispanSpringbootApplication.java | 28 + ...KogitoInfinispanSpringbootApplication.java | 28 - .../org/acme/travels/PersonsProcessTest.java | 2 +- .../README.md | 14 +- .../process-decisions-rest-springboot/pom.xml | 2 +- .../main/java/org/acme}/traffic/Driver.java | 2 +- .../java/org/acme}/traffic/DriverService.java | 2 +- .../src/main/java/org/acme}/traffic/Fine.java | 2 +- .../traffic/KogitoApplication.java | 4 +- .../traffic/LicenseValidationRestService.java | 2 +- .../traffic/LicenseValidationService.java | 2 +- .../traffic/TrafficViolationResponse.java | 2 +- .../traffic/TrafficViolationRestService.java | 2 +- .../java/org/acme}/traffic/Violation.java | 2 +- .../resources/LicenseValidationService.drl | 2 +- .../traffic-rules-dmn-service-task.bpmn | 44 +- .../main/resources/traffic-rules-dmn-wih.bpmn | 36 +- .../traffic/TrafficProcessIT.java | 2 +- .../README.md | 10 +- .../pom.xml | 2 +- .../traffic/DriverService.java | 4 +- .../src/main/java/org/acme/traffic/Fine.java | 43 + .../traffic/KogitoApplication.java | 4 +- .../main/java/org/acme/traffic/Violation.java | 90 + .../LicenseValidatedService.java | 2 +- .../traffic/licensevalidated/Validated.java | 2 +- .../traffic/licensevalidation/Driver.java | 2 +- .../LicenseValidationService.java | 46 + .../java/org/kie/kogito/traffic/Fine.java | 43 - .../org/kie/kogito/traffic/Violation.java | 90 - .../LicenseValidationService.java | 46 - .../resources/LicenseValidatedService.drl | 2 +- .../resources/LicenseValidationService.drl | 2 +- .../src/main/resources/traffic-rules-dmn.bpmn | 54 +- .../acme/traffic}/TrafficProcessIT.java | 2 +- .../process-decisions-springboot/README.md | 10 +- .../process-decisions-springboot/pom.xml | 2 +- .../main/java/org/acme}/traffic/Driver.java | 2 +- .../java/org/acme}/traffic/DriverService.java | 2 +- .../src/main/java/org/acme/traffic/Fine.java | 43 + .../traffic/KogitoApplication.java | 4 +- .../traffic/LicenseValidationService.java | 2 +- .../main/java/org/acme/traffic/Violation.java | 90 + .../java/org/kie/kogito/traffic/Fine.java | 43 - .../org/kie/kogito/traffic/Violation.java | 90 - .../resources/LicenseValidationService.drl | 2 +- .../src/main/resources/traffic-rules-dmn.bpmn | 38 +- .../acme/traffic}/TrafficProcessIT.java | 2 +- .../mvnw | 310 --- .../mvnw.cmd | 182 -- .../pom.xml | 2 +- .../org/acme/deals/KogitoApplication.java | 2 +- .../process-kafka-multi-springboot/pom.xml | 2 +- ...KogitoKafkaMultiSpringbootApplication.java | 4 +- .../src/main/resources/handle-travellers.bpmn | 2 +- .../springboot/MultiMessagingIT.java | 2 +- .../process-kafka-quickstart-springboot/mvnw | 286 --- .../mvnw.cmd | 161 -- .../pom.xml | 2 +- ...oKafkaQuickstartSpringbootApplication.java | 4 +- .../src/main/resources/handle-travellers.bpmn | 2 +- .../src/main/resources/travellers.drl | 1 - .../messaging/springboot/MessagingIT.java | 2 +- .../pom.xml | 2 +- .../org/acme/travels/KogitoApplication.java | 2 +- .../process-monitoring-springboot/pom.xml | 2 +- .../springboot/CalculationService.java | 4 +- .../examples/springboot/DemoApplication.java | 4 +- .../examples/springboot/demo/Order.java | 2 +- .../acme/examples/springboot/orderItems.bpmn2 | 224 ++ .../examples/springboot/orders.bpmn2 | 12 +- .../examples/springboot/orderItems.bpmn2 | 224 -- .../springboot/DashboardGenerationTest.java | 2 +- .../springboot/ProcessMetricsTest.java | 8 +- .../springboot/ProjectMetadataProvider.java | 2 +- .../process-outbox-mongodb-springboot/pom.xml | 2 +- .../examples/CalculationService.java | 4 +- .../kogito => acme}/examples/CorsConfig.java | 2 +- .../examples/DemoApplication.java | 4 +- .../examples/PersonValidationService.java | 4 +- .../java/org/acme}/examples/demo/Order.java | 2 +- .../java/org/acme}/examples/demo/Person.java | 2 +- .../examples/PersonValidationService.drl | 4 +- .../kogito => acme}/examples/orderItems.bpmn2 | 12 +- .../kogito => acme}/examples/orders.bpmn2 | 12 +- .../org/acme}/examples/persons.bpmn2 | 18 +- .../springboot/outbox/OutboxIT.java | 2 +- .../process-performance-springboot/README.md | 2 +- .../process-performance-springboot/pom.xml | 2 +- ...ogitoPerformanceSpringbootApplication.java | 4 +- .../org/acme}/examples/kafkaTest.bpmn2 | 2 +- .../examples/kafkaTestOtherChannel.bpmn2 | 2 +- .../resources/org/acme}/examples/test.bpmn2 | 2 +- .../pom.xml | 2 +- .../org/acme/travels/KogitoApplication.java | 2 +- .../process-rest-service-call-springboot/mvnw | 310 --- .../mvnw.cmd | 182 -- .../pom.xml | 2 +- ...KogitoInfinispanSpringbootApplication.java | 4 +- .../travels/springboot/UsersProcessTest.java | 2 +- .../process-scripts-springboot/mvnw | 310 --- .../process-scripts-springboot/mvnw.cmd | 182 -- .../process-scripts-springboot/pom.xml | 2 +- ...KogitoInfinispanSpringbootApplication.java | 4 +- .../springboot/ScriptsProcessTest.java | 2 +- .../process-service-calls-springboot/mvnw | 310 --- .../process-service-calls-springboot/mvnw.cmd | 182 -- .../process-service-calls-springboot/pom.xml | 2 +- ...KogitoInfinispanSpringbootApplication.java | 4 +- .../MultiParamServiceProcessTest.java | 2 +- .../springboot/TravellersProcessTest.java | 2 +- .../process-springboot-example/mvnw | 286 --- .../process-springboot-example/mvnw.cmd | 161 -- .../process-springboot-example/pom.xml | 4 +- .../examples/CalculationService.java | 4 +- .../kogito => acme}/examples/CorsConfig.java | 2 +- .../examples/DemoApplication.java | 4 +- .../kogito => acme}/examples/KafkaConfig.java | 2 +- .../examples/PersonValidationService.java | 4 +- .../kogito => acme}/examples/demo/Order.java | 2 +- .../java/org/acme}/examples/demo/Person.java | 2 +- .../examples/PersonValidationService.drl | 4 +- .../org/acme}/examples/orderItems.bpmn2 | 12 +- .../kogito => acme}/examples/orders.bpmn2 | 12 +- .../org/acme}/examples/persons.bpmn2 | 18 +- .../examples/demo/OrdersProcessIT.java | 4 +- .../examples/demo/OrdersRestIT.java | 4 +- .../examples/demo/PersonProcessIT.java | 4 +- .../examples/demo/PersonsRestIT.java | 4 +- .../process-timer-springboot/mvnw | 310 --- .../process-timer-springboot/mvnw.cmd | 182 -- .../process-timer-springboot/pom.xml | 2 +- .../tests/KogitoApplication.java | 4 +- .../mvnw | 310 --- .../mvnw.cmd | 182 -- .../pom.xml | 2 +- ...KogitoInfinispanSpringbootApplication.java | 4 +- .../springboot/ApprovalsProcessTest.java | 2 +- .../pom.xml | 2 +- .../kogito => acme}/tests/CorsConfig.java | 2 +- ...KogitoInfinispanSpringbootApplication.java | 4 +- .../org/acme/travels/ApprovalsTestIT.java | 2 +- .../process-usertasks-springboot/mvnw | 310 --- .../process-usertasks-springboot/mvnw.cmd | 182 -- .../process-usertasks-springboot/pom.xml | 2 +- ...KogitoInfinispanSpringbootApplication.java | 28 + ...KogitoInfinispanSpringbootApplication.java | 28 - .../springboot/ApprovalsProcessTest.java | 2 +- .../pom.xml | 2 +- .../springboot/CorsConfig.java | 2 +- .../springboot/DefaultWebSecurityConfig.java | 2 +- .../springboot/KeycloakResolverConfig.java | 2 +- .../KogitoSpringbootApplication.java | 4 +- .../acme/travels/ApprovalsProcessTestIT.java | 2 +- .../org/acme/travels/ApprovalsRestIT.java | 2 +- .../mvnw | 310 --- .../mvnw.cmd | 182 -- .../pom.xml | 2 +- .../springboot/DefaultWebSecurityConfig.java | 2 +- .../springboot/KeycloakResolverConfig.java | 2 +- .../KogitoSpringbootApplication.java | 5 +- .../org/acme/travels/ApprovalsRestIT.java | 2 +- .../oidc/springboot/ApprovalsProcessTest.java | 2 +- .../mvnw | 310 --- .../mvnw.cmd | 182 -- .../pom.xml | 2 +- .../tests/DefaultWebSecurityConfig.java | 2 +- ...KogitoInfinispanSpringbootApplication.java | 28 + .../tests/LogEventPublisher.java | 2 +- ...KogitoInfinispanSpringbootApplication.java | 28 - .../springboot/ApprovalsProcessTest.java | 2 +- .../springboot/ApprovalsRestTest.java | 2 +- .../rules-legacy-springboot-example/pom.xml | 2 +- .../main/java/org/acme}/legacy/Applicant.java | 2 +- .../legacy/FindApprovedLoansEndpoint.java | 2 +- .../legacy/KogitoSpringbootApplication.java | 27 + .../legacy/LoanApplication.java | 2 +- .../main/java/org/acme}/legacy/LoanDto.java | 2 +- .../resources/org/acme}/legacy/LoanRules.drl | 4 +- .../{kie/kogito => acme}/RestQueryTest.java | 4 +- .../README.md | 6 +- .../ruleunit-event-driven-springboot/pom.xml | 2 +- .../kogito => acme}/queries/AllAmounts.java | 2 +- .../main/java/org/acme/queries/Applicant.java | 46 + .../queries/KogitoSpringbootApplication.java | 27 + .../org/acme/queries/LoanApplication.java | 80 + .../main/java/org/acme}/queries/LoanUnit.java | 2 +- .../org/kie/kogito/queries/Applicant.java | 46 - .../queries/KogitoSpringbootApplication.java | 27 - .../kie/kogito/queries/LoanApplication.java | 80 - .../org/acme}/queries/RuleUnitQuery.drl | 6 +- .../examples/RuleUnitEventDrivenIT.java | 4 +- .../find_all_application_amounts/input.json | 2 +- .../find_all_application_amounts/output.json | 2 +- .../events/query/find_approved/input.json | 2 +- .../events/query/find_approved/output.json | 2 +- .../input.json | 2 +- .../output.json | 2 +- .../ruleunit-springboot-example/pom.xml | 2 +- .../main/java/org/acme/queries/Applicant.java | 46 + .../queries/KogitoSpringbootApplication.java | 27 + .../org/acme/queries/LoanApplication.java | 80 + .../main/java/org/acme}/queries/LoanUnit.java | 2 +- .../org/kie/kogito/queries/Applicant.java | 46 - .../queries/KogitoSpringbootApplication.java | 27 - .../kie/kogito/queries/LoanApplication.java | 80 - .../kogito => acme}/queries/RuleUnitQuery.drl | 4 +- .../springboot/ruleunit/RestQueryTest.java | 4 +- pom.xml | 3 +- serverless-workflow-examples/pom.xml | 2 +- .../pom.xml | 2 +- .../callback-event-service/pom.xml | 2 +- .../examples/CallbackResource.java | 2 +- .../kogito => acme}/examples/EventInput.java | 2 +- .../examples/RegisterObjectMapper.java | 2 +- .../callback-workflow/pom.xml | 2 +- .../examples/CallbackRestIT.java | 2 +- .../pom.xml | 2 +- .../pom.xml | 2 +- .../examples/PrintService.java | 2 +- .../src/main/resources/callback.sw.json | 2 +- .../examples/CallbackRestIT.java | 2 +- .../pom.xml | 2 +- .../examples/CompensationRestIT.java | 2 +- .../pom.xml | 2 +- .../examples/ConsumingEventsOverHttpIT.java | 2 +- .../README.md | 4 +- .../pom.xml | 2 +- .../kogito => acme}/examples/Account.java | 2 +- .../examples/EventsService.java | 2 +- .../examples/WorkflowResource.java | 2 +- .../src/main/resources/correlation.sw.json | 2 +- .../examples/CorrelationIT.java | 2 +- .../custom-function-knative-service/pom.xml | 2 +- .../examples/CloudEventFunction.java | 2 +- .../{kie/kogito => acme}/examples/Input.java | 2 +- .../{kie/kogito => acme}/examples/Output.java | 2 +- .../examples/PlainJsonFunction.java | 2 +- .../pom.xml | 2 +- .../workflow/pom.xml | 2 +- .../serverless-workflow-custom-type/pom.xml | 2 +- .../pom.xml | 4 +- .../services/RPCCustomFunctionNamespace.java | 7 +- .../sw/services/RPCCustomTypeHandler.java | 7 +- ...rverless.workflow.parser.FunctionNamespace | 2 +- ...erless.workflow.parser.FunctionTypeHandler | 2 +- .../pom.xml | 2 +- .../examples/sw/custom/CalculatorClient.java | 2 +- .../examples/sw/custom/CalculatorServer.java | 2 +- .../sw/custom/CalculatorClientTest.java | 11 +- .../serverless-workflow-custom-rpc/pom.xml | 4 +- .../sw/custom/RPCCustomWorkItemHandler.java | 4 +- .../RPCCustomWorkItemHandlerConfig.java | 2 +- .../pom.xml | 4 +- .../examples/CustomRestIT.java | 4 +- .../pom.xml | 2 +- .../examples/PrintService.java | 2 +- .../src/main/resources/callback.sw.json | 2 +- .../examples/DataIndexRestIT.java | 2 +- .../serverless-workflow-error-quarkus/pom.xml | 2 +- .../kogito => acme}/examples/EvenService.java | 2 +- .../src/main/resources/error.sw.json | 4 +- .../kogito => acme}/examples/ErrorRestIT.java | 2 +- .../pom.xml | 2 +- .../examples/ApplicantResource.java | 2 +- .../examples/AvroMarshallerProducer.java | 2 +- .../serverless/examples/DecisionResource.java | 2 +- .../examples/ApplicantWorkflowIT.java | 2 +- .../pom.xml | 2 +- .../examples/ExpressionRestIT.java | 2 +- .../pom.xml | 2 +- .../examples/ForEachRestIT.java | 2 +- .../pom.xml | 2 +- .../pom.xml | 2 +- .../serverless-workflow-funqy/pom.xml | 2 +- .../sw-funqy-services/pom.xml | 2 +- .../functions/ClassificationFunction.java | 8 +- .../examples/functions/CountriesFunction.java | 6 +- .../functions/PopulationFunction.java | 8 +- .../serverless/examples/input/Country.java | 2 +- .../services/ClassificationService.java | 4 +- .../examples/services/CountriesService.java | 4 +- .../examples/services/PopulationService.java | 4 +- .../serverless/examples/FunctionsIT.java | 4 +- .../sw-funqy-workflow/pom.xml | 2 +- .../examples/RestServiceMockServer.java | 2 +- .../serverless/examples/WorkflowIT.java | 2 +- .../github-service/README.md | 6 +- .../kubernetes/application.properties | 6 +- .../github-service/pom.xml | 2 +- .../sw/github/service/GitHubResource.java | 2 +- .../github/service/GitHubWrapperService.java | 2 +- .../service/GitHubWrapperServiceImpl.java | 2 +- .../sw/github/service/TokenProvider.java | 8 +- .../sw/github/service/GitHubResourceTest.java | 2 +- .../service/GitHubWrapperServiceIT.java | 2 +- .../service/MockedGitHubWrapperService.java | 2 +- .../src/test/resources/application.properties | 6 +- .../notification-service/README.md | 2 +- .../kubernetes/application.properties | 2 +- .../notification-service/pom.xml | 2 +- .../service/NotificationResource.java | 6 +- .../src/main/resources/application.properties | 2 +- .../service/NotificationResourceIT.java | 2 +- .../pom.xml | 2 +- .../pr-checker-workflow/pom.xml | 2 +- .../sw/github/workflow/GitHubClient.java | 2 +- .../sw/github/workflow/GitHubService.java | 2 +- .../src/main/resources/application.properties | 4 +- .../src/main/resources/handle-backend.sw.json | 4 +- .../main/resources/handle-frontend.sw.json | 4 +- .../src/main/resources/pr-checker.sw.json | 2 +- .../workflow/GitHubServiceMockServer.java | 4 +- .../sw/github/workflow/GitHubServiceTest.java | 2 +- .../sw/github/workflow/MessageSinkServer.java | 2 +- .../workflow/PRCheckerWorkflowTest.java | 2 +- .../src/test/resources/application.properties | 6 +- .../pom.xml | 2 +- .../kogito => acme}/examples/GreetRestIT.java | 2 +- .../pom.xml | 2 +- .../pom.xml | 4 +- .../kogito => acme}/examples/GreetRestIT.java | 4 +- .../README.md | 2 +- .../pom.xml | 4 +- .../examples/sw/greeting/GreeterService.java | 6 +- .../src/main/proto/greeting.proto | 4 +- .../sw/greeting/GreeterClientTest.java | 8 +- .../serverless-workflow-hello-world/pom.xml | 2 +- .../examples/HelloWorldTest.java | 2 +- .../aggregator/pom.xml | 2 +- .../loanbroker-flow/mvnw | 316 --- .../loanbroker-flow/mvnw.cmd | 188 -- .../loanbroker-flow/pom.xml | 2 +- .../src/main/resources/application.properties | 2 +- .../src/main/resources/loanbroker.sw.json.svg | 284 ++- .../loanbroker-ui/mvnw | 316 --- .../loanbroker-ui/mvnw.cmd | 188 -- .../loanbroker-ui/pom.xml | 2 +- .../pom.xml | 2 +- .../pom.xml | 2 +- .../subscription-flow/pom.xml | 4 +- .../kogito => acme}/examples/VertxRouter.java | 2 +- .../subscription-service/pom.xml | 2 +- .../acme-financial-service/mvnw | 316 --- .../acme-financial-service/mvnw.cmd | 188 -- .../acme-financial-service/pom.xml | 2 +- .../currency-exchange-workflow/mvnw | 316 --- .../currency-exchange-workflow/mvnw.cmd | 188 -- .../currency-exchange-workflow/pom.xml | 2 +- .../examples/ExchangeWorkflowHelper.java | 2 +- .../examples/ValidationResult.java | 2 +- .../src/main/resources/application.properties | 2 +- .../currency-exchange-workflow.sw.json | 2 +- .../pom.xml | 2 +- .../pom.xml | 2 +- .../examples/OpenVinoRestIT.java | 2 +- .../pom.xml | 2 +- .../examples/sw/orders/processing/Order.java | 2 +- .../processing/VerifyWorkflowExecutionIT.java | 2 +- .../pom.xml | 2 +- .../examples/ParallelStateTest.java | 2 +- .../pom.xml | 2 +- .../examples/PythonRestIT.java | 2 +- .../pom.xml | 2 +- .../query-answer-service/pom.xml | 2 +- .../query-service/pom.xml | 2 +- .../serverless-workflow-saga-quarkus/pom.xml | 2 +- .../kogito => acme}/examples/MockService.java | 2 +- .../examples/OrderService.java | 2 +- .../examples/PaymentService.java | 2 +- .../kogito => acme}/examples/Response.java | 2 +- .../examples/ServiceException.java | 2 +- .../examples/ShippingService.java | 2 +- .../examples/StockService.java | 2 +- .../order-saga-error-handling.sw.json | 22 +- .../examples/OrderSagaWorkflowIT.java | 2 +- .../pom.xml | 2 +- .../examples/CountriesClassifierResource.java | 2 +- .../serverless/examples/Country.java | 2 +- .../src/main/resources/countryservice.sw.json | 4 +- .../examples/CountryServiceWorkflowTest.java | 2 +- .../examples/RestCountriesMockServer.java | 2 +- .../fake-stock-service/pom.xml | 2 +- .../serverless-workflow-stock-profit/pom.xml | 2 +- .../real-stock-service/pom.xml | 2 +- .../stock-portfolio-service/pom.xml | 2 +- .../stock-profit/pom.xml | 2 +- .../conversion-workflow-full/pom.xml | 2 +- .../acme}/serverless/ConversationFlowIT.java | 2 +- .../serverless/OperationsMockService.java | 2 +- .../conversion-workflow-function/pom.xml | 2 +- .../acme}/serverless/ConversationFlowIT.java | 2 +- .../serverless/OperationsMockService.java | 2 +- .../conversion-workflow-spec/pom.xml | 2 +- .../acme}/serverless/ConversationFlowIT.java | 2 +- .../serverless/OperationsMockService.java | 2 +- .../conversion-workflow/pom.xml | 2 +- .../acme}/serverless/ConversationFlowIT.java | 2 +- .../serverless/OperationsMockService.java | 2 +- .../multiplication-service/pom.xml | 2 +- .../MultiplicationOperation.java | 2 +- .../multiplication/OperationResource.java | 2 +- .../multiplication/OperationResourceIT.java | 2 +- .../pom.xml | 2 +- .../subtraction-service/pom.xml | 2 +- .../temp/subtraction/OperationResource.java | 2 +- .../subtraction/SubtractionOperation.java | 2 +- .../temp/subtraction/OperationResourceIT.java | 2 +- .../pom.xml | 2 +- .../kogito => acme}/examples/HelloTest.java | 2 +- .../pom.xml | 2 +- .../examples/EventsProducerResource.java | 2 +- .../kogito => acme}/examples/VertxRouter.java | 2 +- .../kogito => acme}/examples/TimeoutIT.java | 2 +- .../pom.xml | 2 +- .../examples/EventsProducerResource.java | 2 +- .../kogito => acme}/examples/VertxRouter.java | 2 +- .../kogito => acme}/examples/TimeoutIT.java | 2 +- .../pom.xml | 2 +- .../examples/CallbackStateTimeoutsClient.java | 4 +- .../examples/CloudEventsCustomizer.java | 2 +- .../examples/EventStateTimeoutsClient.java | 4 +- .../examples/EventsProducerResource.java | 2 +- .../examples/SwitchStateTimeoutsClient.java | 4 +- .../kogito => acme}/examples/VertxRouter.java | 2 +- .../examples/WorkflowClient.java | 2 +- .../examples/WorkflowTimeoutsClient.java | 4 +- .../examples/WorkflowsProxyResource.java | 2 +- 862 files changed, 3789 insertions(+), 19041 deletions(-) rename kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/{kie/kogito => acme}/queries/Applicant.java (97%) rename kogito-quarkus-examples/{ruleunit-quarkus-example/src/main/java/org/kie/kogito => decisiontable-quarkus-example/src/main/java/org/acme}/queries/LoanApplication.java (98%) rename {kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/kie/kogito => kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/acme}/queries/LoanUnit.java (97%) rename {kogito-springboot-examples/decisiontable-springboot-example/src/main/resources/org/kie/kogito => kogito-quarkus-examples/decisiontable-quarkus-example/src/main/resources/org/acme}/queries/LoanUnit.drl.xls (57%) rename kogito-quarkus-examples/decisiontable-quarkus-example/src/test/java/org/{kie/kogito => acme}/decisiontable/quarkus/NativeRestQueryIT.java (94%) rename kogito-quarkus-examples/decisiontable-quarkus-example/src/test/java/org/{kie/kogito => acme}/decisiontable/quarkus/RestQueryTest.java (98%) rename kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/{kie/kogito => acme}/app/CustomDMNRuntimeEventListener.java (95%) rename kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/{kie/kogito => acme}/app/RuleEventListenerConfig.java (92%) rename kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/{kie/kogito => acme}/examples/CustomRuleEventListener.java (96%) rename kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/{kie/kogito => acme}/examples/Hello.java (96%) rename kogito-quarkus-examples/{rules-quarkus-helloworld/src/main/resources/org/kie/kogito => dmn-drools-quarkus-metrics/src/main/resources/org/acme}/examples/Hello.drl (95%) rename kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/org/{kie/kogito => acme}/examples/LoanEligibility.dmn (100%) rename kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/org/{kie/kogito => acme}/examples/Traffic Violation.dmn (100%) rename kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/{kie/kogito => acme}/examples/quarkus/DashboardsListIT.java (96%) rename kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/{kie/kogito => acme}/examples/quarkus/DroolsMetricsIT.java (84%) rename kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/{kie/kogito => acme}/examples/quarkus/GrafanaDockerComposeIT.java (96%) rename kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/{kie/kogito => acme}/examples/quarkus/LoanEligibilityIT.java (91%) rename kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/{kie/kogito => acme}/examples/quarkus/ProjectMetadataProvider.java (97%) rename kogito-quarkus-examples/dmn-event-driven-quarkus/src/test/java/org/{kie/kogito => acme}/examples/DmnEventDrivenIT.java (99%) rename kogito-quarkus-examples/dmn-event-driven-quarkus/src/test/java/org/{kie/kogito => acme}/examples/NativeDmnEventDrivenIT.java (96%) rename kogito-quarkus-examples/dmn-knative-quickstart-quarkus/src/test/java/org/{kie/kogito => acme}/examples/CloudEventListenerTest.java (99%) rename kogito-quarkus-examples/dmn-knative-quickstart-quarkus/src/test/java/org/{kie/kogito => acme}/examples/TopicsInformationTest.java (98%) rename kogito-quarkus-examples/dmn-listener-dtable/src/main/java/org/{kie/kogito => acme}/dmn/quarkus/example/dtlistener/ExampleDMNRuntimeEventListener.java (96%) rename kogito-quarkus-examples/dmn-listener-dtable/src/main/java/org/{kie/kogito => acme}/dmn/quarkus/example/dtlistener/PeriodicJobBean.java (98%) rename kogito-quarkus-examples/dmn-listener-dtable/src/test/java/org/{kie/kogito => acme}/dmn/quarkus/example/dtlistener/DecisionTableTest.java (97%) rename kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/{kie/kogito => acme}/dmn/quarkus/example/listener/ExampleDMNRuntimeEventListener.java (96%) rename kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/{kie/kogito => acme}/dmn/quarkus/example/listener/ExampleDecisionEventListenerConfig.java (97%) rename kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/{kie/kogito => acme}/dmn/quarkus/example/listener/LoggingDMNRuntimeEventListener.java (98%) rename kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/{kie/kogito => acme}/dmn/quarkus/example/listener/NativeTrafficViolationIT.java (93%) rename kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/{kie/kogito => acme}/dmn/quarkus/example/listener/TrafficViolationListenerTest.java (91%) rename kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/{kie/kogito => acme}/dmn/quarkus/example/listener/TrafficViolationTest.java (96%) rename kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/{kie/kogito => acme}/dmn/quarkus/example/mock/MockDMNRuntimeEventListener.java (97%) rename kogito-quarkus-examples/{pmml-quarkus-example/src/test/java/org/kie/kogito => dmn-pmml-quarkus-example/src/test/java/org/acme/dmn}/pmml/quarkus/example/CommonTestUtils.java (98%) rename kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/quarkus/example/DMNMiningModelTest.java (97%) rename kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/quarkus/example/DMNRegressionTest.java (97%) rename kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/quarkus/example/DMNScoreCardTest.java (97%) rename kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/quarkus/example/DMNTreeTest.java (97%) rename kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/quarkus/example/DecisionTreeTest.java (88%) rename kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/quarkus/example/LinRegTest.java (87%) rename kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/quarkus/example/MiningModelTest.java (87%) rename kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/quarkus/example/NativeDMNRegressionIT.java (94%) rename kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/quarkus/example/NativeDMNTreeIT.java (94%) rename kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/quarkus/example/NativeDecisionTreeIT.java (94%) rename kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/quarkus/example/NativeLinRegIT.java (94%) rename kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/quarkus/example/ScoreCardTest.java (88%) rename kogito-quarkus-examples/dmn-quarkus-example/src/test/java/org/{kie/kogito => acme}/dmn/quarkus/example/NativeTrafficViolationIT.java (94%) rename kogito-quarkus-examples/dmn-quarkus-example/src/test/java/org/{kie/kogito => acme}/dmn/quarkus/example/TrafficViolationTest.java (97%) rename kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/{kie/kogito => acme}/dmn/quarkus/tracing/LoanEligibilityIT.java (95%) rename kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/{kie/kogito => acme}/dmn/quarkus/tracing/NativeLoanEligibilityIT.java (95%) rename kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/{kie/kogito => acme}/dmn/quarkus/tracing/matcher/StringMatchesUUIDPattern.java (96%) rename kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/{kie/kogito => acme}/flexible/example/model/Comment.java (97%) rename {kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito => kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme}/flexible/example/model/Product.java (96%) rename kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/{kie/kogito => acme}/flexible/example/model/Questionnaire.java (97%) rename {kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito => kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme}/flexible/example/model/State.java (93%) rename kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/{kie/kogito => acme}/flexible/example/model/SupportCase.java (95%) rename kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/{kie/kogito => acme}/flexible/example/service/CommentService.java (71%) rename kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/{kie/kogito => acme}/flexible/example/service/StateService.java (84%) rename kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/{kie/kogito => acme}/flexible/example/service/TriageService.java (93%) rename kogito-quarkus-examples/flexible-process-quarkus/src/test/java/org/{kie/kogito => acme}/flexible/example/quarkus/ServiceDeskProcessTest.java (96%) rename kogito-quarkus-examples/kogito-travel-agency/extended/travels/src/main/java/org/{kie/kogito => acme}/app/VertxRouter.java (98%) rename kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/{kie/kogito => acme}/app/ProcessEventListenerConfig.java (98%) rename kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/{kie/kogito => acme}/app/VertxRouter.java (98%) rename kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/{kie/kogito => acme}/app/VisaApplicationPrometheusProcessEventListener.java (99%) rename kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/{kie/kogito => acme}/examples/hr/Address.java (98%) rename kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/{kie/kogito => acme}/examples/hr/Department.java (96%) rename kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/{kie/kogito => acme}/examples/hr/DepartmentModel.java (83%) rename kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/{kie/kogito => acme}/examples/hr/Employee.java (89%) rename kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/{kie/kogito => acme}/examples/hr/EmployeeRepository.java (97%) rename kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/{kie/kogito => acme}/examples/hr/EmployeeValidation.java (97%) rename kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/{kie/kogito => acme}/examples/hr/EmployeeValidationModel.java (85%) rename kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/{kie/kogito => acme}/examples/hr/IdModel.java (83%) rename kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/{kie/kogito => acme}/examples/hr/IdResource.java (96%) rename kogito-quarkus-examples/onboarding-example/hr/src/main/resources/org/{kie/kogito => acme}/examples/hr/department.drl (97%) rename kogito-quarkus-examples/onboarding-example/hr/src/main/resources/org/{kie/kogito => acme}/examples/hr/employeeValidation.drl (97%) rename kogito-quarkus-examples/onboarding-example/hr/src/test/java/org/{kie/kogito => acme}/examples/hr/DepartmentTest.java (97%) rename kogito-quarkus-examples/onboarding-example/hr/src/test/java/org/{kie/kogito => acme}/examples/hr/EmployeeValidationTest.java (97%) rename kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/{kie/kogito => acme}/examples/BaseWorkItemHandlerConfig.java (97%) rename kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/{kie/kogito => acme}/examples/WorkItemHandlerConfig.java (95%) rename kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/{kie/kogito => acme}/examples/onboarding/Address.java (97%) rename kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/{kie/kogito => acme}/examples/onboarding/DecisionTaskWorkItemHandler.java (97%) rename kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/{kie/kogito => acme}/examples/onboarding/Employee.java (86%) rename {kogito-springboot-examples/onboarding-springboot/src/main/java/org/kie/kogito => kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme}/examples/onboarding/Payroll.java (97%) rename kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/{kie/kogito => acme}/examples/onboarding/DecisionTasks.wid (100%) rename kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/{kie/kogito => acme}/examples/onboarding/onboarding.bpmn (95%) rename kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/{kie/kogito => acme}/examples/onboarding/setupHR.bpmn (96%) rename kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/{kie/kogito => acme}/examples/onboarding/setupPayroll.bpmn (96%) rename kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/{kie/kogito => acme}/examples/WorkItemHandlerConfig.java (91%) rename kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/{kie/kogito => acme}/examples/onboarding/OnboardingEndpointIT.java (98%) rename {kogito-springboot-examples/onboarding-springboot/src/test/java/org/kie/kogito => kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/acme}/examples/test/RecordedOutputWorkItemHandler.java (97%) rename kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/{kie/kogito => acme}/examples/payroll/Address.java (97%) rename kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/{kie/kogito => acme}/examples/payroll/Employee.java (87%) rename kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/{kie/kogito => acme}/examples/payroll/Payroll.java (87%) rename kogito-quarkus-examples/onboarding-example/payroll/src/main/resources/org/{kie/kogito => acme}/examples/payroll/paymentDate.dmn (100%) rename kogito-quarkus-examples/onboarding-example/payroll/src/main/resources/org/{kie/kogito => acme}/examples/payroll/taxRate.dmn (100%) rename kogito-quarkus-examples/onboarding-example/payroll/src/main/resources/org/{kie/kogito => acme}/examples/payroll/vacationDays.dmn (100%) rename kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/{kie/kogito => acme}/examples/payroll/PaymentDateTest.java (97%) rename kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/{kie/kogito => acme}/examples/payroll/TaxRateTest.java (97%) rename kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/{kie/kogito => acme}/examples/payroll/VacationDaysTest.java (97%) rename kogito-quarkus-examples/pmml-event-driven-quarkus/src/test/java/org/{kie/kogito => acme}/examples/PmmlEventDrivenIT.java (99%) rename kogito-quarkus-examples/{dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn => pmml-quarkus-example/src/test/java/org/acme}/pmml/quarkus/example/CommonTestUtils.java (98%) rename kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/pmml/quarkus/example/LinRegTest.java (88%) rename kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/pmml/quarkus/example/MiningModelTest.java (91%) rename kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/pmml/quarkus/example/NativeLinRegTestIT.java (94%) rename kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/pmml/quarkus/example/NativeMiningModelTestIT.java (94%) rename kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/pmml/quarkus/example/NativeSampleMineTestIT.java (94%) rename kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/pmml/quarkus/example/NativeSimpleScorecardTestIT.java (94%) rename kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/pmml/quarkus/example/SampleMineTest.java (88%) rename kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/{kie/kogito => acme}/pmml/quarkus/example/SimpleScorecardTest.java (89%) delete mode 100755 kogito-quarkus-examples/process-business-rules-quarkus/mvnw delete mode 100644 kogito-quarkus-examples/process-business-rules-quarkus/mvnw.cmd rename kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/{kie/kogito => acme}/traffic/Driver.java (98%) rename kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/{kie/kogito => acme}/traffic/DriverService.java (97%) rename kogito-quarkus-examples/{process-decisions-rules-quarkus/src/main/java/org/kie/kogito => process-decisions-quarkus/src/main/java/org/acme}/traffic/Fine.java (97%) rename kogito-quarkus-examples/{process-decisions-rest-quarkus/src/main/java/org/kie/kogito => process-decisions-quarkus/src/main/java/org/acme}/traffic/LicenseValidationService.java (97%) rename {kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito => kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/acme}/traffic/Violation.java (98%) rename kogito-quarkus-examples/{process-decisions-rules-quarkus/src/test/java/org/kie/kogito => process-decisions-quarkus/src/test/java/org/acme}/traffic/NativeTrafficProcessIT.java (95%) rename kogito-quarkus-examples/process-decisions-quarkus/src/test/java/org/{kie/kogito => acme}/traffic/TrafficProcessIT.java (98%) rename {kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito => kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme}/traffic/Driver.java (98%) rename kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/{kie/kogito => acme}/traffic/DriverService.java (97%) rename {kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito => kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme}/traffic/Fine.java (97%) rename kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/{kie/kogito => acme}/traffic/LicenseValidationRestClient.java (97%) rename kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/{kie/kogito => acme}/traffic/LicenseValidationRestService.java (97%) rename {kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito => kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme}/traffic/LicenseValidationService.java (97%) rename kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/{kie/kogito => acme}/traffic/TrafficViolationResponse.java (97%) rename kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/{kie/kogito => acme}/traffic/TrafficViolationRestClient.java (97%) rename kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/{kie/kogito => acme}/traffic/TrafficViolationRestService.java (97%) rename kogito-quarkus-examples/{process-decisions-quarkus/src/main/java/org/kie/kogito => process-decisions-rest-quarkus/src/main/java/org/acme}/traffic/Violation.java (98%) rename kogito-quarkus-examples/{process-decisions-quarkus/src/test/java/org/kie/kogito => process-decisions-rest-quarkus/src/test/java/org/acme}/traffic/NativeTrafficProcessIT.java (95%) rename kogito-quarkus-examples/process-decisions-rest-quarkus/src/test/java/org/{kie/kogito => acme}/traffic/TrafficProcessIT.java (98%) rename kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/{kie/kogito => acme}/traffic/DriverService.java (94%) rename kogito-quarkus-examples/{process-decisions-quarkus/src/main/java/org/kie/kogito => process-decisions-rules-quarkus/src/main/java/org/acme}/traffic/Fine.java (97%) rename kogito-quarkus-examples/{process-decisions-rest-quarkus/src/main/java/org/kie/kogito => process-decisions-rules-quarkus/src/main/java/org/acme}/traffic/Violation.java (98%) rename {kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito => kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme}/traffic/licensevalidated/LicenseValidatedService.java (96%) rename kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/{kie/kogito => acme}/traffic/licensevalidated/Validated.java (96%) rename {kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito => kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme}/traffic/licensevalidation/Driver.java (98%) create mode 100644 kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/licensevalidation/LicenseValidationService.java delete mode 100644 kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/licensevalidation/LicenseValidationService.java rename kogito-quarkus-examples/{process-decisions-rest-quarkus/src/test/java/org/kie/kogito => process-decisions-rules-quarkus/src/test/java/org/acme}/traffic/NativeTrafficProcessIT.java (95%) rename kogito-quarkus-examples/process-decisions-rules-quarkus/src/test/java/org/{kie/kogito => acme}/traffic/TrafficProcessIT.java (98%) delete mode 100755 kogito-quarkus-examples/process-error-handling/mvnw delete mode 100644 kogito-quarkus-examples/process-error-handling/mvnw.cmd delete mode 100755 kogito-quarkus-examples/process-infinispan-persistence-quarkus/mvnw delete mode 100644 kogito-quarkus-examples/process-infinispan-persistence-quarkus/mvnw.cmd delete mode 100755 kogito-quarkus-examples/process-kafka-quickstart-quarkus/mvnw delete mode 100644 kogito-quarkus-examples/process-kafka-quickstart-quarkus/mvnw.cmd delete mode 100755 kogito-quarkus-examples/process-knative-quickstart-quarkus/mvnw delete mode 100644 kogito-quarkus-examples/process-knative-quickstart-quarkus/mvnw.cmd rename kogito-quarkus-examples/process-monitoring-quarkus/src/main/java/org/{kie/kogito => acme}/examples/quarkus/CalculationService.java (90%) rename kogito-quarkus-examples/process-monitoring-quarkus/src/main/java/org/{kie/kogito => acme}/examples/quarkus/demo/Order.java (97%) create mode 100644 kogito-quarkus-examples/process-monitoring-quarkus/src/main/resources/org/acme/examples/quarkus/orderItems.bpmn2 rename kogito-quarkus-examples/{process-outbox-mongodb-quarkus/src/main/resources/org/kie/kogito/examples => process-monitoring-quarkus/src/main/resources/org/acme/examples/quarkus}/orders.bpmn2 (92%) delete mode 100644 kogito-quarkus-examples/process-monitoring-quarkus/src/main/resources/org/kie/kogito/examples/quarkus/orderItems.bpmn2 rename kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/{kie/kogito => acme}/examples/quarkus/DashboardGenerationIT.java (97%) rename kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/{kie/kogito => acme}/examples/quarkus/NativeDashboardGenerationIT.java (95%) rename kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/{kie/kogito => acme}/examples/quarkus/ProcessMetricsTest.java (89%) rename kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/{kie/kogito => acme}/examples/quarkus/ProjectMetadataProvider.java (97%) rename kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/{kie/kogito => acme}/examples/CalculationService.java (92%) rename {kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito => kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/acme}/examples/PersonValidationService.java (92%) rename {kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito => kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/acme}/examples/demo/Order.java (97%) rename {kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito => kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/acme}/examples/demo/Person.java (97%) rename {kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/kie/kogito => kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/acme}/examples/PersonValidationService.drl (90%) rename {kogito-springboot-examples/process-springboot-example/src/main/resources/org/kie/kogito => kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/acme}/examples/orderItems.bpmn2 (96%) rename kogito-quarkus-examples/{process-quarkus-example/src/main/resources/org/kie/kogito => process-outbox-mongodb-quarkus/src/main/resources/org/acme}/examples/orders.bpmn2 (92%) rename kogito-quarkus-examples/{process-quarkus-example/src/main/resources/org/kie/kogito => process-outbox-mongodb-quarkus/src/main/resources/org/acme}/examples/persons.bpmn2 (93%) rename kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/test/java/org/{kie/kogito => acme}/quarkus/outbox/OutboxIT.java (98%) rename kogito-quarkus-examples/process-performance-client/src/main/java/org/{kie/kogito => acme}/performance/client/AsyncRestDispatcher.java (97%) rename kogito-quarkus-examples/process-performance-client/src/main/java/org/{kie/kogito => acme}/performance/client/KafkaDispatcher.java (98%) rename kogito-quarkus-examples/process-performance-client/src/main/java/org/{kie/kogito => acme}/performance/client/MainRunner.java (86%) rename kogito-quarkus-examples/process-performance-client/src/main/java/org/{kie/kogito => acme}/performance/client/RequestDispatcher.java (94%) rename kogito-quarkus-examples/process-performance-client/src/main/java/org/{kie/kogito => acme}/performance/client/RequestDispatcherFactory.java (96%) rename kogito-quarkus-examples/process-performance-client/src/main/java/org/{kie/kogito => acme}/performance/client/RequestDispatcherRunner.java (99%) rename kogito-quarkus-examples/process-performance-client/src/main/java/org/{kie/kogito => acme}/performance/client/SyncRestDispatcher.java (97%) rename {kogito-springboot-examples/process-performance-springboot/src/main/resources/org/kie/kogito => kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/acme}/examples/kafkaTest.bpmn2 (97%) rename kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/{kie/kogito => acme}/examples/kafkaTestOtherChannel.bpmn2 (98%) rename {kogito-springboot-examples/process-performance-springboot/src/main/resources/org/kie/kogito => kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/acme}/examples/test.bpmn2 (97%) rename kogito-quarkus-examples/process-quarkus-example/src/main/java/org/{kie/kogito => acme}/examples/CalculationService.java (92%) rename {kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito => kogito-quarkus-examples/process-quarkus-example/src/main/java/org/acme}/examples/PersonValidationService.java (92%) rename kogito-quarkus-examples/process-quarkus-example/src/main/java/org/{kie/kogito => acme}/examples/demo/Order.java (97%) rename {kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito => kogito-quarkus-examples/process-quarkus-example/src/main/java/org/acme}/examples/demo/Person.java (97%) rename {kogito-springboot-examples/process-springboot-example/src/main/resources/org/kie/kogito => kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/acme}/examples/PersonValidationService.drl (90%) rename kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/{kie/kogito => acme}/examples/orderItems.bpmn2 (96%) rename kogito-quarkus-examples/{process-monitoring-quarkus/src/main/resources/org/kie/kogito/examples/quarkus => process-quarkus-example/src/main/resources/org/acme/examples}/orders.bpmn2 (91%) rename {kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/kie/kogito => kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/acme}/examples/persons.bpmn2 (93%) rename kogito-quarkus-examples/process-quarkus-example/src/test/java/org/{kie/kogito => acme}/examples/OrdersProcessIT.java (98%) rename kogito-quarkus-examples/process-quarkus-example/src/test/java/org/{kie/kogito => acme}/examples/OrdersRestIT.java (99%) rename kogito-quarkus-examples/process-quarkus-example/src/test/java/org/{kie/kogito => acme}/examples/PersonProcessIT.java (98%) rename kogito-quarkus-examples/process-quarkus-example/src/test/java/org/{kie/kogito => acme}/examples/PersonsRestIT.java (99%) delete mode 100755 kogito-quarkus-examples/process-rest-service-call-quarkus/mvnw delete mode 100644 kogito-quarkus-examples/process-rest-service-call-quarkus/mvnw.cmd rename kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/{kie/kogito => acme}/examples/MockService.java (97%) rename kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/{kie/kogito => acme}/examples/OrderService.java (97%) rename kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/{kie/kogito => acme}/examples/PaymentService.java (97%) rename kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/{kie/kogito => acme}/examples/Response.java (97%) rename kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/{kie/kogito => acme}/examples/ServiceException.java (95%) rename kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/{kie/kogito => acme}/examples/ShippingService.java (98%) rename kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/{kie/kogito => acme}/examples/StockService.java (97%) rename kogito-quarkus-examples/process-saga-quarkus/src/test/java/org/{kie/kogito => acme}/examples/ProcessSagaIT.java (98%) delete mode 100755 kogito-quarkus-examples/process-scripts-quarkus/mvnw delete mode 100644 kogito-quarkus-examples/process-scripts-quarkus/mvnw.cmd delete mode 100755 kogito-quarkus-examples/process-service-calls-quarkus/mvnw delete mode 100644 kogito-quarkus-examples/process-service-calls-quarkus/mvnw.cmd delete mode 100755 kogito-quarkus-examples/process-timer-quarkus/mvnw delete mode 100644 kogito-quarkus-examples/process-timer-quarkus/mvnw.cmd delete mode 100755 kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/mvnw delete mode 100644 kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/mvnw.cmd rename kogito-quarkus-examples/process-usertasks-quarkus-with-console/src/main/java/org/{kie/kogito => acme}/hr/Candidate.java (98%) rename kogito-quarkus-examples/process-usertasks-quarkus-with-console/src/test/java/org/{kie/kogito => acme}/hr/HiringProcessIT.java (99%) delete mode 100755 kogito-quarkus-examples/process-usertasks-quarkus/mvnw delete mode 100644 kogito-quarkus-examples/process-usertasks-quarkus/mvnw.cmd rename kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/src/main/java/org/{kie/kogito => acme}/hr/Candidate.java (98%) rename kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/src/test/java/org/{kie/kogito => acme}/hr/HiringProcessIT.java (99%) delete mode 100755 kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/mvnw delete mode 100644 kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/mvnw.cmd delete mode 100755 kogito-quarkus-examples/process-usertasks-with-security-quarkus/mvnw delete mode 100644 kogito-quarkus-examples/process-usertasks-with-security-quarkus/mvnw.cmd rename kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/java/org/acme/{ => examples}/CustomRestRules.java (97%) rename kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/java/org/{kie/kogito => acme}/examples/Hello.java (96%) rename kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/resources/org/{kie/kogito => acme}/examples/Hello.drl (95%) rename {kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/kie/kogito => kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/acme}/legacy/Applicant.java (97%) rename kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/{kie/kogito => acme}/legacy/FindApprovedLoansEndpoint.java (98%) rename kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/{kie/kogito => acme}/legacy/LoanApplication.java (98%) rename {kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/kie/kogito => kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/acme}/legacy/LoanDto.java (97%) rename {kogito-springboot-examples/rules-legacy-springboot-example/src/main/resources/org/kie/kogito => kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/resources/org/acme}/legacy/LoanRules.drl (95%) rename kogito-quarkus-examples/rules-legacy-quarkus-example/src/test/java/org/{kie/kogito => acme}/NativeRestQueryTestIT.java (97%) rename kogito-quarkus-examples/rules-legacy-quarkus-example/src/test/java/org/{kie/kogito => acme}/RestQueryTest.java (99%) rename kogito-quarkus-examples/rules-quarkus-helloworld/src/main/java/org/{kie/kogito => acme}/examples/Hello.java (96%) rename kogito-quarkus-examples/rules-quarkus-helloworld/src/main/java/org/{kie/kogito => acme}/examples/MyAgendaEventListener.java (97%) rename kogito-quarkus-examples/{dmn-drools-quarkus-metrics/src/main/resources/org/kie/kogito => rules-quarkus-helloworld/src/main/resources/org/acme}/examples/Hello.drl (95%) rename kogito-quarkus-examples/rules-quarkus-helloworld/src/test/java/org/{kie/kogito => acme}/examples/HelloTest.java (97%) delete mode 100644 kogito-quarkus-examples/ruleunit-event-driven-quarkus/out.txt rename kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/{kie/kogito => acme}/queries/AllAmounts.java (96%) rename kogito-quarkus-examples/{ruleunit-quarkus-example/src/main/java/org/kie/kogito => ruleunit-event-driven-quarkus/src/main/java/org/acme}/queries/Applicant.java (97%) rename kogito-quarkus-examples/{decisiontable-quarkus-example/src/main/java/org/kie/kogito => ruleunit-event-driven-quarkus/src/main/java/org/acme}/queries/LoanApplication.java (98%) rename kogito-quarkus-examples/{ruleunit-quarkus-example/src/main/java/org/kie/kogito => ruleunit-event-driven-quarkus/src/main/java/org/acme}/queries/LoanUnit.java (98%) rename {kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/resources/org/kie/kogito => kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/resources/org/acme}/queries/RuleUnitQuery.drl (93%) rename kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/java/org/{kie/kogito => acme}/examples/RuleUnitEventDrivenIT.java (99%) rename kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/{kie/kogito => acme}/queries/AllAmounts.java (96%) rename kogito-quarkus-examples/{ruleunit-event-driven-quarkus/src/main/java/org/kie/kogito => ruleunit-quarkus-example/src/main/java/org/acme}/queries/Applicant.java (97%) rename kogito-quarkus-examples/{ruleunit-event-driven-quarkus/src/main/java/org/kie/kogito => ruleunit-quarkus-example/src/main/java/org/acme}/queries/LoanApplication.java (98%) rename {kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/kie/kogito => kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/acme}/queries/LoanUnit.java (98%) rename kogito-quarkus-examples/{ruleunit-event-driven-quarkus/src/main/resources/org/kie/kogito => ruleunit-quarkus-example/src/main/resources/org/acme}/queries/RuleUnitQuery.drl (93%) rename kogito-quarkus-examples/ruleunit-quarkus-example/src/test/java/org/{kie/kogito => acme}/decisiontable/quarkus/ruleunit/NativeRestQueryTestIT.java (93%) rename kogito-quarkus-examples/ruleunit-quarkus-example/src/test/java/org/{kie/kogito => acme}/decisiontable/quarkus/ruleunit/RestQueryTest.java (98%) rename kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/{kie/kogito => acme}/queries/Applicant.java (97%) rename kogito-springboot-examples/{rules-legacy-springboot-example/src/main/java/org/kie/kogito/legacy => decisiontable-springboot-example/src/main/java/org/acme/queries}/KogitoSpringbootApplication.java (95%) rename kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/{kie/kogito => acme}/queries/LoanApplication.java (98%) rename {kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/kie/kogito => kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/acme}/queries/LoanUnit.java (97%) rename {kogito-quarkus-examples/decisiontable-quarkus-example/src/main/resources/org/kie/kogito => kogito-springboot-examples/decisiontable-springboot-example/src/main/resources/org/acme}/queries/LoanUnit.drl.xls (57%) rename kogito-springboot-examples/decisiontable-springboot-example/src/test/java/org/{kie/kogito => acme}/decisiontable/springboot/RestQueryTest.java (97%) rename kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/{kie/kogito => acme}/app/CustomDMNRuntimeEventListener.java (95%) rename kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/{kie/kogito => acme}/app/RuleEventListenerConfig.java (93%) rename kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/{kie/kogito => acme}/examples/CustomRuleEventListener.java (96%) rename kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/{kie/kogito => acme}/examples/Hello.java (96%) rename kogito-springboot-examples/{pmml-event-driven-springboot/src/main/java/org/kie/kogito/pmml/springboot/example => dmn-drools-springboot-metrics/src/main/java/org/acme/examples/springboot}/KogitoSpringbootApplication.java (93%) rename kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/resources/org/{kie/kogito => acme}/examples/Hello.drl (95%) rename kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/resources/org/{kie/kogito => acme}/examples/LoanEligibility.dmn (100%) rename kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/resources/org/{kie/kogito => acme}/examples/Traffic Violation.dmn (100%) rename kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/{kie/kogito => acme}/examples/springboot/DashboardsListTest.java (97%) rename kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/{kie/kogito => acme}/examples/springboot/DroolsMetricsTest.java (87%) rename kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/{kie/kogito => acme}/examples/springboot/GrafanaDockerComposeIT.java (97%) rename kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/{kie/kogito => acme}/examples/springboot/LoanEligibilityTest.java (92%) rename kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/{kie/kogito => acme}/examples/springboot/ProjectMetadataProvider.java (97%) rename kogito-springboot-examples/dmn-event-driven-springboot/src/main/java/org/{kie/kogito => acme}/dmn/springboot/example/KogitoSpringbootApplication.java (85%) rename kogito-springboot-examples/dmn-event-driven-springboot/src/test/java/org/{kie/kogito => acme}/examples/DmnEventDrivenIT.java (98%) rename kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/{kie/kogito => acme}/dmn/springboot/example/listener/ExampleDMNRuntimeEventListener.java (96%) rename kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/{kie/kogito => acme}/dmn/springboot/example/listener/ExampleDecisionEventListenerConfig.java (97%) create mode 100644 kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/acme/dmn/springboot/example/listener/KogitoSpringbootApplication.java rename kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/{kie/kogito => acme}/dmn/springboot/example/listener/LoggingDMNRuntimeEventListener.java (98%) rename kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/{kie/kogito => acme}/dmn/springboot/example/listener/TrafficViolationListenerTest.java (89%) rename kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/{kie/kogito => acme}/dmn/springboot/example/listener/TrafficViolationTest.java (97%) rename kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/{kie/kogito => acme}/dmn/springboot/example/mock/MockDMNRuntimeEventListener.java (96%) rename kogito-springboot-examples/{decisiontable-springboot-example/src/main/java/org/kie/kogito/queries => dmn-pmml-springboot-example/src/main/java/org/acme/dmn/pmml/springboot/example}/KogitoSpringbootApplication.java (86%) delete mode 100644 kogito-springboot-examples/dmn-pmml-springboot-example/src/main/java/org/kie/kogito/dmn/pmml/springboot/example/KogitoSpringbootApplication.java rename kogito-springboot-examples/{pmml-springboot-example/src/test/java/org/kie/kogito => dmn-pmml-springboot-example/src/test/java/org/acme/dmn}/pmml/springboot/example/CommonTestUtils.java (98%) rename kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/springboot/example/DMNMiningModelTest.java (97%) rename kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/springboot/example/DMNRegressionTest.java (97%) rename kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/springboot/example/DMNScoreCardTest.java (98%) rename kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/springboot/example/DMNTreeTest.java (97%) rename kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/springboot/example/DecisionTreeTest.java (90%) rename kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/springboot/example/LinRegTest.java (76%) rename kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/springboot/example/MiningModelTest.java (76%) rename kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/{kie/kogito => acme}/dmn/pmml/springboot/example/ScoreCardTest.java (86%) create mode 100644 kogito-springboot-examples/dmn-springboot-example/src/main/java/org/acme/dmn/springboot/example/KogitoSpringbootApplication.java delete mode 100644 kogito-springboot-examples/dmn-springboot-example/src/main/java/org/kie/kogito/dmn/springboot/example/KogitoSpringbootApplication.java rename kogito-springboot-examples/dmn-springboot-example/src/test/java/org/{kie/kogito => acme}/dmn/springboot/example/TrafficViolationTest.java (97%) rename kogito-springboot-examples/dmn-tracing-springboot/src/main/java/org/{kie/kogito => acme}/dmn/springboot/tracing/KogitoSpringbootApplication.java (80%) rename kogito-springboot-examples/dmn-tracing-springboot/src/test/java/org/{kie/kogito => acme}/dmn/springboot/tracing/LoanEligibilityIT.java (96%) rename kogito-springboot-examples/dmn-tracing-springboot/src/test/java/org/{kie/kogito => acme}/dmn/springboot/tracing/matcher/StringMatchesUUIDPattern.java (95%) rename kogito-springboot-examples/flexible-process-springboot/src/main/java/org/{kie/kogito => acme}/flexible/example/model/Comment.java (97%) rename {kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito => kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme}/flexible/example/model/Product.java (96%) rename kogito-springboot-examples/flexible-process-springboot/src/main/java/org/{kie/kogito => acme}/flexible/example/model/Questionnaire.java (97%) rename {kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito => kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme}/flexible/example/model/State.java (93%) rename kogito-springboot-examples/flexible-process-springboot/src/main/java/org/{kie/kogito => acme}/flexible/example/model/SupportCase.java (95%) rename kogito-springboot-examples/flexible-process-springboot/src/main/java/org/{kie/kogito => acme}/flexible/example/service/CommentService.java (71%) rename kogito-springboot-examples/flexible-process-springboot/src/main/java/org/{kie/kogito => acme}/flexible/example/service/StateService.java (84%) rename kogito-springboot-examples/flexible-process-springboot/src/main/java/org/{kie/kogito => acme}/flexible/example/service/TriageService.java (93%) rename kogito-springboot-examples/{process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/kie/kogito/springboot => flexible-process-springboot/src/main/java/org/acme/tests}/KogitoSpringbootApplication.java (94%) delete mode 100644 kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/tests/KogitoSpringbootApplication.java rename kogito-springboot-examples/flexible-process-springboot/src/test/java/org/{kie/kogito => acme}/flexible/example/springboot/ServiceDeskProcessTest.java (94%) rename kogito-springboot-examples/onboarding-springboot/src/main/java/org/{kie/kogito => acme}/examples/KogitoOnboardingApplication.java (93%) rename kogito-springboot-examples/onboarding-springboot/src/main/java/org/{kie/kogito => acme}/examples/WorkItemHandlerConfig.java (97%) rename kogito-springboot-examples/onboarding-springboot/src/main/java/org/{kie/kogito => acme}/examples/onboarding/Address.java (97%) rename kogito-springboot-examples/onboarding-springboot/src/main/java/org/{kie/kogito => acme}/examples/onboarding/DecisionTaskWorkItemHandler.java (97%) rename kogito-springboot-examples/onboarding-springboot/src/main/java/org/{kie/kogito => acme}/examples/onboarding/Employee.java (86%) rename {kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/kie/kogito => kogito-springboot-examples/onboarding-springboot/src/main/java/org/acme}/examples/onboarding/Payroll.java (97%) rename kogito-springboot-examples/onboarding-springboot/src/main/resources/org/{kie/kogito => acme}/examples/onboarding/DecisionTasks.wid (100%) rename kogito-springboot-examples/onboarding-springboot/src/main/resources/org/{kie/kogito => acme}/examples/onboarding/onboarding.bpmn (95%) rename kogito-springboot-examples/onboarding-springboot/src/main/resources/org/{kie/kogito => acme}/examples/onboarding/setupHR.bpmn (96%) rename kogito-springboot-examples/onboarding-springboot/src/main/resources/org/{kie/kogito => acme}/examples/onboarding/setupPayroll.bpmn (96%) rename kogito-springboot-examples/onboarding-springboot/src/test/java/org/{kie/kogito => acme}/examples/onboarding/OnboardingEndpointIT.java (97%) rename {kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/kie/kogito => kogito-springboot-examples/onboarding-springboot/src/test/java/org/acme}/examples/test/RecordedOutputWorkItemHandler.java (97%) rename kogito-springboot-examples/onboarding-springboot/src/test/java/org/{kie/kogito => acme}/examples/test/RecordedWorkItemHandlerConfig.java (97%) rename kogito-springboot-examples/{dmn-drools-springboot-metrics/src/main/java/org/kie/kogito/examples/springboot => pmml-event-driven-springboot/src/main/java/org/acme/pmml/springboot/example}/KogitoSpringbootApplication.java (93%) rename kogito-springboot-examples/pmml-event-driven-springboot/src/test/java/org/{kie/kogito => acme}/examples/PmmlEventDrivenIT.java (98%) rename kogito-springboot-examples/{dmn-listener-springboot/src/main/java/org/kie/kogito/dmn/springboot/example/listener => pmml-springboot-example/src/main/java/org/acme/pmml/springboot/example}/KogitoSpringbootApplication.java (93%) rename kogito-springboot-examples/{dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn => pmml-springboot-example/src/test/java/org/acme}/pmml/springboot/example/CommonTestUtils.java (98%) rename kogito-springboot-examples/pmml-springboot-example/src/test/java/org/{kie/kogito => acme}/pmml/springboot/example/LinRegTest.java (89%) rename kogito-springboot-examples/pmml-springboot-example/src/test/java/org/{kie/kogito => acme}/pmml/springboot/example/MiningModelTest.java (92%) rename kogito-springboot-examples/pmml-springboot-example/src/test/java/org/{kie/kogito => acme}/pmml/springboot/example/SampleMineTest.java (84%) rename kogito-springboot-examples/pmml-springboot-example/src/test/java/org/{kie/kogito => acme}/pmml/springboot/example/SimpleScorecardTest.java (84%) delete mode 100755 kogito-springboot-examples/process-business-rules-springboot/mvnw delete mode 100644 kogito-springboot-examples/process-business-rules-springboot/mvnw.cmd create mode 100644 kogito-springboot-examples/process-business-rules-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java delete mode 100644 kogito-springboot-examples/process-business-rules-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java rename kogito-springboot-examples/{process-decisions-springboot/src/main/java/org/kie/kogito => process-decisions-rest-springboot/src/main/java/org/acme}/traffic/Driver.java (98%) rename kogito-springboot-examples/{process-decisions-springboot/src/main/java/org/kie/kogito => process-decisions-rest-springboot/src/main/java/org/acme}/traffic/DriverService.java (97%) rename {kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito => kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme}/traffic/Fine.java (97%) rename kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/{kie/kogito => acme}/traffic/KogitoApplication.java (93%) rename kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/{kie/kogito => acme}/traffic/LicenseValidationRestService.java (98%) rename kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/{kie/kogito => acme}/traffic/LicenseValidationService.java (97%) rename kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/{kie/kogito => acme}/traffic/TrafficViolationResponse.java (97%) rename kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/{kie/kogito => acme}/traffic/TrafficViolationRestService.java (98%) rename {kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito => kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme}/traffic/Violation.java (98%) rename kogito-springboot-examples/process-decisions-rest-springboot/src/test/java/org/{kie/kogito => acme}/traffic/TrafficProcessIT.java (98%) rename kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/{kie/kogito => acme}/traffic/DriverService.java (94%) create mode 100644 kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/Fine.java rename kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/{kie/kogito => acme}/traffic/KogitoApplication.java (94%) create mode 100644 kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/Violation.java rename {kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito => kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme}/traffic/licensevalidated/LicenseValidatedService.java (96%) rename kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/{kie/kogito => acme}/traffic/licensevalidated/Validated.java (96%) rename {kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito => kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme}/traffic/licensevalidation/Driver.java (98%) create mode 100644 kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/licensevalidation/LicenseValidationService.java delete mode 100644 kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/Fine.java delete mode 100644 kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/Violation.java delete mode 100644 kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/licensevalidation/LicenseValidationService.java rename kogito-springboot-examples/process-decisions-rules-springboot/src/test/java/{org.kie.kogito.traffic => org/acme/traffic}/TrafficProcessIT.java (98%) rename {kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito => kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme}/traffic/Driver.java (98%) rename kogito-springboot-examples/{process-decisions-rest-springboot/src/main/java/org/kie/kogito => process-decisions-springboot/src/main/java/org/acme}/traffic/DriverService.java (97%) create mode 100644 kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/Fine.java rename kogito-springboot-examples/process-decisions-springboot/src/main/java/org/{kie/kogito => acme}/traffic/KogitoApplication.java (94%) rename {kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/kie/kogito => kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme}/traffic/LicenseValidationService.java (97%) create mode 100644 kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/Violation.java delete mode 100644 kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/Fine.java delete mode 100644 kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/Violation.java rename kogito-springboot-examples/process-decisions-springboot/src/test/java/{org.kie.kogito.traffic => org/acme/traffic}/TrafficProcessIT.java (98%) delete mode 100755 kogito-springboot-examples/process-infinispan-persistence-springboot/mvnw delete mode 100644 kogito-springboot-examples/process-infinispan-persistence-springboot/mvnw.cmd rename kogito-springboot-examples/process-kafka-multi-springboot/src/main/java/org/{kie/kogito => acme}/tests/KogitoKafkaMultiSpringbootApplication.java (91%) delete mode 100755 kogito-springboot-examples/process-kafka-quickstart-springboot/mvnw delete mode 100644 kogito-springboot-examples/process-kafka-quickstart-springboot/mvnw.cmd rename kogito-springboot-examples/process-kafka-quickstart-springboot/src/main/java/org/{kie/kogito => acme}/tests/KogitoKafkaQuickstartSpringbootApplication.java (91%) rename kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/{kie/kogito => acme}/examples/springboot/CalculationService.java (90%) rename kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/{kie/kogito => acme}/examples/springboot/DemoApplication.java (88%) rename kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/{kie/kogito => acme}/examples/springboot/demo/Order.java (97%) create mode 100644 kogito-springboot-examples/process-monitoring-springboot/src/main/resources/org/acme/examples/springboot/orderItems.bpmn2 rename kogito-springboot-examples/process-monitoring-springboot/src/main/resources/org/{kie/kogito => acme}/examples/springboot/orders.bpmn2 (92%) delete mode 100644 kogito-springboot-examples/process-monitoring-springboot/src/main/resources/org/kie/kogito/examples/springboot/orderItems.bpmn2 rename kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/{kie/kogito => acme}/examples/springboot/DashboardGenerationTest.java (97%) rename kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/{kie/kogito => acme}/examples/springboot/ProcessMetricsTest.java (92%) rename kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/{kie/kogito => acme}/examples/springboot/ProjectMetadataProvider.java (97%) rename kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/{kie/kogito => acme}/examples/CalculationService.java (92%) rename kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/{kie/kogito => acme}/examples/CorsConfig.java (97%) rename kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/{kie/kogito => acme}/examples/DemoApplication.java (89%) rename {kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/kie/kogito => kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme}/examples/PersonValidationService.java (92%) rename {kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/kie/kogito => kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme}/examples/demo/Order.java (97%) rename {kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/kie/kogito => kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme}/examples/demo/Person.java (97%) rename {kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/kie/kogito => kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/acme}/examples/PersonValidationService.drl (90%) rename kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/{kie/kogito => acme}/examples/orderItems.bpmn2 (96%) rename kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/{kie/kogito => acme}/examples/orders.bpmn2 (93%) rename kogito-springboot-examples/{process-springboot-example/src/main/resources/org/kie/kogito => process-outbox-mongodb-springboot/src/main/resources/org/acme}/examples/persons.bpmn2 (93%) rename kogito-springboot-examples/process-outbox-mongodb-springboot/src/test/java/org/{kie/kogito => acme}/springboot/outbox/OutboxIT.java (99%) rename kogito-springboot-examples/process-performance-springboot/src/main/java/org/{kie/kogito => acme}/tests/KogitoPerformanceSpringbootApplication.java (91%) rename {kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/kie/kogito => kogito-springboot-examples/process-performance-springboot/src/main/resources/org/acme}/examples/kafkaTest.bpmn2 (97%) rename kogito-springboot-examples/process-performance-springboot/src/main/resources/org/{kie/kogito => acme}/examples/kafkaTestOtherChannel.bpmn2 (98%) rename {kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/kie/kogito => kogito-springboot-examples/process-performance-springboot/src/main/resources/org/acme}/examples/test.bpmn2 (97%) delete mode 100755 kogito-springboot-examples/process-rest-service-call-springboot/mvnw delete mode 100644 kogito-springboot-examples/process-rest-service-call-springboot/mvnw.cmd rename kogito-springboot-examples/process-rest-service-call-springboot/src/main/java/org/{kie/kogito => acme}/tests/KogitoInfinispanSpringbootApplication.java (95%) delete mode 100755 kogito-springboot-examples/process-scripts-springboot/mvnw delete mode 100644 kogito-springboot-examples/process-scripts-springboot/mvnw.cmd rename kogito-springboot-examples/{process-usertasks-springboot-with-console/src/main/java/org/kie/kogito => process-scripts-springboot/src/main/java/org/acme}/tests/KogitoInfinispanSpringbootApplication.java (94%) delete mode 100755 kogito-springboot-examples/process-service-calls-springboot/mvnw delete mode 100644 kogito-springboot-examples/process-service-calls-springboot/mvnw.cmd rename kogito-springboot-examples/{process-scripts-springboot/src/main/java/org/kie/kogito => process-service-calls-springboot/src/main/java/org/acme}/tests/KogitoInfinispanSpringbootApplication.java (94%) delete mode 100755 kogito-springboot-examples/process-springboot-example/mvnw delete mode 100644 kogito-springboot-examples/process-springboot-example/mvnw.cmd rename kogito-springboot-examples/process-springboot-example/src/main/java/org/{kie/kogito => acme}/examples/CalculationService.java (92%) rename kogito-springboot-examples/process-springboot-example/src/main/java/org/{kie/kogito => acme}/examples/CorsConfig.java (97%) rename kogito-springboot-examples/process-springboot-example/src/main/java/org/{kie/kogito => acme}/examples/DemoApplication.java (89%) rename kogito-springboot-examples/process-springboot-example/src/main/java/org/{kie/kogito => acme}/examples/KafkaConfig.java (96%) rename {kogito-quarkus-examples/process-quarkus-example/src/main/java/org/kie/kogito => kogito-springboot-examples/process-springboot-example/src/main/java/org/acme}/examples/PersonValidationService.java (92%) rename kogito-springboot-examples/process-springboot-example/src/main/java/org/{kie/kogito => acme}/examples/demo/Order.java (97%) rename {kogito-quarkus-examples/process-quarkus-example/src/main/java/org/kie/kogito => kogito-springboot-examples/process-springboot-example/src/main/java/org/acme}/examples/demo/Person.java (97%) rename {kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/kie/kogito => kogito-springboot-examples/process-springboot-example/src/main/resources/org/acme}/examples/PersonValidationService.drl (90%) rename {kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/kie/kogito => kogito-springboot-examples/process-springboot-example/src/main/resources/org/acme}/examples/orderItems.bpmn2 (96%) rename kogito-springboot-examples/process-springboot-example/src/main/resources/org/{kie/kogito => acme}/examples/orders.bpmn2 (93%) rename {kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/kie/kogito => kogito-springboot-examples/process-springboot-example/src/main/resources/org/acme}/examples/persons.bpmn2 (93%) rename kogito-springboot-examples/process-springboot-example/src/test/java/org/{kie/kogito => acme}/examples/demo/OrdersProcessIT.java (98%) rename kogito-springboot-examples/process-springboot-example/src/test/java/org/{kie/kogito => acme}/examples/demo/OrdersRestIT.java (99%) rename kogito-springboot-examples/process-springboot-example/src/test/java/org/{kie/kogito => acme}/examples/demo/PersonProcessIT.java (98%) rename kogito-springboot-examples/process-springboot-example/src/test/java/org/{kie/kogito => acme}/examples/demo/PersonsRestIT.java (99%) delete mode 100755 kogito-springboot-examples/process-timer-springboot/mvnw delete mode 100644 kogito-springboot-examples/process-timer-springboot/mvnw.cmd rename kogito-springboot-examples/process-timer-springboot/src/main/java/org/{kie/kogito => acme}/tests/KogitoApplication.java (94%) delete mode 100755 kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/mvnw delete mode 100644 kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/mvnw.cmd rename kogito-springboot-examples/{process-service-calls-springboot/src/main/java/org/kie/kogito => process-usertasks-custom-lifecycle-springboot/src/main/java/org/acme}/tests/KogitoInfinispanSpringbootApplication.java (94%) rename kogito-springboot-examples/process-usertasks-springboot-with-console/src/main/java/org/{kie/kogito => acme}/tests/CorsConfig.java (98%) rename kogito-springboot-examples/{process-usertasks-custom-lifecycle-springboot/src/main/java/org/kie/kogito => process-usertasks-springboot-with-console/src/main/java/org/acme}/tests/KogitoInfinispanSpringbootApplication.java (94%) delete mode 100755 kogito-springboot-examples/process-usertasks-springboot/mvnw delete mode 100644 kogito-springboot-examples/process-usertasks-springboot/mvnw.cmd create mode 100644 kogito-springboot-examples/process-usertasks-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java delete mode 100644 kogito-springboot-examples/process-usertasks-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java rename kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/{kie/kogito => acme}/springboot/CorsConfig.java (97%) rename kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/{kie/kogito => acme}/springboot/DefaultWebSecurityConfig.java (98%) rename kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/{kie/kogito => acme}/springboot/KeycloakResolverConfig.java (96%) rename kogito-springboot-examples/{process-usertasks-with-security-oidc-springboot/src/main/java/org/kie/kogito => process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/acme}/springboot/KogitoSpringbootApplication.java (94%) delete mode 100755 kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/mvnw delete mode 100644 kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/mvnw.cmd rename kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/{kie/kogito => acme}/springboot/DefaultWebSecurityConfig.java (98%) rename kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/{kie/kogito => acme}/springboot/KeycloakResolverConfig.java (96%) rename kogito-springboot-examples/{pmml-springboot-example/src/main/java/org/kie/kogito/pmml/springboot/example => process-usertasks-with-security-oidc-springboot/src/main/java/org/acme/springboot}/KogitoSpringbootApplication.java (94%) delete mode 100755 kogito-springboot-examples/process-usertasks-with-security-springboot/mvnw delete mode 100644 kogito-springboot-examples/process-usertasks-with-security-springboot/mvnw.cmd rename kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/{kie/kogito => acme}/tests/DefaultWebSecurityConfig.java (98%) create mode 100644 kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java rename kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/{kie/kogito => acme}/tests/LogEventPublisher.java (97%) delete mode 100644 kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java rename {kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/kie/kogito => kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/acme}/legacy/Applicant.java (97%) rename kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/{kie/kogito => acme}/legacy/FindApprovedLoansEndpoint.java (98%) create mode 100644 kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/acme/legacy/KogitoSpringbootApplication.java rename kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/{kie/kogito => acme}/legacy/LoanApplication.java (98%) rename {kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/kie/kogito => kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/acme}/legacy/LoanDto.java (97%) rename {kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/resources/org/kie/kogito => kogito-springboot-examples/rules-legacy-springboot-example/src/main/resources/org/acme}/legacy/LoanRules.drl (95%) rename kogito-springboot-examples/rules-legacy-springboot-example/src/test/java/org/{kie/kogito => acme}/RestQueryTest.java (97%) rename kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/{kie/kogito => acme}/queries/AllAmounts.java (96%) create mode 100644 kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/acme/queries/Applicant.java create mode 100644 kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/acme/queries/KogitoSpringbootApplication.java create mode 100644 kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/acme/queries/LoanApplication.java rename {kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/kie/kogito => kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/acme}/queries/LoanUnit.java (98%) delete mode 100644 kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/kie/kogito/queries/Applicant.java delete mode 100644 kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/kie/kogito/queries/KogitoSpringbootApplication.java delete mode 100644 kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/kie/kogito/queries/LoanApplication.java rename {kogito-quarkus-examples/ruleunit-quarkus-example/src/main/resources/org/kie/kogito => kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/resources/org/acme}/queries/RuleUnitQuery.drl (93%) rename kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/java/org/{kie/kogito => acme}/examples/RuleUnitEventDrivenIT.java (98%) create mode 100644 kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/acme/queries/Applicant.java create mode 100644 kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/acme/queries/KogitoSpringbootApplication.java create mode 100644 kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/acme/queries/LoanApplication.java rename kogito-springboot-examples/{decisiontable-springboot-example/src/main/java/org/kie/kogito => ruleunit-springboot-example/src/main/java/org/acme}/queries/LoanUnit.java (97%) delete mode 100644 kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/kie/kogito/queries/Applicant.java delete mode 100644 kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/kie/kogito/queries/KogitoSpringbootApplication.java delete mode 100644 kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/kie/kogito/queries/LoanApplication.java rename kogito-springboot-examples/ruleunit-springboot-example/src/main/resources/org/{kie/kogito => acme}/queries/RuleUnitQuery.drl (95%) rename kogito-springboot-examples/ruleunit-springboot-example/src/test/java/org/{kie/kogito => acme}/decisiontable/springboot/ruleunit/RestQueryTest.java (96%) rename serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/{kie/kogito => acme}/examples/CallbackResource.java (98%) rename serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/{kie/kogito => acme}/examples/EventInput.java (97%) rename serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/{kie/kogito => acme}/examples/RegisterObjectMapper.java (96%) rename serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-workflow/src/test/java/org/{kie/kogito => acme}/examples/CallbackRestIT.java (99%) rename serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/java/org/{kie/kogito => acme}/examples/PrintService.java (99%) rename serverless-workflow-examples/serverless-workflow-callback-quarkus/src/test/java/org/{kie/kogito => acme}/examples/CallbackRestIT.java (98%) rename serverless-workflow-examples/serverless-workflow-compensation-quarkus/src/test/java/org/{kie/kogito => acme}/examples/CompensationRestIT.java (98%) rename serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/src/test/java/org/{kie/kogito => acme}/examples/ConsumingEventsOverHttpIT.java (99%) rename serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/{kie/kogito => acme}/examples/Account.java (96%) rename serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/{kie/kogito => acme}/examples/EventsService.java (99%) rename serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/{kie/kogito => acme}/examples/WorkflowResource.java (98%) rename serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/test/java/org/{kie/kogito => acme}/examples/CorrelationIT.java (98%) rename serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/{kie/kogito => acme}/examples/CloudEventFunction.java (96%) rename serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/{kie/kogito => acme}/examples/Input.java (96%) rename serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/{kie/kogito => acme}/examples/Output.java (96%) rename serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/{kie/kogito => acme}/examples/PlainJsonFunction.java (96%) rename serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/java/org/{kie/kogito => acme}/examples/sw/services/RPCCustomFunctionNamespace.java (85%) rename serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/java/org/{kie/kogito => acme}/examples/sw/services/RPCCustomTypeHandler.java (85%) rename serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/main/java/org/{kie/kogito => acme}/examples/sw/custom/CalculatorClient.java (98%) rename serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/main/java/org/{kie/kogito => acme}/examples/sw/custom/CalculatorServer.java (98%) rename serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/test/java/org/{kie/kogito => acme}/examples/sw/custom/CalculatorClientTest.java (83%) rename serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/src/main/java/org/{kie/kogito => acme}/examples/sw/custom/RPCCustomWorkItemHandler.java (94%) rename serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/src/main/java/org/{kie/kogito => acme}/examples/sw/custom/RPCCustomWorkItemHandlerConfig.java (96%) rename serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-type-example/src/test/java/org/{kie/kogito => acme}/examples/CustomRestIT.java (95%) rename serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/java/org/{kie/kogito => acme}/examples/PrintService.java (99%) rename serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/test/java/org/{kie/kogito => acme}/examples/DataIndexRestIT.java (98%) rename serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/java/org/{kie/kogito => acme}/examples/EvenService.java (97%) rename serverless-workflow-examples/serverless-workflow-error-quarkus/src/test/java/org/{kie/kogito => acme}/examples/ErrorRestIT.java (98%) rename serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/{kogito => acme}/serverless/examples/ApplicantResource.java (98%) rename serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/{kogito => acme}/serverless/examples/AvroMarshallerProducer.java (97%) rename serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/{kogito => acme}/serverless/examples/DecisionResource.java (97%) rename serverless-workflow-examples/serverless-workflow-events-quarkus/src/test/java/org/{kogito => acme}/serverless/examples/ApplicantWorkflowIT.java (99%) rename serverless-workflow-examples/serverless-workflow-expression-quarkus/src/test/java/org/{kie/kogito => acme}/examples/ExpressionRestIT.java (97%) rename serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/test/java/org/{kie/kogito => acme}/examples/ForEachRestIT.java (97%) rename serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/{kogito => acme}/serverless/examples/functions/ClassificationFunction.java (81%) rename serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/{kogito => acme}/serverless/examples/functions/CountriesFunction.java (84%) rename serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/{kogito => acme}/serverless/examples/functions/PopulationFunction.java (81%) rename serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/{kogito => acme}/serverless/examples/input/Country.java (97%) rename serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/{kogito => acme}/serverless/examples/services/ClassificationService.java (92%) rename serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/{kogito => acme}/serverless/examples/services/CountriesService.java (93%) rename serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/{kogito => acme}/serverless/examples/services/PopulationService.java (92%) rename serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/test/java/org/{kogito => acme}/serverless/examples/FunctionsIT.java (95%) rename serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/src/test/java/org/{kogito => acme}/serverless/examples/RestServiceMockServer.java (98%) rename serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/src/test/java/org/{kogito => acme}/serverless/examples/WorkflowIT.java (96%) rename serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/{kogito => acme}/examples/sw/github/service/GitHubResource.java (98%) rename serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/{kogito => acme}/examples/sw/github/service/GitHubWrapperService.java (97%) rename serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/{kogito => acme}/examples/sw/github/service/GitHubWrapperServiceImpl.java (98%) rename serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/{kogito => acme}/examples/sw/github/service/TokenProvider.java (94%) rename serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/{kogito => acme}/examples/sw/github/service/GitHubResourceTest.java (97%) rename serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/{kogito => acme}/examples/sw/github/service/GitHubWrapperServiceIT.java (97%) rename serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/{kogito => acme}/examples/sw/github/service/MockedGitHubWrapperService.java (96%) rename serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/main/java/org/{kogito => acme}/examples/sw/notification/service/NotificationResource.java (91%) rename serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/test/java/org/{kogito => acme}/examples/sw/notification/service/NotificationResourceIT.java (97%) rename serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/java/org/{kogito => acme}/examples/sw/github/workflow/GitHubClient.java (97%) rename serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/java/org/{kogito => acme}/examples/sw/github/workflow/GitHubService.java (98%) rename serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/{kogito => acme}/examples/sw/github/workflow/GitHubServiceMockServer.java (93%) rename serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/{kogito => acme}/examples/sw/github/workflow/GitHubServiceTest.java (97%) rename serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/{kogito => acme}/examples/sw/github/workflow/MessageSinkServer.java (97%) rename serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/{kogito => acme}/examples/sw/github/workflow/PRCheckerWorkflowTest.java (97%) rename serverless-workflow-examples/serverless-workflow-greeting-quarkus/src/test/java/org/{kie/kogito => acme}/examples/GreetRestIT.java (98%) rename serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/src/test/java/org/{kie/kogito => acme}/examples/GreetRestIT.java (98%) rename serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/src/main/java/org/{kie/kogito => acme}/examples/sw/greeting/GreeterService.java (96%) rename serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/src/test/java/org/{kie/kogito => acme}/examples/sw/greeting/GreeterClientTest.java (96%) rename serverless-workflow-examples/serverless-workflow-hello-world/src/test/java/org/{kie/kogito => acme}/examples/HelloWorldTest.java (96%) delete mode 100755 serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/mvnw delete mode 100644 serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/mvnw.cmd delete mode 100755 serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/mvnw delete mode 100644 serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/mvnw.cmd rename serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/src/main/java/org/{kie/kogito => acme}/examples/VertxRouter.java (97%) delete mode 100755 serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/mvnw delete mode 100755 serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/mvnw.cmd delete mode 100755 serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/mvnw delete mode 100755 serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/mvnw.cmd rename serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/java/org/{kie/kogito => acme}/examples/ExchangeWorkflowHelper.java (99%) rename serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/java/org/{kie/kogito => acme}/examples/ValidationResult.java (97%) rename serverless-workflow-examples/serverless-workflow-openvino-quarkus/src/test/java/org/{kie/kogito => acme}/examples/OpenVinoRestIT.java (97%) rename serverless-workflow-examples/serverless-workflow-order-processing/src/test/java/org/{kie/kogito => acme}/examples/sw/orders/processing/Order.java (97%) rename serverless-workflow-examples/serverless-workflow-order-processing/src/test/java/org/{kie/kogito => acme}/examples/sw/orders/processing/VerifyWorkflowExecutionIT.java (99%) rename serverless-workflow-examples/serverless-workflow-parallel-execution/src/test/java/org/{kie/kogito => acme}/examples/ParallelStateTest.java (97%) rename serverless-workflow-examples/serverless-workflow-python-quarkus/src/test/java/org/{kie/kogito => acme}/examples/PythonRestIT.java (97%) rename serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/{kie/kogito => acme}/examples/MockService.java (97%) rename serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/{kie/kogito => acme}/examples/OrderService.java (97%) rename serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/{kie/kogito => acme}/examples/PaymentService.java (97%) rename serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/{kie/kogito => acme}/examples/Response.java (97%) rename serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/{kie/kogito => acme}/examples/ServiceException.java (95%) rename serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/{kie/kogito => acme}/examples/ShippingService.java (98%) rename serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/{kie/kogito => acme}/examples/StockService.java (97%) rename serverless-workflow-examples/serverless-workflow-saga-quarkus/src/test/java/org/{kie/kogito => acme}/examples/OrderSagaWorkflowIT.java (98%) rename serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/java/org/{kogito => acme}/serverless/examples/CountriesClassifierResource.java (98%) rename serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/java/org/{kogito => acme}/serverless/examples/Country.java (97%) rename serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/test/java/org/{kogito => acme}/serverless/examples/CountryServiceWorkflowTest.java (98%) rename serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/test/java/org/{kogito => acme}/serverless/examples/RestCountriesMockServer.java (98%) rename serverless-workflow-examples/serverless-workflow-temperature-conversion/{conversion-workflow/src/test/java/org/kie/kogito => conversion-workflow-full/src/test/java/org/acme}/serverless/ConversationFlowIT.java (98%) rename serverless-workflow-examples/serverless-workflow-temperature-conversion/{conversion-workflow-spec/src/test/java/org/kie/kogito => conversion-workflow-full/src/test/java/org/acme}/serverless/OperationsMockService.java (98%) rename serverless-workflow-examples/serverless-workflow-temperature-conversion/{conversion-workflow-full/src/test/java/org/kie/kogito => conversion-workflow-function/src/test/java/org/acme}/serverless/ConversationFlowIT.java (98%) rename serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/src/test/java/org/{kie/kogito => acme}/serverless/OperationsMockService.java (98%) rename serverless-workflow-examples/serverless-workflow-temperature-conversion/{conversion-workflow-function/src/test/java/org/kie/kogito => conversion-workflow-spec/src/test/java/org/acme}/serverless/ConversationFlowIT.java (98%) rename serverless-workflow-examples/serverless-workflow-temperature-conversion/{conversion-workflow/src/test/java/org/kie/kogito => conversion-workflow-spec/src/test/java/org/acme}/serverless/OperationsMockService.java (98%) rename serverless-workflow-examples/serverless-workflow-temperature-conversion/{conversion-workflow-spec/src/test/java/org/kie/kogito => conversion-workflow/src/test/java/org/acme}/serverless/ConversationFlowIT.java (98%) rename serverless-workflow-examples/serverless-workflow-temperature-conversion/{conversion-workflow-full/src/test/java/org/kie/kogito => conversion-workflow/src/test/java/org/acme}/serverless/OperationsMockService.java (98%) rename serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/java/org/{kie/kogito => acme}/examples/sw/temp/multiplication/MultiplicationOperation.java (97%) rename serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/java/org/{kie/kogito => acme}/examples/sw/temp/multiplication/OperationResource.java (96%) rename serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/test/java/org/{kie/kogito => acme}/examples/sw/temp/multiplication/OperationResourceIT.java (96%) rename serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/java/org/{kie/kogito => acme}/examples/sw/temp/subtraction/OperationResource.java (97%) rename serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/java/org/{kie/kogito => acme}/examples/sw/temp/subtraction/SubtractionOperation.java (97%) rename serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/test/java/org/{kie/kogito => acme}/examples/sw/temp/subtraction/OperationResourceIT.java (96%) rename serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/src/test/java/org/{kie/kogito => acme}/examples/HelloTest.java (97%) rename serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/java/org/{kie/kogito => acme}/examples/EventsProducerResource.java (99%) rename serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/java/org/{kie/kogito => acme}/examples/VertxRouter.java (93%) rename serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/test/java/org/{kie/kogito => acme}/examples/TimeoutIT.java (98%) rename serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/java/org/{kie/kogito => acme}/examples/EventsProducerResource.java (99%) rename serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/java/org/{kie/kogito => acme}/examples/VertxRouter.java (93%) rename serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/test/java/org/{kie/kogito => acme}/examples/TimeoutIT.java (98%) rename serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/{kie/kogito => acme}/examples/CallbackStateTimeoutsClient.java (93%) rename serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/{kie/kogito => acme}/examples/CloudEventsCustomizer.java (97%) rename serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/{kie/kogito => acme}/examples/EventStateTimeoutsClient.java (93%) rename serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/{kie/kogito => acme}/examples/EventsProducerResource.java (99%) rename serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/{kie/kogito => acme}/examples/SwitchStateTimeoutsClient.java (93%) rename serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/{kie/kogito => acme}/examples/VertxRouter.java (97%) rename serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/{kie/kogito => acme}/examples/WorkflowClient.java (97%) rename serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/{kie/kogito => acme}/examples/WorkflowTimeoutsClient.java (94%) rename serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/{kie/kogito => acme}/examples/WorkflowsProxyResource.java (99%) diff --git a/.ci/environments/quarkus-3/patches/0001_before_sh.patch b/.ci/environments/quarkus-3/patches/0001_before_sh.patch index 11ffbf329c..fb198bf8e4 100644 --- a/.ci/environments/quarkus-3/patches/0001_before_sh.patch +++ b/.ci/environments/quarkus-3/patches/0001_before_sh.patch @@ -4282,7 +4282,7 @@ diff --git a/serverless-workflow-examples/serverless-workflow-events-quarkus/src index 287b775c6..c969da8c7 100644 --- a/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/kogito/serverless/examples/AvroMarshallerProducer.java +++ b/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/kogito/serverless/examples/AvroMarshallerProducer.java -@@ -17,11 +17,11 @@ package org.kogito.serverless.examples; +@@ -17,11 +17,11 @@ package org.acme.serverless.examples; import java.io.IOException; @@ -4304,7 +4304,7 @@ index a9615feff..54a8b9a5a 100644 +++ b/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/kogito/serverless/examples/DecisionResource.java @@ -15,11 +15,11 @@ */ - package org.kogito.serverless.examples; + package org.acme.serverless.examples; -import javax.inject.Inject; -import javax.ws.rs.GET; @@ -4600,77 +4600,77 @@ index 6f90bae6d..56b1e20e5 100644 +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/ClassificationFunction.java @@ -15,7 +15,7 @@ */ - package org.kogito.serverless.examples.functions; + package org.acme.serverless.examples.functions; -import javax.inject.Inject; +import jakarta.inject.Inject; - import org.kogito.serverless.examples.input.Country; - import org.kogito.serverless.examples.services.ClassificationService; + import org.acme.serverless.examples.input.Country; + import org.acme.serverless.examples.services.ClassificationService; diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/CountriesFunction.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/CountriesFunction.java index 750823546..f17e7bea9 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/CountriesFunction.java +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/CountriesFunction.java @@ -15,7 +15,7 @@ */ - package org.kogito.serverless.examples.functions; + package org.acme.serverless.examples.functions; -import javax.inject.Inject; +import jakarta.inject.Inject; - import org.kogito.serverless.examples.input.Country; - import org.kogito.serverless.examples.services.CountriesService; + import org.acme.serverless.examples.input.Country; + import org.acme.serverless.examples.services.CountriesService; diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/PopulationFunction.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/PopulationFunction.java index 69066c4ec..8249c76b2 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/PopulationFunction.java +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/PopulationFunction.java @@ -15,7 +15,7 @@ */ - package org.kogito.serverless.examples.functions; + package org.acme.serverless.examples.functions; -import javax.inject.Inject; +import jakarta.inject.Inject; - import org.kogito.serverless.examples.input.Country; - import org.kogito.serverless.examples.services.CountriesService; + import org.acme.serverless.examples.input.Country; + import org.acme.serverless.examples.services.CountriesService; diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/ClassificationService.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/ClassificationService.java index 3731e3707..1f9bd1377 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/ClassificationService.java +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/ClassificationService.java -@@ -18,7 +18,7 @@ package org.kogito.serverless.examples.services; +@@ -18,7 +18,7 @@ package org.acme.serverless.examples.services; import java.util.HashMap; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; - import org.kogito.serverless.examples.input.Country; + import org.acme.serverless.examples.input.Country; diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/CountriesService.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/CountriesService.java index acce33496..a6ffe63d9 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/CountriesService.java +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/CountriesService.java -@@ -18,7 +18,7 @@ package org.kogito.serverless.examples.services; +@@ -18,7 +18,7 @@ package org.acme.serverless.examples.services; import java.util.ArrayList; import java.util.List; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; - import org.kogito.serverless.examples.input.Country; + import org.acme.serverless.examples.input.Country; diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/PopulationService.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/PopulationService.java index 8aa404d54..60910c580 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/PopulationService.java +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/PopulationService.java -@@ -18,7 +18,7 @@ package org.kogito.serverless.examples.services; +@@ -18,7 +18,7 @@ package org.acme.serverless.examples.services; import java.util.HashMap; import java.util.Map; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; - import org.kogito.serverless.examples.input.Country; + import org.acme.serverless.examples.input.Country; diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/pom.xml b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/pom.xml index f651b169d..f72762b0b 100644 @@ -5772,7 +5772,7 @@ diff --git a/serverless-workflow-examples/serverless-workflow-service-calls-quar index f49df157e..b6a6a617a 100644 --- a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/test/java/org/kogito/serverless/examples/CountryServiceWorkflowTest.java +++ b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/test/java/org/kogito/serverless/examples/CountryServiceWorkflowTest.java -@@ -18,8 +18,8 @@ package org.kogito.serverless.examples; +@@ -18,8 +18,8 @@ package org.acme.serverless.examples; import java.util.HashMap; import java.util.Map; diff --git a/kogito-quarkus-examples/decisiontable-quarkus-example/pom.xml b/kogito-quarkus-examples/decisiontable-quarkus-example/pom.xml index 92e8228743..6a7c0bdcc5 100644 --- a/kogito-quarkus-examples/decisiontable-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/decisiontable-quarkus-example/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/kie/kogito/queries/Applicant.java b/kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/acme/queries/Applicant.java similarity index 97% rename from kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/kie/kogito/queries/Applicant.java rename to kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/acme/queries/Applicant.java index 175d3a98d5..c63d1274c8 100644 --- a/kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/kie/kogito/queries/Applicant.java +++ b/kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/acme/queries/Applicant.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; public class Applicant { diff --git a/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/kie/kogito/queries/LoanApplication.java b/kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/acme/queries/LoanApplication.java similarity index 98% rename from kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/kie/kogito/queries/LoanApplication.java rename to kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/acme/queries/LoanApplication.java index 70eec1c4e3..a6a205d958 100644 --- a/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/kie/kogito/queries/LoanApplication.java +++ b/kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/acme/queries/LoanApplication.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; public class LoanApplication { diff --git a/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/kie/kogito/queries/LoanUnit.java b/kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/acme/queries/LoanUnit.java similarity index 97% rename from kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/kie/kogito/queries/LoanUnit.java rename to kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/acme/queries/LoanUnit.java index 3d35a77609..063377fe07 100644 --- a/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/kie/kogito/queries/LoanUnit.java +++ b/kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/acme/queries/LoanUnit.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; import org.drools.ruleunits.api.DataSource; import org.drools.ruleunits.api.DataStore; diff --git a/kogito-springboot-examples/decisiontable-springboot-example/src/main/resources/org/kie/kogito/queries/LoanUnit.drl.xls b/kogito-quarkus-examples/decisiontable-quarkus-example/src/main/resources/org/acme/queries/LoanUnit.drl.xls similarity index 57% rename from kogito-springboot-examples/decisiontable-springboot-example/src/main/resources/org/kie/kogito/queries/LoanUnit.drl.xls rename to kogito-quarkus-examples/decisiontable-quarkus-example/src/main/resources/org/acme/queries/LoanUnit.drl.xls index cfa4b8db5f3d0134512e113f8531fb4b2eaaeed8..e51800ae983f19d2ac025749a0487a114dddcdb8 100644 GIT binary patch delta 974 zcmbtT%WD&15T9A|*fa@gN)jW*JTSy0q`{SH1Bw`0grY_w6`^==35!OWY?=oO7B=2I z^pN!X2NVSl3R?Cg2rVAOlb$399`qo1@YsWjCY^7yX(RFGdH3nvco z@)!+bPJZG)%qm>M-e%z`ZrFO7AKsF(ueEu83U7s6tt78VMyL8!X8; z)v_!>Kr>7Zc*Q#--Zu^MyMPylqlFzBg%HXC7uAYdugXP5f@!mABOXo13G-^RR#Iw_ zymDKD0ai4E5)>TTD0p(TPUHij3QgU3fnj(+9^#;Ma`wPdsjSp_qR3_Ht|GzE#Tf3t zTtfO6@vs%2>3uh%eMgw1h$-Ffc`0a<0BY?%xY7i9_o>CRpx>!S8~pB7loRJ$C>cq`apl03MNiNYX*G{7F(Kx$FdZO|mHZi3wm5?Fswn4F#Nn zZ>R#V`K3;=wP;EYPkk3K!Cd~knAGq4-wVku#Ni!n+gS|28S~A;1k6GfLd55cmxZjp z9^4Yy)!<2%kA>N-sBbS1UuV0SM+oU_(X`;{QYSx1cN$Xsu_s5~Y!;Fjp>~Yh;FumQ zyVaB&&;RvE{4=uc#J6Dk)8dKWUq2WJ!_Q(!Y&+RtJ4df{3UjQL@O27lJ(t=-)=w|E ak%!xJq&q?zYtH1y@5{=^=F?YWcH9MoYXQap delta 1013 zcmb_b&ubGw6n<}#Nw=7o8WJfgB`u+B*CL5hJ(mw%zNMWy*Kk(cU$wDRW5DSPRmeG z-JO5V`dbG>bo!b;Nkr}48?QN1^&HvlWXP7Pq}%wD>EKE>*|qjxPqG#bd~QUUc6f?D zVBHBf8AcIlo~FmNK=3MFU}M(c~oKnRcJzMBA`q+yOmk`AtI*vbA;LO zMl?S(+d1ZeJv9Y7-@H2hR_P8(>&yO$^Cn*?rkJHtddAx9ls+oCJ$lh>5AS*Ma`b}a z3;vrirKC{VH#3278A8cECOgwuYs^e{&x1AP@y{%+iH2MbE=566t_PEme=vOKpfUCJ z%O@M&Gop!AQxD#=R8=00z$7y&%-NeK3lA3e=reX>aYPQ!Hgbd;JL(s7gfHupv;7_9 jLW(4Z3LzH9N=@)MC2Og<{vbU7r&aXb>|gXt*$%x diff --git a/kogito-quarkus-examples/decisiontable-quarkus-example/src/test/java/org/kie/kogito/decisiontable/quarkus/NativeRestQueryIT.java b/kogito-quarkus-examples/decisiontable-quarkus-example/src/test/java/org/acme/decisiontable/quarkus/NativeRestQueryIT.java similarity index 94% rename from kogito-quarkus-examples/decisiontable-quarkus-example/src/test/java/org/kie/kogito/decisiontable/quarkus/NativeRestQueryIT.java rename to kogito-quarkus-examples/decisiontable-quarkus-example/src/test/java/org/acme/decisiontable/quarkus/NativeRestQueryIT.java index eb6ce553f6..a87bcd6bab 100644 --- a/kogito-quarkus-examples/decisiontable-quarkus-example/src/test/java/org/kie/kogito/decisiontable/quarkus/NativeRestQueryIT.java +++ b/kogito-quarkus-examples/decisiontable-quarkus-example/src/test/java/org/acme/decisiontable/quarkus/NativeRestQueryIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.decisiontable.quarkus; +package org.acme.decisiontable.quarkus; import io.quarkus.test.junit.NativeImageTest; diff --git a/kogito-quarkus-examples/decisiontable-quarkus-example/src/test/java/org/kie/kogito/decisiontable/quarkus/RestQueryTest.java b/kogito-quarkus-examples/decisiontable-quarkus-example/src/test/java/org/acme/decisiontable/quarkus/RestQueryTest.java similarity index 98% rename from kogito-quarkus-examples/decisiontable-quarkus-example/src/test/java/org/kie/kogito/decisiontable/quarkus/RestQueryTest.java rename to kogito-quarkus-examples/decisiontable-quarkus-example/src/test/java/org/acme/decisiontable/quarkus/RestQueryTest.java index 2b88b46469..aea194b909 100644 --- a/kogito-quarkus-examples/decisiontable-quarkus-example/src/test/java/org/kie/kogito/decisiontable/quarkus/RestQueryTest.java +++ b/kogito-quarkus-examples/decisiontable-quarkus-example/src/test/java/org/acme/decisiontable/quarkus/RestQueryTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.decisiontable.quarkus; +package org.acme.decisiontable.quarkus; import org.junit.jupiter.api.Test; diff --git a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/pom.xml b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/pom.xml index 5edc5ee797..9d20b646d7 100755 --- a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/pom.xml +++ b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/kie/kogito/app/CustomDMNRuntimeEventListener.java b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/acme/app/CustomDMNRuntimeEventListener.java similarity index 95% rename from kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/kie/kogito/app/CustomDMNRuntimeEventListener.java rename to kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/acme/app/CustomDMNRuntimeEventListener.java index 7744eb66d2..776af4cc77 100644 --- a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/kie/kogito/app/CustomDMNRuntimeEventListener.java +++ b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/acme/app/CustomDMNRuntimeEventListener.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.app; +package org.acme.app; import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; @@ -87,7 +87,7 @@ public void afterEvaluateAll(AfterEvaluateAllEvent event) { private void registerEvent(DMNEvent event) { logger.debug(event.getClass().getSimpleName()); - prometheusMeterRegistry.counter("org.kie.kogito.examples.customdmnruntimeeventlistener", "event", + prometheusMeterRegistry.counter("org.acme.examples.customdmnruntimeeventlistener", "event", event.getClass().getSimpleName().toLowerCase()).increment(); } diff --git a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/kie/kogito/app/RuleEventListenerConfig.java b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/acme/app/RuleEventListenerConfig.java similarity index 92% rename from kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/kie/kogito/app/RuleEventListenerConfig.java rename to kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/acme/app/RuleEventListenerConfig.java index de6b18ed73..746ae2cadf 100644 --- a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/kie/kogito/app/RuleEventListenerConfig.java +++ b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/acme/app/RuleEventListenerConfig.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.app; +package org.acme.app; import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; +import org.acme.examples.CustomRuleEventListener; import org.kie.kogito.drools.core.config.DefaultRuleEventListenerConfig; -import org.kie.kogito.examples.CustomRuleEventListener; import io.micrometer.prometheus.PrometheusMeterRegistry; diff --git a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/kie/kogito/examples/CustomRuleEventListener.java b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/acme/examples/CustomRuleEventListener.java similarity index 96% rename from kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/kie/kogito/examples/CustomRuleEventListener.java rename to kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/acme/examples/CustomRuleEventListener.java index 39eac40227..9d9e1062c1 100644 --- a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/kie/kogito/examples/CustomRuleEventListener.java +++ b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/acme/examples/CustomRuleEventListener.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.drools.core.event.DefaultAgendaEventListener; import org.jboss.logging.Logger; @@ -101,7 +101,7 @@ public void afterRuleFlowGroupDeactivated(RuleFlowGroupDeactivatedEvent event) { private void registerEvent(KieRuntimeEvent event) { logger.debug(event.getClass().getSimpleName()); - prometheusMeterRegistry.counter("org.kie.kogito.examples.customruleeventlistener", "event", + prometheusMeterRegistry.counter("org.acme.examples.customruleeventlistener", "event", event.getClass().getSimpleName().toLowerCase()).increment(); } } diff --git a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/kie/kogito/examples/Hello.java b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/acme/examples/Hello.java similarity index 96% rename from kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/kie/kogito/examples/Hello.java rename to kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/acme/examples/Hello.java index 15e84e9e72..bd8ee03281 100644 --- a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/kie/kogito/examples/Hello.java +++ b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/java/org/acme/examples/Hello.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.drools.ruleunits.api.DataSource; import org.drools.ruleunits.api.DataStore; diff --git a/kogito-quarkus-examples/rules-quarkus-helloworld/src/main/resources/org/kie/kogito/examples/Hello.drl b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/org/acme/examples/Hello.drl similarity index 95% rename from kogito-quarkus-examples/rules-quarkus-helloworld/src/main/resources/org/kie/kogito/examples/Hello.drl rename to kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/org/acme/examples/Hello.drl index 7aaacc6c99..ecdea0651a 100644 --- a/kogito-quarkus-examples/rules-quarkus-helloworld/src/main/resources/org/kie/kogito/examples/Hello.drl +++ b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/org/acme/examples/Hello.drl @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; unit Hello; rule helloWorld diff --git a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/org/kie/kogito/examples/LoanEligibility.dmn b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/org/acme/examples/LoanEligibility.dmn similarity index 100% rename from kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/org/kie/kogito/examples/LoanEligibility.dmn rename to kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/org/acme/examples/LoanEligibility.dmn diff --git a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/org/kie/kogito/examples/Traffic Violation.dmn b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/org/acme/examples/Traffic Violation.dmn similarity index 100% rename from kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/org/kie/kogito/examples/Traffic Violation.dmn rename to kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/org/acme/examples/Traffic Violation.dmn diff --git a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/kie/kogito/examples/quarkus/DashboardsListIT.java b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/acme/examples/quarkus/DashboardsListIT.java similarity index 96% rename from kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/kie/kogito/examples/quarkus/DashboardsListIT.java rename to kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/acme/examples/quarkus/DashboardsListIT.java index 5921f82a24..738e0dd67b 100644 --- a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/kie/kogito/examples/quarkus/DashboardsListIT.java +++ b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/acme/examples/quarkus/DashboardsListIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.quarkus; +package org.acme.examples.quarkus; import java.util.List; diff --git a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/kie/kogito/examples/quarkus/DroolsMetricsIT.java b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/acme/examples/quarkus/DroolsMetricsIT.java similarity index 84% rename from kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/kie/kogito/examples/quarkus/DroolsMetricsIT.java rename to kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/acme/examples/quarkus/DroolsMetricsIT.java index 0af3380e8a..14b880b22e 100644 --- a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/kie/kogito/examples/quarkus/DroolsMetricsIT.java +++ b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/acme/examples/quarkus/DroolsMetricsIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.quarkus; +package org.acme.examples.quarkus; import org.junit.jupiter.api.Test; @@ -53,21 +53,21 @@ public void testDrlMetrics() { .get("/q/metrics") .then() .statusCode(200) - .body(containsString("org_kie_kogito_examples_customruleeventlistener_total{event=\"afteractivationfiredeventimpl" + + .body(containsString("org_acme_examples_customruleeventlistener_total{event=\"afteractivationfiredeventimpl" + "\"} 1.0")); given() .when() .get("/q/metrics") .then() .statusCode(200) - .body(containsString("org_kie_kogito_examples_customruleeventlistener_total{event=\"beforeactivationfiredeventimpl" + + .body(containsString("org_acme_examples_customruleeventlistener_total{event=\"beforeactivationfiredeventimpl" + "\"} 1.0")); given() .when() .get("/q/metrics") .then() .statusCode(200) - .body(containsString("org_kie_kogito_examples_customruleeventlistener_total{event=\"activationcreatedeventimpl" + + .body(containsString("org_acme_examples_customruleeventlistener_total{event=\"activationcreatedeventimpl" + "\"} 1.0")); } } diff --git a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/kie/kogito/examples/quarkus/GrafanaDockerComposeIT.java b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/acme/examples/quarkus/GrafanaDockerComposeIT.java similarity index 96% rename from kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/kie/kogito/examples/quarkus/GrafanaDockerComposeIT.java rename to kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/acme/examples/quarkus/GrafanaDockerComposeIT.java index 635b0008e0..e279dea574 100644 --- a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/kie/kogito/examples/quarkus/GrafanaDockerComposeIT.java +++ b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/acme/examples/quarkus/GrafanaDockerComposeIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.quarkus; +package org.acme.examples.quarkus; import java.io.File; import java.net.URISyntaxException; @@ -66,9 +66,9 @@ public class GrafanaDockerComposeIT { .withStartupTimeout(STARTUP_MINUTES_TIMEOUT)) .withLogConsumer("prometheus_1", new Slf4jLogConsumer(LOGGER)) .withPull(false) - .withLocalCompose(true) - //See https://github.com/testcontainers/testcontainers-java/issues/4565 - .withOptions("--compatibility"); + .withLocalCompose(true); + //See https://github.com/testcontainers/testcontainers-java/issues/4565 + // .withOptions("--compatibility"); } catch (URISyntaxException e) { throw new RuntimeException(e); } diff --git a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/kie/kogito/examples/quarkus/LoanEligibilityIT.java b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/acme/examples/quarkus/LoanEligibilityIT.java similarity index 91% rename from kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/kie/kogito/examples/quarkus/LoanEligibilityIT.java rename to kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/acme/examples/quarkus/LoanEligibilityIT.java index a9d2fca221..7d46d5dc7f 100644 --- a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/kie/kogito/examples/quarkus/LoanEligibilityIT.java +++ b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/acme/examples/quarkus/LoanEligibilityIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.quarkus; +package org.acme.examples.quarkus; import org.junit.jupiter.api.Test; @@ -102,15 +102,15 @@ public void testEvaluateLoanEligibility() { String.format("api_http_response_code_total{artifactId=\"%s\",endpoint=\"LoanEligibility\",identifier=\"200\",version=\"%s\"} 2.0", PROJECT_ARTIFACT_ID, PROJECT_VERSION))) .body(containsString( String.format("api_execution_elapsed_seconds_count{artifactId=\"%s\",endpoint=\"LoanEligibility\",version=\"%s\"} 2.0", PROJECT_ARTIFACT_ID, PROJECT_VERSION))) - .body(containsString("org_kie_kogito_examples_customdmnruntimeeventlistener_total{event" + + .body(containsString("org_acme_examples_customdmnruntimeeventlistener_total{event" + "=\"beforeevaluatedecisiontableeventimpl\"}")) - .body(containsString("org_kie_kogito_examples_customdmnruntimeeventlistener_total{event" + + .body(containsString("org_acme_examples_customdmnruntimeeventlistener_total{event" + "=\"afterevaluatedecisiontableeventimpl\"}")) - .body(containsString("org_kie_kogito_examples_customdmnruntimeeventlistener_total{event" + + .body(containsString("org_acme_examples_customdmnruntimeeventlistener_total{event" + "=\"beforeevaluatealleventimpl\"}")) - .body(containsString("org_kie_kogito_examples_customdmnruntimeeventlistener_total{event" + + .body(containsString("org_acme_examples_customdmnruntimeeventlistener_total{event" + "=\"afterevaluatealleventimpl\"}")) - .body(containsString("org_kie_kogito_examples_customdmnruntimeeventlistener_total{event" + + .body(containsString("org_acme_examples_customdmnruntimeeventlistener_total{event" + "=\"afterevaluatedecisioneventimpl\"}")); } diff --git a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/kie/kogito/examples/quarkus/ProjectMetadataProvider.java b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/acme/examples/quarkus/ProjectMetadataProvider.java similarity index 97% rename from kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/kie/kogito/examples/quarkus/ProjectMetadataProvider.java rename to kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/acme/examples/quarkus/ProjectMetadataProvider.java index 8218ebe9e4..be03e09832 100644 --- a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/kie/kogito/examples/quarkus/ProjectMetadataProvider.java +++ b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/acme/examples/quarkus/ProjectMetadataProvider.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.quarkus; +package org.acme.examples.quarkus; import java.io.IOException; import java.util.Properties; diff --git a/kogito-quarkus-examples/dmn-event-driven-quarkus/pom.xml b/kogito-quarkus-examples/dmn-event-driven-quarkus/pom.xml index f494fc03e0..d574fdb19f 100644 --- a/kogito-quarkus-examples/dmn-event-driven-quarkus/pom.xml +++ b/kogito-quarkus-examples/dmn-event-driven-quarkus/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/dmn-event-driven-quarkus/src/test/java/org/kie/kogito/examples/DmnEventDrivenIT.java b/kogito-quarkus-examples/dmn-event-driven-quarkus/src/test/java/org/acme/examples/DmnEventDrivenIT.java similarity index 99% rename from kogito-quarkus-examples/dmn-event-driven-quarkus/src/test/java/org/kie/kogito/examples/DmnEventDrivenIT.java rename to kogito-quarkus-examples/dmn-event-driven-quarkus/src/test/java/org/acme/examples/DmnEventDrivenIT.java index 0b244241da..7a3866b227 100644 --- a/kogito-quarkus-examples/dmn-event-driven-quarkus/src/test/java/org/kie/kogito/examples/DmnEventDrivenIT.java +++ b/kogito-quarkus-examples/dmn-event-driven-quarkus/src/test/java/org/acme/examples/DmnEventDrivenIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.io.IOException; import java.net.URL; diff --git a/kogito-quarkus-examples/dmn-event-driven-quarkus/src/test/java/org/kie/kogito/examples/NativeDmnEventDrivenIT.java b/kogito-quarkus-examples/dmn-event-driven-quarkus/src/test/java/org/acme/examples/NativeDmnEventDrivenIT.java similarity index 96% rename from kogito-quarkus-examples/dmn-event-driven-quarkus/src/test/java/org/kie/kogito/examples/NativeDmnEventDrivenIT.java rename to kogito-quarkus-examples/dmn-event-driven-quarkus/src/test/java/org/acme/examples/NativeDmnEventDrivenIT.java index 663d5b38a9..8df5c79eb1 100644 --- a/kogito-quarkus-examples/dmn-event-driven-quarkus/src/test/java/org/kie/kogito/examples/NativeDmnEventDrivenIT.java +++ b/kogito-quarkus-examples/dmn-event-driven-quarkus/src/test/java/org/acme/examples/NativeDmnEventDrivenIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.kie.kogito.testcontainers.quarkus.KafkaQuarkusTestResource; diff --git a/kogito-quarkus-examples/dmn-incubation-api-quarkus/pom.xml b/kogito-quarkus-examples/dmn-incubation-api-quarkus/pom.xml index c5abbd378e..433b27dde2 100644 --- a/kogito-quarkus-examples/dmn-incubation-api-quarkus/pom.xml +++ b/kogito-quarkus-examples/dmn-incubation-api-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/pom.xml b/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/pom.xml index 52abe49c3e..a91f0cb15a 100644 --- a/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/pom.xml +++ b/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/src/test/java/org/kie/kogito/examples/CloudEventListenerTest.java b/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/src/test/java/org/acme/examples/CloudEventListenerTest.java similarity index 99% rename from kogito-quarkus-examples/dmn-knative-quickstart-quarkus/src/test/java/org/kie/kogito/examples/CloudEventListenerTest.java rename to kogito-quarkus-examples/dmn-knative-quickstart-quarkus/src/test/java/org/acme/examples/CloudEventListenerTest.java index d4156050fe..ba55f5df6c 100644 --- a/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/src/test/java/org/kie/kogito/examples/CloudEventListenerTest.java +++ b/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/src/test/java/org/acme/examples/CloudEventListenerTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.util.Map; diff --git a/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/src/test/java/org/kie/kogito/examples/TopicsInformationTest.java b/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/src/test/java/org/acme/examples/TopicsInformationTest.java similarity index 98% rename from kogito-quarkus-examples/dmn-knative-quickstart-quarkus/src/test/java/org/kie/kogito/examples/TopicsInformationTest.java rename to kogito-quarkus-examples/dmn-knative-quickstart-quarkus/src/test/java/org/acme/examples/TopicsInformationTest.java index f7ea93becb..8009b62fdb 100644 --- a/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/src/test/java/org/kie/kogito/examples/TopicsInformationTest.java +++ b/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/src/test/java/org/acme/examples/TopicsInformationTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.util.Arrays; import java.util.Collections; diff --git a/kogito-quarkus-examples/dmn-listener-dtable/pom.xml b/kogito-quarkus-examples/dmn-listener-dtable/pom.xml index 8b3abdb384..bf53b0c0dc 100644 --- a/kogito-quarkus-examples/dmn-listener-dtable/pom.xml +++ b/kogito-quarkus-examples/dmn-listener-dtable/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/dmn-listener-dtable/src/main/java/org/kie/kogito/dmn/quarkus/example/dtlistener/ExampleDMNRuntimeEventListener.java b/kogito-quarkus-examples/dmn-listener-dtable/src/main/java/org/acme/dmn/quarkus/example/dtlistener/ExampleDMNRuntimeEventListener.java similarity index 96% rename from kogito-quarkus-examples/dmn-listener-dtable/src/main/java/org/kie/kogito/dmn/quarkus/example/dtlistener/ExampleDMNRuntimeEventListener.java rename to kogito-quarkus-examples/dmn-listener-dtable/src/main/java/org/acme/dmn/quarkus/example/dtlistener/ExampleDMNRuntimeEventListener.java index 5c9c238d31..b9b23e7584 100644 --- a/kogito-quarkus-examples/dmn-listener-dtable/src/main/java/org/kie/kogito/dmn/quarkus/example/dtlistener/ExampleDMNRuntimeEventListener.java +++ b/kogito-quarkus-examples/dmn-listener-dtable/src/main/java/org/acme/dmn/quarkus/example/dtlistener/ExampleDMNRuntimeEventListener.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.quarkus.example.dtlistener; +package org.acme.dmn.quarkus.example.dtlistener; import java.util.Queue; import java.util.concurrent.ConcurrentLinkedQueue; diff --git a/kogito-quarkus-examples/dmn-listener-dtable/src/main/java/org/kie/kogito/dmn/quarkus/example/dtlistener/PeriodicJobBean.java b/kogito-quarkus-examples/dmn-listener-dtable/src/main/java/org/acme/dmn/quarkus/example/dtlistener/PeriodicJobBean.java similarity index 98% rename from kogito-quarkus-examples/dmn-listener-dtable/src/main/java/org/kie/kogito/dmn/quarkus/example/dtlistener/PeriodicJobBean.java rename to kogito-quarkus-examples/dmn-listener-dtable/src/main/java/org/acme/dmn/quarkus/example/dtlistener/PeriodicJobBean.java index 2069192122..9e7d7fca7c 100644 --- a/kogito-quarkus-examples/dmn-listener-dtable/src/main/java/org/kie/kogito/dmn/quarkus/example/dtlistener/PeriodicJobBean.java +++ b/kogito-quarkus-examples/dmn-listener-dtable/src/main/java/org/acme/dmn/quarkus/example/dtlistener/PeriodicJobBean.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.quarkus.example.dtlistener; +package org.acme.dmn.quarkus.example.dtlistener; import java.util.concurrent.TimeUnit; diff --git a/kogito-quarkus-examples/dmn-listener-dtable/src/test/java/org/kie/kogito/dmn/quarkus/example/dtlistener/DecisionTableTest.java b/kogito-quarkus-examples/dmn-listener-dtable/src/test/java/org/acme/dmn/quarkus/example/dtlistener/DecisionTableTest.java similarity index 97% rename from kogito-quarkus-examples/dmn-listener-dtable/src/test/java/org/kie/kogito/dmn/quarkus/example/dtlistener/DecisionTableTest.java rename to kogito-quarkus-examples/dmn-listener-dtable/src/test/java/org/acme/dmn/quarkus/example/dtlistener/DecisionTableTest.java index 58d847b1e7..6f0d2b9d96 100644 --- a/kogito-quarkus-examples/dmn-listener-dtable/src/test/java/org/kie/kogito/dmn/quarkus/example/dtlistener/DecisionTableTest.java +++ b/kogito-quarkus-examples/dmn-listener-dtable/src/test/java/org/acme/dmn/quarkus/example/dtlistener/DecisionTableTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.quarkus.example.dtlistener; +package org.acme.dmn.quarkus.example.dtlistener; import java.util.concurrent.TimeUnit; diff --git a/kogito-quarkus-examples/dmn-listener-quarkus/pom.xml b/kogito-quarkus-examples/dmn-listener-quarkus/pom.xml index df719ac5b3..5beb0e3754 100644 --- a/kogito-quarkus-examples/dmn-listener-quarkus/pom.xml +++ b/kogito-quarkus-examples/dmn-listener-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/kie/kogito/dmn/quarkus/example/listener/ExampleDMNRuntimeEventListener.java b/kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/acme/dmn/quarkus/example/listener/ExampleDMNRuntimeEventListener.java similarity index 96% rename from kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/kie/kogito/dmn/quarkus/example/listener/ExampleDMNRuntimeEventListener.java rename to kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/acme/dmn/quarkus/example/listener/ExampleDMNRuntimeEventListener.java index 5be5815cd1..25cef7025e 100644 --- a/kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/kie/kogito/dmn/quarkus/example/listener/ExampleDMNRuntimeEventListener.java +++ b/kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/acme/dmn/quarkus/example/listener/ExampleDMNRuntimeEventListener.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.quarkus.example.listener; +package org.acme.dmn.quarkus.example.listener; import javax.enterprise.context.ApplicationScoped; diff --git a/kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/kie/kogito/dmn/quarkus/example/listener/ExampleDecisionEventListenerConfig.java b/kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/acme/dmn/quarkus/example/listener/ExampleDecisionEventListenerConfig.java similarity index 97% rename from kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/kie/kogito/dmn/quarkus/example/listener/ExampleDecisionEventListenerConfig.java rename to kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/acme/dmn/quarkus/example/listener/ExampleDecisionEventListenerConfig.java index 02e7e6b876..4b35f29be0 100644 --- a/kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/kie/kogito/dmn/quarkus/example/listener/ExampleDecisionEventListenerConfig.java +++ b/kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/acme/dmn/quarkus/example/listener/ExampleDecisionEventListenerConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.quarkus.example.listener; +package org.acme.dmn.quarkus.example.listener; import javax.enterprise.context.ApplicationScoped; diff --git a/kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/kie/kogito/dmn/quarkus/example/listener/LoggingDMNRuntimeEventListener.java b/kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/acme/dmn/quarkus/example/listener/LoggingDMNRuntimeEventListener.java similarity index 98% rename from kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/kie/kogito/dmn/quarkus/example/listener/LoggingDMNRuntimeEventListener.java rename to kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/acme/dmn/quarkus/example/listener/LoggingDMNRuntimeEventListener.java index f2dc00d429..50b039ea13 100644 --- a/kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/kie/kogito/dmn/quarkus/example/listener/LoggingDMNRuntimeEventListener.java +++ b/kogito-quarkus-examples/dmn-listener-quarkus/src/main/java/org/acme/dmn/quarkus/example/listener/LoggingDMNRuntimeEventListener.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.quarkus.example.listener; +package org.acme.dmn.quarkus.example.listener; import org.kie.dmn.api.core.event.AfterEvaluateAllEvent; import org.kie.dmn.api.core.event.AfterEvaluateContextEntryEvent; diff --git a/kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/example/listener/NativeTrafficViolationIT.java b/kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/acme/dmn/quarkus/example/listener/NativeTrafficViolationIT.java similarity index 93% rename from kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/example/listener/NativeTrafficViolationIT.java rename to kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/acme/dmn/quarkus/example/listener/NativeTrafficViolationIT.java index a4223fe04b..595f171177 100644 --- a/kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/example/listener/NativeTrafficViolationIT.java +++ b/kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/acme/dmn/quarkus/example/listener/NativeTrafficViolationIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.quarkus.example.listener; +package org.acme.dmn.quarkus.example.listener; import io.quarkus.test.junit.NativeImageTest; diff --git a/kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/example/listener/TrafficViolationListenerTest.java b/kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/acme/dmn/quarkus/example/listener/TrafficViolationListenerTest.java similarity index 91% rename from kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/example/listener/TrafficViolationListenerTest.java rename to kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/acme/dmn/quarkus/example/listener/TrafficViolationListenerTest.java index 207d9e43e7..33775607be 100644 --- a/kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/example/listener/TrafficViolationListenerTest.java +++ b/kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/acme/dmn/quarkus/example/listener/TrafficViolationListenerTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.quarkus.example.listener; +package org.acme.dmn.quarkus.example.listener; import java.util.List; import java.util.Map; @@ -21,19 +21,19 @@ import javax.inject.Inject; +import org.acme.dmn.quarkus.example.mock.MockDMNRuntimeEventListener; import org.junit.jupiter.api.Test; import org.kie.dmn.api.core.event.DMNRuntimeEventListener; import org.kie.kogito.decision.DecisionConfig; import org.kie.kogito.decision.DecisionEventListenerConfig; -import org.kie.kogito.dmn.quarkus.example.mock.MockDMNRuntimeEventListener; import io.quarkus.test.junit.QuarkusTest; import io.restassured.http.ContentType; import static io.restassured.RestAssured.given; +import static org.acme.dmn.quarkus.example.listener.TrafficViolationTest.TRAFFIC_VIOLATION_TEST_BODY; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import static org.kie.kogito.dmn.quarkus.example.listener.TrafficViolationTest.TRAFFIC_VIOLATION_TEST_BODY; @QuarkusTest public class TrafficViolationListenerTest { diff --git a/kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/example/listener/TrafficViolationTest.java b/kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/acme/dmn/quarkus/example/listener/TrafficViolationTest.java similarity index 96% rename from kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/example/listener/TrafficViolationTest.java rename to kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/acme/dmn/quarkus/example/listener/TrafficViolationTest.java index fa3361ef6a..43faf86bd0 100644 --- a/kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/example/listener/TrafficViolationTest.java +++ b/kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/acme/dmn/quarkus/example/listener/TrafficViolationTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.quarkus.example.listener; +package org.acme.dmn.quarkus.example.listener; import org.junit.jupiter.api.Test; diff --git a/kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/example/mock/MockDMNRuntimeEventListener.java b/kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/acme/dmn/quarkus/example/mock/MockDMNRuntimeEventListener.java similarity index 97% rename from kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/example/mock/MockDMNRuntimeEventListener.java rename to kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/acme/dmn/quarkus/example/mock/MockDMNRuntimeEventListener.java index 427bad341c..c65ae7b222 100644 --- a/kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/example/mock/MockDMNRuntimeEventListener.java +++ b/kogito-quarkus-examples/dmn-listener-quarkus/src/test/java/org/acme/dmn/quarkus/example/mock/MockDMNRuntimeEventListener.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.quarkus.example.mock; +package org.acme.dmn.quarkus.example.mock; import java.util.HashMap; import java.util.Map; diff --git a/kogito-quarkus-examples/dmn-pmml-quarkus-example/pom.xml b/kogito-quarkus-examples/dmn-pmml-quarkus-example/pom.xml index 2b502a0451..5d436855c4 100644 --- a/kogito-quarkus-examples/dmn-pmml-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/dmn-pmml-quarkus-example/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/CommonTestUtils.java b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/CommonTestUtils.java similarity index 98% rename from kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/CommonTestUtils.java rename to kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/CommonTestUtils.java index aa0a543fe3..e033c3d1e7 100644 --- a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/CommonTestUtils.java +++ b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/CommonTestUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.pmml.quarkus.example; +package org.acme.dmn.pmml.quarkus.example; import java.util.Map; diff --git a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/DMNMiningModelTest.java b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/DMNMiningModelTest.java similarity index 97% rename from kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/DMNMiningModelTest.java rename to kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/DMNMiningModelTest.java index 6c3f656ff4..f3d2137a53 100644 --- a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/DMNMiningModelTest.java +++ b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/DMNMiningModelTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.quarkus.example; +package org.acme.dmn.pmml.quarkus.example; import org.junit.jupiter.api.Test; diff --git a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/DMNRegressionTest.java b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/DMNRegressionTest.java similarity index 97% rename from kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/DMNRegressionTest.java rename to kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/DMNRegressionTest.java index aa5630f267..d93c85e799 100644 --- a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/DMNRegressionTest.java +++ b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/DMNRegressionTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.quarkus.example; +package org.acme.dmn.pmml.quarkus.example; import org.junit.jupiter.api.Test; diff --git a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/DMNScoreCardTest.java b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/DMNScoreCardTest.java similarity index 97% rename from kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/DMNScoreCardTest.java rename to kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/DMNScoreCardTest.java index 1cc71bfd06..862fb75366 100644 --- a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/DMNScoreCardTest.java +++ b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/DMNScoreCardTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.quarkus.example; +package org.acme.dmn.pmml.quarkus.example; import org.junit.jupiter.api.Test; diff --git a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/DMNTreeTest.java b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/DMNTreeTest.java similarity index 97% rename from kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/DMNTreeTest.java rename to kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/DMNTreeTest.java index 45d3761a0a..bca32d9b60 100644 --- a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/DMNTreeTest.java +++ b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/DMNTreeTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.quarkus.example; +package org.acme.dmn.pmml.quarkus.example; import org.junit.jupiter.api.Test; diff --git a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/DecisionTreeTest.java b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/DecisionTreeTest.java similarity index 88% rename from kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/DecisionTreeTest.java rename to kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/DecisionTreeTest.java index 0482d2e654..509d485ecd 100644 --- a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/DecisionTreeTest.java +++ b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/DecisionTreeTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.quarkus.example; +package org.acme.dmn.pmml.quarkus.example; import java.util.HashMap; import java.util.Map; @@ -23,8 +23,8 @@ import io.quarkus.test.junit.QuarkusTest; import io.restassured.RestAssured; -import static org.kie.kogito.dmn.pmml.quarkus.example.CommonTestUtils.testDescriptive; -import static org.kie.kogito.dmn.pmml.quarkus.example.CommonTestUtils.testResult; +import static org.acme.dmn.pmml.quarkus.example.CommonTestUtils.testDescriptive; +import static org.acme.dmn.pmml.quarkus.example.CommonTestUtils.testResult; @QuarkusTest class DecisionTreeTest { diff --git a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/LinRegTest.java b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/LinRegTest.java similarity index 87% rename from kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/LinRegTest.java rename to kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/LinRegTest.java index cae090da03..9add7b2676 100644 --- a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/LinRegTest.java +++ b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/LinRegTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.quarkus.example; +package org.acme.dmn.pmml.quarkus.example; import java.util.Collections; import java.util.Map; @@ -23,8 +23,8 @@ import io.quarkus.test.junit.QuarkusTest; import io.restassured.RestAssured; -import static org.kie.kogito.dmn.pmml.quarkus.example.CommonTestUtils.testDescriptive; -import static org.kie.kogito.dmn.pmml.quarkus.example.CommonTestUtils.testResult; +import static org.acme.dmn.pmml.quarkus.example.CommonTestUtils.testDescriptive; +import static org.acme.dmn.pmml.quarkus.example.CommonTestUtils.testResult; @QuarkusTest public class LinRegTest { diff --git a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/MiningModelTest.java b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/MiningModelTest.java similarity index 87% rename from kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/MiningModelTest.java rename to kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/MiningModelTest.java index 0ae7f7a31f..1a90f016be 100644 --- a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/MiningModelTest.java +++ b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/MiningModelTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.quarkus.example; +package org.acme.dmn.pmml.quarkus.example; import java.util.Collections; import java.util.Map; @@ -23,8 +23,8 @@ import io.quarkus.test.junit.QuarkusTest; import io.restassured.RestAssured; -import static org.kie.kogito.dmn.pmml.quarkus.example.CommonTestUtils.testDescriptive; -import static org.kie.kogito.dmn.pmml.quarkus.example.CommonTestUtils.testResult; +import static org.acme.dmn.pmml.quarkus.example.CommonTestUtils.testDescriptive; +import static org.acme.dmn.pmml.quarkus.example.CommonTestUtils.testResult; @QuarkusTest public class MiningModelTest { diff --git a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/NativeDMNRegressionIT.java b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/NativeDMNRegressionIT.java similarity index 94% rename from kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/NativeDMNRegressionIT.java rename to kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/NativeDMNRegressionIT.java index 1c752f6d62..ae9c8d5bb5 100644 --- a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/NativeDMNRegressionIT.java +++ b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/NativeDMNRegressionIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.quarkus.example; +package org.acme.dmn.pmml.quarkus.example; import io.quarkus.test.junit.NativeImageTest; diff --git a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/NativeDMNTreeIT.java b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/NativeDMNTreeIT.java similarity index 94% rename from kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/NativeDMNTreeIT.java rename to kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/NativeDMNTreeIT.java index 174768ce4c..2f725fb7e8 100644 --- a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/NativeDMNTreeIT.java +++ b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/NativeDMNTreeIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.quarkus.example; +package org.acme.dmn.pmml.quarkus.example; import io.quarkus.test.junit.NativeImageTest; diff --git a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/NativeDecisionTreeIT.java b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/NativeDecisionTreeIT.java similarity index 94% rename from kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/NativeDecisionTreeIT.java rename to kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/NativeDecisionTreeIT.java index c227f3ff26..9bfa69daf3 100644 --- a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/NativeDecisionTreeIT.java +++ b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/NativeDecisionTreeIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.quarkus.example; +package org.acme.dmn.pmml.quarkus.example; import io.quarkus.test.junit.NativeImageTest; diff --git a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/NativeLinRegIT.java b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/NativeLinRegIT.java similarity index 94% rename from kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/NativeLinRegIT.java rename to kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/NativeLinRegIT.java index 1718164ec6..fc2b31e770 100644 --- a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/NativeLinRegIT.java +++ b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/NativeLinRegIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.quarkus.example; +package org.acme.dmn.pmml.quarkus.example; import io.quarkus.test.junit.NativeImageTest; diff --git a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/ScoreCardTest.java b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/ScoreCardTest.java similarity index 88% rename from kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/ScoreCardTest.java rename to kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/ScoreCardTest.java index 6e0b31b918..fd83909e8a 100644 --- a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/ScoreCardTest.java +++ b/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/acme/dmn/pmml/quarkus/example/ScoreCardTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.quarkus.example; +package org.acme.dmn.pmml.quarkus.example; import java.util.Collections; import java.util.Map; @@ -23,8 +23,8 @@ import io.quarkus.test.junit.QuarkusTest; import io.restassured.RestAssured; -import static org.kie.kogito.dmn.pmml.quarkus.example.CommonTestUtils.testDescriptive; -import static org.kie.kogito.dmn.pmml.quarkus.example.CommonTestUtils.testResult; +import static org.acme.dmn.pmml.quarkus.example.CommonTestUtils.testDescriptive; +import static org.acme.dmn.pmml.quarkus.example.CommonTestUtils.testResult; @QuarkusTest public class ScoreCardTest { diff --git a/kogito-quarkus-examples/dmn-quarkus-example/pom.xml b/kogito-quarkus-examples/dmn-quarkus-example/pom.xml index 38ccc03702..c5bf7e88ca 100644 --- a/kogito-quarkus-examples/dmn-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/dmn-quarkus-example/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/dmn-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/NativeTrafficViolationIT.java b/kogito-quarkus-examples/dmn-quarkus-example/src/test/java/org/acme/dmn/quarkus/example/NativeTrafficViolationIT.java similarity index 94% rename from kogito-quarkus-examples/dmn-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/NativeTrafficViolationIT.java rename to kogito-quarkus-examples/dmn-quarkus-example/src/test/java/org/acme/dmn/quarkus/example/NativeTrafficViolationIT.java index cbd459afc1..bc12ed7e95 100644 --- a/kogito-quarkus-examples/dmn-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/NativeTrafficViolationIT.java +++ b/kogito-quarkus-examples/dmn-quarkus-example/src/test/java/org/acme/dmn/quarkus/example/NativeTrafficViolationIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.quarkus.example; +package org.acme.dmn.quarkus.example; import io.quarkus.test.junit.NativeImageTest; diff --git a/kogito-quarkus-examples/dmn-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/TrafficViolationTest.java b/kogito-quarkus-examples/dmn-quarkus-example/src/test/java/org/acme/dmn/quarkus/example/TrafficViolationTest.java similarity index 97% rename from kogito-quarkus-examples/dmn-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/TrafficViolationTest.java rename to kogito-quarkus-examples/dmn-quarkus-example/src/test/java/org/acme/dmn/quarkus/example/TrafficViolationTest.java index b72795ac34..39baf3b5db 100644 --- a/kogito-quarkus-examples/dmn-quarkus-example/src/test/java/org/kie/kogito/dmn/quarkus/example/TrafficViolationTest.java +++ b/kogito-quarkus-examples/dmn-quarkus-example/src/test/java/org/acme/dmn/quarkus/example/TrafficViolationTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.quarkus.example; +package org.acme.dmn.quarkus.example; import org.junit.jupiter.api.Test; diff --git a/kogito-quarkus-examples/dmn-tracing-quarkus/pom.xml b/kogito-quarkus-examples/dmn-tracing-quarkus/pom.xml index 07fc0c4cec..d0c440240a 100644 --- a/kogito-quarkus-examples/dmn-tracing-quarkus/pom.xml +++ b/kogito-quarkus-examples/dmn-tracing-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/tracing/LoanEligibilityIT.java b/kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/acme/dmn/quarkus/tracing/LoanEligibilityIT.java similarity index 95% rename from kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/tracing/LoanEligibilityIT.java rename to kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/acme/dmn/quarkus/tracing/LoanEligibilityIT.java index 22ade7e8f9..4b4ed75b4d 100644 --- a/kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/tracing/LoanEligibilityIT.java +++ b/kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/acme/dmn/quarkus/tracing/LoanEligibilityIT.java @@ -13,11 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.quarkus.tracing; +package org.acme.dmn.quarkus.tracing; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; +import org.acme.dmn.quarkus.tracing.matcher.StringMatchesUUIDPattern; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -38,7 +39,6 @@ import static org.hamcrest.Matchers.is; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.fail; -import static org.kie.kogito.dmn.quarkus.tracing.matcher.StringMatchesUUIDPattern.matchesThePatternOfAUUID; @QuarkusTest @QuarkusTestResource(KafkaQuarkusTestResource.class) @@ -100,7 +100,7 @@ public void testEvaluateLoanEligibility() throws InterruptedException { .post("/LoanEligibility") .then() .statusCode(200) - .header(KOGITO_EXECUTION_ID_HEADER, matchesThePatternOfAUUID()) + .header(KOGITO_EXECUTION_ID_HEADER, StringMatchesUUIDPattern.matchesThePatternOfAUUID()) .body("'Decide'", is(true)); countDownLatch.await(5, TimeUnit.SECONDS); diff --git a/kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/tracing/NativeLoanEligibilityIT.java b/kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/acme/dmn/quarkus/tracing/NativeLoanEligibilityIT.java similarity index 95% rename from kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/tracing/NativeLoanEligibilityIT.java rename to kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/acme/dmn/quarkus/tracing/NativeLoanEligibilityIT.java index 75cb111740..48b84a051d 100644 --- a/kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/tracing/NativeLoanEligibilityIT.java +++ b/kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/acme/dmn/quarkus/tracing/NativeLoanEligibilityIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.quarkus.tracing; +package org.acme.dmn.quarkus.tracing; import org.kie.kogito.testcontainers.quarkus.KafkaQuarkusTestResource; diff --git a/kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/tracing/matcher/StringMatchesUUIDPattern.java b/kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/acme/dmn/quarkus/tracing/matcher/StringMatchesUUIDPattern.java similarity index 96% rename from kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/tracing/matcher/StringMatchesUUIDPattern.java rename to kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/acme/dmn/quarkus/tracing/matcher/StringMatchesUUIDPattern.java index c1f9f3398e..19ef236de9 100644 --- a/kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/kie/kogito/dmn/quarkus/tracing/matcher/StringMatchesUUIDPattern.java +++ b/kogito-quarkus-examples/dmn-tracing-quarkus/src/test/java/org/acme/dmn/quarkus/tracing/matcher/StringMatchesUUIDPattern.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.quarkus.tracing.matcher; +package org.acme.dmn.quarkus.tracing.matcher; import org.hamcrest.Description; import org.hamcrest.Matcher; diff --git a/kogito-quarkus-examples/flexible-process-quarkus/pom.xml b/kogito-quarkus-examples/flexible-process-quarkus/pom.xml index f59b52e1f0..ee8085a983 100644 --- a/kogito-quarkus-examples/flexible-process-quarkus/pom.xml +++ b/kogito-quarkus-examples/flexible-process-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/model/Comment.java b/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/model/Comment.java similarity index 97% rename from kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/model/Comment.java rename to kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/model/Comment.java index c6e924361e..cfbae34857 100644 --- a/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/model/Comment.java +++ b/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/model/Comment.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.flexible.example.model; +package org.acme.flexible.example.model; import java.time.ZonedDateTime; diff --git a/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/model/Product.java b/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/model/Product.java similarity index 96% rename from kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/model/Product.java rename to kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/model/Product.java index 9efe281bc8..a9a6e7f4e5 100644 --- a/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/model/Product.java +++ b/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/model/Product.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.flexible.example.model; +package org.acme.flexible.example.model; public class Product { diff --git a/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/model/Questionnaire.java b/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/model/Questionnaire.java similarity index 97% rename from kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/model/Questionnaire.java rename to kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/model/Questionnaire.java index 67d71a3b12..10d104120e 100644 --- a/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/model/Questionnaire.java +++ b/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/model/Questionnaire.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.flexible.example.model; +package org.acme.flexible.example.model; import java.time.ZonedDateTime; diff --git a/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/model/State.java b/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/model/State.java similarity index 93% rename from kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/model/State.java rename to kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/model/State.java index 29b47e5ed5..f0d9c410fe 100644 --- a/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/model/State.java +++ b/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/model/State.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.flexible.example.model; +package org.acme.flexible.example.model; public enum State { NEW, diff --git a/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/model/SupportCase.java b/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/model/SupportCase.java similarity index 95% rename from kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/model/SupportCase.java rename to kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/model/SupportCase.java index 251a49e459..d42d930439 100644 --- a/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/model/SupportCase.java +++ b/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/model/SupportCase.java @@ -13,21 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.flexible.example.model; +package org.acme.flexible.example.model; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; -import static org.kie.kogito.flexible.example.model.State.NEW; - public class SupportCase { private Product product; private String description; private String engineer; private String customer; - private State state = NEW; + private State state = State.NEW; private List comments; private Questionnaire questionnaire; diff --git a/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/service/CommentService.java b/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/service/CommentService.java similarity index 71% rename from kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/service/CommentService.java rename to kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/service/CommentService.java index 70061b61cb..b79dcb0c27 100644 --- a/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/service/CommentService.java +++ b/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/service/CommentService.java @@ -13,26 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.flexible.example.service; +package org.acme.flexible.example.service; import javax.enterprise.context.ApplicationScoped; -import org.kie.kogito.flexible.example.model.Comment; -import org.kie.kogito.flexible.example.model.State; -import org.kie.kogito.flexible.example.model.SupportCase; - -import static org.kie.kogito.flexible.example.model.State.WAITING_FOR_CUSTOMER; -import static org.kie.kogito.flexible.example.model.State.WAITING_FOR_OWNER; +import org.acme.flexible.example.model.Comment; +import org.acme.flexible.example.model.State; +import org.acme.flexible.example.model.SupportCase; @ApplicationScoped public class CommentService { public SupportCase addCustomerComment(SupportCase supportCase, String comment, String author) { - return addComment(supportCase, author, comment, WAITING_FOR_OWNER); + return addComment(supportCase, author, comment, State.WAITING_FOR_OWNER); } public SupportCase addSupportComment(SupportCase supportCase, String comment, String author) { - return addComment(supportCase, author, comment, WAITING_FOR_CUSTOMER); + return addComment(supportCase, author, comment, State.WAITING_FOR_CUSTOMER); } private SupportCase addComment(SupportCase supportCase, String author, String comment, State newState) { diff --git a/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/service/StateService.java b/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/service/StateService.java similarity index 84% rename from kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/service/StateService.java rename to kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/service/StateService.java index 68d512c101..f2fb019f1c 100644 --- a/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/service/StateService.java +++ b/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/service/StateService.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.flexible.example.service; +package org.acme.flexible.example.service; import javax.enterprise.context.ApplicationScoped; -import org.kie.kogito.flexible.example.model.Questionnaire; -import org.kie.kogito.flexible.example.model.State; -import org.kie.kogito.flexible.example.model.SupportCase; +import org.acme.flexible.example.model.Questionnaire; +import org.acme.flexible.example.model.State; +import org.acme.flexible.example.model.SupportCase; @ApplicationScoped public class StateService { diff --git a/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/service/TriageService.java b/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/service/TriageService.java similarity index 93% rename from kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/service/TriageService.java rename to kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/service/TriageService.java index 2f98e73717..6c0de6bc8f 100644 --- a/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/service/TriageService.java +++ b/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/acme/flexible/example/service/TriageService.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.flexible.example.service; +package org.acme.flexible.example.service; import java.util.Random; import javax.enterprise.context.ApplicationScoped; -import org.kie.kogito.flexible.example.model.State; -import org.kie.kogito.flexible.example.model.SupportCase; +import org.acme.flexible.example.model.State; +import org.acme.flexible.example.model.SupportCase; @ApplicationScoped public class TriageService { diff --git a/kogito-quarkus-examples/flexible-process-quarkus/src/main/resources/service-desk.bpmn b/kogito-quarkus-examples/flexible-process-quarkus/src/main/resources/service-desk.bpmn index b172529784..1823b8534d 100644 --- a/kogito-quarkus-examples/flexible-process-quarkus/src/main/resources/service-desk.bpmn +++ b/kogito-quarkus-examples/flexible-process-quarkus/src/main/resources/service-desk.bpmn @@ -1,17 +1,17 @@ - + - + - + - - + + - + @@ -56,10 +56,10 @@ - + - + @@ -72,42 +72,42 @@ - - - + + + - - + + - + - - - + + + - + - + - + - + - + - + @@ -167,7 +167,7 @@ - + @@ -175,8 +175,8 @@ _C651F6F2-8C0D-4E9A-94B3-0BB337536F51 - - + + _5DCB19C5-63B3-4846-A8C7-9E383306E915_supportCaseInputX @@ -296,7 +296,7 @@ supportGroup - + @@ -305,9 +305,9 @@ _4D493B33-AE13-464F-B7F5-4A7A9A9044BA _5CF61231-028A-4E4A-AC50-01C1737FEC0A - + - + _D17F5E0D-779E-4AF4-9E33-6E37D8F54DA7_supportCaseInputX _D17F5E0D-779E-4AF4-9E33-6E37D8F54DA7_supportGroupInputX @@ -337,7 +337,7 @@ _6B10C12D-99D4-4758-B2D3-32D8E527A287 _28168759-AF8E-47D3-9FEA-8095507ABEB7 - + @@ -345,9 +345,9 @@ _DBE81078-2C21-4128-ADDE-CA5E170F0792 - + - + _26E99F98-8E2E-4321-98A7-BE7570FF0BD2_supportCaseInputX _26E99F98-8E2E-4321-98A7-BE7570FF0BD2_supportGroupInputX @@ -382,10 +382,10 @@ _DBE81078-2C21-4128-ADDE-CA5E170F0792 - + - + _BACB7C86-E7FA-4E2B-931A-CC02C812A698_TaskNameInputX _BACB7C86-E7FA-4E2B-931A-CC02C812A698_supportCaseInputX @@ -448,7 +448,7 @@ - + @@ -456,10 +456,10 @@ _56AFC157-45AE-44E0-A94D-52AE95EFC74B - + - + _BEAA2A42-CD36-4A08-BB42-4823EAA5C137_supportCaseInputX _BEAA2A42-CD36-4A08-BB42-4823EAA5C137_evaluationInputX @@ -667,7 +667,7 @@ author - + @@ -675,10 +675,10 @@ _D49DA468-8A7B-4688-A8DB-5B09D1AE22B1 - + - + _5B1A92B6-7044-4C8B-9011-62CD592F255F_supportCaseInputX _5B1A92B6-7044-4C8B-9011-62CD592F255F_commentInputX @@ -705,7 +705,7 @@ supportCase - + @@ -713,10 +713,10 @@ _021482FA-6264-4060-B11B-ABD91159122A - + - + _D514F716-3F06-468F-A487-892F6089C776_supportCaseInputX _D514F716-3F06-468F-A487-892F6089C776_commentInputX @@ -743,7 +743,7 @@ supportCase - + diff --git a/kogito-quarkus-examples/flexible-process-quarkus/src/test/java/org/kie/kogito/flexible/example/quarkus/ServiceDeskProcessTest.java b/kogito-quarkus-examples/flexible-process-quarkus/src/test/java/org/acme/flexible/example/quarkus/ServiceDeskProcessTest.java similarity index 96% rename from kogito-quarkus-examples/flexible-process-quarkus/src/test/java/org/kie/kogito/flexible/example/quarkus/ServiceDeskProcessTest.java rename to kogito-quarkus-examples/flexible-process-quarkus/src/test/java/org/acme/flexible/example/quarkus/ServiceDeskProcessTest.java index 085ece400b..5002eebc87 100644 --- a/kogito-quarkus-examples/flexible-process-quarkus/src/test/java/org/kie/kogito/flexible/example/quarkus/ServiceDeskProcessTest.java +++ b/kogito-quarkus-examples/flexible-process-quarkus/src/test/java/org/acme/flexible/example/quarkus/ServiceDeskProcessTest.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.flexible.example.quarkus; +package org.acme.flexible.example.quarkus; import java.util.HashMap; import java.util.List; import java.util.Map; +import org.acme.flexible.example.model.Product; +import org.acme.flexible.example.model.State; +import org.acme.flexible.example.model.SupportCase; +import org.acme.flexible.example.service.TriageService; import org.junit.jupiter.api.Test; -import org.kie.kogito.flexible.example.model.Product; -import org.kie.kogito.flexible.example.model.State; -import org.kie.kogito.flexible.example.model.SupportCase; -import org.kie.kogito.flexible.example.service.TriageService; import io.quarkus.test.junit.QuarkusTest; import io.restassured.RestAssured; diff --git a/kogito-quarkus-examples/kogito-travel-agency/basic/pom.xml b/kogito-quarkus-examples/kogito-travel-agency/basic/pom.xml index ed8b1ecb54..0822ada8ff 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/basic/pom.xml +++ b/kogito-quarkus-examples/kogito-travel-agency/basic/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-travel-agency-example 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/pom.xml b/kogito-quarkus-examples/kogito-travel-agency/extended/pom.xml index c95c812518..22d75863f6 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/pom.xml +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-travel-agency-example 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/travels/pom.xml b/kogito-quarkus-examples/kogito-travel-agency/extended/travels/pom.xml index 374e4df4b2..ca30c2e53c 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/travels/pom.xml +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/travels/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-travel-agency-example-extended 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/travels/src/main/java/org/kie/kogito/app/VertxRouter.java b/kogito-quarkus-examples/kogito-travel-agency/extended/travels/src/main/java/org/acme/app/VertxRouter.java similarity index 98% rename from kogito-quarkus-examples/kogito-travel-agency/extended/travels/src/main/java/org/kie/kogito/app/VertxRouter.java rename to kogito-quarkus-examples/kogito-travel-agency/extended/travels/src/main/java/org/acme/app/VertxRouter.java index 5a5f7ed9b4..7032a2efc0 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/travels/src/main/java/org/kie/kogito/app/VertxRouter.java +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/travels/src/main/java/org/acme/app/VertxRouter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.app; +package org.acme.app; import javax.enterprise.context.ApplicationScoped; import javax.enterprise.event.Observes; diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/pom.xml b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/pom.xml index 8e8342f2a6..92018856e5 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/pom.xml +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-travel-agency-example-extended 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/kie/kogito/app/ProcessEventListenerConfig.java b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/acme/app/ProcessEventListenerConfig.java similarity index 98% rename from kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/kie/kogito/app/ProcessEventListenerConfig.java rename to kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/acme/app/ProcessEventListenerConfig.java index e49595a347..bd0b973b30 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/kie/kogito/app/ProcessEventListenerConfig.java +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/acme/app/ProcessEventListenerConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.app; +package org.acme.app; import javax.annotation.PostConstruct; import javax.annotation.PreDestroy; diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/kie/kogito/app/VertxRouter.java b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/acme/app/VertxRouter.java similarity index 98% rename from kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/kie/kogito/app/VertxRouter.java rename to kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/acme/app/VertxRouter.java index 20705faa7f..868ac07a23 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/kie/kogito/app/VertxRouter.java +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/acme/app/VertxRouter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.app; +package org.acme.app; import javax.enterprise.context.ApplicationScoped; import javax.enterprise.event.Observes; diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/kie/kogito/app/VisaApplicationPrometheusProcessEventListener.java b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/acme/app/VisaApplicationPrometheusProcessEventListener.java similarity index 99% rename from kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/kie/kogito/app/VisaApplicationPrometheusProcessEventListener.java rename to kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/acme/app/VisaApplicationPrometheusProcessEventListener.java index 2cc9c2589f..7a500426e8 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/kie/kogito/app/VisaApplicationPrometheusProcessEventListener.java +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/acme/app/VisaApplicationPrometheusProcessEventListener.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.app; +package org.acme.app; import java.util.Arrays; diff --git a/kogito-quarkus-examples/kogito-travel-agency/pom.xml b/kogito-quarkus-examples/kogito-travel-agency/pom.xml index 57f6d1b31d..ee635a998a 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/pom.xml +++ b/kogito-quarkus-examples/kogito-travel-agency/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/onboarding-example/hr/pom.xml b/kogito-quarkus-examples/onboarding-example/hr/pom.xml index e3d2c3b14a..2d54e38960 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/pom.xml +++ b/kogito-quarkus-examples/onboarding-example/hr/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples onboarding-example 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/Address.java b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/Address.java similarity index 98% rename from kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/Address.java rename to kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/Address.java index 94a7ba8b44..4bb3f6a879 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/Address.java +++ b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/Address.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.hr; +package org.acme.examples.hr; /** * This class was automatically generated by the data modeler tool. diff --git a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/Department.java b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/Department.java similarity index 96% rename from kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/Department.java rename to kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/Department.java index 6a81ab81b8..8c6a220493 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/Department.java +++ b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/Department.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.hr; +package org.acme.examples.hr; import org.drools.ruleunits.api.DataSource; import org.drools.ruleunits.api.RuleUnitData; diff --git a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/DepartmentModel.java b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/DepartmentModel.java similarity index 83% rename from kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/DepartmentModel.java rename to kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/DepartmentModel.java index 01d41385c6..cac635d8c2 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/DepartmentModel.java +++ b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/DepartmentModel.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.hr; +package org.acme.examples.hr; public class DepartmentModel { - private org.kie.kogito.examples.hr.Employee employee; + private Employee employee; - public org.kie.kogito.examples.hr.Employee getEmployee() { + public Employee getEmployee() { return employee; } - public void setEmployee(org.kie.kogito.examples.hr.Employee employee) { + public void setEmployee(Employee employee) { this.employee = employee; } diff --git a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/Employee.java b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/Employee.java similarity index 89% rename from kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/Employee.java rename to kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/Employee.java index 14c0638513..deebc384d0 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/Employee.java +++ b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/Employee.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.hr; +package org.acme.examples.hr; public class Employee implements java.io.Serializable { @@ -24,7 +24,7 @@ public class Employee implements java.io.Serializable { private java.lang.String personalId; private java.util.Date birthDate; - private org.kie.kogito.examples.hr.Address address; + private Address address; public Employee() { } @@ -61,11 +61,11 @@ public void setBirthDate(java.util.Date birthDate) { this.birthDate = birthDate; } - public org.kie.kogito.examples.hr.Address getAddress() { + public Address getAddress() { return this.address; } - public void setAddress(org.kie.kogito.examples.hr.Address address) { + public void setAddress(Address address) { this.address = address; } @@ -91,7 +91,7 @@ public void setDepartment(java.lang.String department) { public Employee(java.lang.String firstName, java.lang.String lastName, java.lang.String personalId, java.util.Date birthDate, - org.kie.kogito.examples.hr.Address address) { + Address address) { this.firstName = firstName; this.lastName = lastName; this.personalId = personalId; diff --git a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/EmployeeRepository.java b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/EmployeeRepository.java similarity index 97% rename from kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/EmployeeRepository.java rename to kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/EmployeeRepository.java index 40c3c4ce67..1782cc3dc4 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/EmployeeRepository.java +++ b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/EmployeeRepository.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.hr; +package org.acme.examples.hr; import java.util.HashSet; import java.util.Set; diff --git a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/EmployeeValidation.java b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/EmployeeValidation.java similarity index 97% rename from kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/EmployeeValidation.java rename to kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/EmployeeValidation.java index 716517e158..1342194b9f 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/EmployeeValidation.java +++ b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/EmployeeValidation.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.hr; +package org.acme.examples.hr; import org.drools.ruleunits.api.DataSource; import org.drools.ruleunits.api.RuleUnitData; diff --git a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/EmployeeValidationModel.java b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/EmployeeValidationModel.java similarity index 85% rename from kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/EmployeeValidationModel.java rename to kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/EmployeeValidationModel.java index d0fc58b177..718e2b6ea7 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/EmployeeValidationModel.java +++ b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/EmployeeValidationModel.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.hr; +package org.acme.examples.hr; public class EmployeeValidationModel { - private org.kie.kogito.examples.hr.Employee employee; + private Employee employee; - public org.kie.kogito.examples.hr.Employee getEmployee() { + public Employee getEmployee() { return employee; } - public void setEmployee(org.kie.kogito.examples.hr.Employee employee) { + public void setEmployee(Employee employee) { this.employee = employee; } diff --git a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/IdModel.java b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/IdModel.java similarity index 83% rename from kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/IdModel.java rename to kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/IdModel.java index cb356501d5..f4335b6a7d 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/IdModel.java +++ b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/IdModel.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.hr; +package org.acme.examples.hr; public class IdModel { - private org.kie.kogito.examples.hr.Employee employee; + private Employee employee; - public org.kie.kogito.examples.hr.Employee getEmployee() { + public Employee getEmployee() { return employee; } - public void setEmployee(org.kie.kogito.examples.hr.Employee employee) { + public void setEmployee(Employee employee) { this.employee = employee; } diff --git a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/IdResource.java b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/IdResource.java similarity index 96% rename from kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/IdResource.java rename to kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/IdResource.java index b34a44c828..0e602288ff 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/kie/kogito/examples/hr/IdResource.java +++ b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/IdResource.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.hr; +package org.acme.examples.hr; import javax.ws.rs.Consumes; import javax.ws.rs.POST; diff --git a/kogito-quarkus-examples/onboarding-example/hr/src/main/resources/org/kie/kogito/examples/hr/department.drl b/kogito-quarkus-examples/onboarding-example/hr/src/main/resources/org/acme/examples/hr/department.drl similarity index 97% rename from kogito-quarkus-examples/onboarding-example/hr/src/main/resources/org/kie/kogito/examples/hr/department.drl rename to kogito-quarkus-examples/onboarding-example/hr/src/main/resources/org/acme/examples/hr/department.drl index 486b1b9d24..6370350dd8 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/src/main/resources/org/kie/kogito/examples/hr/department.drl +++ b/kogito-quarkus-examples/onboarding-example/hr/src/main/resources/org/acme/examples/hr/department.drl @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.hr +package org.acme.examples.hr unit Department; query department diff --git a/kogito-quarkus-examples/onboarding-example/hr/src/main/resources/org/kie/kogito/examples/hr/employeeValidation.drl b/kogito-quarkus-examples/onboarding-example/hr/src/main/resources/org/acme/examples/hr/employeeValidation.drl similarity index 97% rename from kogito-quarkus-examples/onboarding-example/hr/src/main/resources/org/kie/kogito/examples/hr/employeeValidation.drl rename to kogito-quarkus-examples/onboarding-example/hr/src/main/resources/org/acme/examples/hr/employeeValidation.drl index 3c13c020be..82d5e60fec 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/src/main/resources/org/kie/kogito/examples/hr/employeeValidation.drl +++ b/kogito-quarkus-examples/onboarding-example/hr/src/main/resources/org/acme/examples/hr/employeeValidation.drl @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.hr; +package org.acme.examples.hr; unit EmployeeValidation; query employeeValidation diff --git a/kogito-quarkus-examples/onboarding-example/hr/src/test/java/org/kie/kogito/examples/hr/DepartmentTest.java b/kogito-quarkus-examples/onboarding-example/hr/src/test/java/org/acme/examples/hr/DepartmentTest.java similarity index 97% rename from kogito-quarkus-examples/onboarding-example/hr/src/test/java/org/kie/kogito/examples/hr/DepartmentTest.java rename to kogito-quarkus-examples/onboarding-example/hr/src/test/java/org/acme/examples/hr/DepartmentTest.java index 573df95423..4feb74ea8e 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/src/test/java/org/kie/kogito/examples/hr/DepartmentTest.java +++ b/kogito-quarkus-examples/onboarding-example/hr/src/test/java/org/acme/examples/hr/DepartmentTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.hr; +package org.acme.examples.hr; import org.junit.jupiter.api.Test; diff --git a/kogito-quarkus-examples/onboarding-example/hr/src/test/java/org/kie/kogito/examples/hr/EmployeeValidationTest.java b/kogito-quarkus-examples/onboarding-example/hr/src/test/java/org/acme/examples/hr/EmployeeValidationTest.java similarity index 97% rename from kogito-quarkus-examples/onboarding-example/hr/src/test/java/org/kie/kogito/examples/hr/EmployeeValidationTest.java rename to kogito-quarkus-examples/onboarding-example/hr/src/test/java/org/acme/examples/hr/EmployeeValidationTest.java index ad779ba07b..ca25f39f2b 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/src/test/java/org/kie/kogito/examples/hr/EmployeeValidationTest.java +++ b/kogito-quarkus-examples/onboarding-example/hr/src/test/java/org/acme/examples/hr/EmployeeValidationTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.hr; +package org.acme.examples.hr; import org.junit.jupiter.api.Test; diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/pom.xml b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/pom.xml index 18712bc1c0..4801153dce 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/pom.xml +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples onboarding-example 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/kie/kogito/examples/BaseWorkItemHandlerConfig.java b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/BaseWorkItemHandlerConfig.java similarity index 97% rename from kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/kie/kogito/examples/BaseWorkItemHandlerConfig.java rename to kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/BaseWorkItemHandlerConfig.java index cf8e63d123..58950f438c 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/kie/kogito/examples/BaseWorkItemHandlerConfig.java +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/BaseWorkItemHandlerConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.util.ArrayList; import java.util.Arrays; @@ -25,12 +25,12 @@ import javax.annotation.PostConstruct; import javax.inject.Inject; +import org.acme.examples.onboarding.DecisionTaskWorkItemHandler; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.kie.kogito.addons.k8s.Endpoint; import org.kie.kogito.addons.k8s.EndpointQueryKey; import org.kie.kogito.addons.k8s.LocalEndpointDiscovery; import org.kie.kogito.addons.quarkus.k8s.workitems.QuarkusDiscoveredEndpointCaller; -import org.kie.kogito.examples.onboarding.DecisionTaskWorkItemHandler; import org.kie.kogito.internal.process.runtime.KogitoWorkItemHandler; import org.kie.kogito.process.impl.DefaultWorkItemHandlerConfig; diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/kie/kogito/examples/WorkItemHandlerConfig.java b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/WorkItemHandlerConfig.java similarity index 95% rename from kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/kie/kogito/examples/WorkItemHandlerConfig.java rename to kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/WorkItemHandlerConfig.java index a56957ec57..94380745a5 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/kie/kogito/examples/WorkItemHandlerConfig.java +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/WorkItemHandlerConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import javax.enterprise.context.ApplicationScoped; diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/kie/kogito/examples/onboarding/Address.java b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Address.java similarity index 97% rename from kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/kie/kogito/examples/onboarding/Address.java rename to kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Address.java index e96eef01e6..b834e1b17c 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/kie/kogito/examples/onboarding/Address.java +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Address.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.onboarding; +package org.acme.examples.onboarding; /** * This class was automatically generated by the data modeler tool. diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/kie/kogito/examples/onboarding/DecisionTaskWorkItemHandler.java b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/DecisionTaskWorkItemHandler.java similarity index 97% rename from kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/kie/kogito/examples/onboarding/DecisionTaskWorkItemHandler.java rename to kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/DecisionTaskWorkItemHandler.java index 5caf31508f..b827fc80fb 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/kie/kogito/examples/onboarding/DecisionTaskWorkItemHandler.java +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/DecisionTaskWorkItemHandler.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.onboarding; +package org.acme.examples.onboarding; import java.util.Map; diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/kie/kogito/examples/onboarding/Employee.java b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Employee.java similarity index 86% rename from kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/kie/kogito/examples/onboarding/Employee.java rename to kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Employee.java index 8aaab4b07a..44e6c2b905 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/kie/kogito/examples/onboarding/Employee.java +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Employee.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.onboarding; +package org.acme.examples.onboarding; /** * This class was automatically generated by the data modeler tool. @@ -28,7 +28,7 @@ public class Employee implements java.io.Serializable { private java.lang.String personalId; private java.util.Date birthDate; - private org.kie.kogito.examples.onboarding.Address address; + private Address address; public Employee() { } @@ -65,17 +65,17 @@ public void setBirthDate(java.util.Date birthDate) { this.birthDate = birthDate; } - public org.kie.kogito.examples.onboarding.Address getAddress() { + public Address getAddress() { return this.address; } - public void setAddress(org.kie.kogito.examples.onboarding.Address address) { + public void setAddress(Address address) { this.address = address; } public Employee(java.lang.String firstName, java.lang.String lastName, java.lang.String personalId, java.util.Date birthDate, - org.kie.kogito.examples.onboarding.Address address) { + Address address) { this.firstName = firstName; this.lastName = lastName; this.personalId = personalId; diff --git a/kogito-springboot-examples/onboarding-springboot/src/main/java/org/kie/kogito/examples/onboarding/Payroll.java b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Payroll.java similarity index 97% rename from kogito-springboot-examples/onboarding-springboot/src/main/java/org/kie/kogito/examples/onboarding/Payroll.java rename to kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Payroll.java index d3a99a24e7..60655f3fa8 100644 --- a/kogito-springboot-examples/onboarding-springboot/src/main/java/org/kie/kogito/examples/onboarding/Payroll.java +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Payroll.java @@ -13,13 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.onboarding; +package org.acme.examples.onboarding; import com.fasterxml.jackson.annotation.JsonFormat; /** * This class was automatically generated by the data modeler tool. */ + public class Payroll implements java.io.Serializable { static final long serialVersionUID = 1L; diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/kie/kogito/examples/onboarding/DecisionTasks.wid b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/acme/examples/onboarding/DecisionTasks.wid similarity index 100% rename from kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/kie/kogito/examples/onboarding/DecisionTasks.wid rename to kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/acme/examples/onboarding/DecisionTasks.wid diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/kie/kogito/examples/onboarding/onboarding.bpmn b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/acme/examples/onboarding/onboarding.bpmn similarity index 95% rename from kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/kie/kogito/examples/onboarding/onboarding.bpmn rename to kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/acme/examples/onboarding/onboarding.bpmn index c82b0acf00..a472a9b3ce 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/kie/kogito/examples/onboarding/onboarding.bpmn +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/acme/examples/onboarding/onboarding.bpmn @@ -1,7 +1,7 @@ - - + + @@ -13,15 +13,15 @@ - - + + - + - + @@ -32,15 +32,15 @@ - + - + - + @@ -125,9 +125,9 @@ _44ABA3C5-9A26-4843-B03B-99C2C0251707 - + - + @@ -209,7 +209,7 @@ _D5E3808E-4D68-4B8F-939D-17C7643E58FD _D32B4A20-53D1-46F3-95F6-276A2392931F - + @@ -248,7 +248,7 @@ - + @@ -314,8 +314,8 @@ _DF6979D3-AFD3-4BC8-A866-8B9214F7F0FB _BB67B9E9-611B-4B17-A6F9-3CD4DCA4B249 - - + + _9D7A4927-BFCB-4F17-A4D4-E3D03B3FBE49_employeeInputX @@ -353,7 +353,7 @@ - + diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/kie/kogito/examples/onboarding/setupHR.bpmn b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/acme/examples/onboarding/setupHR.bpmn similarity index 96% rename from kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/kie/kogito/examples/onboarding/setupHR.bpmn rename to kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/acme/examples/onboarding/setupHR.bpmn index 6197ea0873..e5ecbd9828 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/kie/kogito/examples/onboarding/setupHR.bpmn +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/acme/examples/onboarding/setupHR.bpmn @@ -1,15 +1,15 @@ - + - + - + @@ -50,7 +50,7 @@ - + diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/kie/kogito/examples/onboarding/setupPayroll.bpmn b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/acme/examples/onboarding/setupPayroll.bpmn similarity index 96% rename from kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/kie/kogito/examples/onboarding/setupPayroll.bpmn rename to kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/acme/examples/onboarding/setupPayroll.bpmn index 1b8d288b15..09f2350df7 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/kie/kogito/examples/onboarding/setupPayroll.bpmn +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/org/acme/examples/onboarding/setupPayroll.bpmn @@ -1,27 +1,27 @@ - - + + - + - + - + - + @@ -96,7 +96,7 @@ - + @@ -172,7 +172,7 @@ - + @@ -243,7 +243,7 @@ - + @@ -302,7 +302,7 @@ _7B55F281-D560-4130-88C9-177C960E8682 SequenceFlow_3 - org.kie.kogito.examples.onboarding.Payroll empPayroll = new org.kie.kogito.examples.onboarding.Payroll(vacationDays, taxRate, paymentDate); + org.acme.examples.onboarding.Payroll empPayroll = new org.acme.examples.onboarding.Payroll(vacationDays, taxRate, paymentDate); kcontext.setVariable("payroll", empPayroll); diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/kie/kogito/examples/WorkItemHandlerConfig.java b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/acme/examples/WorkItemHandlerConfig.java similarity index 91% rename from kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/kie/kogito/examples/WorkItemHandlerConfig.java rename to kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/acme/examples/WorkItemHandlerConfig.java index e773e73879..8f3ebe2026 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/kie/kogito/examples/WorkItemHandlerConfig.java +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/acme/examples/WorkItemHandlerConfig.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; -import org.kie.kogito.examples.test.RecordedOutputWorkItemHandler; +import org.acme.examples.test.RecordedOutputWorkItemHandler; import org.kie.kogito.internal.process.runtime.KogitoWorkItemHandler; public class WorkItemHandlerConfig extends BaseWorkItemHandlerConfig { diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/kie/kogito/examples/onboarding/OnboardingEndpointIT.java b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/acme/examples/onboarding/OnboardingEndpointIT.java similarity index 98% rename from kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/kie/kogito/examples/onboarding/OnboardingEndpointIT.java rename to kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/acme/examples/onboarding/OnboardingEndpointIT.java index 31e5150554..e933b09dfc 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/kie/kogito/examples/onboarding/OnboardingEndpointIT.java +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/acme/examples/onboarding/OnboardingEndpointIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.onboarding; +package org.acme.examples.onboarding; import java.time.ZonedDateTime; import java.time.format.DateTimeFormatter; @@ -25,8 +25,8 @@ import javax.inject.Inject; +import org.acme.examples.test.RecordedOutputWorkItemHandler; import org.junit.jupiter.api.Test; -import org.kie.kogito.examples.test.RecordedOutputWorkItemHandler; import org.kie.kogito.internal.process.runtime.KogitoWorkItem; import org.kie.kogito.internal.process.runtime.KogitoWorkItemHandler; import org.kie.kogito.process.ProcessConfig; diff --git a/kogito-springboot-examples/onboarding-springboot/src/test/java/org/kie/kogito/examples/test/RecordedOutputWorkItemHandler.java b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/acme/examples/test/RecordedOutputWorkItemHandler.java similarity index 97% rename from kogito-springboot-examples/onboarding-springboot/src/test/java/org/kie/kogito/examples/test/RecordedOutputWorkItemHandler.java rename to kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/acme/examples/test/RecordedOutputWorkItemHandler.java index 98c20ea8b5..ddbaef6549 100644 --- a/kogito-springboot-examples/onboarding-springboot/src/test/java/org/kie/kogito/examples/test/RecordedOutputWorkItemHandler.java +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/acme/examples/test/RecordedOutputWorkItemHandler.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.test; +package org.acme.examples.test; import java.util.HashMap; import java.util.Map; diff --git a/kogito-quarkus-examples/onboarding-example/payroll/pom.xml b/kogito-quarkus-examples/onboarding-example/payroll/pom.xml index dc3a6cfa0e..ac1383c13b 100644 --- a/kogito-quarkus-examples/onboarding-example/payroll/pom.xml +++ b/kogito-quarkus-examples/onboarding-example/payroll/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples onboarding-example 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/kie/kogito/examples/payroll/Address.java b/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Address.java similarity index 97% rename from kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/kie/kogito/examples/payroll/Address.java rename to kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Address.java index 557708a351..dff65fe766 100644 --- a/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/kie/kogito/examples/payroll/Address.java +++ b/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Address.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.payroll; +package org.acme.examples.payroll; /** * This class was automatically generated by the data modeler tool. diff --git a/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/kie/kogito/examples/payroll/Employee.java b/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Employee.java similarity index 87% rename from kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/kie/kogito/examples/payroll/Employee.java rename to kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Employee.java index ea74fae3c7..86f887ab64 100644 --- a/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/kie/kogito/examples/payroll/Employee.java +++ b/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Employee.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.payroll; +package org.acme.examples.payroll; /** * This class was automatically generated by the data modeler tool. @@ -28,7 +28,7 @@ public class Employee implements java.io.Serializable { private java.lang.String personalId; private java.util.Date birthDate; - private org.kie.kogito.examples.payroll.Address address; + private Address address; public Employee() { } @@ -65,17 +65,17 @@ public void setBirthDate(java.util.Date birthDate) { this.birthDate = birthDate; } - public org.kie.kogito.examples.payroll.Address getAddress() { + public Address getAddress() { return this.address; } - public void setAddress(org.kie.kogito.examples.payroll.Address address) { + public void setAddress(Address address) { this.address = address; } public Employee(java.lang.String firstName, java.lang.String lastName, java.lang.String personalId, java.util.Date birthDate, - org.kie.kogito.examples.payroll.Address address) { + Address address) { this.firstName = firstName; this.lastName = lastName; this.personalId = personalId; diff --git a/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/kie/kogito/examples/payroll/Payroll.java b/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Payroll.java similarity index 87% rename from kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/kie/kogito/examples/payroll/Payroll.java rename to kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Payroll.java index c5a3844acf..32ebb3fae7 100644 --- a/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/kie/kogito/examples/payroll/Payroll.java +++ b/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Payroll.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.payroll; +package org.acme.examples.payroll; /** * This class was automatically generated by the data modeler tool. @@ -27,13 +27,13 @@ public class Payroll implements java.io.Serializable { private java.math.BigDecimal taxRate; private String paymentDate; - private org.kie.kogito.examples.payroll.Employee employee; + private Employee employee; - public org.kie.kogito.examples.payroll.Employee getEmployee() { + public Employee getEmployee() { return employee; } - public void setEmployee(org.kie.kogito.examples.payroll.Employee employee) { + public void setEmployee(Employee employee) { this.employee = employee; } diff --git a/kogito-quarkus-examples/onboarding-example/payroll/src/main/resources/org/kie/kogito/examples/payroll/paymentDate.dmn b/kogito-quarkus-examples/onboarding-example/payroll/src/main/resources/org/acme/examples/payroll/paymentDate.dmn similarity index 100% rename from kogito-quarkus-examples/onboarding-example/payroll/src/main/resources/org/kie/kogito/examples/payroll/paymentDate.dmn rename to kogito-quarkus-examples/onboarding-example/payroll/src/main/resources/org/acme/examples/payroll/paymentDate.dmn diff --git a/kogito-quarkus-examples/onboarding-example/payroll/src/main/resources/org/kie/kogito/examples/payroll/taxRate.dmn b/kogito-quarkus-examples/onboarding-example/payroll/src/main/resources/org/acme/examples/payroll/taxRate.dmn similarity index 100% rename from kogito-quarkus-examples/onboarding-example/payroll/src/main/resources/org/kie/kogito/examples/payroll/taxRate.dmn rename to kogito-quarkus-examples/onboarding-example/payroll/src/main/resources/org/acme/examples/payroll/taxRate.dmn diff --git a/kogito-quarkus-examples/onboarding-example/payroll/src/main/resources/org/kie/kogito/examples/payroll/vacationDays.dmn b/kogito-quarkus-examples/onboarding-example/payroll/src/main/resources/org/acme/examples/payroll/vacationDays.dmn similarity index 100% rename from kogito-quarkus-examples/onboarding-example/payroll/src/main/resources/org/kie/kogito/examples/payroll/vacationDays.dmn rename to kogito-quarkus-examples/onboarding-example/payroll/src/main/resources/org/acme/examples/payroll/vacationDays.dmn diff --git a/kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/kie/kogito/examples/payroll/PaymentDateTest.java b/kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/acme/examples/payroll/PaymentDateTest.java similarity index 97% rename from kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/kie/kogito/examples/payroll/PaymentDateTest.java rename to kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/acme/examples/payroll/PaymentDateTest.java index 5fe388f31f..0ea42bda98 100644 --- a/kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/kie/kogito/examples/payroll/PaymentDateTest.java +++ b/kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/acme/examples/payroll/PaymentDateTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.payroll; +package org.acme.examples.payroll; import org.junit.jupiter.api.Test; diff --git a/kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/kie/kogito/examples/payroll/TaxRateTest.java b/kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/acme/examples/payroll/TaxRateTest.java similarity index 97% rename from kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/kie/kogito/examples/payroll/TaxRateTest.java rename to kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/acme/examples/payroll/TaxRateTest.java index 78184da510..4b45c58895 100644 --- a/kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/kie/kogito/examples/payroll/TaxRateTest.java +++ b/kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/acme/examples/payroll/TaxRateTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.payroll; +package org.acme.examples.payroll; import org.junit.jupiter.api.Test; diff --git a/kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/kie/kogito/examples/payroll/VacationDaysTest.java b/kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/acme/examples/payroll/VacationDaysTest.java similarity index 97% rename from kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/kie/kogito/examples/payroll/VacationDaysTest.java rename to kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/acme/examples/payroll/VacationDaysTest.java index 48f2b2d5d5..af7c0bf7ee 100644 --- a/kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/kie/kogito/examples/payroll/VacationDaysTest.java +++ b/kogito-quarkus-examples/onboarding-example/payroll/src/test/java/org/acme/examples/payroll/VacationDaysTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.payroll; +package org.acme.examples.payroll; import org.junit.jupiter.api.Test; diff --git a/kogito-quarkus-examples/onboarding-example/pom.xml b/kogito-quarkus-examples/onboarding-example/pom.xml index 0c349c8b1e..f7b83ded9c 100644 --- a/kogito-quarkus-examples/onboarding-example/pom.xml +++ b/kogito-quarkus-examples/onboarding-example/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/pmml-event-driven-quarkus/pom.xml b/kogito-quarkus-examples/pmml-event-driven-quarkus/pom.xml index 04ad43e099..0be0a6e420 100644 --- a/kogito-quarkus-examples/pmml-event-driven-quarkus/pom.xml +++ b/kogito-quarkus-examples/pmml-event-driven-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/pmml-event-driven-quarkus/src/test/java/org/kie/kogito/examples/PmmlEventDrivenIT.java b/kogito-quarkus-examples/pmml-event-driven-quarkus/src/test/java/org/acme/examples/PmmlEventDrivenIT.java similarity index 99% rename from kogito-quarkus-examples/pmml-event-driven-quarkus/src/test/java/org/kie/kogito/examples/PmmlEventDrivenIT.java rename to kogito-quarkus-examples/pmml-event-driven-quarkus/src/test/java/org/acme/examples/PmmlEventDrivenIT.java index 3908d37d47..b88dd33215 100644 --- a/kogito-quarkus-examples/pmml-event-driven-quarkus/src/test/java/org/kie/kogito/examples/PmmlEventDrivenIT.java +++ b/kogito-quarkus-examples/pmml-event-driven-quarkus/src/test/java/org/acme/examples/PmmlEventDrivenIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.io.IOException; import java.net.URL; diff --git a/kogito-quarkus-examples/pmml-incubation-api-quarkus/pom.xml b/kogito-quarkus-examples/pmml-incubation-api-quarkus/pom.xml index 4a930255b5..5b89ec39dc 100644 --- a/kogito-quarkus-examples/pmml-incubation-api-quarkus/pom.xml +++ b/kogito-quarkus-examples/pmml-incubation-api-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/pmml-quarkus-example/pom.xml b/kogito-quarkus-examples/pmml-quarkus-example/pom.xml index 40fb97a021..924e7fd985 100644 --- a/kogito-quarkus-examples/pmml-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/pmml-quarkus-example/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/CommonTestUtils.java b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/CommonTestUtils.java similarity index 98% rename from kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/CommonTestUtils.java rename to kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/CommonTestUtils.java index fa360a5034..60ba888800 100644 --- a/kogito-quarkus-examples/dmn-pmml-quarkus-example/src/test/java/org/kie/kogito/dmn/pmml/quarkus/example/CommonTestUtils.java +++ b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/CommonTestUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.quarkus.example; +package org.acme.pmml.quarkus.example; import java.util.Map; diff --git a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/LinRegTest.java b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/LinRegTest.java similarity index 88% rename from kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/LinRegTest.java rename to kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/LinRegTest.java index 60ec72e2ec..4fbc8ea899 100644 --- a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/LinRegTest.java +++ b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/LinRegTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.pmml.quarkus.example; +package org.acme.pmml.quarkus.example; import java.util.Collections; import java.util.Map; @@ -23,8 +23,8 @@ import io.quarkus.test.junit.QuarkusTest; import io.restassured.RestAssured; -import static org.kie.kogito.pmml.quarkus.example.CommonTestUtils.testDescriptive; -import static org.kie.kogito.pmml.quarkus.example.CommonTestUtils.testResult; +import static org.acme.pmml.quarkus.example.CommonTestUtils.testDescriptive; +import static org.acme.pmml.quarkus.example.CommonTestUtils.testResult; @QuarkusTest class LinRegTest { diff --git a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/MiningModelTest.java b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/MiningModelTest.java similarity index 91% rename from kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/MiningModelTest.java rename to kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/MiningModelTest.java index 3cb39b0a8b..fa3e038c13 100644 --- a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/MiningModelTest.java +++ b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/MiningModelTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.pmml.quarkus.example; +package org.acme.pmml.quarkus.example; import java.util.Collections; import java.util.Map; @@ -23,8 +23,8 @@ import io.quarkus.test.junit.QuarkusTest; import io.restassured.RestAssured; -import static org.kie.kogito.pmml.quarkus.example.CommonTestUtils.testDescriptive; -import static org.kie.kogito.pmml.quarkus.example.CommonTestUtils.testResult; +import static org.acme.pmml.quarkus.example.CommonTestUtils.testDescriptive; +import static org.acme.pmml.quarkus.example.CommonTestUtils.testResult; @QuarkusTest class MiningModelTest { diff --git a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/NativeLinRegTestIT.java b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/NativeLinRegTestIT.java similarity index 94% rename from kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/NativeLinRegTestIT.java rename to kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/NativeLinRegTestIT.java index d173b1e4d8..ce3afbf19d 100644 --- a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/NativeLinRegTestIT.java +++ b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/NativeLinRegTestIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.pmml.quarkus.example; +package org.acme.pmml.quarkus.example; import io.quarkus.test.junit.NativeImageTest; diff --git a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/NativeMiningModelTestIT.java b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/NativeMiningModelTestIT.java similarity index 94% rename from kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/NativeMiningModelTestIT.java rename to kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/NativeMiningModelTestIT.java index f29e5a049f..e5251ae665 100644 --- a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/NativeMiningModelTestIT.java +++ b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/NativeMiningModelTestIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.pmml.quarkus.example; +package org.acme.pmml.quarkus.example; import io.quarkus.test.junit.NativeImageTest; diff --git a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/NativeSampleMineTestIT.java b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/NativeSampleMineTestIT.java similarity index 94% rename from kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/NativeSampleMineTestIT.java rename to kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/NativeSampleMineTestIT.java index 8b4160f802..1a35e651a5 100644 --- a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/NativeSampleMineTestIT.java +++ b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/NativeSampleMineTestIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.pmml.quarkus.example; +package org.acme.pmml.quarkus.example; import io.quarkus.test.junit.NativeImageTest; diff --git a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/NativeSimpleScorecardTestIT.java b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/NativeSimpleScorecardTestIT.java similarity index 94% rename from kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/NativeSimpleScorecardTestIT.java rename to kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/NativeSimpleScorecardTestIT.java index e2ebcb606f..1cea7d2136 100644 --- a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/NativeSimpleScorecardTestIT.java +++ b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/NativeSimpleScorecardTestIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.pmml.quarkus.example; +package org.acme.pmml.quarkus.example; import io.quarkus.test.junit.NativeImageTest; diff --git a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/SampleMineTest.java b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/SampleMineTest.java similarity index 88% rename from kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/SampleMineTest.java rename to kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/SampleMineTest.java index af88056c04..d813a51e92 100644 --- a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/SampleMineTest.java +++ b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/SampleMineTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.pmml.quarkus.example; +package org.acme.pmml.quarkus.example; import java.util.HashMap; import java.util.Map; @@ -23,8 +23,8 @@ import io.quarkus.test.junit.QuarkusTest; import io.restassured.RestAssured; -import static org.kie.kogito.pmml.quarkus.example.CommonTestUtils.testDescriptive; -import static org.kie.kogito.pmml.quarkus.example.CommonTestUtils.testResult; +import static org.acme.pmml.quarkus.example.CommonTestUtils.testDescriptive; +import static org.acme.pmml.quarkus.example.CommonTestUtils.testResult; @QuarkusTest class SampleMineTest { diff --git a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/SimpleScorecardTest.java b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/SimpleScorecardTest.java similarity index 89% rename from kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/SimpleScorecardTest.java rename to kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/SimpleScorecardTest.java index 6df97d00cb..5b8b6f72ca 100644 --- a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/kie/kogito/pmml/quarkus/example/SimpleScorecardTest.java +++ b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/SimpleScorecardTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.pmml.quarkus.example; +package org.acme.pmml.quarkus.example; import java.util.HashMap; import java.util.Map; @@ -23,8 +23,8 @@ import io.quarkus.test.junit.QuarkusTest; import io.restassured.RestAssured; -import static org.kie.kogito.pmml.quarkus.example.CommonTestUtils.testDescriptive; -import static org.kie.kogito.pmml.quarkus.example.CommonTestUtils.testResult; +import static org.acme.pmml.quarkus.example.CommonTestUtils.testDescriptive; +import static org.acme.pmml.quarkus.example.CommonTestUtils.testResult; @QuarkusTest class SimpleScorecardTest { diff --git a/kogito-quarkus-examples/pom.xml b/kogito-quarkus-examples/pom.xml index 3fe564b87e..e448ced4ce 100644 --- a/kogito-quarkus-examples/pom.xml +++ b/kogito-quarkus-examples/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-business-rules-quarkus/mvnw b/kogito-quarkus-examples/process-business-rules-quarkus/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-quarkus-examples/process-business-rules-quarkus/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-quarkus-examples/process-business-rules-quarkus/mvnw.cmd b/kogito-quarkus-examples/process-business-rules-quarkus/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-quarkus-examples/process-business-rules-quarkus/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-quarkus-examples/process-business-rules-quarkus/pom.xml b/kogito-quarkus-examples/process-business-rules-quarkus/pom.xml index d20e8e4f84..8fd4165073 100644 --- a/kogito-quarkus-examples/process-business-rules-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-business-rules-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-decisions-quarkus/README.md b/kogito-quarkus-examples/process-decisions-quarkus/README.md index f2cff4a768..edbf79a541 100644 --- a/kogito-quarkus-examples/process-decisions-quarkus/README.md +++ b/kogito-quarkus-examples/process-decisions-quarkus/README.md @@ -32,13 +32,13 @@ These are the properties defined for the process, the most important one in this * #### Proces Variables -The variables used in the process itself, but the focus in this example are the classes that are used to define the POJOs to interact the process with decisions, that are the [Violation](src/main/java/org/kie/kogito/traffic/Violation.java), [Driver](src/main/java/org/kie/kogito/traffic/Driver.java), [Fine](src/main/java/org/kie/kogito/traffic/Fine.java). +The variables used in the process itself, but the focus in this example are the classes that are used to define the POJOs to interact the process with decisions, that are the [Violation](src/main/java/org/acme/traffic/Violation.java), [Driver](src/main/java/org/acme/traffic/Driver.java), [Fine](src/main/java/org/acme/traffic/Fine.java). **Mapping data from Process to/from DMN** -It is important to mention DMN for instance can define the Data Type in its structure, but we can align all attributes names in a Java class that is used as process variables, in case the attribute names contain spaces or are not following java conventions we can use [Jackson](https://github.com/FasterXML/jackson) annotations to make the process variable POJOs aligned with DMN data types, for instance in the [Violation](src/main/java/org/kie/kogito/traffic/Violation.java) class, where it is mapped the `speedLimit` attribute as `Speed Limit` using `@JsonProperty` annotation, in this case, this attribute from the process variable with Violation can be seamlessly integrated Violation Data Type defined in DMN. +It is important to mention DMN for instance can define the Data Type in its structure, but we can align all attributes names in a Java class that is used as process variables, in case the attribute names contain spaces or are not following java conventions we can use [Jackson](https://github.com/FasterXML/jackson) annotations to make the process variable POJOs aligned with DMN data types, for instance in the [Violation](src/main/java/org/acme/traffic/Violation.java) class, where it is mapped the `speedLimit` attribute as `Speed Limit` using `@JsonProperty` annotation, in this case, this attribute from the process variable with Violation can be seamlessly integrated Violation Data Type defined in DMN. **Violation Data Type in DMN** @@ -49,7 +49,7 @@ It is important to mention DMN for instance can define the Data Type in its stru Fetch for driver information, in this implementation it is just mocking a result, that simply fill with an expired license date in case the `driverId` is an odd number and with a valid date in case of an even number. In a real use case, it could be performing an external call to a service or a database to get this information. -The service task implementation is done in the [DriverService](src/main/java/org/kie/kogito/traffic/DriverService.java) class. +The service task implementation is done in the [DriverService](src/main/java/org/acme/traffic/DriverService.java) class. In the data assignment the input is the `driverId` and output is the `driver` variable, filled with all driver information. @@ -59,7 +59,7 @@ Represents the task to do the call to the DRL service. -The properties to be set are mainly the `Rule Language`that should be set as `DRL` and the `Rule Flow Group` with `unit:` + `[the FQCN of the Rule Unit Data class]`, in this case [org.kie.kogito.traffic.LicenseValidationService](src/main/java/org/kie/kogito/traffic/LicenseValidationService.java). +The properties to be set are mainly the `Rule Language`that should be set as `DRL` and the `Rule Flow Group` with `unit:` + `[the FQCN of the Rule Unit Data class]`, in this case [org.acme.traffic.LicenseValidationService](src/main/java/org/acme/traffic/LicenseValidationService.java). @@ -95,7 +95,7 @@ Just an example task where it could be performed any action based on the conditi This decision consistis in rules which are evaluated to check if a driver's license is expired or not according to the expiration date and thus populating the result in the information in the driver variable. -The DRL file where this Rule Unit is declared is [LicenseValidationService.drl](src/main/resources/LicenseValidationService.drl) and the the Java class that contains the Rule Unit Data is [LicenseValidationService](src/main/java/org/kie/kogito/traffic/LicenseValidationService.java). +The DRL file where this Rule Unit is declared is [LicenseValidationService.drl](src/main/resources/LicenseValidationService.drl) and the the Java class that contains the Rule Unit Data is [LicenseValidationService](src/main/java/org/acme/traffic/LicenseValidationService.java). ### Traffic Violation - DMN diff --git a/kogito-quarkus-examples/process-decisions-quarkus/pom.xml b/kogito-quarkus-examples/process-decisions-quarkus/pom.xml index d13f21a705..de7aa9c017 100644 --- a/kogito-quarkus-examples/process-decisions-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-decisions-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/kie/kogito/traffic/Driver.java b/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/acme/traffic/Driver.java similarity index 98% rename from kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/kie/kogito/traffic/Driver.java rename to kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/acme/traffic/Driver.java index f77a47b749..26bd79ee24 100644 --- a/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/kie/kogito/traffic/Driver.java +++ b/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/acme/traffic/Driver.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.util.Date; diff --git a/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/kie/kogito/traffic/DriverService.java b/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/acme/traffic/DriverService.java similarity index 97% rename from kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/kie/kogito/traffic/DriverService.java rename to kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/acme/traffic/DriverService.java index 595aa50e4b..97a4cc9bd4 100644 --- a/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/kie/kogito/traffic/DriverService.java +++ b/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/acme/traffic/DriverService.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.time.ZonedDateTime; import java.util.Date; diff --git a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/Fine.java b/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/acme/traffic/Fine.java similarity index 97% rename from kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/Fine.java rename to kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/acme/traffic/Fine.java index 4b6873829e..d82495c3d1 100644 --- a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/Fine.java +++ b/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/acme/traffic/Fine.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/LicenseValidationService.java b/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/acme/traffic/LicenseValidationService.java similarity index 97% rename from kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/LicenseValidationService.java rename to kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/acme/traffic/LicenseValidationService.java index 53fd44ed58..2423a7c362 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/LicenseValidationService.java +++ b/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/acme/traffic/LicenseValidationService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.util.Date; diff --git a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/Violation.java b/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/acme/traffic/Violation.java similarity index 98% rename from kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/Violation.java rename to kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/acme/traffic/Violation.java index 56446af2d2..232567b0e0 100644 --- a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/Violation.java +++ b/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/acme/traffic/Violation.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.math.BigDecimal; import java.util.Date; diff --git a/kogito-quarkus-examples/process-decisions-quarkus/src/main/resources/LicenseValidationService.drl b/kogito-quarkus-examples/process-decisions-quarkus/src/main/resources/LicenseValidationService.drl index 799c78abd4..06c7bc2412 100644 --- a/kogito-quarkus-examples/process-decisions-quarkus/src/main/resources/LicenseValidationService.drl +++ b/kogito-quarkus-examples/process-decisions-quarkus/src/main/resources/LicenseValidationService.drl @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic +package org.acme.traffic unit LicenseValidationService diff --git a/kogito-quarkus-examples/process-decisions-quarkus/src/main/resources/traffic-rules-dmn.bpmn b/kogito-quarkus-examples/process-decisions-quarkus/src/main/resources/traffic-rules-dmn.bpmn index 2cc3bd1c29..1d047d44ff 100644 --- a/kogito-quarkus-examples/process-decisions-quarkus/src/main/resources/traffic-rules-dmn.bpmn +++ b/kogito-quarkus-examples/process-decisions-quarkus/src/main/resources/traffic-rules-dmn.bpmn @@ -1,27 +1,27 @@ - - - + + + - - + + - + - + - - - + + + - + @@ -118,7 +118,7 @@ _8A36870E-651D-4E0A-B345-D5CFF2182F0F _044AA388-325A-45DE-B783-4F48421B788B - + _A19108FE-08A2-4E80-B7A8-0254C49209A6 _D3E2F4B7-7739-452F-8D55-0C4F169D4A44 - - + + _95EFED1F-73F8-47E7-9604-A81EFE5DE8F5_driverInputX @@ -146,7 +146,7 @@ DRL]]> driver - + @@ -156,7 +156,7 @@ DRL]]> _A19108FE-08A2-4E80-B7A8-0254C49209A6 - + _93FFD317-476E-4624-84EF-994617572560_driverIdInputX @@ -219,10 +219,10 @@ DMN]]> - - + + - + _B076DF7E-91A5-47C7-B3FC-2C2EC06E5941_namespaceInputX _B076DF7E-91A5-47C7-B3FC-2C2EC06E5941_decisionInputX diff --git a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/test/java/org/kie/kogito/traffic/NativeTrafficProcessIT.java b/kogito-quarkus-examples/process-decisions-quarkus/src/test/java/org/acme/traffic/NativeTrafficProcessIT.java similarity index 95% rename from kogito-quarkus-examples/process-decisions-rules-quarkus/src/test/java/org/kie/kogito/traffic/NativeTrafficProcessIT.java rename to kogito-quarkus-examples/process-decisions-quarkus/src/test/java/org/acme/traffic/NativeTrafficProcessIT.java index 1697330392..edb541ac0c 100644 --- a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/test/java/org/kie/kogito/traffic/NativeTrafficProcessIT.java +++ b/kogito-quarkus-examples/process-decisions-quarkus/src/test/java/org/acme/traffic/NativeTrafficProcessIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import io.quarkus.test.junit.NativeImageTest; diff --git a/kogito-quarkus-examples/process-decisions-quarkus/src/test/java/org/kie/kogito/traffic/TrafficProcessIT.java b/kogito-quarkus-examples/process-decisions-quarkus/src/test/java/org/acme/traffic/TrafficProcessIT.java similarity index 98% rename from kogito-quarkus-examples/process-decisions-quarkus/src/test/java/org/kie/kogito/traffic/TrafficProcessIT.java rename to kogito-quarkus-examples/process-decisions-quarkus/src/test/java/org/acme/traffic/TrafficProcessIT.java index 4f9c49ed0e..1cd3f71822 100644 --- a/kogito-quarkus-examples/process-decisions-quarkus/src/test/java/org/kie/kogito/traffic/TrafficProcessIT.java +++ b/kogito-quarkus-examples/process-decisions-quarkus/src/test/java/org/acme/traffic/TrafficProcessIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.math.BigDecimal; import java.util.HashMap; diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/README.md b/kogito-quarkus-examples/process-decisions-rest-quarkus/README.md index 2850fbfb1a..e521b93d6e 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/README.md +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/README.md @@ -23,7 +23,7 @@ It is based on the traffic violation evaluation process, where it is required to ![Traffic Process](docs/images/traffic-rules-dmn-service-task.png) -In this approach it requires coding, to provide an implementation in the application responsible to execute the task, in this case, a REST/HTTP call. The implementation is up to the user, but here it's been used what the platform provides, like the [Quarkus REST Client](https://quarkus.io/guides/rest-client). Details can be seen in the classes [LicenseValidationRestClient](src/main/java/org/kie/kogito/traffic/LicenseValidationRestClient.java) and [TrafficViolationRestClient](src/main/java/org/kie/kogito/traffic/TrafficViolationRestClient.java). +In this approach it requires coding, to provide an implementation in the application responsible to execute the task, in this case, a REST/HTTP call. The implementation is up to the user, but here it's been used what the platform provides, like the [Quarkus REST Client](https://quarkus.io/guides/rest-client). Details can be seen in the classes [LicenseValidationRestClient](src/main/java/org/acme/traffic/LicenseValidationRestClient.java) and [TrafficViolationRestClient](src/main/java/org/acme/traffic/TrafficViolationRestClient.java). The BPMN file where this process is declared is [traffic-rules-dmn-service-task.bpmn](src/main/resources/traffic-rules-dmn-service-task.bpmn) @@ -44,13 +44,13 @@ These are the properties defined for the process, the most important one in this * #### Proces Variables -The variables used in the process itself, but the focus in this example are the classes that are used to define the POJOs to interact the process with decisions, that are the [Violation](src/main/java/org/kie/kogito/traffic/Violation.java), [Driver](src/main/java/org/kie/kogito/traffic/Driver.java), [Fine](src/main/java/org/kie/kogito/traffic/Fine.java) and [TrafficViolationResponse](src/main/java/org/kie/kogito/traffic/TrafficViolationResponse.java). +The variables used in the process itself, but the focus in this example are the classes that are used to define the POJOs to interact the process with decisions, that are the [Violation](src/main/java/org/acme/traffic/Violation.java), [Driver](src/main/java/org/acme/traffic/Driver.java), [Fine](src/main/java/org/acme/traffic/Fine.java) and [TrafficViolationResponse](src/main/java/org/acme/traffic/TrafficViolationResponse.java). **Mapping data from Process to/from DMN** -It is important to mention DMN for instance can define the Data Type in its structure, but we can align all attributes names in a Java class that is used as process variables, in case the attribute names contain spaces or are not following java conventions we can use [Jackson](https://github.com/FasterXML/jackson) annotations to make the process variable POJOs aligned with DMN data types, for instance in the [Violation](src/main/java/org/kie/kogito/traffic/Violation.java) class, where it is mapped the `speedLimit` attribute as `Speed Limit` using `@JsonProperty` annotation, in this case, this attribute from the process variable with Violation can be seamlessly integrated Violation Data Type defined in DMN. +It is important to mention DMN for instance can define the Data Type in its structure, but we can align all attributes names in a Java class that is used as process variables, in case the attribute names contain spaces or are not following java conventions we can use [Jackson](https://github.com/FasterXML/jackson) annotations to make the process variable POJOs aligned with DMN data types, for instance in the [Violation](src/main/java/org/acme/traffic/Violation.java) class, where it is mapped the `speedLimit` attribute as `Speed Limit` using `@JsonProperty` annotation, in this case, this attribute from the process variable with Violation can be seamlessly integrated Violation Data Type defined in DMN. **Violation Data Type in DMN** @@ -61,7 +61,7 @@ It is important to mention DMN for instance can define the Data Type in its stru Fetch for driver information, in this implementation it is just mocking a result, that simply fill with an expired license date in case the `driverId` is an odd number and with a valid date in case of an even number. In a real use case, it could be performing an external call to a service or a database to get this information. -The service task implementation is done in the [DriverService](src/main/java/org/kie/kogito/traffic/DriverService.java) class. +The service task implementation is done in the [DriverService](src/main/java/org/acme/traffic/DriverService.java) class. In the data assignment the input is the `driverId` and output is the `driver` variable, filled with all driver information. @@ -102,7 +102,7 @@ The implementation properties where it is necessary to set the Java class implem -The input for this task is the `Driver` and `Violation` variables, and the output is the `Suspended` and `Fine` that are wrapped into the [TrafficViolationResponse](src/main/java/org/kie/kogito/traffic/TrafficViolationResponse.java). +The input for this task is the `Driver` and `Violation` variables, and the output is the `Suspended` and `Fine` that are wrapped into the [TrafficViolationResponse](src/main/java/org/acme/traffic/TrafficViolationResponse.java). ![Traffic Violation Service Data](docs/images/traffic-violation-drl-service-task-data.png) @@ -111,7 +111,7 @@ The input for this task is the `Driver` and `Violation` variables, and the outpu -The input for this task is the `Driver` and `Violation` variables, and the output is the `Suspended` and `Fine` that are wrapped into the [TrafficViolationResponse](src/main/java/org/kie/kogito/traffic/TrafficViolationResponse.java). For REST Work Item the URL and HTTP Method are set as input parameters in the process itselt, that is different from the Service Task approaach. +The input for this task is the `Driver` and `Violation` variables, and the output is the `Suspended` and `Fine` that are wrapped into the [TrafficViolationResponse](src/main/java/org/acme/traffic/TrafficViolationResponse.java). For REST Work Item the URL and HTTP Method are set as input parameters in the process itselt, that is different from the Service Task approaach. ![Traffic Violation WIH Data](docs/images/traffic-violation-drl-wih-data.png) @@ -129,7 +129,7 @@ Just an example task where it could be performed any action based on the conditi This decision consistis in rules which are evaluated to check if a driver's license is expired or not according to the expiration date and thus populating the result in the information in the driver variable. -The DRL file where this Rule Unit is declared is [LicenseValidationService.drl](src/main/resources/LicenseValidationService.drl) and the the Java class that contains the Rule Unit Data is [LicenseValidationService](src/main/java/org/kie/kogito/traffic/LicenseValidationService.java). +The DRL file where this Rule Unit is declared is [LicenseValidationService.drl](src/main/resources/LicenseValidationService.drl) and the the Java class that contains the Rule Unit Data is [LicenseValidationService](src/main/java/org/acme/traffic/LicenseValidationService.java). ### Traffic Violation - DMN diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/pom.xml b/kogito-quarkus-examples/process-decisions-rest-quarkus/pom.xml index 852e7997b7..07264021a2 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/Driver.java b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/Driver.java similarity index 98% rename from kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/Driver.java rename to kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/Driver.java index f77a47b749..26bd79ee24 100644 --- a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/Driver.java +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/Driver.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.util.Date; diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/DriverService.java b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/DriverService.java similarity index 97% rename from kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/DriverService.java rename to kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/DriverService.java index 595aa50e4b..97a4cc9bd4 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/DriverService.java +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/DriverService.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.time.ZonedDateTime; import java.util.Date; diff --git a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/Fine.java b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/Fine.java similarity index 97% rename from kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/Fine.java rename to kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/Fine.java index 4b6873829e..d82495c3d1 100644 --- a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/Fine.java +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/Fine.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/LicenseValidationRestClient.java b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/LicenseValidationRestClient.java similarity index 97% rename from kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/LicenseValidationRestClient.java rename to kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/LicenseValidationRestClient.java index d624fcbe21..fe6a6f6819 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/LicenseValidationRestClient.java +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/LicenseValidationRestClient.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.util.Map; diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/LicenseValidationRestService.java b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/LicenseValidationRestService.java similarity index 97% rename from kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/LicenseValidationRestService.java rename to kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/LicenseValidationRestService.java index f8dc393091..8b66c23835 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/LicenseValidationRestService.java +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/LicenseValidationRestService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.util.Collections; diff --git a/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/LicenseValidationService.java b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/LicenseValidationService.java similarity index 97% rename from kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/LicenseValidationService.java rename to kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/LicenseValidationService.java index 53fd44ed58..2423a7c362 100644 --- a/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/LicenseValidationService.java +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/LicenseValidationService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.util.Date; diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/TrafficViolationResponse.java b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/TrafficViolationResponse.java similarity index 97% rename from kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/TrafficViolationResponse.java rename to kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/TrafficViolationResponse.java index c5945896ca..25445edd93 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/TrafficViolationResponse.java +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/TrafficViolationResponse.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/TrafficViolationRestClient.java b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/TrafficViolationRestClient.java similarity index 97% rename from kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/TrafficViolationRestClient.java rename to kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/TrafficViolationRestClient.java index 7c6945cbf2..bd6a3b6df7 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/TrafficViolationRestClient.java +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/TrafficViolationRestClient.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.util.Map; diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/TrafficViolationRestService.java b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/TrafficViolationRestService.java similarity index 97% rename from kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/TrafficViolationRestService.java rename to kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/TrafficViolationRestService.java index 881e999698..78513c1667 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/TrafficViolationRestService.java +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/TrafficViolationRestService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.util.HashMap; import java.util.Map; diff --git a/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/kie/kogito/traffic/Violation.java b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/Violation.java similarity index 98% rename from kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/kie/kogito/traffic/Violation.java rename to kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/Violation.java index 56446af2d2..232567b0e0 100644 --- a/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/kie/kogito/traffic/Violation.java +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/acme/traffic/Violation.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.math.BigDecimal; import java.util.Date; diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/resources/LicenseValidationService.drl b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/resources/LicenseValidationService.drl index 799c78abd4..06c7bc2412 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/resources/LicenseValidationService.drl +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/resources/LicenseValidationService.drl @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic +package org.acme.traffic unit LicenseValidationService diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/resources/application.properties b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/resources/application.properties index afbd25e4eb..023d701430 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/resources/application.properties +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/resources/application.properties @@ -4,5 +4,5 @@ quarkus.swagger-ui.always-include=true # REST -org.kie.kogito.traffic.TrafficViolationRestClient/mp-rest/url=http://localhost:8080/ -org.kie.kogito.traffic.LicenseValidationRestClient/mp-rest/url=http://localhost:8080/ \ No newline at end of file +org.acme.traffic.TrafficViolationRestClient/mp-rest/url=http://localhost:8080/ +org.acme.traffic.LicenseValidationRestClient/mp-rest/url=http://localhost:8080/ \ No newline at end of file diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/resources/traffic-rules-dmn-service-task.bpmn b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/resources/traffic-rules-dmn-service-task.bpmn index 7ba4f69c61..9323dd6cb3 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/resources/traffic-rules-dmn-service-task.bpmn +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/resources/traffic-rules-dmn-service-task.bpmn @@ -1,25 +1,25 @@ - - - + + + - - - - - - - + + + + + + + - + - + - + @@ -92,7 +92,7 @@ - + _8A36870E-651D-4E0A-B345-D5CFF2182F0F _E183B890-1419-4A36-B1DC-257EB0B333E0 - - - + + + _BB50D380-3FE4-4B5E-9732-6E7E2B704BA0_driverInputX _BB50D380-3FE4-4B5E-9732-6E7E2B704BA0_violationInputX @@ -126,7 +126,7 @@ DMN]]> trafficViolationResponse - + _A19108FE-08A2-4E80-B7A8-0254C49209A6 _729FBA6E-72AB-4541-9965-DB7CDCD2E0A9 - - + + _8D1A7055-57B3-4C74-A502-2AB715599268_driverInputX @@ -162,7 +162,7 @@ DRL]]> _044AA388-325A-45DE-B783-4F48421B788B _8A36870E-651D-4E0A-B345-D5CFF2182F0F - + @@ -172,7 +172,7 @@ DRL]]> _A19108FE-08A2-4E80-B7A8-0254C49209A6 - + _93FFD317-476E-4624-84EF-994617572560_driverIdInputX diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/resources/traffic-rules-dmn-wih.bpmn b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/resources/traffic-rules-dmn-wih.bpmn index 6aa79d7bdf..0f1767de1f 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/resources/traffic-rules-dmn-wih.bpmn +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/resources/traffic-rules-dmn-wih.bpmn @@ -1,32 +1,32 @@ - - - + + + - + - + - + - - + + - - + + - + @@ -108,14 +108,14 @@ DMN]]> - - + + - + _38F4877F-50AD-4500-98E1-9B4FD3972291_MethodInputX _38F4877F-50AD-4500-98E1-9B4FD3972291_UrlInputX @@ -177,14 +177,14 @@ DRL]]> - + - + _D8D9E6BA-5940-41F5-BF3A-1A08ADA72A4C_MethodInputX _D8D9E6BA-5940-41F5-BF3A-1A08ADA72A4C_UrlInputX @@ -245,7 +245,7 @@ DRL]]> _8A36870E-651D-4E0A-B345-D5CFF2182F0F _044AA388-325A-45DE-B783-4F48421B788B - + @@ -255,7 +255,7 @@ DRL]]> _A19108FE-08A2-4E80-B7A8-0254C49209A6 - + _93FFD317-476E-4624-84EF-994617572560_driverIdInputX diff --git a/kogito-quarkus-examples/process-decisions-quarkus/src/test/java/org/kie/kogito/traffic/NativeTrafficProcessIT.java b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/test/java/org/acme/traffic/NativeTrafficProcessIT.java similarity index 95% rename from kogito-quarkus-examples/process-decisions-quarkus/src/test/java/org/kie/kogito/traffic/NativeTrafficProcessIT.java rename to kogito-quarkus-examples/process-decisions-rest-quarkus/src/test/java/org/acme/traffic/NativeTrafficProcessIT.java index 1697330392..edb541ac0c 100644 --- a/kogito-quarkus-examples/process-decisions-quarkus/src/test/java/org/kie/kogito/traffic/NativeTrafficProcessIT.java +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/test/java/org/acme/traffic/NativeTrafficProcessIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import io.quarkus.test.junit.NativeImageTest; diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/test/java/org/kie/kogito/traffic/TrafficProcessIT.java b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/test/java/org/acme/traffic/TrafficProcessIT.java similarity index 98% rename from kogito-quarkus-examples/process-decisions-rest-quarkus/src/test/java/org/kie/kogito/traffic/TrafficProcessIT.java rename to kogito-quarkus-examples/process-decisions-rest-quarkus/src/test/java/org/acme/traffic/TrafficProcessIT.java index c61d2d2cf7..ee80c83d3c 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/test/java/org/kie/kogito/traffic/TrafficProcessIT.java +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/src/test/java/org/acme/traffic/TrafficProcessIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.math.BigDecimal; import java.util.HashMap; diff --git a/kogito-quarkus-examples/process-decisions-rules-quarkus/README.md b/kogito-quarkus-examples/process-decisions-rules-quarkus/README.md index 811b7c9406..20b50f7b23 100644 --- a/kogito-quarkus-examples/process-decisions-rules-quarkus/README.md +++ b/kogito-quarkus-examples/process-decisions-rules-quarkus/README.md @@ -32,13 +32,13 @@ These are the properties defined for the process, the most important one in this * #### Proces Variables -The variables used in the process itself, but the focus in this example are the classes that are used to define the POJOs to interact the process with decisions, that are the [Violation](src/main/java/org/kie/kogito/traffic/Violation.java), [Driver](src/main/java/org/kie/kogito/traffic/Driver.java), [Fine](src/main/java/org/kie/kogito/traffic/Fine.java). +The variables used in the process itself, but the focus in this example are the classes that are used to define the POJOs to interact the process with decisions, that are the [Violation](src/main/java/org/acme/traffic/Violation.java), [Driver](src/main/java/org/acme/traffic/Driver.java), [Fine](src/main/java/org/acme/traffic/Fine.java). **Mapping data from Process to/from DMN** -It is important to mention DMN for instance can define the Data Type in its structure, but we can align all attributes names in a Java class that is used as process variables, in case the attribute names contain spaces or are not following java conventions we can use [Jackson](https://github.com/FasterXML/jackson) annotations to make the process variable POJOs aligned with DMN data types, for instance in the [Violation](src/main/java/org/kie/kogito/traffic/Violation.java) class, where it is mapped the `speedLimit` attribute as `Speed Limit` using `@JsonProperty` annotation, in this case, this attribute from the process variable with Violation can be seamlessly integrated Violation Data Type defined in DMN. +It is important to mention DMN for instance can define the Data Type in its structure, but we can align all attributes names in a Java class that is used as process variables, in case the attribute names contain spaces or are not following java conventions we can use [Jackson](https://github.com/FasterXML/jackson) annotations to make the process variable POJOs aligned with DMN data types, for instance in the [Violation](src/main/java/org/acme/traffic/Violation.java) class, where it is mapped the `speedLimit` attribute as `Speed Limit` using `@JsonProperty` annotation, in this case, this attribute from the process variable with Violation can be seamlessly integrated Violation Data Type defined in DMN. **Violation Data Type in DMN** @@ -49,7 +49,7 @@ It is important to mention DMN for instance can define the Data Type in its stru Fetch for driver information, in this implementation it is just mocking a result, that simply fill with an expired license date in case the `driverId` is an odd number and with a valid date in case of an even number. In a real use case, it could be performing an external call to a service or a database to get this information. -The service task implementation is done in the [DriverService](src/main/java/org/kie/kogito/traffic/DriverService.java) class. +The service task implementation is done in the [DriverService](src/main/java/org/acme/traffic/DriverService.java) class. In the data assignment the input is the `driverId` and output is the `driver` variable, filled with all driver information. @@ -59,7 +59,7 @@ Represents the task to do the call to the DRL service. -The properties to be set are mainly the `Rule Language`that should be set as `DRL` and the `Rule Flow Group` with `unit:` + `[the FQCN of the Rule Unit Data class]`, in this case [org.kie.kogito.traffic.licensevalidation.LicenseValidationService](src/main/java/org/kie/kogito/traffic/LicenseValidationService.java). +The properties to be set are mainly the `Rule Language`that should be set as `DRL` and the `Rule Flow Group` with `unit:` + `[the FQCN of the Rule Unit Data class]`, in this case [licensevalidation.org.acme.traffic.LicenseValidationService](src/main/java/org/acme/traffic/licensevalidation/LicenseValidationService.java). @@ -95,7 +95,7 @@ Just an example task where it could be performed any action based on the conditi This decision consistis in rules which are evaluated to check if a driver's license is expired or not according to the expiration date and thus populating the result in the information in the driver variable. -The DRL file where this Rule Unit is declared is [LicenseValidationService.drl](src/main/resources/LicenseValidationService.drl) and the the Java class that contains the Rule Unit Data is [LicenseValidationService](src/main/java/org/kie/kogito/traffic/LicenseValidationService.java). +The DRL file where this Rule Unit is declared is [LicenseValidationService.drl](src/main/resources/LicenseValidationService.drl) and the the Java class that contains the Rule Unit Data is [LicenseValidationService](src/main/java/org/acme/traffic/LicenseValidationService.java). ### Traffic Violation - DMN diff --git a/kogito-quarkus-examples/process-decisions-rules-quarkus/pom.xml b/kogito-quarkus-examples/process-decisions-rules-quarkus/pom.xml index d80e3fe235..1e08a9f15f 100644 --- a/kogito-quarkus-examples/process-decisions-rules-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-decisions-rules-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/DriverService.java b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/DriverService.java similarity index 94% rename from kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/DriverService.java rename to kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/DriverService.java index 38ebb18de8..bc329fc09f 100644 --- a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/DriverService.java +++ b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/DriverService.java @@ -14,14 +14,14 @@ * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.time.ZonedDateTime; import java.util.Date; import javax.enterprise.context.ApplicationScoped; -import org.kie.kogito.traffic.licensevalidation.Driver; +import org.acme.traffic.licensevalidation.Driver; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/kie/kogito/traffic/Fine.java b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/Fine.java similarity index 97% rename from kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/kie/kogito/traffic/Fine.java rename to kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/Fine.java index 4b6873829e..d82495c3d1 100644 --- a/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/kie/kogito/traffic/Fine.java +++ b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/Fine.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/Violation.java b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/Violation.java similarity index 98% rename from kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/Violation.java rename to kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/Violation.java index 56446af2d2..232567b0e0 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/Violation.java +++ b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/Violation.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.math.BigDecimal; import java.util.Date; diff --git a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/licensevalidated/LicenseValidatedService.java b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/licensevalidated/LicenseValidatedService.java similarity index 96% rename from kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/licensevalidated/LicenseValidatedService.java rename to kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/licensevalidated/LicenseValidatedService.java index b6a0374e9d..b37b889f3a 100644 --- a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/licensevalidated/LicenseValidatedService.java +++ b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/licensevalidated/LicenseValidatedService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic.licensevalidated; +package org.acme.traffic.licensevalidated; import java.util.Date; diff --git a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/licensevalidated/Validated.java b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/licensevalidated/Validated.java similarity index 96% rename from kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/licensevalidated/Validated.java rename to kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/licensevalidated/Validated.java index 90c51f09e3..9f8a843e96 100644 --- a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/licensevalidated/Validated.java +++ b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/licensevalidated/Validated.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.traffic.licensevalidated; +package org.acme.traffic.licensevalidated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/licensevalidation/Driver.java b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/licensevalidation/Driver.java similarity index 98% rename from kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/licensevalidation/Driver.java rename to kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/licensevalidation/Driver.java index 6ee8bfbb04..992738b4f0 100644 --- a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/licensevalidation/Driver.java +++ b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/licensevalidation/Driver.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.traffic.licensevalidation; +package org.acme.traffic.licensevalidation; import java.util.Date; diff --git a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/licensevalidation/LicenseValidationService.java b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/licensevalidation/LicenseValidationService.java new file mode 100644 index 0000000000..7d4488af6b --- /dev/null +++ b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/acme/traffic/licensevalidation/LicenseValidationService.java @@ -0,0 +1,46 @@ +/* + * Copyright 2020 Red Hat, Inc. and/or its affiliates. + * + * Licensed 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.acme.traffic.licensevalidation; + +import java.util.Date; + +import org.drools.ruleunits.api.DataSource; +import org.drools.ruleunits.api.RuleUnitData; +import org.drools.ruleunits.api.SingletonStore; + +public class LicenseValidationService implements RuleUnitData { + private SingletonStore driver; + + public LicenseValidationService() { + this(DataSource.createSingleton()); + } + + public LicenseValidationService(SingletonStore driver) { + this.driver = driver; + } + + public void setDriver(SingletonStore driver) { + this.driver = driver; + } + + public SingletonStore getDriver() { + return driver; + } + + public Date getCurrentTime() { + return new Date(); + } +} diff --git a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/licensevalidation/LicenseValidationService.java b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/licensevalidation/LicenseValidationService.java deleted file mode 100644 index 2d56c89eea..0000000000 --- a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/licensevalidation/LicenseValidationService.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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.traffic.licensevalidation; - -import java.util.Date; - -import org.drools.ruleunits.api.DataSource; -import org.drools.ruleunits.api.RuleUnitData; -import org.drools.ruleunits.api.SingletonStore; - -public class LicenseValidationService implements RuleUnitData { - private SingletonStore driver; - - public LicenseValidationService() { - this(DataSource.createSingleton()); - } - - public LicenseValidationService(SingletonStore driver) { - this.driver = driver; - } - - public void setDriver(SingletonStore driver) { - this.driver = driver; - } - - public SingletonStore getDriver() { - return driver; - } - - public Date getCurrentTime() { - return new Date(); - } -} diff --git a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/resources/LicenseValidatedService.drl b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/resources/LicenseValidatedService.drl index 9e91dd8bb8..cca71a9a6e 100644 --- a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/resources/LicenseValidatedService.drl +++ b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/resources/LicenseValidatedService.drl @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic.licensevalidated +package org.acme.traffic.licensevalidated unit LicenseValidatedService diff --git a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/resources/LicenseValidationService.drl b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/resources/LicenseValidationService.drl index 324866bfa3..1b4622d9a3 100644 --- a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/resources/LicenseValidationService.drl +++ b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/resources/LicenseValidationService.drl @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic.licensevalidation +package org.acme.traffic.licensevalidation unit LicenseValidationService diff --git a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/resources/traffic-rules-dmn.bpmn b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/resources/traffic-rules-dmn.bpmn index bb3c183e1e..ee189729e5 100644 --- a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/resources/traffic-rules-dmn.bpmn +++ b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/resources/traffic-rules-dmn.bpmn @@ -1,36 +1,36 @@ - - - - + + + + - - - - + + + + - + - - + + - - - + + + - + @@ -114,7 +114,7 @@ - + _BB963FF4-CF17-4CA0-A727-9AFC2BE17C29 _E7EF578E-3735-42D9-BF0C-8CCBF398D41C - - + + _3F719C8E-DA3F-46F8-B8F2-5F04DB132E9C_validatedInputX @@ -155,7 +155,7 @@ DRL]]> _D2252EFF-5EC4-4D61-B797-653F71652627 _044AA388-325A-45DE-B783-4F48421B788B - + _A19108FE-08A2-4E80-B7A8-0254C49209A6 _D3E2F4B7-7739-452F-8D55-0C4F169D4A44 - - + + _95EFED1F-73F8-47E7-9604-A81EFE5DE8F5_driverInputX @@ -183,7 +183,7 @@ DRL]]> driver - + @@ -193,7 +193,7 @@ DRL]]> _A19108FE-08A2-4E80-B7A8-0254C49209A6 - + _93FFD317-476E-4624-84EF-994617572560_driverIdInputX @@ -261,10 +261,10 @@ DMN]]> - - - - + + + + _B076DF7E-91A5-47C7-B3FC-2C2EC06E5941_namespaceInputX _B076DF7E-91A5-47C7-B3FC-2C2EC06E5941_decisionInputX diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/test/java/org/kie/kogito/traffic/NativeTrafficProcessIT.java b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/test/java/org/acme/traffic/NativeTrafficProcessIT.java similarity index 95% rename from kogito-quarkus-examples/process-decisions-rest-quarkus/src/test/java/org/kie/kogito/traffic/NativeTrafficProcessIT.java rename to kogito-quarkus-examples/process-decisions-rules-quarkus/src/test/java/org/acme/traffic/NativeTrafficProcessIT.java index 1697330392..edb541ac0c 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/test/java/org/kie/kogito/traffic/NativeTrafficProcessIT.java +++ b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/test/java/org/acme/traffic/NativeTrafficProcessIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import io.quarkus.test.junit.NativeImageTest; diff --git a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/test/java/org/kie/kogito/traffic/TrafficProcessIT.java b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/test/java/org/acme/traffic/TrafficProcessIT.java similarity index 98% rename from kogito-quarkus-examples/process-decisions-rules-quarkus/src/test/java/org/kie/kogito/traffic/TrafficProcessIT.java rename to kogito-quarkus-examples/process-decisions-rules-quarkus/src/test/java/org/acme/traffic/TrafficProcessIT.java index 61a3400fdf..1d6f27e130 100644 --- a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/test/java/org/kie/kogito/traffic/TrafficProcessIT.java +++ b/kogito-quarkus-examples/process-decisions-rules-quarkus/src/test/java/org/acme/traffic/TrafficProcessIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.math.BigDecimal; import java.util.HashMap; diff --git a/kogito-quarkus-examples/process-error-handling/mvnw b/kogito-quarkus-examples/process-error-handling/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-quarkus-examples/process-error-handling/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-quarkus-examples/process-error-handling/mvnw.cmd b/kogito-quarkus-examples/process-error-handling/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-quarkus-examples/process-error-handling/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-quarkus-examples/process-error-handling/pom.xml b/kogito-quarkus-examples/process-error-handling/pom.xml index a8ea2e0d9c..16f49055e4 100644 --- a/kogito-quarkus-examples/process-error-handling/pom.xml +++ b/kogito-quarkus-examples/process-error-handling/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-incubation-api-quarkus/pom.xml b/kogito-quarkus-examples/process-incubation-api-quarkus/pom.xml index bddd25ce0d..bc7f52fe59 100644 --- a/kogito-quarkus-examples/process-incubation-api-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-incubation-api-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-infinispan-persistence-quarkus/mvnw b/kogito-quarkus-examples/process-infinispan-persistence-quarkus/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-quarkus-examples/process-infinispan-persistence-quarkus/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-quarkus-examples/process-infinispan-persistence-quarkus/mvnw.cmd b/kogito-quarkus-examples/process-infinispan-persistence-quarkus/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-quarkus-examples/process-infinispan-persistence-quarkus/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-quarkus-examples/process-infinispan-persistence-quarkus/pom.xml b/kogito-quarkus-examples/process-infinispan-persistence-quarkus/pom.xml index fdecf09f82..55f27aa816 100644 --- a/kogito-quarkus-examples/process-infinispan-persistence-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-infinispan-persistence-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/pom.xml b/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/pom.xml index 2473da2ba2..822b413e8b 100644 --- a/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/src/main/resources/handle-travellers.bpmn b/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/src/main/resources/handle-travellers.bpmn index 5aeaea50cd..807b5dc51a 100644 --- a/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/src/main/resources/handle-travellers.bpmn +++ b/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/src/main/resources/handle-travellers.bpmn @@ -14,7 +14,7 @@ - + diff --git a/kogito-quarkus-examples/process-kafka-multi-quarkus/pom.xml b/kogito-quarkus-examples/process-kafka-multi-quarkus/pom.xml index 3fa03011a6..2873039d86 100644 --- a/kogito-quarkus-examples/process-kafka-multi-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-kafka-multi-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-kafka-multi-quarkus/src/main/resources/handle-travellers.bpmn b/kogito-quarkus-examples/process-kafka-multi-quarkus/src/main/resources/handle-travellers.bpmn index 5aeaea50cd..807b5dc51a 100644 --- a/kogito-quarkus-examples/process-kafka-multi-quarkus/src/main/resources/handle-travellers.bpmn +++ b/kogito-quarkus-examples/process-kafka-multi-quarkus/src/main/resources/handle-travellers.bpmn @@ -14,7 +14,7 @@ - + diff --git a/kogito-quarkus-examples/process-kafka-persistence-quarkus/pom.xml b/kogito-quarkus-examples/process-kafka-persistence-quarkus/pom.xml index c0d02b120a..8b6db76e1d 100644 --- a/kogito-quarkus-examples/process-kafka-persistence-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-kafka-persistence-quarkus/pom.xml @@ -19,7 +19,7 @@ xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-kafka-quickstart-quarkus/mvnw b/kogito-quarkus-examples/process-kafka-quickstart-quarkus/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-quarkus-examples/process-kafka-quickstart-quarkus/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-quarkus-examples/process-kafka-quickstart-quarkus/mvnw.cmd b/kogito-quarkus-examples/process-kafka-quickstart-quarkus/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-quarkus-examples/process-kafka-quickstart-quarkus/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-quarkus-examples/process-kafka-quickstart-quarkus/pom.xml b/kogito-quarkus-examples/process-kafka-quickstart-quarkus/pom.xml index 294e08f529..de316a1b80 100644 --- a/kogito-quarkus-examples/process-kafka-quickstart-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-kafka-quickstart-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-kafka-quickstart-quarkus/src/main/resources/handle-travellers.bpmn b/kogito-quarkus-examples/process-kafka-quickstart-quarkus/src/main/resources/handle-travellers.bpmn index 12d61037b4..ebb321b93e 100644 --- a/kogito-quarkus-examples/process-kafka-quickstart-quarkus/src/main/resources/handle-travellers.bpmn +++ b/kogito-quarkus-examples/process-kafka-quickstart-quarkus/src/main/resources/handle-travellers.bpmn @@ -11,7 +11,7 @@ - + diff --git a/kogito-quarkus-examples/process-knative-quickstart-quarkus/mvnw b/kogito-quarkus-examples/process-knative-quickstart-quarkus/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-quarkus-examples/process-knative-quickstart-quarkus/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-quarkus-examples/process-knative-quickstart-quarkus/mvnw.cmd b/kogito-quarkus-examples/process-knative-quickstart-quarkus/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-quarkus-examples/process-knative-quickstart-quarkus/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-quarkus-examples/process-knative-quickstart-quarkus/pom.xml b/kogito-quarkus-examples/process-knative-quickstart-quarkus/pom.xml index 5d32855e63..d9eda52294 100644 --- a/kogito-quarkus-examples/process-knative-quickstart-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-knative-quickstart-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-knative-quickstart-quarkus/src/main/resources/handle-travellers.bpmn b/kogito-quarkus-examples/process-knative-quickstart-quarkus/src/main/resources/handle-travellers.bpmn index 12d61037b4..ebb321b93e 100644 --- a/kogito-quarkus-examples/process-knative-quickstart-quarkus/src/main/resources/handle-travellers.bpmn +++ b/kogito-quarkus-examples/process-knative-quickstart-quarkus/src/main/resources/handle-travellers.bpmn @@ -11,7 +11,7 @@ - + diff --git a/kogito-quarkus-examples/process-mongodb-persistence-quarkus/pom.xml b/kogito-quarkus-examples/process-mongodb-persistence-quarkus/pom.xml index 094560f07e..1e85b1c861 100644 --- a/kogito-quarkus-examples/process-mongodb-persistence-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-mongodb-persistence-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-monitoring-quarkus/pom.xml b/kogito-quarkus-examples/process-monitoring-quarkus/pom.xml index 1669a3fdfc..0febe54847 100755 --- a/kogito-quarkus-examples/process-monitoring-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-monitoring-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns="http://maven.apache.org/POM/4.0.0"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-monitoring-quarkus/src/main/java/org/kie/kogito/examples/quarkus/CalculationService.java b/kogito-quarkus-examples/process-monitoring-quarkus/src/main/java/org/acme/examples/quarkus/CalculationService.java similarity index 90% rename from kogito-quarkus-examples/process-monitoring-quarkus/src/main/java/org/kie/kogito/examples/quarkus/CalculationService.java rename to kogito-quarkus-examples/process-monitoring-quarkus/src/main/java/org/acme/examples/quarkus/CalculationService.java index 11dfcb97e2..1856b1cc0b 100644 --- a/kogito-quarkus-examples/process-monitoring-quarkus/src/main/java/org/kie/kogito/examples/quarkus/CalculationService.java +++ b/kogito-quarkus-examples/process-monitoring-quarkus/src/main/java/org/acme/examples/quarkus/CalculationService.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.quarkus; +package org.acme.examples.quarkus; import java.util.Random; import javax.enterprise.context.ApplicationScoped; -import org.kie.kogito.examples.quarkus.demo.Order; +import org.acme.examples.quarkus.demo.Order; @ApplicationScoped public class CalculationService { diff --git a/kogito-quarkus-examples/process-monitoring-quarkus/src/main/java/org/kie/kogito/examples/quarkus/demo/Order.java b/kogito-quarkus-examples/process-monitoring-quarkus/src/main/java/org/acme/examples/quarkus/demo/Order.java similarity index 97% rename from kogito-quarkus-examples/process-monitoring-quarkus/src/main/java/org/kie/kogito/examples/quarkus/demo/Order.java rename to kogito-quarkus-examples/process-monitoring-quarkus/src/main/java/org/acme/examples/quarkus/demo/Order.java index 03a8199193..8841baa41f 100755 --- a/kogito-quarkus-examples/process-monitoring-quarkus/src/main/java/org/kie/kogito/examples/quarkus/demo/Order.java +++ b/kogito-quarkus-examples/process-monitoring-quarkus/src/main/java/org/acme/examples/quarkus/demo/Order.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.quarkus.demo; +package org.acme.examples.quarkus.demo; public class Order implements java.io.Serializable { diff --git a/kogito-quarkus-examples/process-monitoring-quarkus/src/main/resources/org/acme/examples/quarkus/orderItems.bpmn2 b/kogito-quarkus-examples/process-monitoring-quarkus/src/main/resources/org/acme/examples/quarkus/orderItems.bpmn2 new file mode 100644 index 0000000000..5c4db0b531 --- /dev/null +++ b/kogito-quarkus-examples/process-monitoring-quarkus/src/main/resources/org/acme/examples/quarkus/orderItems.bpmn2 @@ -0,0 +1,224 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Message_1 + Message_2 + + + + + + + + + + + + + + + SequenceFlow_1 + + + + + + + + SequenceFlow_4 + + + + + + + + SequenceFlow_1 + SequenceFlow_3 + + + + + DataInput_1 + + + DataOutput_1 + + + + order + DataInput_1 + + + DataOutput_1 + order + + + + + + + + + + + SequenceFlow_3 + SequenceFlow_4 + + + + + + + + + + + + + DataInput_14 + DataInput_15 + DataInput_16 + DataInput_17 + DataInput_18 + DataInput_19 + DataInput_20 + DataInput_21 + DataInput_22 + DataInput_23 + + + + + DataInput_14 + + Verify order + DataInput_14 + + + + DataInput_15 + + 1 + DataInput_15 + + + + DataInput_16 + + + DataInput_17 + + + DataInput_18 + + + DataInput_19 + + true + DataInput_19 + + + + DataInput_20 + + + DataInput_21 + + en-UK + DataInput_21 + + + + DataInput_22 + + + order + DataInput_23 + + + + john + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/kie/kogito/examples/orders.bpmn2 b/kogito-quarkus-examples/process-monitoring-quarkus/src/main/resources/org/acme/examples/quarkus/orders.bpmn2 similarity index 92% rename from kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/kie/kogito/examples/orders.bpmn2 rename to kogito-quarkus-examples/process-monitoring-quarkus/src/main/resources/org/acme/examples/quarkus/orders.bpmn2 index 71e4146d37..5d32d890d5 100644 --- a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/kie/kogito/examples/orders.bpmn2 +++ b/kogito-quarkus-examples/process-monitoring-quarkus/src/main/resources/org/acme/examples/quarkus/orders.bpmn2 @@ -1,11 +1,11 @@ - + - - - + + + @@ -45,8 +45,8 @@ _58684613-0155-48B2-8746-7675AFF24439 _8216C810-34D8-4BFA-B814-1AA01907810F - - + + _9484CB12-FE52-434C-AE9F-3C3C267D1C96_orderInputX diff --git a/kogito-quarkus-examples/process-monitoring-quarkus/src/main/resources/org/kie/kogito/examples/quarkus/orderItems.bpmn2 b/kogito-quarkus-examples/process-monitoring-quarkus/src/main/resources/org/kie/kogito/examples/quarkus/orderItems.bpmn2 deleted file mode 100644 index 9f8a81cb32..0000000000 --- a/kogito-quarkus-examples/process-monitoring-quarkus/src/main/resources/org/kie/kogito/examples/quarkus/orderItems.bpmn2 +++ /dev/null @@ -1,224 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Message_1 - Message_2 - - - - - - - - - - - - - - - SequenceFlow_1 - - - - - - - - SequenceFlow_4 - - - - - - - - SequenceFlow_1 - SequenceFlow_3 - - - - - DataInput_1 - - - DataOutput_1 - - - - order - DataInput_1 - - - DataOutput_1 - order - - - - - - - - - - - SequenceFlow_3 - SequenceFlow_4 - - - - - - - - - - - - - DataInput_14 - DataInput_15 - DataInput_16 - DataInput_17 - DataInput_18 - DataInput_19 - DataInput_20 - DataInput_21 - DataInput_22 - DataInput_23 - - - - - DataInput_14 - - Verify order - DataInput_14 - - - - DataInput_15 - - 1 - DataInput_15 - - - - DataInput_16 - - - DataInput_17 - - - DataInput_18 - - - DataInput_19 - - true - DataInput_19 - - - - DataInput_20 - - - DataInput_21 - - en-UK - DataInput_21 - - - - DataInput_22 - - - order - DataInput_23 - - - - john - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/kie/kogito/examples/quarkus/DashboardGenerationIT.java b/kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/acme/examples/quarkus/DashboardGenerationIT.java similarity index 97% rename from kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/kie/kogito/examples/quarkus/DashboardGenerationIT.java rename to kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/acme/examples/quarkus/DashboardGenerationIT.java index 2ff62553c8..46a443b26c 100644 --- a/kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/kie/kogito/examples/quarkus/DashboardGenerationIT.java +++ b/kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/acme/examples/quarkus/DashboardGenerationIT.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples.quarkus; +package org.acme.examples.quarkus; import java.util.List; diff --git a/kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/kie/kogito/examples/quarkus/NativeDashboardGenerationIT.java b/kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/acme/examples/quarkus/NativeDashboardGenerationIT.java similarity index 95% rename from kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/kie/kogito/examples/quarkus/NativeDashboardGenerationIT.java rename to kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/acme/examples/quarkus/NativeDashboardGenerationIT.java index 7bf4ac629a..0f99c4b3e9 100644 --- a/kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/kie/kogito/examples/quarkus/NativeDashboardGenerationIT.java +++ b/kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/acme/examples/quarkus/NativeDashboardGenerationIT.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples.quarkus; +package org.acme.examples.quarkus; import io.quarkus.test.junit.NativeImageTest; diff --git a/kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/kie/kogito/examples/quarkus/ProcessMetricsTest.java b/kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/acme/examples/quarkus/ProcessMetricsTest.java similarity index 89% rename from kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/kie/kogito/examples/quarkus/ProcessMetricsTest.java rename to kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/acme/examples/quarkus/ProcessMetricsTest.java index a51cd75eee..eae8abf64d 100644 --- a/kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/kie/kogito/examples/quarkus/ProcessMetricsTest.java +++ b/kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/acme/examples/quarkus/ProcessMetricsTest.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples.quarkus; +package org.acme.examples.quarkus; import java.util.HashMap; import java.util.Map; @@ -22,10 +22,10 @@ import javax.inject.Inject; import javax.inject.Named; +import org.acme.examples.quarkus.demo.Order; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.kie.kogito.Model; -import org.kie.kogito.examples.quarkus.demo.Order; import org.kie.kogito.process.Process; import org.kie.kogito.process.ProcessInstance; @@ -91,13 +91,13 @@ public void testProcessMetricsQuarkus() { String.format("kogito_process_instance_running_total{app_id=\"default-process-monitoring-listener\",artifactId=\"%s\",process_id=\"demo.orderItems\",version=\"%s\"} 1.0", PROJECT_ARTIFACT_ID, PROJECT_VERSION))) .body(containsString( - String.format("kogito_work_item_duration_seconds_max{artifactId=\"%s\",name=\"org.kie.kogito.examples.quarkus.CalculationService_calculateTotal_3_Handler\",version=\"%s\"}", + String.format("kogito_work_item_duration_seconds_max{artifactId=\"%s\",name=\"org.acme.examples.quarkus.CalculationService_calculateTotal_3_Handler\",version=\"%s\"}", PROJECT_ARTIFACT_ID, PROJECT_VERSION))) .body(containsString( - String.format("kogito_work_item_duration_seconds_count{artifactId=\"%s\",name=\"org.kie.kogito.examples.quarkus.CalculationService_calculateTotal_3_Handler\",version=\"%s\"}", + String.format("kogito_work_item_duration_seconds_count{artifactId=\"%s\",name=\"org.acme.examples.quarkus.CalculationService_calculateTotal_3_Handler\",version=\"%s\"}", PROJECT_ARTIFACT_ID, PROJECT_VERSION))) .body(containsString( - String.format("kogito_work_item_duration_seconds_sum{artifactId=\"%s\",name=\"org.kie.kogito.examples.quarkus.CalculationService_calculateTotal_3_Handler\",version=\"%s\"}", + String.format("kogito_work_item_duration_seconds_sum{artifactId=\"%s\",name=\"org.acme.examples.quarkus.CalculationService_calculateTotal_3_Handler\",version=\"%s\"}", PROJECT_ARTIFACT_ID, PROJECT_VERSION))); } } diff --git a/kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/kie/kogito/examples/quarkus/ProjectMetadataProvider.java b/kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/acme/examples/quarkus/ProjectMetadataProvider.java similarity index 97% rename from kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/kie/kogito/examples/quarkus/ProjectMetadataProvider.java rename to kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/acme/examples/quarkus/ProjectMetadataProvider.java index bd1570570f..aa2a309aeb 100644 --- a/kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/kie/kogito/examples/quarkus/ProjectMetadataProvider.java +++ b/kogito-quarkus-examples/process-monitoring-quarkus/src/test/java/org/acme/examples/quarkus/ProjectMetadataProvider.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.quarkus; +package org.acme.examples.quarkus; import java.io.IOException; import java.util.Properties; diff --git a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/pom.xml b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/pom.xml index 47aa6727e5..55faa2caef 100644 --- a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/kie/kogito/examples/CalculationService.java b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/acme/examples/CalculationService.java similarity index 92% rename from kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/kie/kogito/examples/CalculationService.java rename to kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/acme/examples/CalculationService.java index fc2e8fee76..86eae23521 100644 --- a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/kie/kogito/examples/CalculationService.java +++ b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/acme/examples/CalculationService.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.util.Random; import javax.enterprise.context.ApplicationScoped; -import org.kie.kogito.examples.demo.Order; +import org.acme.examples.demo.Order; @ApplicationScoped public class CalculationService { diff --git a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito/examples/PersonValidationService.java b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/acme/examples/PersonValidationService.java similarity index 92% rename from kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito/examples/PersonValidationService.java rename to kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/acme/examples/PersonValidationService.java index af854584cb..a9896bbeb9 100644 --- a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito/examples/PersonValidationService.java +++ b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/acme/examples/PersonValidationService.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; +import org.acme.examples.demo.Person; import org.drools.ruleunits.api.DataSource; import org.drools.ruleunits.api.DataStore; import org.drools.ruleunits.api.RuleUnitData; -import org.kie.kogito.examples.demo.Person; public class PersonValidationService implements RuleUnitData { private DataStore persons = DataSource.createStore(); diff --git a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito/examples/demo/Order.java b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/acme/examples/demo/Order.java similarity index 97% rename from kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito/examples/demo/Order.java rename to kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/acme/examples/demo/Order.java index 753b87aecd..5ef3a795e9 100755 --- a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito/examples/demo/Order.java +++ b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/acme/examples/demo/Order.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.demo; +package org.acme.examples.demo; public class Order implements java.io.Serializable { diff --git a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito/examples/demo/Person.java b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/acme/examples/demo/Person.java similarity index 97% rename from kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito/examples/demo/Person.java rename to kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/acme/examples/demo/Person.java index c38f75fe3c..dad4622b65 100644 --- a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito/examples/demo/Person.java +++ b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/acme/examples/demo/Person.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.demo; +package org.acme.examples.demo; import java.io.Serializable; diff --git a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/application.properties b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/application.properties index 29295e3600..af01fe35bf 100644 --- a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/application.properties +++ b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/application.properties @@ -12,6 +12,6 @@ kogito.events.database=kogito quarkus.http.cors=true quarkus.container-image.build=true -quarkus.container-image.group=org.kie.kogito.examples +quarkus.container-image.group=org.acme.examples quarkus.container-image.name=process-outbox-mongodb-quarkus quarkus.container-image.tag=1.0 \ No newline at end of file diff --git a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/kie/kogito/examples/PersonValidationService.drl b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/acme/examples/PersonValidationService.drl similarity index 90% rename from kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/kie/kogito/examples/PersonValidationService.drl rename to kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/acme/examples/PersonValidationService.drl index 81e156389c..b0b311d775 100644 --- a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/kie/kogito/examples/PersonValidationService.drl +++ b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/acme/examples/PersonValidationService.drl @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples +package org.acme.examples unit PersonValidationService -import org.kie.kogito.examples.demo.Person; +import org.acme.examples.demo.Person; rule "Is adult" when diff --git a/kogito-springboot-examples/process-springboot-example/src/main/resources/org/kie/kogito/examples/orderItems.bpmn2 b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/acme/examples/orderItems.bpmn2 similarity index 96% rename from kogito-springboot-examples/process-springboot-example/src/main/resources/org/kie/kogito/examples/orderItems.bpmn2 rename to kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/acme/examples/orderItems.bpmn2 index 9a3df852b4..fe6dbd00e8 100644 --- a/kogito-springboot-examples/process-springboot-example/src/main/resources/org/kie/kogito/examples/orderItems.bpmn2 +++ b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/acme/examples/orderItems.bpmn2 @@ -1,7 +1,7 @@ - + @@ -11,9 +11,9 @@ - + - + @@ -31,15 +31,15 @@ - + Message_1 Message_2 - + - + diff --git a/kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/kie/kogito/examples/orders.bpmn2 b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/acme/examples/orders.bpmn2 similarity index 92% rename from kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/kie/kogito/examples/orders.bpmn2 rename to kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/acme/examples/orders.bpmn2 index 71e4146d37..998e93cb78 100644 --- a/kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/kie/kogito/examples/orders.bpmn2 +++ b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/acme/examples/orders.bpmn2 @@ -1,11 +1,11 @@ - + - - - + + + @@ -45,8 +45,8 @@ _58684613-0155-48B2-8746-7675AFF24439 _8216C810-34D8-4BFA-B814-1AA01907810F - - + + _9484CB12-FE52-434C-AE9F-3C3C267D1C96_orderInputX diff --git a/kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/kie/kogito/examples/persons.bpmn2 b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/acme/examples/persons.bpmn2 similarity index 93% rename from kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/kie/kogito/examples/persons.bpmn2 rename to kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/acme/examples/persons.bpmn2 index 70a41e3cc5..5deac40f48 100644 --- a/kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/kie/kogito/examples/persons.bpmn2 +++ b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/acme/examples/persons.bpmn2 @@ -1,5 +1,5 @@ - + @@ -12,13 +12,13 @@ - + - - - + + + @@ -37,7 +37,7 @@ SequenceFlow_1 - + @@ -46,8 +46,8 @@ SequenceFlow_1 SequenceFlow_2 - - + + BusinessRuleTask_1_personsInputX @@ -84,7 +84,7 @@ SequenceFlow_4 - + diff --git a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/test/java/org/kie/kogito/quarkus/outbox/OutboxIT.java b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/test/java/org/acme/quarkus/outbox/OutboxIT.java similarity index 98% rename from kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/test/java/org/kie/kogito/quarkus/outbox/OutboxIT.java rename to kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/test/java/org/acme/quarkus/outbox/OutboxIT.java index 22fadaf7a2..09c6472581 100644 --- a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/test/java/org/kie/kogito/quarkus/outbox/OutboxIT.java +++ b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/test/java/org/acme/quarkus/outbox/OutboxIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.quarkus.outbox; +package org.acme.quarkus.outbox; import java.nio.file.Path; import java.nio.file.Paths; @@ -88,7 +88,7 @@ public class OutboxIT { COMPOSE.waitingFor("kogito", Wait.forListeningPort()); COMPOSE.withLocalCompose(true); //See https://github.com/testcontainers/testcontainers-java/issues/4565 - COMPOSE.withOptions("--compatibility"); + // COMPOSE.withOptions("--compatibility"); } private static Consumer logger() { diff --git a/kogito-quarkus-examples/process-performance-client/pom.xml b/kogito-quarkus-examples/process-performance-client/pom.xml index 99cf83fa06..2d605de453 100755 --- a/kogito-quarkus-examples/process-performance-client/pom.xml +++ b/kogito-quarkus-examples/process-performance-client/pom.xml @@ -5,7 +5,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/AsyncRestDispatcher.java b/kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/AsyncRestDispatcher.java similarity index 97% rename from kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/AsyncRestDispatcher.java rename to kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/AsyncRestDispatcher.java index 565e46f314..88da440d1b 100644 --- a/kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/AsyncRestDispatcher.java +++ b/kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/AsyncRestDispatcher.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.performance.client; +package org.acme.performance.client; import java.util.Collections; import java.util.concurrent.ExecutionException; diff --git a/kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/KafkaDispatcher.java b/kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/KafkaDispatcher.java similarity index 98% rename from kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/KafkaDispatcher.java rename to kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/KafkaDispatcher.java index 39d0a1e490..0c6c87055c 100644 --- a/kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/KafkaDispatcher.java +++ b/kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/KafkaDispatcher.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.performance.client; +package org.acme.performance.client; import java.util.Collections; import java.util.Map; diff --git a/kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/MainRunner.java b/kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/MainRunner.java similarity index 86% rename from kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/MainRunner.java rename to kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/MainRunner.java index 988d2ead25..7a6f60bbec 100644 --- a/kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/MainRunner.java +++ b/kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/MainRunner.java @@ -14,9 +14,8 @@ * limitations under the License. */ -package org.kie.kogito.performance.client; +package org.acme.performance.client; -import org.kie.kogito.performance.client.RequestDispatcherFactory.RequestType; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -25,7 +24,7 @@ public class MainRunner { private static final Logger logger = LoggerFactory.getLogger(MainRunner.class); public static void main(String[] args) { - try (RequestDispatcher dispatcher = RequestDispatcherFactory.getDispatcher(RequestType.KAFKA, "test")) { + try (RequestDispatcher dispatcher = RequestDispatcherFactory.getDispatcher(RequestDispatcherFactory.RequestType.KAFKA, "test")) { new RequestDispatcherRunner(dispatcher, 100, 10).call(); } catch (Exception ex) { logger.error("Execution error ", ex); diff --git a/kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/RequestDispatcher.java b/kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/RequestDispatcher.java similarity index 94% rename from kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/RequestDispatcher.java rename to kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/RequestDispatcher.java index 1bdabe1066..05d5cb0237 100644 --- a/kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/RequestDispatcher.java +++ b/kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/RequestDispatcher.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.performance.client; +package org.acme.performance.client; import java.util.function.Consumer; diff --git a/kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/RequestDispatcherFactory.java b/kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/RequestDispatcherFactory.java similarity index 96% rename from kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/RequestDispatcherFactory.java rename to kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/RequestDispatcherFactory.java index 72b0f04ad0..49c51b01ad 100644 --- a/kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/RequestDispatcherFactory.java +++ b/kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/RequestDispatcherFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.performance.client; +package org.acme.performance.client; public class RequestDispatcherFactory { diff --git a/kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/RequestDispatcherRunner.java b/kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/RequestDispatcherRunner.java similarity index 99% rename from kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/RequestDispatcherRunner.java rename to kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/RequestDispatcherRunner.java index ec74239016..11a00936cb 100644 --- a/kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/RequestDispatcherRunner.java +++ b/kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/RequestDispatcherRunner.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.performance.client; +package org.acme.performance.client; import java.io.IOException; import java.time.Duration; diff --git a/kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/SyncRestDispatcher.java b/kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/SyncRestDispatcher.java similarity index 97% rename from kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/SyncRestDispatcher.java rename to kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/SyncRestDispatcher.java index 9f6728e852..a314823161 100644 --- a/kogito-quarkus-examples/process-performance-client/src/main/java/org/kie/kogito/performance/client/SyncRestDispatcher.java +++ b/kogito-quarkus-examples/process-performance-client/src/main/java/org/acme/performance/client/SyncRestDispatcher.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.performance.client; +package org.acme.performance.client; import java.util.Collections; import java.util.concurrent.ExecutionException; diff --git a/kogito-quarkus-examples/process-performance-quarkus/README.md b/kogito-quarkus-examples/process-performance-quarkus/README.md index f36be8e99c..f6749bf0e8 100644 --- a/kogito-quarkus-examples/process-performance-quarkus/README.md +++ b/kogito-quarkus-examples/process-performance-quarkus/README.md @@ -63,5 +63,5 @@ To run the generated native executable, generated in `target/`, execute ## Example Usage -Once the service is up and running, to collect throughput numbers you need to manually change parameters in code of, compile and run class ```org.kie.kogito.performance.client.MainRunner``` in process-performance-client project +Once the service is up and running, to collect throughput numbers you need to manually change parameters in code of, compile and run class ```org.acme.performance.client.MainRunner``` in process-performance-client project diff --git a/kogito-quarkus-examples/process-performance-quarkus/pom.xml b/kogito-quarkus-examples/process-performance-quarkus/pom.xml index 0d527b4389..c83f60f962 100755 --- a/kogito-quarkus-examples/process-performance-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-performance-quarkus/pom.xml @@ -5,7 +5,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-performance-springboot/src/main/resources/org/kie/kogito/examples/kafkaTest.bpmn2 b/kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/acme/examples/kafkaTest.bpmn2 similarity index 97% rename from kogito-springboot-examples/process-performance-springboot/src/main/resources/org/kie/kogito/examples/kafkaTest.bpmn2 rename to kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/acme/examples/kafkaTest.bpmn2 index 16c544ffe6..2b6e9462cc 100644 --- a/kogito-springboot-examples/process-performance-springboot/src/main/resources/org/kie/kogito/examples/kafkaTest.bpmn2 +++ b/kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/acme/examples/kafkaTest.bpmn2 @@ -6,7 +6,7 @@ - + diff --git a/kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/kie/kogito/examples/kafkaTestOtherChannel.bpmn2 b/kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/acme/examples/kafkaTestOtherChannel.bpmn2 similarity index 98% rename from kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/kie/kogito/examples/kafkaTestOtherChannel.bpmn2 rename to kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/acme/examples/kafkaTestOtherChannel.bpmn2 index 4ce9c94cf6..64d28cd66b 100644 --- a/kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/kie/kogito/examples/kafkaTestOtherChannel.bpmn2 +++ b/kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/acme/examples/kafkaTestOtherChannel.bpmn2 @@ -6,7 +6,7 @@ - + diff --git a/kogito-springboot-examples/process-performance-springboot/src/main/resources/org/kie/kogito/examples/test.bpmn2 b/kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/acme/examples/test.bpmn2 similarity index 97% rename from kogito-springboot-examples/process-performance-springboot/src/main/resources/org/kie/kogito/examples/test.bpmn2 rename to kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/acme/examples/test.bpmn2 index d41e777321..685f9246d6 100644 --- a/kogito-springboot-examples/process-performance-springboot/src/main/resources/org/kie/kogito/examples/test.bpmn2 +++ b/kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/acme/examples/test.bpmn2 @@ -3,7 +3,7 @@ - + diff --git a/kogito-quarkus-examples/process-postgresql-persistence-quarkus/pom.xml b/kogito-quarkus-examples/process-postgresql-persistence-quarkus/pom.xml index 9068e217f4..740a899bd1 100644 --- a/kogito-quarkus-examples/process-postgresql-persistence-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-postgresql-persistence-quarkus/pom.xml @@ -6,7 +6,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-quarkus-example/pom.xml b/kogito-quarkus-examples/process-quarkus-example/pom.xml index 828f07f1fd..b5d4894bbb 100755 --- a/kogito-quarkus-examples/process-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/process-quarkus-example/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/kie/kogito/examples/CalculationService.java b/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/acme/examples/CalculationService.java similarity index 92% rename from kogito-quarkus-examples/process-quarkus-example/src/main/java/org/kie/kogito/examples/CalculationService.java rename to kogito-quarkus-examples/process-quarkus-example/src/main/java/org/acme/examples/CalculationService.java index bf28039f05..a19ceefae6 100644 --- a/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/kie/kogito/examples/CalculationService.java +++ b/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/acme/examples/CalculationService.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.util.Random; import javax.enterprise.context.ApplicationScoped; -import org.kie.kogito.examples.demo.Order; +import org.acme.examples.demo.Order; @ApplicationScoped public class CalculationService { diff --git a/kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/PersonValidationService.java b/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/acme/examples/PersonValidationService.java similarity index 92% rename from kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/PersonValidationService.java rename to kogito-quarkus-examples/process-quarkus-example/src/main/java/org/acme/examples/PersonValidationService.java index 1601506f70..c6bc848a17 100644 --- a/kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/PersonValidationService.java +++ b/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/acme/examples/PersonValidationService.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; +import org.acme.examples.demo.Person; import org.drools.ruleunits.api.DataSource; import org.drools.ruleunits.api.DataStore; import org.drools.ruleunits.api.RuleUnitData; -import org.kie.kogito.examples.demo.Person; public class PersonValidationService implements RuleUnitData { private DataStore persons = DataSource.createStore(); diff --git a/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/kie/kogito/examples/demo/Order.java b/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/acme/examples/demo/Order.java similarity index 97% rename from kogito-quarkus-examples/process-quarkus-example/src/main/java/org/kie/kogito/examples/demo/Order.java rename to kogito-quarkus-examples/process-quarkus-example/src/main/java/org/acme/examples/demo/Order.java index de8b4fb8f2..ad88b5f75b 100755 --- a/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/kie/kogito/examples/demo/Order.java +++ b/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/acme/examples/demo/Order.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.demo; +package org.acme.examples.demo; public class Order implements java.io.Serializable { diff --git a/kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/demo/Person.java b/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/acme/examples/demo/Person.java similarity index 97% rename from kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/demo/Person.java rename to kogito-quarkus-examples/process-quarkus-example/src/main/java/org/acme/examples/demo/Person.java index 4ce2cb03d7..3bcbe19953 100644 --- a/kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/demo/Person.java +++ b/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/acme/examples/demo/Person.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.demo; +package org.acme.examples.demo; import java.io.Serializable; diff --git a/kogito-springboot-examples/process-springboot-example/src/main/resources/org/kie/kogito/examples/PersonValidationService.drl b/kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/acme/examples/PersonValidationService.drl similarity index 90% rename from kogito-springboot-examples/process-springboot-example/src/main/resources/org/kie/kogito/examples/PersonValidationService.drl rename to kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/acme/examples/PersonValidationService.drl index c78f0bc31b..bb86aec170 100644 --- a/kogito-springboot-examples/process-springboot-example/src/main/resources/org/kie/kogito/examples/PersonValidationService.drl +++ b/kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/acme/examples/PersonValidationService.drl @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples +package org.acme.examples unit PersonValidationService -import org.kie.kogito.examples.demo.Person; +import org.acme.examples.demo.Person; rule "Is adult" when diff --git a/kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/kie/kogito/examples/orderItems.bpmn2 b/kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/acme/examples/orderItems.bpmn2 similarity index 96% rename from kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/kie/kogito/examples/orderItems.bpmn2 rename to kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/acme/examples/orderItems.bpmn2 index 9a3df852b4..fe6dbd00e8 100644 --- a/kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/kie/kogito/examples/orderItems.bpmn2 +++ b/kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/acme/examples/orderItems.bpmn2 @@ -1,7 +1,7 @@ - + @@ -11,9 +11,9 @@ - + - + @@ -31,15 +31,15 @@ - + Message_1 Message_2 - + - + diff --git a/kogito-quarkus-examples/process-monitoring-quarkus/src/main/resources/org/kie/kogito/examples/quarkus/orders.bpmn2 b/kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/acme/examples/orders.bpmn2 similarity index 91% rename from kogito-quarkus-examples/process-monitoring-quarkus/src/main/resources/org/kie/kogito/examples/quarkus/orders.bpmn2 rename to kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/acme/examples/orders.bpmn2 index 20337562b1..998e93cb78 100644 --- a/kogito-quarkus-examples/process-monitoring-quarkus/src/main/resources/org/kie/kogito/examples/quarkus/orders.bpmn2 +++ b/kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/acme/examples/orders.bpmn2 @@ -1,11 +1,11 @@ - + - - - + + + @@ -45,8 +45,8 @@ _58684613-0155-48B2-8746-7675AFF24439 _8216C810-34D8-4BFA-B814-1AA01907810F - - + + _9484CB12-FE52-434C-AE9F-3C3C267D1C96_orderInputX diff --git a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/kie/kogito/examples/persons.bpmn2 b/kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/acme/examples/persons.bpmn2 similarity index 93% rename from kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/kie/kogito/examples/persons.bpmn2 rename to kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/acme/examples/persons.bpmn2 index 70a41e3cc5..5deac40f48 100644 --- a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/kie/kogito/examples/persons.bpmn2 +++ b/kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/acme/examples/persons.bpmn2 @@ -1,5 +1,5 @@ - + @@ -12,13 +12,13 @@ - + - - - + + + @@ -37,7 +37,7 @@ SequenceFlow_1 - + @@ -46,8 +46,8 @@ SequenceFlow_1 SequenceFlow_2 - - + + BusinessRuleTask_1_personsInputX @@ -84,7 +84,7 @@ SequenceFlow_4 - + diff --git a/kogito-quarkus-examples/process-quarkus-example/src/test/java/org/kie/kogito/examples/OrdersProcessIT.java b/kogito-quarkus-examples/process-quarkus-example/src/test/java/org/acme/examples/OrdersProcessIT.java similarity index 98% rename from kogito-quarkus-examples/process-quarkus-example/src/test/java/org/kie/kogito/examples/OrdersProcessIT.java rename to kogito-quarkus-examples/process-quarkus-example/src/test/java/org/acme/examples/OrdersProcessIT.java index 55a9515e73..efa60f6f1a 100644 --- a/kogito-quarkus-examples/process-quarkus-example/src/test/java/org/kie/kogito/examples/OrdersProcessIT.java +++ b/kogito-quarkus-examples/process-quarkus-example/src/test/java/org/acme/examples/OrdersProcessIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.util.Collections; import java.util.HashMap; @@ -24,12 +24,12 @@ import javax.inject.Inject; import javax.inject.Named; +import org.acme.examples.demo.Order; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.kie.kogito.Model; import org.kie.kogito.auth.IdentityProviders; import org.kie.kogito.auth.SecurityPolicy; -import org.kie.kogito.examples.demo.Order; import org.kie.kogito.process.Process; import org.kie.kogito.process.ProcessInstance; import org.kie.kogito.process.ProcessInstances; diff --git a/kogito-quarkus-examples/process-quarkus-example/src/test/java/org/kie/kogito/examples/OrdersRestIT.java b/kogito-quarkus-examples/process-quarkus-example/src/test/java/org/acme/examples/OrdersRestIT.java similarity index 99% rename from kogito-quarkus-examples/process-quarkus-example/src/test/java/org/kie/kogito/examples/OrdersRestIT.java rename to kogito-quarkus-examples/process-quarkus-example/src/test/java/org/acme/examples/OrdersRestIT.java index a6c91f37bb..4634333b6e 100644 --- a/kogito-quarkus-examples/process-quarkus-example/src/test/java/org/kie/kogito/examples/OrdersRestIT.java +++ b/kogito-quarkus-examples/process-quarkus-example/src/test/java/org/acme/examples/OrdersRestIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import javax.inject.Inject; import javax.inject.Named; diff --git a/kogito-quarkus-examples/process-quarkus-example/src/test/java/org/kie/kogito/examples/PersonProcessIT.java b/kogito-quarkus-examples/process-quarkus-example/src/test/java/org/acme/examples/PersonProcessIT.java similarity index 98% rename from kogito-quarkus-examples/process-quarkus-example/src/test/java/org/kie/kogito/examples/PersonProcessIT.java rename to kogito-quarkus-examples/process-quarkus-example/src/test/java/org/acme/examples/PersonProcessIT.java index bf8bec9a80..9f7330a24f 100644 --- a/kogito-quarkus-examples/process-quarkus-example/src/test/java/org/kie/kogito/examples/PersonProcessIT.java +++ b/kogito-quarkus-examples/process-quarkus-example/src/test/java/org/acme/examples/PersonProcessIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.util.Collections; import java.util.HashMap; @@ -23,11 +23,11 @@ import javax.inject.Inject; import javax.inject.Named; +import org.acme.examples.demo.Person; import org.junit.jupiter.api.Test; import org.kie.kogito.Model; import org.kie.kogito.auth.IdentityProviders; import org.kie.kogito.auth.SecurityPolicy; -import org.kie.kogito.examples.demo.Person; import org.kie.kogito.process.Process; import org.kie.kogito.process.ProcessInstance; import org.kie.kogito.process.WorkItem; diff --git a/kogito-quarkus-examples/process-quarkus-example/src/test/java/org/kie/kogito/examples/PersonsRestIT.java b/kogito-quarkus-examples/process-quarkus-example/src/test/java/org/acme/examples/PersonsRestIT.java similarity index 99% rename from kogito-quarkus-examples/process-quarkus-example/src/test/java/org/kie/kogito/examples/PersonsRestIT.java rename to kogito-quarkus-examples/process-quarkus-example/src/test/java/org/acme/examples/PersonsRestIT.java index 3dece4add2..2c8acca631 100644 --- a/kogito-quarkus-examples/process-quarkus-example/src/test/java/org/kie/kogito/examples/PersonsRestIT.java +++ b/kogito-quarkus-examples/process-quarkus-example/src/test/java/org/acme/examples/PersonsRestIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import javax.inject.Inject; import javax.inject.Named; diff --git a/kogito-quarkus-examples/process-rest-service-call-quarkus/mvnw b/kogito-quarkus-examples/process-rest-service-call-quarkus/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-quarkus-examples/process-rest-service-call-quarkus/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-quarkus-examples/process-rest-service-call-quarkus/mvnw.cmd b/kogito-quarkus-examples/process-rest-service-call-quarkus/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-quarkus-examples/process-rest-service-call-quarkus/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-quarkus-examples/process-rest-service-call-quarkus/pom.xml b/kogito-quarkus-examples/process-rest-service-call-quarkus/pom.xml index f15c86c1ef..7737faeeeb 100644 --- a/kogito-quarkus-examples/process-rest-service-call-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-rest-service-call-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/pom.xml b/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/pom.xml index a0cdb59184..179a7c2d4a 100644 --- a/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-rest-workitem-quarkus/pom.xml b/kogito-quarkus-examples/process-rest-workitem-quarkus/pom.xml index 70c6af42c8..860b1329c3 100644 --- a/kogito-quarkus-examples/process-rest-workitem-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-rest-workitem-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-saga-quarkus/README.md b/kogito-quarkus-examples/process-saga-quarkus/README.md index 3316acafb5..ef863044a7 100644 --- a/kogito-quarkus-examples/process-saga-quarkus/README.md +++ b/kogito-quarkus-examples/process-saga-quarkus/README.md @@ -146,10 +146,10 @@ Response example: In the console executing the application you can check the log it with the executed steps. ```text -17:16:58:864 INFO [org.kie.kogito.examples.StockService] Created Stock for 12345678 with Id: 8ab1ac13-38d0-49e6-ab40-1edd2dc39922 -17:16:58:865 INFO [org.kie.kogito.examples.PaymentService] Created Payment for 12345678 with Id: 2bfc044a-ccb4-4072-a26e-5a533d835257 -17:16:58:865 INFO [org.kie.kogito.examples.ShippingService] Created Shipping for 12345678 with Id: 84a45015-c98b-4e08-b4cd-cf05a19b87e1 -17:16:58:865 INFO [org.kie.kogito.examples.OrderService] Success Order 12345678 +17:16:58:864 INFO [org.acme.examples.StockService] Created Stock for 12345678 with Id: 8ab1ac13-38d0-49e6-ab40-1edd2dc39922 +17:16:58:865 INFO [org.acme.examples.PaymentService] Created Payment for 12345678 with Id: 2bfc044a-ccb4-4072-a26e-5a533d835257 +17:16:58:865 INFO [org.acme.examples.ShippingService] Created Shipping for 12345678 with Id: 84a45015-c98b-4e08-b4cd-cf05a19b87e1 +17:16:58:865 INFO [org.acme.examples.OrderService] Success Order 12345678 ``` #### Simulating errors to activate the compensation flows @@ -200,13 +200,13 @@ Response example: In the console executing the application you can check the log it with the executed steps. ```text -17:16:17:723 INFO [org.kie.kogito.examples.StockService] Created Stock for 12345678 with Id: 9098daa2-f40f-4231-995a-1c7d159df190 -17:16:17:724 INFO [org.kie.kogito.examples.PaymentService] Created Payment for 12345678 with Id: d6ac4086-efe9-4a9e-849c-2b6d48dbc1f0 -17:16:17:724 INFO [org.kie.kogito.examples.ShippingService] Created Shipping for 12345678 with Id: 39c40aa1-10af-42ad-8ba2-b8dd9c6279e1 -17:16:17:746 WARN [org.kie.kogito.examples.ShippingService] Cancel Shipping for 39c40aa1-10af-42ad-8ba2-b8dd9c6279e1 -17:16:17:746 WARN [org.kie.kogito.examples.PaymentService] Cancel Payment for d6ac4086-efe9-4a9e-849c-2b6d48dbc1f0 -17:16:17:747 WARN [org.kie.kogito.examples.StockService] Cancel Stock for 9098daa2-f40f-4231-995a-1c7d159df190 -17:16:17:747 WARN [org.kie.kogito.examples.OrderService] Failed Order 12345678 +17:16:17:723 INFO [org.acme.examples.StockService] Created Stock for 12345678 with Id: 9098daa2-f40f-4231-995a-1c7d159df190 +17:16:17:724 INFO [org.acme.examples.PaymentService] Created Payment for 12345678 with Id: d6ac4086-efe9-4a9e-849c-2b6d48dbc1f0 +17:16:17:724 INFO [org.acme.examples.ShippingService] Created Shipping for 12345678 with Id: 39c40aa1-10af-42ad-8ba2-b8dd9c6279e1 +17:16:17:746 WARN [org.acme.examples.ShippingService] Cancel Shipping for 39c40aa1-10af-42ad-8ba2-b8dd9c6279e1 +17:16:17:746 WARN [org.acme.examples.PaymentService] Cancel Payment for d6ac4086-efe9-4a9e-849c-2b6d48dbc1f0 +17:16:17:747 WARN [org.acme.examples.StockService] Cancel Stock for 9098daa2-f40f-4231-995a-1c7d159df190 +17:16:17:747 WARN [org.acme.examples.OrderService] Failed Order 12345678 ``` ## Deploying with Kogito Operator diff --git a/kogito-quarkus-examples/process-saga-quarkus/pom.xml b/kogito-quarkus-examples/process-saga-quarkus/pom.xml index 1cf3201035..8b653012e6 100644 --- a/kogito-quarkus-examples/process-saga-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-saga-quarkus/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/MockService.java b/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/MockService.java similarity index 97% rename from kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/MockService.java rename to kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/MockService.java index f54ca193e4..8f4051d14d 100644 --- a/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/MockService.java +++ b/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/MockService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.util.Objects; import java.util.Optional; diff --git a/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/OrderService.java b/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/OrderService.java similarity index 97% rename from kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/OrderService.java rename to kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/OrderService.java index 516164b9b3..640dc4125d 100644 --- a/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/OrderService.java +++ b/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/OrderService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import javax.enterprise.context.ApplicationScoped; diff --git a/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/PaymentService.java b/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/PaymentService.java similarity index 97% rename from kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/PaymentService.java rename to kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/PaymentService.java index 960c190f4f..58fb3464ed 100644 --- a/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/PaymentService.java +++ b/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/PaymentService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; diff --git a/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/Response.java b/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/Response.java similarity index 97% rename from kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/Response.java rename to kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/Response.java index 193443e4ff..96f5025791 100644 --- a/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/Response.java +++ b/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/Response.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/ServiceException.java b/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/ServiceException.java similarity index 95% rename from kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/ServiceException.java rename to kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/ServiceException.java index 908552aa21..51d6a2cd5b 100644 --- a/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/ServiceException.java +++ b/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/ServiceException.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; public class ServiceException extends RuntimeException { diff --git a/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/ShippingService.java b/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/ShippingService.java similarity index 98% rename from kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/ShippingService.java rename to kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/ShippingService.java index 26c06a016c..0aa9432fa8 100644 --- a/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/ShippingService.java +++ b/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/ShippingService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; diff --git a/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/StockService.java b/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/StockService.java similarity index 97% rename from kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/StockService.java rename to kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/StockService.java index 8c74346bdf..ea2f1bb41e 100644 --- a/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/kie/kogito/examples/StockService.java +++ b/kogito-quarkus-examples/process-saga-quarkus/src/main/java/org/acme/examples/StockService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; diff --git a/kogito-quarkus-examples/process-saga-quarkus/src/main/resources/order-saga-error-handling.bpmn2 b/kogito-quarkus-examples/process-saga-quarkus/src/main/resources/order-saga-error-handling.bpmn2 index df323464d0..88717bb865 100644 --- a/kogito-quarkus-examples/process-saga-quarkus/src/main/resources/order-saga-error-handling.bpmn2 +++ b/kogito-quarkus-examples/process-saga-quarkus/src/main/resources/order-saga-error-handling.bpmn2 @@ -1,55 +1,55 @@ - - - + + + - + - + - + - + - + - - + + - - + + - + - + - + - + - + - + - + @@ -103,7 +103,7 @@ - + _83820D13-5545-488E-B86C-485C9FC4AEC5 - + _8EE09D40-0D96-4EC0-86E4-A3FB11B78EB0_idInputX @@ -131,7 +131,7 @@ Success]]> orderResponse - + @@ -151,7 +151,7 @@ Success]]> - + @@ -171,7 +171,7 @@ Success]]> - + @@ -194,7 +194,7 @@ Success]]> _83820D13-5545-488E-B86C-485C9FC4AEC5 - + @@ -206,7 +206,7 @@ Success]]> - + _49632170-78A4-4962-B98C-E2962724056C_idInputX _49632170-78A4-4962-B98C-E2962724056C_failInputX @@ -236,7 +236,7 @@ Success]]> paymentResponse - + @@ -248,7 +248,7 @@ Success]]> - + _509E842A-8338-48F6-8268-161C000C840B_idInputX _509E842A-8338-48F6-8268-161C000C840B_failInputX @@ -278,7 +278,7 @@ Success]]> shippingResponse - + @@ -290,7 +290,7 @@ Success]]> - + _F12F8E21-9130-49C3-A73F-F3B0093104FB_idInputX _F12F8E21-9130-49C3-A73F-F3B0093104FB_failInputX @@ -350,9 +350,9 @@ Success]]> _D20C84EC-27D5-4FFD-B959-87DFF80B9AA1 - + - + @@ -362,7 +362,7 @@ Success]]> _63149CDE-40ED-4AAF-B2CA-C2878156B8F7 - + _A4898FE5-A2BC-4D3C-90F2-7992CD7FB20C_idInputX diff --git a/kogito-quarkus-examples/process-saga-quarkus/src/main/resources/order-saga.bpmn2 b/kogito-quarkus-examples/process-saga-quarkus/src/main/resources/order-saga.bpmn2 index 2e0de8760b..aab6c965f4 100644 --- a/kogito-quarkus-examples/process-saga-quarkus/src/main/resources/order-saga.bpmn2 +++ b/kogito-quarkus-examples/process-saga-quarkus/src/main/resources/order-saga.bpmn2 @@ -1,51 +1,51 @@ - - - + + + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + @@ -167,7 +167,7 @@ _A362E8DF-2D3C-4371-BB9A-611A8336BB5B _9990FC64-2DC3-409F-982C-747DA4EABC0E - + @@ -177,7 +177,7 @@ _63149CDE-40ED-4AAF-B2CA-C2878156B8F7 - + _A4898FE5-A2BC-4D3C-90F2-7992CD7FB20C_idInputX @@ -194,7 +194,7 @@ orderResponse - + _83820D13-5545-488E-B86C-485C9FC4AEC5 - + _8EE09D40-0D96-4EC0-86E4-A3FB11B78EB0_idInputX @@ -241,7 +241,7 @@ Success]]> _2FAB8CB2-7CD0-4D20-BF40-4808AFA8297B _6B77DF02-AB0F-49C6-973B-9526E7BB0B8E - + @@ -261,7 +261,7 @@ Success]]> - + @@ -281,7 +281,7 @@ Success]]> - + @@ -304,7 +304,7 @@ Success]]> _83820D13-5545-488E-B86C-485C9FC4AEC5 - + @@ -315,7 +315,7 @@ Success]]> - + _49632170-78A4-4962-B98C-E2962724056C_idInputX _49632170-78A4-4962-B98C-E2962724056C_failInputX @@ -337,7 +337,7 @@ Success]]> paymentResponse - + @@ -348,7 +348,7 @@ Success]]> - + _509E842A-8338-48F6-8268-161C000C840B_idInputX _509E842A-8338-48F6-8268-161C000C840B_failInputX @@ -370,7 +370,7 @@ Success]]> shippingResponse - + @@ -381,7 +381,7 @@ Success]]> - + _F12F8E21-9130-49C3-A73F-F3B0093104FB_idInputX _F12F8E21-9130-49C3-A73F-F3B0093104FB_failInputX diff --git a/kogito-quarkus-examples/process-saga-quarkus/src/test/java/org/kie/kogito/examples/ProcessSagaIT.java b/kogito-quarkus-examples/process-saga-quarkus/src/test/java/org/acme/examples/ProcessSagaIT.java similarity index 98% rename from kogito-quarkus-examples/process-saga-quarkus/src/test/java/org/kie/kogito/examples/ProcessSagaIT.java rename to kogito-quarkus-examples/process-saga-quarkus/src/test/java/org/acme/examples/ProcessSagaIT.java index 02a02a792a..ccfca4ef12 100644 --- a/kogito-quarkus-examples/process-saga-quarkus/src/test/java/org/kie/kogito/examples/ProcessSagaIT.java +++ b/kogito-quarkus-examples/process-saga-quarkus/src/test/java/org/acme/examples/ProcessSagaIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.junit.jupiter.api.Test; diff --git a/kogito-quarkus-examples/process-scripts-quarkus/mvnw b/kogito-quarkus-examples/process-scripts-quarkus/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-quarkus-examples/process-scripts-quarkus/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-quarkus-examples/process-scripts-quarkus/mvnw.cmd b/kogito-quarkus-examples/process-scripts-quarkus/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-quarkus-examples/process-scripts-quarkus/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-quarkus-examples/process-scripts-quarkus/pom.xml b/kogito-quarkus-examples/process-scripts-quarkus/pom.xml index 8515e4db68..1c9574c1e7 100644 --- a/kogito-quarkus-examples/process-scripts-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-scripts-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-service-calls-quarkus/mvnw b/kogito-quarkus-examples/process-service-calls-quarkus/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-quarkus-examples/process-service-calls-quarkus/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-quarkus-examples/process-service-calls-quarkus/mvnw.cmd b/kogito-quarkus-examples/process-service-calls-quarkus/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-quarkus-examples/process-service-calls-quarkus/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-quarkus-examples/process-service-calls-quarkus/pom.xml b/kogito-quarkus-examples/process-service-calls-quarkus/pom.xml index 8c439f2359..91db0d1c7e 100644 --- a/kogito-quarkus-examples/process-service-calls-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-service-calls-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-timer-quarkus/mvnw b/kogito-quarkus-examples/process-timer-quarkus/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-quarkus-examples/process-timer-quarkus/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-quarkus-examples/process-timer-quarkus/mvnw.cmd b/kogito-quarkus-examples/process-timer-quarkus/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-quarkus-examples/process-timer-quarkus/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-quarkus-examples/process-timer-quarkus/pom.xml b/kogito-quarkus-examples/process-timer-quarkus/pom.xml index 32533e0903..d222d6b118 100644 --- a/kogito-quarkus-examples/process-timer-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-timer-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/mvnw b/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/mvnw.cmd b/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/pom.xml b/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/pom.xml index 50dffbd7f2..3740955d76 100644 --- a/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-usertasks-custom-lifecycle-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-usertasks-quarkus-with-console/pom.xml b/kogito-quarkus-examples/process-usertasks-quarkus-with-console/pom.xml index d0a90b39a0..86c05750bc 100644 --- a/kogito-quarkus-examples/process-usertasks-quarkus-with-console/pom.xml +++ b/kogito-quarkus-examples/process-usertasks-quarkus-with-console/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-usertasks-quarkus-with-console/src/main/java/org/kie/kogito/hr/Candidate.java b/kogito-quarkus-examples/process-usertasks-quarkus-with-console/src/main/java/org/acme/hr/Candidate.java similarity index 98% rename from kogito-quarkus-examples/process-usertasks-quarkus-with-console/src/main/java/org/kie/kogito/hr/Candidate.java rename to kogito-quarkus-examples/process-usertasks-quarkus-with-console/src/main/java/org/acme/hr/Candidate.java index 1a8b140240..7285fb294f 100644 --- a/kogito-quarkus-examples/process-usertasks-quarkus-with-console/src/main/java/org/kie/kogito/hr/Candidate.java +++ b/kogito-quarkus-examples/process-usertasks-quarkus-with-console/src/main/java/org/acme/hr/Candidate.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.hr; +package org.acme.hr; public class Candidate { diff --git a/kogito-quarkus-examples/process-usertasks-quarkus-with-console/src/main/resources/hiring.bpmn b/kogito-quarkus-examples/process-usertasks-quarkus-with-console/src/main/resources/hiring.bpmn index 925ce15331..9050567932 100644 --- a/kogito-quarkus-examples/process-usertasks-quarkus-with-console/src/main/resources/hiring.bpmn +++ b/kogito-quarkus-examples/process-usertasks-quarkus-with-console/src/main/resources/hiring.bpmn @@ -1,5 +1,5 @@ - + @@ -14,7 +14,7 @@ - + @@ -28,9 +28,9 @@ - + - + @@ -71,7 +71,7 @@ _D762FECA-89D1-40DE-97EC-F69FA9A3E4B3 - + @@ -124,7 +124,7 @@ _27F81353-7101-4BDF-BB04-2FD45983C17F - + diff --git a/kogito-quarkus-examples/process-usertasks-quarkus-with-console/src/test/java/org/kie/kogito/hr/HiringProcessIT.java b/kogito-quarkus-examples/process-usertasks-quarkus-with-console/src/test/java/org/acme/hr/HiringProcessIT.java similarity index 99% rename from kogito-quarkus-examples/process-usertasks-quarkus-with-console/src/test/java/org/kie/kogito/hr/HiringProcessIT.java rename to kogito-quarkus-examples/process-usertasks-quarkus-with-console/src/test/java/org/acme/hr/HiringProcessIT.java index 01c683b6ee..b287925755 100644 --- a/kogito-quarkus-examples/process-usertasks-quarkus-with-console/src/test/java/org/kie/kogito/hr/HiringProcessIT.java +++ b/kogito-quarkus-examples/process-usertasks-quarkus-with-console/src/test/java/org/acme/hr/HiringProcessIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.hr; +package org.acme.hr; import java.util.Arrays; import java.util.HashMap; diff --git a/kogito-quarkus-examples/process-usertasks-quarkus/mvnw b/kogito-quarkus-examples/process-usertasks-quarkus/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-quarkus-examples/process-usertasks-quarkus/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-quarkus-examples/process-usertasks-quarkus/mvnw.cmd b/kogito-quarkus-examples/process-usertasks-quarkus/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-quarkus-examples/process-usertasks-quarkus/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-quarkus-examples/process-usertasks-quarkus/pom.xml b/kogito-quarkus-examples/process-usertasks-quarkus/pom.xml index 912b403358..731c7bbf0b 100644 --- a/kogito-quarkus-examples/process-usertasks-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-usertasks-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/pom.xml b/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/pom.xml index d2f0609460..465c2fd6f3 100644 --- a/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/pom.xml +++ b/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/src/main/java/org/kie/kogito/hr/Candidate.java b/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/src/main/java/org/acme/hr/Candidate.java similarity index 98% rename from kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/src/main/java/org/kie/kogito/hr/Candidate.java rename to kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/src/main/java/org/acme/hr/Candidate.java index 1d37a2d4bf..3fe5f9c581 100644 --- a/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/src/main/java/org/kie/kogito/hr/Candidate.java +++ b/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/src/main/java/org/acme/hr/Candidate.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.hr; +package org.acme.hr; public class Candidate { diff --git a/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/src/main/resources/hiring.bpmn b/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/src/main/resources/hiring.bpmn index 24edc296b2..b7566baa70 100644 --- a/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/src/main/resources/hiring.bpmn +++ b/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/src/main/resources/hiring.bpmn @@ -1,5 +1,5 @@ - + @@ -14,7 +14,7 @@ - + @@ -28,9 +28,9 @@ - + - + @@ -107,7 +107,7 @@ _ECE52C1C-B8CB-424D-8C0F-D5BFD50B1530 - + @@ -157,7 +157,7 @@ _B03EF43B-AF6A-4FDA-92B3-A166585A941D - + diff --git a/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/src/test/java/org/kie/kogito/hr/HiringProcessIT.java b/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/src/test/java/org/acme/hr/HiringProcessIT.java similarity index 99% rename from kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/src/test/java/org/kie/kogito/hr/HiringProcessIT.java rename to kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/src/test/java/org/acme/hr/HiringProcessIT.java index 01c683b6ee..b287925755 100644 --- a/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/src/test/java/org/kie/kogito/hr/HiringProcessIT.java +++ b/kogito-quarkus-examples/process-usertasks-timer-quarkus-with-console/src/test/java/org/acme/hr/HiringProcessIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.hr; +package org.acme.hr; import java.util.Arrays; import java.util.HashMap; diff --git a/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus-with-console/pom.xml b/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus-with-console/pom.xml index 85006df8d8..5c4f4c42fa 100644 --- a/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus-with-console/pom.xml +++ b/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus-with-console/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/mvnw b/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/mvnw.cmd b/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/pom.xml b/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/pom.xml index f6b3936147..c4b99c8635 100644 --- a/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-usertasks-with-security-oidc-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-usertasks-with-security-quarkus/mvnw b/kogito-quarkus-examples/process-usertasks-with-security-quarkus/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-quarkus-examples/process-usertasks-with-security-quarkus/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-quarkus-examples/process-usertasks-with-security-quarkus/mvnw.cmd b/kogito-quarkus-examples/process-usertasks-with-security-quarkus/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-quarkus-examples/process-usertasks-with-security-quarkus/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-quarkus-examples/process-usertasks-with-security-quarkus/pom.xml b/kogito-quarkus-examples/process-usertasks-with-security-quarkus/pom.xml index 6f84b3d3ed..fb70f3914f 100644 --- a/kogito-quarkus-examples/process-usertasks-with-security-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-usertasks-with-security-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/rules-incubation-api-quarkus/pom.xml b/kogito-quarkus-examples/rules-incubation-api-quarkus/pom.xml index 75331b945f..f3e3a2cb53 100644 --- a/kogito-quarkus-examples/rules-incubation-api-quarkus/pom.xml +++ b/kogito-quarkus-examples/rules-incubation-api-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/java/org/acme/CustomRestRules.java b/kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/java/org/acme/examples/CustomRestRules.java similarity index 97% rename from kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/java/org/acme/CustomRestRules.java rename to kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/java/org/acme/examples/CustomRestRules.java index 923a30f4f5..84d9b9a2a7 100644 --- a/kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/java/org/acme/CustomRestRules.java +++ b/kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/java/org/acme/examples/CustomRestRules.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.acme; +package org.acme.examples; import java.util.Map; import java.util.stream.Stream; @@ -25,7 +25,6 @@ import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; -import org.kie.kogito.examples.Hello; import org.kie.kogito.incubation.application.AppRoot; import org.kie.kogito.incubation.common.DataContext; import org.kie.kogito.incubation.common.MapDataContext; diff --git a/kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/java/org/kie/kogito/examples/Hello.java b/kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/java/org/acme/examples/Hello.java similarity index 96% rename from kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/java/org/kie/kogito/examples/Hello.java rename to kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/java/org/acme/examples/Hello.java index 09fd0a12b4..257268a5de 100644 --- a/kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/java/org/kie/kogito/examples/Hello.java +++ b/kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/java/org/acme/examples/Hello.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.drools.ruleunits.api.DataSource; import org.drools.ruleunits.api.DataStore; diff --git a/kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/resources/org/kie/kogito/examples/Hello.drl b/kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/resources/org/acme/examples/Hello.drl similarity index 95% rename from kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/resources/org/kie/kogito/examples/Hello.drl rename to kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/resources/org/acme/examples/Hello.drl index e6d2073438..1d08d9af73 100644 --- a/kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/resources/org/kie/kogito/examples/Hello.drl +++ b/kogito-quarkus-examples/rules-incubation-api-quarkus/src/main/resources/org/acme/examples/Hello.drl @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; unit Hello; rule helloWorld diff --git a/kogito-quarkus-examples/rules-legacy-quarkus-example/pom.xml b/kogito-quarkus-examples/rules-legacy-quarkus-example/pom.xml index 3b0a409833..83b1c24ca5 100644 --- a/kogito-quarkus-examples/rules-legacy-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/rules-legacy-quarkus-example/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/kie/kogito/legacy/Applicant.java b/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/acme/legacy/Applicant.java similarity index 97% rename from kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/kie/kogito/legacy/Applicant.java rename to kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/acme/legacy/Applicant.java index 771c31fe80..9ccfd60395 100644 --- a/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/kie/kogito/legacy/Applicant.java +++ b/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/acme/legacy/Applicant.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.legacy; +package org.acme.legacy; public class Applicant { diff --git a/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/kie/kogito/legacy/FindApprovedLoansEndpoint.java b/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/acme/legacy/FindApprovedLoansEndpoint.java similarity index 98% rename from kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/kie/kogito/legacy/FindApprovedLoansEndpoint.java rename to kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/acme/legacy/FindApprovedLoansEndpoint.java index 7eb1ae4e38..7cee81b034 100644 --- a/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/kie/kogito/legacy/FindApprovedLoansEndpoint.java +++ b/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/acme/legacy/FindApprovedLoansEndpoint.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.legacy; +package org.acme.legacy; import java.util.ArrayList; import java.util.List; diff --git a/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/kie/kogito/legacy/LoanApplication.java b/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/acme/legacy/LoanApplication.java similarity index 98% rename from kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/kie/kogito/legacy/LoanApplication.java rename to kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/acme/legacy/LoanApplication.java index 053c5e25b9..2c8037b63d 100644 --- a/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/kie/kogito/legacy/LoanApplication.java +++ b/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/acme/legacy/LoanApplication.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.legacy; +package org.acme.legacy; public class LoanApplication { diff --git a/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/kie/kogito/legacy/LoanDto.java b/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/acme/legacy/LoanDto.java similarity index 97% rename from kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/kie/kogito/legacy/LoanDto.java rename to kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/acme/legacy/LoanDto.java index 1db9def3c2..ef1a82c5c6 100644 --- a/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/kie/kogito/legacy/LoanDto.java +++ b/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/acme/legacy/LoanDto.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.legacy; +package org.acme.legacy; import java.util.List; diff --git a/kogito-springboot-examples/rules-legacy-springboot-example/src/main/resources/org/kie/kogito/legacy/LoanRules.drl b/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/resources/org/acme/legacy/LoanRules.drl similarity index 95% rename from kogito-springboot-examples/rules-legacy-springboot-example/src/main/resources/org/kie/kogito/legacy/LoanRules.drl rename to kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/resources/org/acme/legacy/LoanRules.drl index e9a24b46c9..5eafd184d5 100644 --- a/kogito-springboot-examples/rules-legacy-springboot-example/src/main/resources/org/kie/kogito/legacy/LoanRules.drl +++ b/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/resources/org/acme/legacy/LoanRules.drl @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.legacy; +package org.acme.legacy; -import org.kie.kogito.legacy.LoanApplication; +import org.acme.legacy.LoanApplication; global Integer maxAmount; global java.util.List approvedApplications; diff --git a/kogito-quarkus-examples/rules-legacy-quarkus-example/src/test/java/org/kie/kogito/NativeRestQueryTestIT.java b/kogito-quarkus-examples/rules-legacy-quarkus-example/src/test/java/org/acme/NativeRestQueryTestIT.java similarity index 97% rename from kogito-quarkus-examples/rules-legacy-quarkus-example/src/test/java/org/kie/kogito/NativeRestQueryTestIT.java rename to kogito-quarkus-examples/rules-legacy-quarkus-example/src/test/java/org/acme/NativeRestQueryTestIT.java index 3455e8798f..5bfcf4f811 100644 --- a/kogito-quarkus-examples/rules-legacy-quarkus-example/src/test/java/org/kie/kogito/NativeRestQueryTestIT.java +++ b/kogito-quarkus-examples/rules-legacy-quarkus-example/src/test/java/org/acme/NativeRestQueryTestIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito; +package org.acme; import io.quarkus.test.junit.NativeImageTest; diff --git a/kogito-quarkus-examples/rules-legacy-quarkus-example/src/test/java/org/kie/kogito/RestQueryTest.java b/kogito-quarkus-examples/rules-legacy-quarkus-example/src/test/java/org/acme/RestQueryTest.java similarity index 99% rename from kogito-quarkus-examples/rules-legacy-quarkus-example/src/test/java/org/kie/kogito/RestQueryTest.java rename to kogito-quarkus-examples/rules-legacy-quarkus-example/src/test/java/org/acme/RestQueryTest.java index e8d437ddf1..cd2ea2f6f7 100644 --- a/kogito-quarkus-examples/rules-legacy-quarkus-example/src/test/java/org/kie/kogito/RestQueryTest.java +++ b/kogito-quarkus-examples/rules-legacy-quarkus-example/src/test/java/org/acme/RestQueryTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito; +package org.acme; import org.junit.jupiter.api.Test; diff --git a/kogito-quarkus-examples/rules-quarkus-helloworld/pom.xml b/kogito-quarkus-examples/rules-quarkus-helloworld/pom.xml index 3f593a1550..dad0b2230f 100755 --- a/kogito-quarkus-examples/rules-quarkus-helloworld/pom.xml +++ b/kogito-quarkus-examples/rules-quarkus-helloworld/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/rules-quarkus-helloworld/src/main/java/org/kie/kogito/examples/Hello.java b/kogito-quarkus-examples/rules-quarkus-helloworld/src/main/java/org/acme/examples/Hello.java similarity index 96% rename from kogito-quarkus-examples/rules-quarkus-helloworld/src/main/java/org/kie/kogito/examples/Hello.java rename to kogito-quarkus-examples/rules-quarkus-helloworld/src/main/java/org/acme/examples/Hello.java index 8d068badf1..464cf71788 100644 --- a/kogito-quarkus-examples/rules-quarkus-helloworld/src/main/java/org/kie/kogito/examples/Hello.java +++ b/kogito-quarkus-examples/rules-quarkus-helloworld/src/main/java/org/acme/examples/Hello.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.drools.ruleunits.api.DataSource; import org.drools.ruleunits.api.DataStore; diff --git a/kogito-quarkus-examples/rules-quarkus-helloworld/src/main/java/org/kie/kogito/examples/MyAgendaEventListener.java b/kogito-quarkus-examples/rules-quarkus-helloworld/src/main/java/org/acme/examples/MyAgendaEventListener.java similarity index 97% rename from kogito-quarkus-examples/rules-quarkus-helloworld/src/main/java/org/kie/kogito/examples/MyAgendaEventListener.java rename to kogito-quarkus-examples/rules-quarkus-helloworld/src/main/java/org/acme/examples/MyAgendaEventListener.java index 0af433e963..4888069408 100644 --- a/kogito-quarkus-examples/rules-quarkus-helloworld/src/main/java/org/kie/kogito/examples/MyAgendaEventListener.java +++ b/kogito-quarkus-examples/rules-quarkus-helloworld/src/main/java/org/acme/examples/MyAgendaEventListener.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.util.concurrent.atomic.AtomicInteger; diff --git a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/org/kie/kogito/examples/Hello.drl b/kogito-quarkus-examples/rules-quarkus-helloworld/src/main/resources/org/acme/examples/Hello.drl similarity index 95% rename from kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/org/kie/kogito/examples/Hello.drl rename to kogito-quarkus-examples/rules-quarkus-helloworld/src/main/resources/org/acme/examples/Hello.drl index 7aaacc6c99..ecdea0651a 100644 --- a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/org/kie/kogito/examples/Hello.drl +++ b/kogito-quarkus-examples/rules-quarkus-helloworld/src/main/resources/org/acme/examples/Hello.drl @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; unit Hello; rule helloWorld diff --git a/kogito-quarkus-examples/rules-quarkus-helloworld/src/test/java/org/kie/kogito/examples/HelloTest.java b/kogito-quarkus-examples/rules-quarkus-helloworld/src/test/java/org/acme/examples/HelloTest.java similarity index 97% rename from kogito-quarkus-examples/rules-quarkus-helloworld/src/test/java/org/kie/kogito/examples/HelloTest.java rename to kogito-quarkus-examples/rules-quarkus-helloworld/src/test/java/org/acme/examples/HelloTest.java index 689a1fd08c..813a99e5b5 100644 --- a/kogito-quarkus-examples/rules-quarkus-helloworld/src/test/java/org/kie/kogito/examples/HelloTest.java +++ b/kogito-quarkus-examples/rules-quarkus-helloworld/src/test/java/org/acme/examples/HelloTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import javax.inject.Inject; diff --git a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/README.md b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/README.md index 504e15027f..a91fb5346f 100644 --- a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/README.md +++ b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/README.md @@ -108,7 +108,7 @@ Note: This does not yet work on Windows, GraalVM and Quarkus should be rolling o ## Example Usage -Here is an example of a input event that triggers the evaluation of the [Loan Unit](src/main/resources/org/kie/kogito/queries/RuleUnitQuery.drl) queries +Here is an example of a input event that triggers the evaluation of the [Loan Unit](src/main/resources/org/acme/queries/RuleUnitQuery.drl) queries included in this example. The `data` field contains the query input. Just send this payload to the configured input topic: @@ -120,7 +120,7 @@ Just send this payload to the configured input topic: "source": "SomeEventSource", "type": "RulesRequest", "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", + "kogitoruleunitid": "org.acme.queries.LoanUnit", "kogitoruleunitquery": "FindApproved", "data": { "maxAmount": 5000, @@ -166,7 +166,7 @@ And you should receive something similar to this in the output topic: "source": "find-approved", "type": "RulesResponse", "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", + "kogitoruleunitid": "org.acme.queries.LoanUnit", "kogitoruleunitquery": "FindApproved", "data": [ { diff --git a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/out.txt b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/out.txt deleted file mode 100644 index 9002dae5cc..0000000000 --- a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/out.txt +++ /dev/null @@ -1,1950 +0,0 @@ -[INFO] Scanning for projects... -[INFO] ------------------------------------------------------------------------ -[INFO] Detecting the operating system and CPU architecture -[INFO] ------------------------------------------------------------------------ -[INFO] os.detected.name: linux -[INFO] os.detected.arch: x86_64 -[INFO] os.detected.version: 5.19 -[INFO] os.detected.version.major: 5 -[INFO] os.detected.version.minor: 19 -[INFO] os.detected.release: fedora -[INFO] os.detected.release.version: 36 -[INFO] os.detected.release.like.fedora: true -[INFO] os.detected.classifier: linux-x86_64 -[INFO] -[INFO] -------< org.kie.kogito.examples:ruleunit-event-driven-quarkus >-------- -[INFO] Building Kogito Example :: Rule Unit Event-Driven :: Quarkus 2.0.0-SNAPSHOT -[INFO] --------------------------------[ jar ]--------------------------------- -[INFO] -[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ ruleunit-event-driven-quarkus --- -[INFO] Deleting /home/ftirados/git/kogito-examples/kogito-quarkus-examples/ruleunit-event-driven-quarkus/target -[INFO] -[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-versions) @ ruleunit-event-driven-quarkus --- -[INFO] -[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-java-version) @ ruleunit-event-driven-quarkus --- -[INFO] -[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-maven-version) @ ruleunit-event-driven-quarkus --- -[INFO] -[INFO] --- maven-checkstyle-plugin:3.1.1:check (default) @ ruleunit-event-driven-quarkus --- -[INFO] You have 0 Checkstyle violations. -[INFO] -[INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ ruleunit-event-driven-quarkus --- -[INFO] Executing: /bin/sh -c cd '/home/ftirados/git/kogito-examples/kogito-quarkus-examples/ruleunit-event-driven-quarkus' && 'git' 'rev-parse' '--verify' 'HEAD' -[INFO] Working directory: /home/ftirados/git/kogito-examples/kogito-quarkus-examples/ruleunit-event-driven-quarkus -[INFO] Storing buildNumber: b44e1b0f077b5f2905c3a4d4652871e82082f4a6 at timestamp: 1665063468886 -[INFO] Storing buildScmBranch: main -[INFO] -[INFO] --- formatter-maven-plugin:2.13.0:format (default) @ ruleunit-event-driven-quarkus --- -[INFO] Using 'UTF-8' encoding to format source files. -[INFO] Number of files to be formatted: 5 -[INFO] Successfully formatted: 1 file(s) -[INFO] Fail to format: 0 file(s) -[INFO] Skipped: 4 file(s) -[INFO] Read only skipped: 0 file(s) -[INFO] Approximate time taken: 0s -[INFO] -[INFO] --- impsort-maven-plugin:1.5.0:sort (default) @ ruleunit-event-driven-quarkus --- -[INFO] Using compiler compliance level: JAVA_11 -[INFO] Total Files Processed: 5 in 00:00.139 -[INFO] Already Sorted: 4 -[INFO] Needed Sorting: 1 -[INFO] -[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ ruleunit-event-driven-quarkus --- -[debug] execute contextualize -[INFO] Using 'UTF-8' encoding to copy filtered resources. -[INFO] Copying 2 resources -[INFO] -[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ ruleunit-event-driven-quarkus --- -[INFO] Changes detected - recompiling the module! -[INFO] Compiling 4 source files to /home/ftirados/git/kogito-examples/kogito-quarkus-examples/ruleunit-event-driven-quarkus/target/classes -[INFO] -[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ ruleunit-event-driven-quarkus --- -[debug] execute contextualize -[INFO] Using 'UTF-8' encoding to copy filtered resources. -[INFO] Copying 16 resources -[INFO] -[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ ruleunit-event-driven-quarkus --- -[INFO] Changes detected - recompiling the module! -[INFO] Compiling 1 source file to /home/ftirados/git/kogito-examples/kogito-quarkus-examples/ruleunit-event-driven-quarkus/target/test-classes -[WARNING] /home/ftirados/git/kogito-examples/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/java/org/kie/kogito/examples/RuleUnitEventDrivenIT.java:[61,13] configure(com.fasterxml.jackson.databind.MapperFeature,boolean) in com.fasterxml.jackson.databind.ObjectMapper has been deprecated -[INFO] -[INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ ruleunit-event-driven-quarkus --- -[INFO] -[INFO] --- maven-jar-plugin:3.1.0:jar (default-jar) @ ruleunit-event-driven-quarkus --- -[INFO] Building jar: /home/ftirados/git/kogito-examples/kogito-quarkus-examples/ruleunit-event-driven-quarkus/target/ruleunit-event-driven-quarkus.jar -[INFO] -[INFO] --- maven-jar-plugin:3.1.0:test-jar (test-jar) @ ruleunit-event-driven-quarkus --- -[INFO] Building jar: /home/ftirados/git/kogito-examples/kogito-quarkus-examples/ruleunit-event-driven-quarkus/target/ruleunit-event-driven-quarkus-tests.jar -[INFO] -[INFO] --- maven-source-plugin:3.0.1:jar-no-fork (attach-sources) @ ruleunit-event-driven-quarkus --- -[INFO] Building jar: /home/ftirados/git/kogito-examples/kogito-quarkus-examples/ruleunit-event-driven-quarkus/target/ruleunit-event-driven-quarkus-sources.jar -[INFO] -[INFO] --- maven-source-plugin:3.0.1:test-jar-no-fork (attach-test-sources) @ ruleunit-event-driven-quarkus --- -[INFO] Building jar: /home/ftirados/git/kogito-examples/kogito-quarkus-examples/ruleunit-event-driven-quarkus/target/ruleunit-event-driven-quarkus-test-sources.jar -[INFO] -[INFO] --- quarkus-maven-plugin:2.13.0.Final:build (default) @ ruleunit-event-driven-quarkus --- -[INFO] Performed addonsConfig discovery, found: AddonsConfig{usePersistence=false, useTracing=false, useMonitoring=false, usePrometheusMonitoring=false, useCloudEvents=true, useExplainability=false, useProcessSVG=false, useEventDrivenDecisions=false, useEventDrivenRules=true} -[INFO] Generator discovery performed, found [processes, rules] -[INFO] Skipping generator 'processes' because disabled -[INFO] [org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor] reflectiveEfestoGeneratedClassBuildItem org.kie.kogito.quarkus.common.deployment.KogitoGeneratedSourcesBuildItem@27405711 -[WARNING] [io.quarkus.config] Unrecognized configuration key "quarkus.swagger-ui.always-include" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo -[INFO] [io.quarkus.arc.processor.BeanProcessor] Found unrecommended usage of private members (use package-private instead) in application beans: - - @PostConstruct callback org.kie.kogito.queries.LoanUnitQueryFindAllApplicationAmountsEventDrivenExecutor#onPostConstruct(), - - @PostConstruct callback org.kie.kogito.queries.LoanUnitQueryFindNotApprovedIdAndAmountEventDrivenExecutor#onPostConstruct(), - - @PostConstruct callback org.kie.kogito.queries.LoanUnitQueryFindApprovedEventDrivenExecutor#onPostConstruct() -[INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 2671ms -[INFO] -[INFO] --- maven-resources-plugin:2.5:copy-resources (add-it-resources) @ ruleunit-event-driven-quarkus --- -[debug] execute contextualize -[INFO] Using 'UTF-8' encoding to copy filtered resources. -[INFO] Copying 2 resources -[INFO] -[INFO] --- maven-failsafe-plugin:3.0.0-M5:integration-test (integration-test) @ ruleunit-event-driven-quarkus --- -[INFO] -[INFO] ------------------------------------------------------- -[INFO] T E S T S -[INFO] ------------------------------------------------------- -[INFO] Running org.kie.kogito.examples.RuleUnitEventDrivenIT -2022-10-06 15:37:58,032 INFO [org.tes.uti.ImageNameSubstitutor] (main) Found configured ImageNameSubstitutor: Kogito Image Name Substitutor -2022-10-06 15:37:58,034 INFO [org.tes.uti.ImageNameSubstitutor] (main) Image name substitution will be performed by: Chained substitutor of 'DefaultImageNameSubstitutor (composite of 'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor')' and then 'Kogito Image Name Substitutor' -2022-10-06 15:37:58,054 INFO [org.tes.doc.DockerClientProviderStrategy] (pool-3-thread-1) Loaded org.testcontainers.dockerclient.UnixSocketClientProviderStrategy from ~/.testcontainers.properties, will try it first -2022-10-06 15:37:58,389 INFO [org.tes.doc.DockerClientProviderStrategy] (pool-3-thread-1) Found Docker environment with local Unix socket (unix:///var/run/docker.sock) -2022-10-06 15:37:58,390 INFO [org.tes.DockerClientFactory] (pool-3-thread-1) Docker host IP address is localhost -2022-10-06 15:37:58,401 INFO [org.tes.DockerClientFactory] (pool-3-thread-1) Connected to docker: - Server Version: 20.10.18 - API Version: 1.41 - Operating System: Fedora Linux 36 (Workstation Edition) - Total Memory: 31835 MB -2022-10-06 15:37:58,445 INFO [🐳 .11.8]] (pool-3-thread-1) Creating container for image: vectorized/redpanda:v21.11.8 -2022-10-06 15:37:58,465 INFO [🐳 .3.3]] (pool-3-thread-1) Creating container for image: testcontainers/ryuk:0.3.3 -2022-10-06 15:37:58,556 INFO [🐳 .3.3]] (pool-3-thread-1) Container testcontainers/ryuk:0.3.3 is starting: 333c5735674d41dc22a2db02f09cda2f3fa3e24c21d29b039733537745df5644 -2022-10-06 15:37:58,824 INFO [🐳 .3.3]] (pool-3-thread-1) Container testcontainers/ryuk:0.3.3 started in PT0.359444935S -2022-10-06 15:37:58,865 INFO [🐳 .11.8]] (pool-3-thread-1) Container vectorized/redpanda:v21.11.8 is starting: f5b812c0f0a46f2f8f18d9d37e79549e4a39261697be7481d8a4c442cbad0da7 -We'd love to hear about your experience with redpanda: -https://vectorized.io/feedback -Starting redpanda... -Running: -HOSTNAME=f5b812c0f0a4 PWD=/ HOME=/var/lib/redpanda SHLVL=1 PATH=/opt/redpanda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /opt/redpanda/bin/redpanda redpanda --redpanda-cfg /etc/redpanda/redpanda.yaml --memory=1G --lock-memory=false --reserve-memory=0M --overprovisioned --smp=1 -2022-10-06 15:37:59,545 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDOUT: We'd love to hear about your experience with redpanda: -2022-10-06 15:37:59,547 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDOUT: https://vectorized.io/feedback -2022-10-06 15:37:59,547 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDOUT: Starting redpanda... -2022-10-06 15:37:59,548 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDOUT: Running: -2022-10-06 15:37:59,549 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDOUT: HOSTNAME=f5b812c0f0a4 PWD=/ HOME=/var/lib/redpanda SHLVL=1 PATH=/opt/redpanda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /opt/redpanda/bin/redpanda redpanda --redpanda-cfg /etc/redpanda/redpanda.yaml --memory=1G --lock-memory=false --reserve-memory=0M --overprovisioned --smp=1 - - -Welcome to the Redpanda community! - -Slack: https://vectorized.io/slack - is the main way the community interacts with one another in real time :) -Twitter: https://twitter.com/vectorizedio - come say hi! -Github Discussion: https://github.com/vectorizedio/redpanda/discussions - is preferred for longer, async, thoughtful discussions -2022-10-06 15:37:59,573 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDOUT: -GitHub Issues: https://github.com/vectorizedio/redpanda/issues - is reserved only for actual issues. Please use the GitHub for discussions. -Documentation: https://vectorized.io/docs/ - official docs site -Support: https://support.vectorized.io/ - to share private information with the production support vectorized team -2022-10-06 15:37:59,573 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDOUT: -Product Feedback: https://vectorized.io/feedback/ - let us know how we can improve your experience - - -INFO redpanda::main - application.cc:160 - Redpanda v21.11.8 - e7867b4fd34296daa2497ebc352e68b9dbc2a6b5-dirty -INFO redpanda::main - application.cc:168 - kernel=5.19.12-200.fc36.x86_64, nodename=f5b812c0f0a4, machine=x86_64 -2022-10-06 15:37:59,574 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDOUT: Welcome to the Redpanda community! -2022-10-06 15:37:59,574 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDOUT: -2022-10-06 15:37:59,574 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDOUT: Slack: https://vectorized.io/slack - is the main way the community interacts with one another in real time :) -2022-10-06 15:37:59,575 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDOUT: Twitter: https://twitter.com/vectorizedio - come say hi! -2022-10-06 15:37:59,575 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDOUT: Github Discussion: https://github.com/vectorizedio/redpanda/discussions - is preferred for longer, async, thoughtful discussions -2022-10-06 15:37:59,575 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDOUT: GitHub Issues: https://github.com/vectorizedio/redpanda/issues - is reserved only for actual issues. Please use the GitHub for discussions. -2022-10-06 15:37:59,576 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDOUT: Documentation: https://vectorized.io/docs/ - official docs site -2022-10-06 15:37:59,576 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDOUT: Support: https://support.vectorized.io/ - to share private information with the production support vectorized team -2022-10-06 15:37:59,576 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDOUT: Product Feedback: https://vectorized.io/feedback/ - let us know how we can improve your experience -2022-10-06 15:37:59,577 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDOUT: -2022-10-06 15:37:59,577 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDOUT: -2022-10-06 15:37:59,577 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO redpanda::main - application.cc:160 - Redpanda v21.11.8 - e7867b4fd34296daa2497ebc352e68b9dbc2a6b5-dirty -2022-10-06 15:37:59,578 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO redpanda::main - application.cc:168 - kernel=5.19.12-200.fc36.x86_64, nodename=f5b812c0f0a4, machine=x86_64 -INFO 2022-10-06 13:37:59,618 [shard 0] redpanda::main - application.cc:144 - System resources: { cpus: 1, available memory: 1024.000MiB, reserved memory: 0.000bytes} -INFO 2022-10-06 13:37:59,618 [shard 0] redpanda::main - application.cc:152 - File handle limit: 1073741816/1073741816 -2022-10-06 15:37:59,618 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,618 [shard 0] redpanda::main - application.cc:144 - System resources: { cpus: 1, available memory: 1024.000MiB, reserved memory: 0.000bytes} -2022-10-06 15:37:59,619 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,618 [shard 0] redpanda::main - application.cc:152 - File handle limit: 1073741816/1073741816 -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:323 - Configuration: - -config_file: /etc/redpanda/redpanda.yaml -2022-10-06 15:37:59,626 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:323 - Configuration: -node_uuid: m8mqeuQJxPuEdKnEY49cHwypzhCDKCPyfGqcyLSD2of3eQFof -pandaproxy: {} -redpanda: - admin: - - address: 0.0.0.0 - port: 9644 -2022-10-06 15:37:59,626 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: - advertised_kafka_api: - - address: localhost - name: OUTSIDE - port: 49238 - - address: f5b812c0f0a4 - name: PLAINTEXT -2022-10-06 15:37:59,627 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: config_file: /etc/redpanda/redpanda.yaml - port: 29092 - auto_create_topics_enabled: true - data_directory: /var/lib/redpanda/data - developer_mode: true - enable_idempotence: true - enable_transactions: true -2022-10-06 15:37:59,627 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: node_uuid: m8mqeuQJxPuEdKnEY49cHwypzhCDKCPyfGqcyLSD2of3eQFof - kafka_api: - - address: 0.0.0.0 - name: PLAINTEXT - port: 29092 - - address: 0.0.0.0 - name: OUTSIDE - port: 9092 - node_id: 0 - rpc_server: -2022-10-06 15:37:59,627 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: pandaproxy: {} - address: 0.0.0.0 - port: 33145 - seed_servers: [] -rpk: - coredump_dir: /var/lib/redpanda/coredump - enable_memory_locking: false -2022-10-06 15:37:59,628 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: redpanda: - enable_usage_stats: true - overprovisioned: true - tune_aio_events: false - tune_ballast_file: false - tune_clocksource: false - tune_coredump: false - tune_cpu: false -2022-10-06 15:37:59,628 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: admin: - tune_disk_irq: false - tune_disk_nomerges: false - tune_disk_scheduler: false - tune_disk_write_cache: false - tune_fstrim: false - tune_network: false - tune_swappiness: false - tune_transparent_hugepages: false -schema_registry: {} -2022-10-06 15:37:59,628 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: - address: 0.0.0.0 - - -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:327 - Use `rpk config set ` to change values below: -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.metrics_reporter_report_interval:86400000 - cluster metrics reporter report interval -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.metrics_reporter_tick_interval:60000 - Cluster metrics reporter tick interval -2022-10-06 15:37:59,628 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: port: 9644 -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.leader_balancer_idle_timeout:120000 - Leadership rebalancing idle timeout -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.full_raft_configuration_recovery_pattern:{} - Recover raft configuration on start for NTPs matching pattern -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_min_depth:1 - Minimum queue depth used in kafka queue depth control. -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_idle_depth:10 - Queue depth when idleness is detected in kafka queue depth control. -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.health_manager_tick_interval:180000 - How often the health manager runs -2022-10-06 15:37:59,629 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: advertised_kafka_api: -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_max_latency_ms:80 - Max latency threshold for kafka queue depth control depth tracking. -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_depth_alpha:0.8 - Smoothing factor for kafka queue depth control depth tracking. -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_window_count:12 - Number of windows used in kafka queue depth control latency tracking. -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.superusers:{} - List of superuser usernames -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_cache_check_interval:30000 - Timeout to check if cache eviction should be triggered -2022-10-06 15:37:59,629 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: - address: localhost -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_cache_size:21474836480 - Max size of archival cache -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_upload_ctrl_d_coeff:0 - derivative coefficient for upload PID controller. -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_enable:0 - Enable kafka queue depth control. -2022-10-06 15:37:59,629 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: name: OUTSIDE -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_upload_ctrl_p_coeff:-2 - proportional coefficient for upload PID controller -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_upload_ctrl_update_interval_ms:60000 - -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_max_connection_idle_time_ms:5000 - Max https connection idle time (ms) -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_segment_upload_timeout_ms:30000 - Log segment upload timeout (ms) -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_trust_file:{nullopt} - Path to certificate that should be used to validate server certificate during TLS handshake -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_api_endpoint_port:443 - TLS port override -2022-10-06 15:37:59,629 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: port: 49238 -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_disable_tls:0 - Disable TLS for all S3 connections -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_reconciliation_interval_ms:10000 - Interval at which the archival service runs reconciliation (ms) -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_api_endpoint:{nullopt} - Optional API endpoint -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_secret_key:{nullopt} - AWS secret key -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_enable_remote_write:0 - Enable remote write for all topics -2022-10-06 15:37:59,630 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: - address: f5b812c0f0a4 -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_window_size_ms:1500 - Window size for kafka queue depth control latency tracking. -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_enable_remote_read:0 - Enable remote read for all topics -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.members_backend_retry_ms:5000 - Time between members backend reconciliation loop retries -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.compaction_ctrl_max_shares:1000 - maximum number of IO and CPU shares that compaction process can use -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.compaction_ctrl_min_shares:10 - minimum number of IO and CPU shares that compaction process can use -2022-10-06 15:37:59,630 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: name: PLAINTEXT -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.compaction_ctrl_d_coeff:0.2 - derivative coefficient for compaction PID controller. -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.compaction_ctrl_i_coeff:0 - integral coefficient for compaction PID controller. -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_depth_update_ms:7000 - Update frequency for kafka queue depth control. -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.compaction_ctrl_p_coeff:-12.5 - proportional coefficient for compaction PID controller. This has to be negative since compaction backlog should decrease when number of compaction shares increases -2022-10-06 15:37:59,630 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: port: 29092 -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.compaction_ctrl_update_interval_ms:30000 - -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_auto_rebalance_on_node_add:0 - Enable automatic partition rebalancing when new nodes are added -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.node_management_operation_timeout_ms:5000 - Timeout for executing node management operations -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.leader_balancer_mute_timeout:300000 - Leadership rebalancing mute timeout -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.id_allocator_batch_size:1000 - Id allocator allocates messages in batches (each batch is a one log record) and then serves requests from memory without touching the log until the batch is exhausted. -2022-10-06 15:37:59,630 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: auto_create_topics_enabled: true -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.id_allocator_log_capacity:100 - Capacity of the id_allocator log in number of messages. Once it reached id_allocator_stm should compact the log. -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_transfer_leader_recovery_timeout_ms:10000 - Timeout waiting for follower recovery when transferring leadership -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.reclaim_max_size:4194304 - Maximum batch cache reclaim size -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.fetch_session_eviction_timeout_ms:60000 - Minimum time before which unused session will get evicted from sessions. Max2022-10-06 15:37:59,631 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: data_directory: /var/lib/redpanda/data -imum time after which inactive session will be deleted is two time given configuration valuecache -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.segment_appender_flush_timeout_ms:1000 - Maximum delay until buffered data is written -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.retention_bytes:{nullopt} - Default max bytes per partition on disk before triggering a compaction -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.join_retry_timeout_ms:5000 - Time between cluster join retries in milliseconds -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_admin_api:1 - Enable the admin API -2022-10-06 15:37:59,631 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: developer_mode: true -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_io_timeout_ms:10000 - Raft I/O timeout -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.zstd_decompress_workspace_bytes:8388608 - Size of the zstd decompression workspace -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.compaction_ctrl_backlog_size:{nullopt} - target backlog size for compaction controller. if not set compaction target compaction backlog would be equal to -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.append_chunk_size:16384 - Size of direct write operations to disk -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.auto_create_topics_enabled:1 - Allow topic auto creation -2022-10-06 15:37:59,631 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: enable_idempotence: true -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.reclaim_stable_window:10000 - Length of time above which growth is reset -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_pid_file:1 - Enable pid file. You probably don't want to change this. -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_group_recovery_timeout_ms:30000 - Kafka group recovery timeout expressed in milliseconds -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.reclaim_growth_window:3000 - Length of time in which reclaim sizes grow -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_smp_max_non_local_requests:0 - Maximum number of x-core requests pending in Raft seastar::smp group. (for more details look at `seastar::smp_service_group` documentation) -2022-10-06 15:37:59,631 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: enable_transactions: true -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_timeout_now_timeout_ms:1000 - Timeout for a timeout now request -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.recovery_append_timeout_ms:5000 - Timeout for append entries requests issued while updating stale follower -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.health_monitor_tick_interval:10000 - How often health monitor refresh cluster state -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.internal_topic_replication_factor:3 - Target replication factor for internal topics -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.replicate_append_timeout_ms:3000 - Timeout for append entries requests issued while replicating entries -2022-10-06 15:37:59,632 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: kafka_api: -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.log_segment_size:1073741824 - How large in bytes should each log segment be (default 1G) -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.disable_batch_cache:0 - Disable batch cache in log manager -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.election_timeout_ms:1500 - Election timeout expressed in milliseconds -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.default_topic_partitions:1 - Default number of partitions per topic -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.wait_for_leader_timeout_ms:5000 - Timeout (ms) to wait for leadership in metadata cache -2022-10-06 15:37:59,632 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: - address: 0.0.0.0 -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_max_depth:100 - Maximum queue depth used in kafka queue depth control. -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cluster_id:{nullopt} - Cluster identifier -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.transaction_coordinator_delete_retention_ms:604800000 - delete segments older than this - default 1 week -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.storage_read_buffer_size:131072 - Size of each read buffer (one per in-flight read, per log segment) -2022-10-06 15:37:59,632 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: name: PLAINTEXT -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.metadata_status_wait_timeout_ms:2000 - Maximum time to wait in metadata request for cluster health to be refreshed -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.transaction_coordinator_cleanup_policy:delete - Cleanup policy for a transaction coordinator topic -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.max_kafka_throttle_delay_ms:60000 - Fail-safe maximum throttle delay on kafka requests -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_idempotence:1 - Enable idempotent producer -2022-10-06 15:37:59,632 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: port: 29092 -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.id_allocator_replication:1 - Replication factor for an id allocator topic -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.abort_timed_out_transactions_interval_ms:60000 - How often look for the inactive transactions and abort them -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_upload_ctrl_min_shares:100 - minimum number of IO and CPU shares that archival upload can use -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.default_topic_replications:1 - Default replication factor for new topics -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.rpc_server_listen_backlog:{nullopt} - TCP connection queue length for Kafka server and internal RPC server -2022-10-06 15:37:59,633 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: - address: 0.0.0.0 -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.group_topic_partitions:1 - Number of partitions in the internal group membership topic -2022-10-06 15:37:59,633 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: name: OUTSIDE -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.log_compaction_interval_ms:10000 - How often do we trigger background compaction -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_enabled:0 - Enable archival storage -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.delete_retention_ms:604800000 - delete segments older than this - default 1 week -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.abort_index_segment_size:50000 - Capacity (in number of txns) of an abort index segment -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_bucket:{nullopt} - AWS bucket that should be used to store data -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_2022-10-06 15:37:59,633 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: port: 9092 -transactions:1 - Enable transactions -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.metrics_reporter_url:https://m.rp.vectorized.io/v2 - cluster metrics reporter url -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.coproc_max_batch_size:32768 - Maximum amount of bytes to read from one topic read -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.transaction_coordinator_replication:1 - Replication factor for a transaction coordinator topic -2022-10-06 15:37:59,633 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: node_id: 0 -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.metadata_dissemination_retry_delay_ms:320 - Delay before retry a topic lookup in a shard or other meta tables -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.log_message_timestamp_type:CreateTime - Default topic messages timestamp type -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.reclaim_min_size:131072 - Minimum batch cache reclaim size -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_max_connections:20 - Max number of simultaneous uploads to S3 -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_replicate_batch_window_size:1048576 - Max size of requests cached for replication -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.quota_manager_gc_sec:30000 - Quota manager GC frequency in milliseconds -2022-10-06 15:37:59,634 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: rpc_server: -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.rm_violation_recovery_policy:crash - Describes how to recover from an invariant violation happened on the partition level -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.coproc_max_ingest_bytes:655360 - Maximum amount of data to hold from input logs in memory -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.alter_topic_cfg_timeout_ms:5000 - Time to wait for entries replication in controller log when executing alter configuration requst -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_latency_alpha:0.002 - Smoothing parameter for kafka queue depth control latency tracking. -2022-10-06 15:37:59,634 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: address: 0.0.0.0 -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.log_cleanup_policy:delete - Default topic cleanup policy -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_metrics_reporter:1 - Enable cluster metrics reporter -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.health_monitor_max_metadata_age:10000 - Max age of metadata cached in the health monitor of non controller node -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_heartbeat_interval_ms:150 - Milliseconds for raft leader heartbeats -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_segment_max_upload_interval_sec:{nullopt} - Time that segment can be kept locally without uploading it to the remote storage (sec) -2022-10-06 15:37:59,634 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: port: 33145 -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.readers_cache_eviction_timeout_ms:30000 - Duration after which inactive readers will be evicted from cache -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_coproc:0 - Enable coprocessing mode -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.log_compression_type:producer - Default topic compression type -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.fetch_reads_debounce_timeout:1 - Time to wait for next read in fetch request when requested min bytes wasn't reached -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.release_cache_on_segment_roll:0 - Free cache when segments roll -2022-10-06 15:37:59,634 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: seed_servers: [] -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kvstore_flush_interval:10 - Key-value store flush interval (ms) -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.max_compacted_log_segment_size:5368709120 - Max compacted segment size after consolidation -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.rm_sync_timeout_ms:10000 - Time to wait state catch up before rejecting a request -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.transaction_coordinator_log_segment_size:1073741824 - How large in bytes should each log segment be (default 1G) -2022-10-06 15:37:59,635 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: rpk: -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.tm_violation_recovery_policy:crash - Describes how to recover from an invariant violation happened on the transaction coordinator level -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.group_new_member_join_timeout:30000 - Timeout for new member joins -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_manifest_upload_timeout_ms:10000 - Manifest upload timeout (ms) -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.storage_read_readahead_count:10 - How many additional reads to issue ahead of current read location -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.group_initial_rebalance_delay:300 - Extra delay (ms) added to rebalance phase to wait for new members -2022-10-06 15:37:59,635 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: coredump_dir: /var/lib/redpanda/coredump -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.group_max_session_timeout_ms:300000 - The maximum allowed session timeout for registered consumers. Longer timeouts give consumers more time to process messages in between heartbeats at the cost of a longer time to detect failures. -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_learner_recovery_rate:104857600 - Raft learner recovery rate limit in bytes per sec -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_upload_ctrl_max_shares:1000 - maximum number of IO and CPU shares that archival upload can use -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.group_min_session_timeout_ms:6000 - The minimum allowed session timeout for registered consumers. Shorter timeouts result in quicker failure detection at the cost of more frequent consumer heartbeating, which can overwhelm broker resources. -2022-10-06 15:37:59,635 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: enable_memory_locking: false -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.controller_backend_housekeeping_interval_ms:1000 - Interval between iterations of controller backend housekeeping loop -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.tm_sync_timeout_ms:10000 - Time to wait state catch up before rejecting a request -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_max_concurrent_append_requests_per_follower:16 - Maximum number of concurrent append entries requests sent by leader to one follower -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.seed_server_meta_topic_partitions: - -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.metadata_dissemination_interval_ms:3000 - Interaval for metadata dissemination batching -INF2022-10-06 15:37:59,635 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: enable_usage_stats: true -O 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.default_num_windows:10 - Default number of quota tracking windows -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_sasl:0 - Enable SASL authentication for Kafka connections. -2022-10-06 15:37:59,636 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: overprovisioned: true -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kvstore_max_segment_size:16777216 - Key-value maximum segment size (bytes) -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.min_version: - -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_heartbeat_disconnect_failures:3 - After how many failed heartbeats to forcibly close an unresponsive TCP connection. Set to 0 to disable force disconnection. -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.max_version: - -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.default_window_sec:1000 - Default quota tracking window size in milliseconds -2022-10-06 15:37:59,636 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: tune_aio_events: false -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.fetch_max_bytes:57671680 - Maximum number of bytes returned in fetch request -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_heartbeat_timeout_ms:3000 - raft heartbeat RPC timeout -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_access_key:{nullopt} - AWS access key -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.transactional_id_expiration_ms:604800000 - Producer ids are expired once this time has elapsed after the last write with the given producer id. -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.tx_timeout_delay_ms:1000 - Delay before scheduling next check for timed out transactions -2022-10-06 15:37:59,636 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: tune_ballast_file: false -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.coproc_max_inflight_bytes:10485760 - Maximum amountt of inflight bytes when sending data to wasm engine -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.target_quota_byte_rate:2147483648 - Target quota byte rate (bytes per second) - 2GB default -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.create_topic_timeout_ms:2000 - Timeout (ms) to wait for new topic creation -2022-10-06 15:37:59,636 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: tune_clocksource: false -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.metadata_dissemination_retries:30 - Number of attempts of looking up a topic's meta data like shard before failing a request -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.use_scheduling_groups: - -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.disable_metrics:0 - Disable registering metrics -2022-10-06 15:37:59,637 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: tune_coredump: false -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.rpc_server_tcp_send_buf:{nullopt} - TCP transmit buffer size in bytes. -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.coproc_offset_flush_interval_ms:300000 - Interval for which all coprocessor offsets are flushed to disk -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_leader_balancer:1 - Enable automatic leadership rebalancing -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_initial_backoff_ms:100 - Initial backoff time for exponetial backoff algorithm (ms) -2022-10-06 15:37:59,637 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: tune_cpu: false -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.rpc_server_tcp_recv_buf:{nullopt} - TCP receive buffer size in bytes. -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_max_bytes_per_fetch:67108864 - Limit fetch responses to this many bytes, even if total of partition bytes limits is higher -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.developer_mode:1 - Skips most of the checks performed at startup, not recomended for production use -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_region:{nullopt} - AWS region that houses the bucket used for storage -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.compacted_log_segment_size:268435456 - How large in bytes should each compacted log segment be (default 256MiB) -2022-10-06 15:37:59,637 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: tune_disk_irq: false -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.advertised_kafka_api:{{OUTSIDE:{host: localhost, port: 49238}}, {PLAINTEXT:{host: f5b812c0f0a4, port: 29092}}} - Address of Kafka API published to the clients -INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.coproc_supervisor_server:{host: 127.0.0.1, port: 43189} - IpAddress and port for supervisor service -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.node_id:{0} - Unique id identifying a node in the cluster -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.admin_api_tls:{} - TLS configuration for admin HTTP server -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_api_tls:{} - TLS configuration for Kafka API endpoint -2022-10-06 15:37:59,637 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: tune_disk_nomerges: false -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.advertised_rpc_api:{nullopt} - Address of RPC endpoint published to other cluster members -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_api:{{PLAINTEXT:{host: 0.0.0.0, port: 29092}}, {OUTSIDE:{host: 0.0.0.0, port: 9092}}} - Address and port of an interface to listen for Kafka API requests -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.rpc_server_tls:{ enabled: 0 key/cert files: {nullopt} ca file: {nullopt} client_auth_required: 0 } - TLS configuration for RPC server -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.rpc_server:{host: 0.0.0.0, port: 33145} - IpAddress and port for RPC server -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.dashboard_dir:{nullopt} - serve http dashboard on / url -2022-10-06 15:37:59,638 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: tune_disk_scheduler: false -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.admin:{{:{host: 0.0.0.0, port: 9644}}} - Address and port of admin server -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_central_config:0 - Enable central storage + sync of cluster configuration -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.seed_servers:{} - List of the seed servers used to join current cluster. If the seed_server list is empty the node will be a cluster root and it will form a new cluster -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.admin_api_doc_dir:/usr/share/redpanda/admin-api-doc - Admin API doc directory -2022-10-06 15:37:59,638 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: tune_disk_write_cache: false -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.rack:{nullopt} - Rack identifier -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_cache_directory:{nullopt} - Directory for archival cache. Should be present when `cloud_storage_enabled` is present -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.data_directory:{data_directory="/var/li2022-10-06 15:37:59,638 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: tune_fstrim: false -b/redpanda/data"} - Place where redpanda will keep the data -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy.consumer_instance_timeout_ms:300000 - How long to wait for an idle consumer before removing it -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy.advertised_pandaproxy_api:{} - Rest API address and port to publish to client -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy.api_doc_dir:/usr/share/redpanda/proxy-api-doc - API doc directory -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy.pandaproxy_api_tls:{} - TLS configuration for Pandaproxy api -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy.pandaproxy_api:{{:{host: 0.0.0.0, port: 8082}}} - Rest API listen address and port -2022-10-06 15:37:59,638 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: tune_network: false -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.sasl_mechanism: - The SASL mechanism to use when connecting -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.consumer_heartbeat_interval_ms:500 - Interval (in milliseconds) for consumer heartbeats -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.consumer_rebalance_timeout_ms:2000 - Timeout (in milliseconds) for consumer rebalance -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.consumer_request_max_bytes:1048576 - Max bytes to fetch per request -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.consumer_request_timeout_ms:100 - Interval (in milliseconds) for consumer request timeout -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.scram_username: - Username to use for SCRAM authentication mechanisms -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.produce_batch_delay_ms:100 - Delay (in milliseconds) to wait before sending batch -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.produce_batch_size_bytes:1048576 - Number of bytes to batch before sending to broker -2022-10-06 15:37:59,638 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: tune_swappiness: false -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.consumer_session_timeout_ms:300000 - Timeout (in milliseconds) for consumer session -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.produce_batch_record_count:1000 - Number of records to batch before sending to broker -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.retry_base_backoff_ms:100 - Delay (in milliseconds) for initial retry backoff -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.retries:5 - Number of times to retry a request to a broker -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.scram_password: - Password to use for SCRAM authentication mechanisms -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.broker_tls:{ enabled: 0 key/cert files: {nullopt} ca file: {nullopt} client_auth_required: 0 } - TLS configuration for the brokers -2022-10-06 15:37:59,639 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: tune_transparent_hugepages: false -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.brokers:{{host: 0.0.0.0, port: 29092}} - List of address and port of the brokers -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry.api_doc_dir:/usr/share/redpanda/proxy-api-doc - API doc directory -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry.schema_registry_replication_factor:{nullopt} - Replication factor for internal _schemas topic. If unset, defaults to `default_topic_replication` -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry.schema_registry_api_tls:{} - TLS configuration for Schema Registry API -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry.schema_registry_api:{{:{host: 0.0.0.0, port: 8081}}} - Schema Registry API listen address and port -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.sasl_mechanism: - The SASL mechanism to use when connecting -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.consumer_heartbeat_interval_ms:500 - Interval (in milliseconds) for consumer heartbeats -2022-10-06 15:37:59,639 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: schema_registry: {} -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.consumer_rebalance_timeout_ms:2000 - Timeout (in milliseconds) for consumer rebalance -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.consumer_request_max_bytes:1048576 - Max bytes to fetch per request -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.consumer_request_timeout_ms:100 - Interval (in milliseconds) for consumer request timeout -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.scram_username: - Username to use for SCRAM authentication mechanisms -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.produce_batch_delay_ms:0 - Delay (in milliseconds) to wait before sending batch -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.produce_batch_size_bytes:0 - Number of bytes to batch before sending to broker -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.consumer_session_timeout_ms:10000 - Timeout (in milliseconds) for consumer session -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.produce_batch_record_count:0 - Number of records to batch before sending to broker -2022-10-06 15:37:59,639 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.retry_base_backoff_ms:100 - Delay (in milliseconds) for initial retry backoff -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.retries:5 - Number of times to retry a request to a broker -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.scram_password: - Password to use for SCRAM authentication mechanisms -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.broker_tls:{ enabled: 0 key/cert files: {nullopt} ca file: {nullopt} client_auth_required: 0 } - TLS configuration for the brokers -INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.brokers:{{host: 0.0.0.0, port: 29092}} - List of address and port of the brokers -INFO 2022-10-06 13:37:59,627 [shard 0] syschecks - Writing pid file "/var/lib/redpanda/data/pid.lock" -INFO 2022-10-06 13:37:59,637 [shard 0] storage - directories.h:33 - Checking `/var/lib/redpanda/data` for supported filesystems -ERROR 2022-10-06 13:37:59,637 [shard 0] syschecks - Path: `/var/lib/redpanda/data' is not on XFS. This is a non-supported setup. Expect poor performance. -2022-10-06 15:37:59,640 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: -2022-10-06 15:37:59,640 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:327 - Use `rpk config set ` to change values below: -2022-10-06 15:37:59,640 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.metrics_reporter_report_interval:86400000 - cluster metrics reporter report interval -2022-10-06 15:37:59,640 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.metrics_reporter_tick_interval:60000 - Cluster metrics reporter tick interval -2022-10-06 15:37:59,641 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.leader_balancer_idle_timeout:120000 - Leadership rebalancing idle timeout -2022-10-06 15:37:59,641 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.full_raft_configuration_recovery_pattern:{} - Recover raft configuration on start for NTPs matching pattern -2022-10-06 15:37:59,641 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_min_depth:1 - Minimum queue depth used in kafka queue depth control. -2022-10-06 15:37:59,642 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_idle_depth:10 - Queue depth when idleness is detected in kafka queue depth control. -2022-10-06 15:37:59,642 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.health_manager_tick_interval:180000 - How often the health manager runs -2022-10-06 15:37:59,642 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_max_latency_ms:80 - Max latency threshold for kafka queue depth control depth tracking. -2022-10-06 15:37:59,642 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_depth_alpha:0.8 - Smoothing factor for kafka queue depth control depth tracking. -2022-10-06 15:37:59,643 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_window_count:12 - Number of windows used in kafka queue depth control latency tracking. -2022-10-06 15:37:59,643 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.superusers:{} - List of superuser usernames -2022-10-06 15:37:59,643 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_cache_check_interval:30000 - Timeout to check if cache eviction should be triggered -2022-10-06 15:37:59,643 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_cache_size:21474836480 - Max size of archival cache -2022-10-06 15:37:59,644 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_upload_ctrl_d_coeff:0 - derivative coefficient for upload PID controller. -2022-10-06 15:37:59,644 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_enable:0 - Enable kafka queue depth control. -2022-10-06 15:37:59,644 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_upload_ctrl_p_coeff:-2 - proportional coefficient for upload PID controller -2022-10-06 15:37:59,644 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_upload_ctrl_update_interval_ms:60000 - -2022-10-06 15:37:59,645 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_max_connection_idle_time_ms:5000 - Max https connection idle time (ms) -2022-10-06 15:37:59,645 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_segment_upload_timeout_ms:30000 - Log segment upload timeout (ms) -2022-10-06 15:37:59,645 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_trust_file:{nullopt} - Path to certificate that should be used to validate server certificate during TLS handshake -2022-10-06 15:37:59,646 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_api_endpoint_port:443 - TLS port override -2022-10-06 15:37:59,646 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_disable_tls:0 - Disable TLS for all S3 connections -2022-10-06 15:37:59,646 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_reconciliation_interval_ms:10000 - Interval at which the archival service runs reconciliation (ms) -2022-10-06 15:37:59,646 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_api_endpoint:{nullopt} - Optional API endpoint -2022-10-06 15:37:59,647 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_secret_key:{nullopt} - AWS secret key -2022-10-06 15:37:59,647 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_enable_remote_write:0 - Enable remote write for all topics -2022-10-06 15:37:59,647 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_window_size_ms:1500 - Window size for kafka queue depth control latency tracking. -2022-10-06 15:37:59,648 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_enable_remote_read:0 - Enable remote read for all topics -2022-10-06 15:37:59,648 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.members_backend_retry_ms:5000 - Time between members backend reconciliation loop retries -2022-10-06 15:37:59,648 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.compaction_ctrl_max_shares:1000 - maximum number of IO and CPU shares that compaction process can use -2022-10-06 15:37:59,648 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.compaction_ctrl_min_shares:10 - minimum number of IO and CPU shares that compaction process can use -2022-10-06 15:37:59,649 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.compaction_ctrl_d_coeff:0.2 - derivative coefficient for compaction PID controller. -2022-10-06 15:37:59,649 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.compaction_ctrl_i_coeff:0 - integral coefficient for compaction PID controller. -2022-10-06 15:37:59,650 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_depth_update_ms:7000 - Update frequency for kafka queue depth control. -2022-10-06 15:37:59,650 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37: -INFO 2022-10-06 13:37:59,650 [shard 0] redpanda::main - application.cc:654 - Partition manager started -2022-10-06 15:37:59,650 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: 59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.compaction_ctrl_p_coeff:-12.5 - proportional coefficient for compaction PID controller. This has to be negative since compaction backlog should decrease when number of compaction shares increases -2022-10-06 15:37:59,650 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.compaction_ctrl_update_interval_ms:30000 - -2022-10-06 15:37:59,651 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_auto_rebalance_on_node_add:0 - Enable automatic partition rebalancing when new nodes are added -2022-10-06 15:37:59,651 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.node_management_operation_timeout_ms:5000 - Timeout for executing node management operations -2022-10-06 15:37:59,651 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.leader_balancer_mute_timeout:300000 - Leadership rebalancing mute timeout -2022-10-06 15:37:59,652 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.id_allocator_batch_size:1000 - Id allocator allocates messages in batches (each batch is a one log record) and then serves requests from memory without touching the log until the batch is exhausted. -2022-10-06 15:37:59,652 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.id_allocator_log_capacity:100 - Capacity of the id_allocator log in number of messages. Once it reached id_allocator_stm should compact the log. -2022-10-06 15:37:59,652 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_transfer_leader_recovery_timeout_ms:10000 - Timeout waiting for follower recovery when transferring leadership -2022-10-06 15:37:59,653 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.reclaim_max_size:4194304 - Maximum batch cache reclaim size -2022-10-06 15:37:59,653 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.fetch_session_eviction_timeout_ms:60000 - Minimum time before which unused session will get evicted from sessions. Maximum time after which inactive session will be deleted is two time given configuration valuecache -2022-10-06 15:37:59,653 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.segment_appender_flush_timeout_ms:1000 - Maximum delay until buffered data is written -2022-10-06 15:37:59,653 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.retention_bytes:{nullopt} - Default max bytes per partition on disk before triggering a compaction -2022-10-06 15:37:59,653 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.join_retry_timeout_ms:5000 - Time between cluster join retries in milliseconds -2022-10-06 15:37:59,654 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_admin_api:1 - Enable the admin API -2022-10-06 15:37:59,654 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_io_timeout_ms:10000 - Raft I/O timeout -2022-10-06 15:37:59,654 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.zstd_decompress_workspace_bytes:8388608 - Size of the zstd decompression workspace -2022-10-06 15:37:59,654 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.compaction_ctrl_backlog_size:{nullopt} - target backlog size for compaction controller. if not set compaction target compaction backlog would be equal to -2022-10-06 15:37:59,654 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.append_chunk_size:16384 - Size of direct write operations to disk -2022-10-06 15:37:59,655 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.auto_create_topics_enabled:1 - Allow topic auto creation -2022-10-06 15:37:59,655 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.reclaim_stable_window:10000 - Length of time above which growth is reset -2022-10-06 15:37:59,655 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_pid_file:1 - Enable pid file. You probably don't want to change this. -2022-10-06 15:37:59,655 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_group_recovery_timeout_ms:30000 - Kafka group recovery timeout expressed in milliseconds -INFO 2022-10-06 13:37:59,655 [shard 0] cluster - raft0_utils.h:32 - Current node is cluster root -2022-10-06 15:37:59,655 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.reclaim_growth_window:3000 - Length of time in which reclaim sizes grow -2022-10-06 15:37:59,656 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_smp_max_non_local_requests:0 - Maximum number of x-core requests pending in Raft seastar::smp group. (for more details look at `seastar::smp_service_group` documentation) -2022-10-06 15:37:59,656 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_timeout_now_timeout_ms:1000 - Timeout for a timeout now request -2022-10-06 15:37:59,656 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.recovery_append_timeout_ms:5000 - Timeout for append entries requests issued while updating stale follower -2022-10-06 15:37:59,656 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.health_monitor_tick_interval:10000 - How often health monitor refresh cluster state -2022-10-06 15:37:59,656 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.internal_topic_replication_factor:3 - Target replication factor for internal topics -2022-10-06 15:37:59,657 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.replicate_append_timeout_ms:3000 - Timeout for append entries requests issued while replicating entries -2022-10-06 15:37:59,657 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.log_segment_size:1073741824 - How large in bytes should each log segment be (default 1G) -2022-10-06 15:37:59,657 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.disable_batch_cache:0 - Disable batch cache in log manager -2022-10-06 15:37:59,657 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.election_timeout_ms:1500 - Election timeout expressed in milliseconds -2022-10-06 15:37:59,657 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.default_topic_partitions:1 - Default number of partitions per topic -2022-10-06 15:37:59,658 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.wait_for_leader_timeout_ms:5000 - Timeout (ms) to wait for leadership in metadata cache -2022-10-06 15:37:59,658 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_max_depth:100 - Maximum queue depth used in kafka queue depth control. -2022-10-06 15:37:59,658 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cluster_id:{nullopt} - Cluster identifier -2022-10-06 15:37:59,658 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.transaction_coordinator_delete_retention_ms:604800000 - delete segments older than this - default 1 week -2022-10-06 15:37:59,658 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.storage_read_buffer_size:131072 - Size of each read buffer (one per in-flight read, per log segment) -2022-10-06 15:37:59,659 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.metadata_status_wait_timeout_ms:2000 - Maximum time to wait in metadata request for cluster health to be refreshed -2022-10-06 15:37:59,659 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.transaction_coordinator_cleanup_policy:delete - Cleanup policy for a transaction coordinator topic -2022-10-06 15:37:59,659 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.max_kafka_throttle_delay_ms:60000 - Fail-safe maximum throttle delay on kafka requests -2022-10-06 15:37:59,659 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_idempotence:1 - Enable idempotent producer -2022-10-06 15:37:59,659 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13 -2022-10-06 15:37:59,659 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: :37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.id_allocator_replication:1 - Replication factor for an id allocator topic -2022-10-06 15:37:59,659 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.abort_timed_out_transactions_interval_ms:60000 - How often look for the inactive transactions and abort them -2022-10-06 15:37:59,659 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_upload_ctrl_min_shares:100 - minimum number of IO and CPU shares that archival upload can use -2022-10-06 15:37:59,660 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.default_topic_replications:1 - Default replication factor for new topics -2022-10-06 15:37:59,660 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.rpc_server_listen_backlog:{nullopt} - TCP connection queue length for Kafka server and internal RPC server -2022-10-06 15:37:59,660 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.group_topic_partitions:1 - Number of partitions in the internal group membership topic -2022-10-06 15:37:59,660 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.log_compaction_interval_ms:10000 - How often do we trigger background compaction -2022-10-06 15:37:59,660 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_enabled:0 - Enable archival storage -2022-10-06 15:37:59,661 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.delete_retention_ms:604800000 - delete segments older than this - default 1 week -2022-10-06 15:37:59,661 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.abort_index_segment_size:50000 - Capacity (in number of txns) of an abort index segment -2022-10-06 15:37:59,661 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_bucket:{nullopt} - AWS bucket that should be used to store data -2022-10-06 15:37:59,661 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_transactions:1 - Enable transactions -2022-10-06 15:37:59,661 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.metrics_reporter_url:https://m.rp.vectorized.io/v2 - cluster metrics reporter url -2022-10-06 15:37:59,661 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.coproc_max_batch_size:32768 - Maximum amount of bytes to read from one topic read -2022-10-06 15:37:59,662 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.transaction_coordinator_replication:1 - Replication factor for a transaction coordinator topic -2022-10-06 15:37:59,662 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.metadata_dissemination_retry_delay_ms:320 - Delay before retry a topic lookup in a shard or other meta tables -2022-10-06 15:37:59,662 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.log_message_timestamp_type:CreateTime - Default topic messages timestamp type -2022-10-06 15:37:59,662 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.reclaim_min_size:131072 - Minimum batch cache reclaim size -2022-10-06 15:37:59,662 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_max_connections:20 - Max number of simultaneous uploads to S3 -2022-10-06 15:37:59,662 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_replicate_batch_window_size:1048576 - Max size of requests cached for replication -2022-10-06 15:37:59,663 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.quota_manager_gc_sec:30000 - Quota manager GC frequency in milliseconds -2022-10-06 15:37:59,663 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.rm_violation_recovery_policy:crash - Describes how to recover from an invariant violation happened on the partition level -2022-10-06 15:37:59,663 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.coproc_max_ingest_bytes:655360 - Maximum amount of data to hold from input logs in memory -2022-10-06 15:37:59,663 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.alter_topic_cfg_timeout_ms:5000 - Time to wait for entries replication in controller log when executing alter configuration requst -2022-10-06 15:37:59,663 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_qdc_latency_alpha:0.002 - Smoothing parameter for kafka queue depth control latency tracking. -2022-10-06 15:37:59,663 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.log_cleanup_policy:delete - Default topic cleanup policy -2022-10-06 15:37:59,663 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_metrics_reporter:1 - Enable cluster metrics reporter -2022-10-06 15:37:59,664 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.health_monitor_max_metadata_age:10000 - Max age of metadata cached in the health monitor of non controller node -2022-10-06 15:37:59,664 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_heartbeat_interval_ms:150 - Milliseconds for raft leader heartbeats -2022-10-06 15:37:59,664 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_segment_max_upload_interval_sec:{nullopt} - Time that segment can be kept locally without uploading it to the remote storage (sec) -2022-10-06 15:37:59,664 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.readers_cache_eviction_timeout_ms:30000 - Duration after which inactive readers will be evicted from cache -2022-10-06 15:37:59,664 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_coproc:0 - Enable coprocessing mode -2022-10-06 15:37:59,664 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.log_compression_type:producer - Default topic compression type -2022-10-06 15:37:59,665 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.fetch_reads_debounce_timeout:1 - Time to wait for next read in fetch request when requested min bytes wasn't reached -2022-10-06 15:37:59,665 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.release_cache_on_segment_roll:0 - Free cache when segments roll -2022-10-06 15:37:59,665 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kvstore_flush_interval:10 - Key-value store flush interval (ms) -2022-10-06 15:37:59,665 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.max_compacted_log_segment_size:5368709120 - Max compacted segment size after consolidation -2022-10-06 15:37:59,665 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.rm_sync_timeout_ms:10000 - Time to wait state catch up before rejecting a request -2022-10-06 15:37:59,665 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.transaction_coordinator_log_segment_size:1073741824 - How large in bytes should each log segment be (default 1G) -2022-10-06 15:37:59,665 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.tm_violation_recovery_policy:crash - Describes how to recover from an invariant violation happened on the transaction coordinator level -INFO 2022-10-06 13:37:59,665 [shard 0] storage - segment.cc:635 - Creating new segment /var/lib/redpanda/data/redpanda/kvstore/0_0/0-0-v1.log -2022-10-06 15:37:59,666 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.group_new_member_join_timeout:30000 - Timeout for new member joins -2022-10-06 15:37:59,666 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_manifest_upload_timeout_ms:10000 - Manifest upload timeout (ms) -2022-10-06 15:37:59,666 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.storage_read_readahead_count:10 - How many additional reads to issue ahead of current read location -2022-10-06 15:37:59,666 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.group_initial_rebalance_delay:300 - Extra del -2022-10-06 15:37:59,666 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: ay (ms) added to rebalance phase to wait for new members -2022-10-06 15:37:59,666 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.group_max_session_timeout_ms:300000 - The maximum allowed session timeout for registered consumers. Longer timeouts give consumers more time to process messages in between heartbeats at the cost of a longer time to detect failures. -2022-10-06 15:37:59,666 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_learner_recovery_rate:104857600 - Raft learner recovery rate limit in bytes per sec -2022-10-06 15:37:59,667 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_upload_ctrl_max_shares:1000 - maximum number of IO and CPU shares that archival upload can use -2022-10-06 15:37:59,667 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.group_min_session_timeout_ms:6000 - The minimum allowed session timeout for registered consumers. Shorter timeouts result in quicker failure detection at the cost of more frequent consumer heartbeating, which can overwhelm broker resources. -2022-10-06 15:37:59,667 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.controller_backend_housekeeping_interval_ms:1000 - Interval between iterations of controller backend housekeeping loop -2022-10-06 15:37:59,667 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.tm_sync_timeout_ms:10000 - Time to wait state catch up before rejecting a request -2022-10-06 15:37:59,667 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_max_concurrent_append_requests_per_follower:16 - Maximum number of concurrent append entries requests sent by leader to one follower -2022-10-06 15:37:59,667 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.seed_server_meta_topic_partitions: - -2022-10-06 15:37:59,668 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.metadata_dissemination_interval_ms:3000 - Interaval for metadata dissemination batching -2022-10-06 15:37:59,668 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.default_num_windows:10 - Default number of quota tracking windows -2022-10-06 15:37:59,668 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_sasl:0 - Enable SASL authentication for Kafka connections. -2022-10-06 15:37:59,668 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kvstore_max_segment_size:16777216 - Key-value maximum segment size (bytes) -2022-10-06 15:37:59,668 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.min_version: - -2022-10-06 15:37:59,668 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_heartbeat_disconnect_failures:3 - After how many failed heartbeats to forcibly close an unresponsive TCP connection. Set to 0 to disable force disconnection. -2022-10-06 15:37:59,668 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.max_version: - -2022-10-06 15:37:59,669 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.default_window_sec:1000 - Default quota tracking window size in milliseconds -2022-10-06 15:37:59,669 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.fetch_max_bytes:57671680 - Maximum number of bytes returned in fetch request -2022-10-06 15:37:59,669 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.raft_heartbeat_timeout_ms:3000 - raft heartbeat RPC timeout -2022-10-06 15:37:59,669 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_access_key:{nullopt} - AWS access key -2022-10-06 15:37:59,669 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.transactional_id_expiration_ms:604800000 - Producer ids are expired once this time has elapsed after the last write with the given producer id. -2022-10-06 15:37:59,669 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.tx_timeout_delay_ms:1000 - Delay before scheduling next check for timed out transactions -2022-10-06 15:37:59,669 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.coproc_max_inflight_bytes:10485760 - Maximum amountt of inflight bytes when sending data to wasm engine -2022-10-06 15:37:59,669 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.target_quota_byte_rate:2147483648 - Target quota byte rate (bytes per second) - 2GB default -2022-10-06 15:37:59,669 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.create_topic_timeout_ms:2000 - Timeout (ms) to wait for new topic creation -2022-10-06 15:37:59,670 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.metadata_dissemination_retries:30 - Number of attempts of looking up a topic's meta data like shard before failing a request -2022-10-06 15:37:59,670 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.use_scheduling_groups: - -2022-10-06 15:37:59,670 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.disable_metrics:0 - Disable registering metrics -2022-10-06 15:37:59,670 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.rpc_server_tcp_send_buf:{nullopt} - TCP transmit buffer size in bytes. -2022-10-06 15:37:59,670 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.coproc_offset_flush_interval_ms:300000 - Interval for which all coprocessor offsets are flushed to disk -2022-10-06 15:37:59,670 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_leader_balancer:1 - Enable automatic leadership rebalancing -2022-10-06 15:37:59,670 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_initial_backoff_ms:100 - Initial backoff time for exponetial backoff algorithm (ms) -2022-10-06 15:37:59,671 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.rpc_server_tcp_recv_buf:{nullopt} - TCP receive buffer size in bytes. -2022-10-06 15:37:59,671 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_max_bytes_per_fetch:67108864 - Limit fetch responses to this many bytes, even if total of partition bytes limits is higher -2022-10-06 15:37:59,671 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.developer_mode:1 - Skips most of the checks performed at startup, not recomended for production use -2022-10-06 15:37:59,671 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_region:{nullopt} - AWS region that houses the bucket used for storage -2022-10-06 15:37:59,671 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.compacted_log_segment_size:268435456 - How large in bytes should each compacted log segment be (default 256MiB) -2022-10-06 15:37:59,671 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.advertised_kafka_api:{{OUTSIDE:{host: localhost, port: 49238}}, {PLAINTEXT:{host: f5b812c0f0a4, port: 29092}}} - Address of Kafka API published to the clients -2022-10-06 15:37:59,671 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,626 [shard 0] redpanda::main - application.cc:332 - redpanda.coproc_supervisor_server:{host: 127.0.0.1, port: 43189} - IpAddress and port for supervisor service -2022-10-06 15:37:59,672 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.node_id:{0} - Unique id identifying a node in the cluster -2022-10-06 15:37:59,672 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.admin_api_tls:{} - TLS configuration for admin HTTP server -2022-10-06 15:37:59,672 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_api_tls:{} - TLS configuration for Kafka API endpoint -2022-10-06 15:37:59,672 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.advertised_rpc_api:{nullopt} - Address of RPC endpoint published to other cluster members -2022-10-06 15:37:59,672 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO -2022-10-06 15:37:59,672 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.kafka_api:{{PLAINTEXT:{host: 0.0.0.0, port: 29092}}, {OUTSIDE:{host: 0.0.0.0, port: 9092}}} - Address and port of an interface to listen for Kafka API requests -2022-10-06 15:37:59,673 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.rpc_server_tls:{ enabled: 0 key/cert files: {nullopt} ca file: {nullopt} client_auth_required: 0 } - TLS configuration for RPC server -2022-10-06 15:37:59,673 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.rpc_server:{host: 0.0.0.0, port: 33145} - IpAddress and port for RPC server -2022-10-06 15:37:59,673 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.dashboard_dir:{nullopt} - serve http dashboard on / url -2022-10-06 15:37:59,673 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.admin:{{:{host: 0.0.0.0, port: 9644}}} - Address and port of admin server -2022-10-06 15:37:59,673 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.enable_central_config:0 - Enable central storage + sync of cluster configuration -2022-10-06 15:37:59,673 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.seed_servers:{} - List of the seed servers used to join current cluster. If the seed_server list is empty the node will be a cluster root and it will form a new cluster -2022-10-06 15:37:59,673 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.admin_api_doc_dir:/usr/share/redpanda/admin-api-doc - Admin API doc directory -2022-10-06 15:37:59,674 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.rack:{nullopt} - Rack identifier -2022-10-06 15:37:59,674 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.cloud_storage_cache_directory:{nullopt} - Directory for archival cache. Should be present when `cloud_storage_enabled` is present -2022-10-06 15:37:59,674 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - redpanda.data_directory:{data_directory="/var/lib/redpanda/data"} - Place where redpanda will keep the data -2022-10-06 15:37:59,674 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy.consumer_instance_timeout_ms:300000 - How long to wait for an idle consumer before removing it -2022-10-06 15:37:59,674 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy.advertised_pandaproxy_api:{} - Rest API address and port to publish to client -2022-10-06 15:37:59,674 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy.api_doc_dir:/usr/share/redpanda/proxy-api-doc - API doc directory -2022-10-06 15:37:59,674 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy.pandaproxy_api_tls:{} - TLS configuration for Pandaproxy api -2022-10-06 15:37:59,674 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy.pandaproxy_api:{{:{host: 0.0.0.0, port: 8082}}} - Rest API listen address and port -2022-10-06 15:37:59,675 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.sasl_mechanism: - The SASL mechanism to use when connecting -2022-10-06 15:37:59,675 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.consumer_heartbeat_interval_ms:500 - Interval (in milliseconds) for consumer heartbeats -2022-10-06 15:37:59,675 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.consumer_rebalance_timeout_ms:2000 - Timeout (in milliseconds) for consumer rebalance -2022-10-06 15:37:59,675 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.consumer_request_max_bytes:1048576 - Max bytes to fetch per request -2022-10-06 15:37:59,675 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.consumer_request_timeout_ms:100 - Interval (in milliseconds) for consumer request timeout -2022-10-06 15:37:59,675 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.scram_username: - Username to use for SCRAM authentication mechanisms -2022-10-06 15:37:59,675 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.produce_batch_delay_ms:100 - Delay (in milliseconds) to wait before sending batch -2022-10-06 15:37:59,676 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.produce_batch_size_bytes:1048576 - Number of bytes to batch before sending to broker -2022-10-06 15:37:59,676 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.consumer_session_timeout_ms:300000 - Timeout (in milliseconds) for consumer session -INFO 2022-10-06 13:37:59,675 [shard 0] cluster - partition_manager.cc:80 - Log created manage completed, ntp: {redpanda/controller/0}, rev: 0, 0 segments, 0 bytes -INFO 2022-10-06 13:37:59,676 [shard 0] raft - [group_id:0, {redpanda/controller/0}] consensus.cc:992 - Starting -2022-10-06 15:37:59,676 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.produce_batch_record_count:1000 - Number of records to batch before sending to broker -INFO 2022-10-06 13:37:59,676 [shard 0] raft - [group_id:0, {redpanda/controller/0}] consensus.cc:1024 - Starting with voted_for {id: {-2147483648}, revision: {-9223372036854775808}} term 0 initial_state true -2022-10-06 15:37:59,676 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.retry_base_backoff_ms:100 - Delay (in milliseconds) for initial retry backoff -2022-10-06 15:37:59,676 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.retries:5 - Number of times to retry a request to a broker -2022-10-06 15:37:59,676 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.scram_password: - Password to use for SCRAM authentication mechanisms -2022-10-06 15:37:59,676 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.broker_tls:{ enabled: 0 key/cert files: {nullopt} ca file: {nullopt} client_auth_required: 0 } - TLS configuration for the brokers -2022-10-06 15:37:59,676 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - pandaproxy_client.brokers:{{host: 0.0.0.0, port: 29092}} - List of address and port of the brokers -2022-10-06 15:37:59,677 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry.api_doc_dir:/usr/share/redpanda/proxy-api-doc - API doc directory -2022-10-06 15:37:59,677 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry.schema_registry_replication_factor:{nullopt} - Replication factor for internal _schemas topic. If unset, defaults to `default_topic_replication` -2022-10-06 15:37:59,677 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry.schema_registry_api_tls:{} - TLS configuration for Schema Registry API -2022-10-06 15:37:59,677 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry.schema_registry_api:{{:{host: 0.0.0.0, port: 8081}}} - Schema Registry API listen address and port -2022-10-06 15:37:59,677 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.sasl_mechanism: - The SASL mechanism to use when connecting -2022-10-06 15:37:59,677 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.consumer_heartbeat_interval_ms:500 - Interval (in milliseconds) for consumer heartbeats -2022-10-06 15:37:59,677 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.consumer_rebalance_timeout_ms:2000 - Timeout (in milliseconds) for consumer rebalance -2022-10-06 15:37:59,677 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.consumer_request_max_bytes:1048576 - Max bytes to fetch per request -2022-10-06 15:37:59,678 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.consumer_request_timeout_ms:100 - Interval (in milliseconds) for consumer request timeout -2022-10-06 15:37:59,678 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.scram_username: - Username to use for SCRAM authentication mechanisms -2022-10-06 15:37:59,678 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.produce_batch_delay_ms:0 - Delay (in milliseconds) to wait before sending batch -2022-10-06 15:37:59,678 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application. -2022-10-06 15:37:59,678 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: cc:332 - schema_registry_client.produce_batch_size_bytes:0 - Number of bytes to batch before sending to broker -2022-10-06 15:37:59,678 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.consumer_session_timeout_ms:10000 - Timeout (in milliseconds) for consumer session -2022-10-06 15:37:59,678 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.produce_batch_record_count:0 - Number of records to batch before sending to broker -2022-10-06 15:37:59,678 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.retry_base_backoff_ms:100 - Delay (in milliseconds) for initial retry backoff -2022-10-06 15:37:59,679 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.retries:5 - Number of times to retry a request to a broker -2022-10-06 15:37:59,679 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.scram_password: - Password to use for SCRAM authentication mechanisms -2022-10-06 15:37:59,679 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.broker_tls:{ enabled: 0 key/cert files: {nullopt} ca file: {nullopt} client_auth_required: 0 } - TLS configuration for the brokers -2022-10-06 15:37:59,679 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] redpanda::main - application.cc:332 - schema_registry_client.brokers:{{host: 0.0.0.0, port: 29092}} - List of address and port of the brokers -2022-10-06 15:37:59,679 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,627 [shard 0] syschecks - Writing pid file "/var/lib/redpanda/data/pid.lock" -2022-10-06 15:37:59,679 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,637 [shard 0] storage - directories.h:33 - Checking `/var/lib/redpanda/data` for supported filesystems -2022-10-06 15:37:59,679 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: ERROR 2022-10-06 13:37:59,637 [shard 0] syschecks - Path: `/var/lib/redpanda/data' is not on XFS. This is a non-supported setup. Expect poor performance. -2022-10-06 15:37:59,679 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,650 [shard 0] redpanda::main - application.cc:654 - Partition manager started -2022-10-06 15:37:59,679 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,655 [shard 0] cluster - raft0_utils.h:32 - Current node is cluster root -2022-10-06 15:37:59,679 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,665 [shard 0] storage - segment.cc:635 - Creating new segment /var/lib/redpanda/data/redpanda/kvstore/0_0/0-0-v1.log -2022-10-06 15:37:59,679 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,675 [shard 0] cluster - partition_manager.cc:80 - Log created manage completed, ntp: {redpanda/controller/0}, rev: 0, 0 segments, 0 bytes -2022-10-06 15:37:59,679 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,676 [shard 0] raft - [group_id:0, {redpanda/controller/0}] consensus.cc:992 - Starting -2022-10-06 15:37:59,680 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,676 [shard 0] raft - [group_id:0, {redpanda/controller/0}] consensus.cc:1024 - Starting with voted_for {id: {-2147483648}, revision: {-9223372036854775808}} term 0 initial_state true -INFO 2022-10-06 13:37:59,698 [shard 0] raft - [group_id:0, {redpanda/controller/0}] consensus.cc:1066 - Read bootstrap state: data_seen 0 config_seen 0 eol false commit 0 term 0 prev_idx 0 prev_term 0 config_tracker -9223372036854775808 commit_base_tracker -9223372036854775808 configurations {} -INFO 2022-10-06 13:37:59,698 [shard 0] raft - [group_id:0, {redpanda/controller/0}] consensus.cc:1067 - Current log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808} -INFO 2022-10-06 13:37:59,698 [shard 0] raft - [group_id:0, {redpanda/controller/0}] consensus.cc:1091 - Truncating configurations at -9223372036854775808 -2022-10-06 15:37:59,698 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,698 [shard 0] raft - [group_id:0, {redpanda/controller/0}] consensus.cc:1066 - Read bootstrap state: data_seen 0 config_seen 0 eol false commit 0 term 0 prev_idx 0 prev_term 0 config_tracker -9223372036854775808 commit_base_tracker -9223372036854775808 configurations {} -2022-10-06 15:37:59,698 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,698 [shard 0] raft - [group_id:0, {redpanda/controller/0}] consensus.cc:1067 - Current log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808} -2022-10-06 15:37:59,699 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,698 [shard 0] raft - [group_id:0, {redpanda/controller/0}] consensus.cc:1091 - Truncating configurations at -9223372036854775808 -INFO 2022-10-06 13:37:59,720 [shard 0] raft - [group_id:0, {redpanda/controller/0}] consensus.cc:1188 - started raft, log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808}, term: 0, configuration: {current: {voters: {{id: {0}, revision: {0}}}, learners: {}}, old:{nullopt}, revision: 0, brokers: {{id: 0, kafka_advertised_listeners: {{OUTSIDE:{host: localhost, port: 49238}}, {PLAINTEXT:{host: f5b812c0f0a4, port: 29092}}}, rpc_address: {host: 0.0.0.0, port: 33145}, rack: {nullopt}, properties: {cores 1, mem_available 0, disk_available 0}, membership_state: active}}} -2022-10-06 15:37:59,721 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,720 [shard 0] raft - [group_id:0, {redpanda/controller/0}] consensus.cc:1188 - started raft, log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808}, term: 0, configuration: {current: {voters: {{id: {0}, revision: {0}}}, learners: {}}, old:{nullopt}, revision: 0, brokers: {{id: 0, kafka_advertised_listeners: {{OUTSIDE:{host: localhost, port: 49238}}, {PLAINTEXT:{host: f5b812c0f0a4, port: 29092}}}, rpc_address: {host: 0.0.0.0, port: 33145}, rack: {nullopt}, properties: {cores 1, mem_available 0, disk_available 0}, membership_state: active}}} -INFO 2022-10-06 13:37:59,731 [shard 0] cluster - members_manager.cc:72 - starting cluster::members_manager... -INFO 2022-10-06 13:37:59,731 [shard 0] cluster - state_machine.cc:29 - Starting state machine for ntp={redpanda/controller/0} -INFO 2022-10-06 13:37:59,732 [shard 0] cluster - leader_balancer.cc:92 - Leader balancer: controller leadership lost -2022-10-06 15:37:59,732 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,731 [shard 0] cluster - members_manager.cc:72 - starting cluster::members_manager... -INFO 2022-10-06 13:37:59,732 [shard 0] redpanda::main - application.cc:1114 - Started RPC server listening at {host: 0.0.0.0, port: 33145} -2022-10-06 15:37:59,732 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,731 [shard 0] cluster - state_machine.cc:29 - Starting state machine for ntp={redpanda/controller/0} -INFO 2022-10-06 13:37:59,732 [shard 0] redpanda::main - application.cc:1174 - Started Kafka API server listening at {{PLAINTEXT:{host: 0.0.0.0, port: 29092}}, {OUTSIDE:{host: 0.0.0.0, port: 9092}}} -2022-10-06 15:37:59,732 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,732 [shard 0] cluster - leader_balancer.cc:92 - Leader balancer: controller leadership lost -INFO 2022-10-06 13:37:59,732 [shard 0] raft - [group_id:0, {redpanda/controller/0}] vote_stm.cc:252 - became the leader term:1 -INFO 2022-10-06 13:37:59,732 [shard 0] cluster - leader_balancer.cc:86 - Leader balancer: controller leadership detected. Starting rebalancer in 30 seconds -2022-10-06 15:37:59,732 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,732 [shard 0] redpanda::main - application.cc:1114 - Started RPC server listening at {host: 0.0.0.0, port: 33145} -INFO 2022-10-06 13:37:59,732 [shard 0] storage - segment.cc:635 - Creating new segment /var/lib/redpanda/data/redpanda/controller/0_0/0-1-v1.log -2022-10-06 15:37:59,733 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,732 [shard 0] redpanda::main - application.cc:1174 - Started Kafka API server listening at {{PLAINTEXT:{host: 0.0.0.0, port: 29092}}, {OUTSIDE:{host: 0.0.0.0, port: 9092}}} -INFO 2022-10-06 13:37:59,732 [shard 0] admin_api_server - admin_server.cc:96 - Started HTTP admin service listening at {{:{host: 0.0.0.0, port: 9644}}} -INFO 2022-10-06 13:37:59,733 [shard 0] redpanda::main - application.cc:1013 - Started Pandaproxy listening at {{:{host: 0.0.0.0, port: 8082}}} -2022-10-06 15:37:59,733 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,732 [shard 0] raft - [group_id:0, {redpanda/controller/0}] vote_stm.cc:252 - became the leader term:1 -2022-10-06 15:37:59,733 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,732 [shard 0] cluster - leader_balancer.cc:86 - Leader balancer: controller leadership detected. Starting rebalancer in 30 seconds -2022-10-06 15:37:59,733 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,732 [shard 0] storage - segment.cc:635 - Creating new segment /var/lib/redpanda/data/redpanda/controller/0_0/0-1-v1.log -2022-10-06 15:37:59,733 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,732 [shard 0] admin_api_server - admin_server.cc:96 - Started HTTP admin service listening at {{:{host: 0.0.0.0, port: 9644}}} -2022-10-06 15:37:59,733 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,733 [shard 0] redpanda::main - application.cc:1013 - Started Pandaproxy listening at {{:{host: 0.0.0.0, port: 8082}}} -2022-10-06 15:37:59,733 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,733 [shard 0] redpanda::main - application.cc:1021 - Started Schema Registry listening at {{:{host: 0.0.0.0, port: 8081}}} -INFO 2022-10-06 13:37:59,733 [shard 0] redpanda::main - application.cc:1021 - Started Schema Registry listening at {{:{host: 0.0.0.0, port: 8081}}} -INFO 2022-10-06 13:37:59,733 [shard 0] redpanda::main - application.cc:1026 - Successfully started Redpanda! -2022-10-06 15:37:59,733 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:37:59,733 [shard 0] redpanda::main - application.cc:1026 - Successfully started Redpanda! -2022-10-06 15:37:59,743 INFO [🐳 .11.8]] (pool-3-thread-1) Container vectorized/redpanda:v21.11.8 started in PT1.336889165S -2022-10-06 15:37:59,743 INFO [org.kie.kog.tes.KogitoKafkaContainer] (pool-3-thread-1) Kafka servers: OUTSIDE://localhost:49238 -Executing "/usr/lib/jvm/java-17-openjdk-17.0.4.1.1-1.fc36.x86_64/bin/java -Dquarkus.http.port=0 -Dquarkus.http.ssl-port=8444 -Dtest.url=http://localhost:0 -Dquarkus.log.file.path=/home/ftirados/git/kogito-examples/kogito-quarkus-examples/ruleunit-event-driven-quarkus/target/test-run/target/quarkus.log -Dquarkus.log.file.enable=true -Dkafka.bootstrap.servers=localhost:49238 -jar /home/ftirados/git/kogito-examples/kogito-quarkus-examples/ruleunit-event-driven-quarkus/target/quarkus-app/quarkus-run.jar" -__ ____ __ _____ ___ __ ____ ______ - --/ __ \/ / / / _ | / _ \/ //_/ / / / __/ - -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \ ---\___\_\____/_/ |_/_/|_/_/|_|\____/___/ -2022-10-06 15:38:00,016 WARN [io.qua.config] (main) Unrecognized configuration key "quarkus.swagger-ui.always-include" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo -2022-10-06 15:38:00,480 INFO [io.sma.rea.mes.kafka] (main) SRMSG18229: Configured topics for channel 'kogito_incoming_stream': [ruleunit-event-driven-requests] -2022-10-06 15:38:00,486 INFO [io.sma.rea.mes.kafka] (main) SRMSG18214: Key deserializer omitted, using String as default -2022-10-06 15:38:00,638 INFO [io.sma.rea.mes.kafka] (main) SRMSG18258: Kafka producer kafka-producer-kogito_outgoing_stream, connected to Kafka brokers 'localhost:49238', is configured to write records to 'ruleunit-event-driven-responses' -2022-10-06 15:38:00,678 INFO [io.sma.rea.mes.kafka] (smallrye-kafka-consumer-thread-0) SRMSG18257: Kafka consumer kafka-consumer-kogito_incoming_stream, connected to Kafka brokers 'localhost:49238', belongs to the 'ruleunit-event-driven-example' consumer group and is configured to poll records from [ruleunit-event-driven-requests] -INFO 2022-10-06 13:38:00,821 [shard 0] cluster - topics_frontend.cc:71 - Create topics {{configuration: { topic: {ns: {kafka}, topic: {ruleunit-event-driven-requests}}, partition_count: 1, replication_factor: 1, properties: { compression: {nullopt}, cleanup_policy_bitflags: {nullopt}, compaction_strategy: {nullopt}, retention_bytes: {}, retention_duration_ms: {}, segment_size: {nullopt}, timestamp_type: {nullopt}, recovery_enabled: {nullopt}, shadow_indexing: {nullopt} }}, custom_assignments: {}}} -2022-10-06 15:38:00,821 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,821 [shard 0] cluster - topics_frontend.cc:71 - Create topics {{configuration: { topic: {ns: {kafka}, topic: {ruleunit-event-driven-requests}}, partition_count: 1, replication_factor: 1, properties: { compression: {nullopt}, cleanup_policy_bitflags: {nullopt}, compaction_strategy: {nullopt}, retention_bytes: {}, retention_duration_ms: {}, segment_size: {nullopt}, timestamp_type: {nullopt}, recovery_enabled: {nullopt}, shadow_indexing: {nullopt} }}, custom_assignments: {}}} -INFO 2022-10-06 13:38:00,845 [shard 0] cluster - partition_manager.cc:80 - Log created manage completed, ntp: {kafka/ruleunit-event-driven-requests/0}, rev: 2, 0 segments, 0 bytes -INFO 2022-10-06 13:38:00,845 [shard 0] raft - [group_id:1, {kafka/ruleunit-event-driven-requests/0}] consensus.cc:992 - Starting -INFO 2022-10-06 13:38:00,845 [shard 0] raft - [group_id:1, {kafka/ruleunit-event-driven-requests/0}] consensus.cc:1024 - Starting with voted_for {id: {-2147483648}, revision: {-9223372036854775808}} term 0 initial_state true -2022-10-06 15:38:00,845 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,845 [shard 0] cluster - partition_manager.cc:80 - Log created manage completed, ntp: {kafka/ruleunit-event-driven-requests/0}, rev: 2, 0 segments, 0 bytes -2022-10-06 15:38:00,845 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,845 [shard 0] raft - [group_id:1, {kafka/ruleunit-event-driven-requests/0}] consensus.cc:992 - Starting -2022-10-06 15:38:00,845 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,845 [shard 0] raft - [group_id:1, {kafka/ruleunit-event-driven-requests/0}] consensus.cc:1024 - Starting with voted_for {id: {-2147483648}, revision: {-9223372036854775808}} term 0 initial_state true -2022-10-06 15:38:00,861 INFO [org.kie.kog.add.qua.mes.com.AbstractQuarkusCloudEventReceiver] (main) Subscribing consumer for class class org.kie.kogito.queries.LoanUnit -2022-10-06 15:38:00,863 INFO [org.kie.kog.add.qua.mes.com.AbstractQuarkusCloudEventReceiver] (main) Subscribing consumer for class class org.kie.kogito.queries.LoanUnit -2022-10-06 15:38:00,866 INFO [org.kie.kog.add.qua.mes.com.QuarkusKogitoExtensionInitializer] (main) Registered Kogito CloudEvent extension -INFO 2022-10-06 13:38:00,867 [shard 0] offset_translator - ntp: {kafka/ruleunit-event-driven-requests/0} - offset_translator.cc:90 - resetting offset translation state -2022-10-06 15:38:00,867 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,867 [shard 0] offset_translator - ntp: {kafka/ruleunit-event-driven-requests/0} - offset_translator.cc:90 - resetting offset translation state -2022-10-06 15:38:00,868 INFO [org.kie.kog.add.qua.mes.com.AbstractQuarkusCloudEventReceiver] (main) Subscribing consumer for class class org.kie.kogito.queries.LoanUnit -INFO 2022-10-06 13:38:00,889 [shard 0] offset_translator - ntp: {kafka/ruleunit-event-driven-requests/0} - offset_translator.cc:141 - started, state: {base offset/delta: {-9223372036854775808}/0, map size: 1, last delta: 0}, highest_known_offset: -9223372036854775808 -INFO 2022-10-06 13:38:00,889 [shard 0] raft - [group_id:1, {kafka/ruleunit-event-driven-requests/0}] consensus.cc:1066 - Read bootstrap state: data_seen 0 config_seen 0 eol false commit 0 term 0 prev_idx 0 prev_term 0 config_tracker -9223372036854775808 commit_base_tracker -9223372036854775808 configurations {} -INFO 2022-10-06 13:38:00,889 [shard 0] raft - [group_id:1, {kafka/ruleunit-event-driven-requests/0}] consensus.cc:1067 - Current log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808} -INFO 2022-10-06 13:38:00,889 [shard 0] raft - [group_id:1, {kafka/ruleunit-event-driven-requests/0}] consensus.cc:1091 - Truncating configurations at -9223372036854775808 -2022-10-06 15:38:00,890 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,889 [shard 0] offset_translator - ntp: {kafka/ruleunit-event-driven-requests/0} - offset_translator.cc:141 - started, state: {base offset/delta: {-9223372036854775808}/0, map size: 1, last delta: 0}, highest_known_offset: -9223372036854775808 -2022-10-06 15:38:00,890 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,889 [shard 0] raft - [group_id:1, {kafka/ruleunit-event-driven-requests/0}] consensus.cc:1066 - Read bootstrap state: data_seen 0 config_seen 0 eol false commit 0 term 0 prev_idx 0 prev_term 0 config_tracker -9223372036854775808 commit_base_tracker -9223372036854775808 configurations {} -2022-10-06 15:38:00,890 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,889 [shard 0] raft - [group_id:1, {kafka/ruleunit-event-driven-requests/0}] consensus.cc:1067 - Current log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808} -2022-10-06 15:38:00,890 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,889 [shard 0] raft - [group_id:1, {kafka/ruleunit-event-driven-requests/0}] consensus.cc:1091 - Truncating configurations at -9223372036854775808 -INFO 2022-10-06 13:38:00,911 [shard 0] offset_translator - ntp: {kafka/ruleunit-event-driven-requests/0} - offset_translator.cc:203 - synced with log, state: {base offset/delta: {-9223372036854775808}/0, map size: 1, last delta: 0}, highest_known_offset: -9223372036854775808 -INFO 2022-10-06 13:38:00,911 [shard 0] raft - [group_id:1, {kafka/ruleunit-event-driven-requests/0}] consensus.cc:1188 - started raft, log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808}, term: 0, configuration: {current: {voters: {{id: {0}, revision: {2}}}, learners: {}}, old:{nullopt}, revision: 2, brokers: {{id: 0, kafka_advertised_listeners: {{OUTSIDE:{host: localhost, port: 49238}}, {PLAINTEXT:{host: f5b812c0f0a4, port: 29092}}}, rpc_address: {host: 0.0.0.0, port: 33145}, rack: {nullopt}, properties: {cores 1, mem_available 0, disk_available 0}, membership_state: active}}} -INFO 2022-10-06 13:38:00,911 [shard 0] cluster - state_machine.cc:29 - Starting state machine for ntp={kafka/ruleunit-event-driven-requests/0} -INFO 2022-10-06 13:38:00,911 [shard 0] cluster - controller_backend.cc:437 - partition operation {type: addition, ntp: {kafka/ruleunit-event-driven-requests/0}, offset: 2, new_assignment: { id: 0, group_id: 1, replicas: {{node_id: 0, shard: 0}} }, previous_assignment: {nullopt}} finished -2022-10-06 15:38:00,912 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,911 [shard 0] offset_translator - ntp: {kafka/ruleunit-event-driven-requests/0} - offset_translator.cc:203 - synced with log, state: {base offset/delta: {-9223372036854775808}/0, map size: 1, last delta: 0}, highest_known_offset: -9223372036854775808 -2022-10-06 15:38:00,912 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,911 [shard 0] raft - [group_id:1, {kafka/ruleunit-event-driven-requests/0}] consensus.cc:1188 - started raft, log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808}, term: 0, configuration: {current: {voters: {{id: {0}, revision: {2}}}, learners: {}}, old:{nullopt}, revision: 2, brokers: {{id: 0, kafka_advertised_listeners: {{OUTSIDE:{host: localhost, port: 49238}}, {PLAINTEXT:{host: f5b812c0f0a4, port: 29092}}}, rpc_address: {host: 0.0.0.0, port: 33145}, rack: {nullopt}, properties: {cores 1, mem_available 0, disk_available 0}, membership_state: active}}} -2022-10-06 15:38:00,912 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,911 [shard 0] cluster - state_machine.cc:29 - Starting state machine for ntp={kafka/ruleunit-event-driven-requests/0} -2022-10-06 15:38:00,912 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,911 [shard 0] cluster - controller_backend.cc:437 - partition operation {type: addition, ntp: {kafka/ruleunit-event-driven-requests/0}, offset: 2, new_assignment: { id: 0, group_id: 1, replicas: {{node_id: 0, shard: 0}} }, previous_assignment: {nullopt}} finished -INFO 2022-10-06 13:38:00,922 [shard 0] raft - [group_id:1, {kafka/ruleunit-event-driven-requests/0}] vote_stm.cc:252 - became the leader term:1 -INFO 2022-10-06 13:38:00,923 [shard 0] storage - segment.cc:635 - Creating new segment /var/lib/redpanda/data/kafka/ruleunit-event-driven-requests/0_2/0-1-v1.log -2022-10-06 15:38:00,923 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,922 [shard 0] raft - [group_id:1, {kafka/ruleunit-event-driven-requests/0}] vote_stm.cc:252 - became the leader term:1 -2022-10-06 15:38:00,923 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,923 [shard 0] storage - segment.cc:635 - Creating new segment /var/lib/redpanda/data/kafka/ruleunit-event-driven-requests/0_2/0-1-v1.log -2022-10-06 15:38:00,924 INFO [io.quarkus] (main) ruleunit-event-driven-quarkus 2.0.0-SNAPSHOT on JVM (powered by Quarkus 2.13.0.Final) started in 1.112s. Listening on: http://0.0.0.0:41805 -2022-10-06 15:38:00,925 INFO [io.quarkus] (main) Profile prod activated. -2022-10-06 15:38:00,925 INFO [io.quarkus] (main) Installed features: [cdi, kafka-client, kogito-addon-events-rules-extension, kogito-addon-messaging-extension, kogito-rules, resteasy, resteasy-jackson, smallrye-context-propagation, smallrye-health, smallrye-reactive-messaging, smallrye-reactive-messaging-kafka, vertx] -INFO 2022-10-06 13:38:00,930 [shard 0] cluster - topics_frontend.cc:71 - Create topics {{configuration: { topic: {ns: {kafka_internal}, topic: {group}}, partition_count: 1, replication_factor: 1, properties: { compression: {nullopt}, cleanup_policy_bitflags: {compact}, compaction_strategy: {nullopt}, retention_bytes: {}, retention_duration_ms: {}, segment_size: {nullopt}, timestamp_type: {nullopt}, recovery_enabled: {nullopt}, shadow_indexing: {nullopt} }}, custom_assignments: {}}} -2022-10-06 15:38:00,930 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,930 [shard 0] cluster - topics_frontend.cc:71 - Create topics {{configuration: { topic: {ns: {kafka_internal}, topic: {group}}, partition_count: 1, replication_factor: 1, properties: { compression: {nullopt}, cleanup_policy_bitflags: {compact}, compaction_strategy: {nullopt}, retention_bytes: {}, retention_duration_ms: {}, segment_size: {nullopt}, timestamp_type: {nullopt}, recovery_enabled: {nullopt}, shadow_indexing: {nullopt} }}, custom_assignments: {}}} -INFO 2022-10-06 13:38:00,938 [shard 0] cluster - partition_manager.cc:80 - Log created manage completed, ntp: {kafka_internal/group/0}, rev: 4, 0 segments, 0 bytes -INFO 2022-10-06 13:38:00,938 [shard 0] raft - [group_id:2, {kafka_internal/group/0}] consensus.cc:992 - Starting -INFO 2022-10-06 13:38:00,938 [shard 0] raft - [group_id:2, {kafka_internal/group/0}] consensus.cc:1024 - Starting with voted_for {id: {-2147483648}, revision: {-9223372036854775808}} term 0 initial_state true -2022-10-06 15:38:00,938 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,938 [shard 0] cluster - partition_manager.cc:80 - Log created manage completed, ntp: {kafka_internal/group/0}, rev: 4, 0 segments, 0 bytes -2022-10-06 15:38:00,938 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,938 [shard 0] raft - [group_id:2, {kafka_internal/group/0}] consensus.cc:992 - Starting -2022-10-06 15:38:00,938 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,938 [shard 0] raft - [group_id:2, {kafka_internal/group/0}] consensus.cc:1024 - Starting with voted_for {id: {-2147483648}, revision: {-9223372036854775808}} term 0 initial_state true -INFO 2022-10-06 13:38:00,956 [shard 0] raft - [group_id:2, {kafka_internal/group/0}] consensus.cc:1066 - Read bootstrap state: data_seen 0 config_seen 0 eol false commit 0 term 0 prev_idx 0 prev_term 0 config_tracker -9223372036854775808 commit_base_tracker -9223372036854775808 configurations {} -INFO 2022-10-06 13:38:00,956 [shard 0] raft - [group_id:2, {kafka_internal/group/0}] consensus.cc:1067 - Current log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808} -INFO 2022-10-06 13:38:00,956 [shard 0] raft - [group_id:2, {kafka_internal/group/0}] consensus.cc:1091 - Truncating configurations at -9223372036854775808 -2022-10-06 15:38:00,957 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,956 [shard 0] raft - [group_id:2, {kafka_internal/group/0}] consensus.cc:1066 - Read bootstrap state: data_seen 0 config_seen 0 eol false commit 0 term 0 prev_idx 0 prev_term 0 config_tracker -9223372036854775808 commit_base_tracker -9223372036854775808 configurations {} -2022-10-06 15:38:00,957 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,956 [shard 0] raft - [group_id:2, {kafka_internal/group/0}] consensus.cc:1067 - Current log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808} -2022-10-06 15:38:00,957 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,956 [shard 0] raft - [group_id:2, {kafka_internal/group/0}] consensus.cc:1091 - Truncating configurations at -9223372036854775808 -INFO 2022-10-06 13:38:00,978 [shard 0] raft - [group_id:2, {kafka_internal/group/0}] consensus.cc:1188 - started raft, log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808}, term: 0, configuration: {current: {voters: {{id: {0}, revision: {4}}}, learners: {}}, old:{nullopt}, revision: 4, brokers: {{id: 0, kafka_advertised_listeners: {{OUTSIDE:{host: localhost, port: 49238}}, {PLAINTEXT:{host: f5b812c0f0a4, port: 29092}}}, rpc_address: {host: 0.0.0.0, port: 33145}, rack: {nullopt}, properties: {cores 1, mem_available 0, disk_available 0}, membership_state: active}}} -INFO 2022-10-06 13:38:00,978 [shard 0] cluster - controller_backend.cc:437 - partition operation {type: addition, ntp: {kafka_internal/group/0}, offset: 4, new_assignment: { id: 0, group_id: 2, replicas: {{node_id: 0, shard: 0}} }, previous_assignment: {nullopt}} finished -2022-10-06 15:38:00,978 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,978 [shard 0] raft - [group_id:2, {kafka_internal/group/0}] consensus.cc:1188 - started raft, log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808}, term: 0, configuration: {current: {voters: {{id: {0}, revision: {4}}}, learners: {}}, old:{nullopt}, revision: 4, brokers: {{id: 0, kafka_advertised_listeners: {{OUTSIDE:{host: localhost, port: 49238}}, {PLAINTEXT:{host: f5b812c0f0a4, port: 29092}}}, rpc_address: {host: 0.0.0.0, port: 33145}, rack: {nullopt}, properties: {cores 1, mem_available 0, disk_available 0}, membership_state: active}}} -2022-10-06 15:38:00,979 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,978 [shard 0] cluster - controller_backend.cc:437 - partition operation {type: addition, ntp: {kafka_internal/group/0}, offset: 4, new_assignment: { id: 0, group_id: 2, replicas: {{node_id: 0, shard: 0}} }, previous_assignment: {nullopt}} finished -INFO 2022-10-06 13:38:00,989 [shard 0] raft - [group_id:2, {kafka_internal/group/0}] vote_stm.cc:252 - became the leader term:1 -INFO 2022-10-06 13:38:00,989 [shard 0] storage - segment.cc:635 - Creating new segment /var/lib/redpanda/data/kafka_internal/group/0_4/0-1-v1.log -2022-10-06 15:38:00,989 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,989 [shard 0] raft - [group_id:2, {kafka_internal/group/0}] vote_stm.cc:252 - became the leader term:1 -2022-10-06 15:38:00,990 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:00,989 [shard 0] storage - segment.cc:635 - Creating new segment /var/lib/redpanda/data/kafka_internal/group/0_4/0-1-v1.log -INFO 2022-10-06 13:38:01,067 [shard 0] kafka - fetch_session_cache.cc:106 - fetch session created: 1 -2022-10-06 15:38:01,067 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:01,067 [shard 0] kafka - fetch_session_cache.cc:106 - fetch session created: 1 -2022-10-06 15:38:01,101 INFO [org.apa.kaf.cli.con.ConsumerConfig] (main) ConsumerConfig values: - allow.auto.create.topics = true - auto.commit.interval.ms = 5000 - auto.offset.reset = earliest - bootstrap.servers = [localhost:49238] - check.crcs = true - client.dns.lookup = use_all_dns_ips - client.id = consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1 - client.rack = - connections.max.idle.ms = 540000 - default.api.timeout.ms = 60000 - enable.auto.commit = false - exclude.internal.topics = true - fetch.max.bytes = 52428800 - fetch.max.wait.ms = 500 - fetch.min.bytes = 1 - group.id = org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer - group.instance.id = null - heartbeat.interval.ms = 3000 - interceptor.classes = [] - internal.leave.group.on.close = true - internal.throw.on.fetch.stable.offset.unsupported = false - isolation.level = read_uncommitted - key.deserializer = class org.apache.kafka.common.serialization.StringDeserializer - max.partition.fetch.bytes = 1048576 - max.poll.interval.ms = 300000 - max.poll.records = 500 - metadata.max.age.ms = 300000 - metric.reporters = [] - metrics.num.samples = 2 - metrics.recording.level = INFO - metrics.sample.window.ms = 30000 - partition.assignment.strategy = [class org.apache.kafka.clients.consumer.RangeAssignor, class org.apache.kafka.clients.consumer.CooperativeStickyAssignor] - receive.buffer.bytes = 65536 - reconnect.backoff.max.ms = 1000 - reconnect.backoff.ms = 50 - request.timeout.ms = 30000 - retry.backoff.ms = 100 - sasl.client.callback.handler.class = null - sasl.jaas.config = null - sasl.kerberos.kinit.cmd = /usr/bin/kinit - sasl.kerberos.min.time.before.relogin = 60000 - sasl.kerberos.service.name = null - sasl.kerberos.ticket.renew.jitter = 0.05 - sasl.kerberos.ticket.renew.window.factor = 0.8 - sasl.login.callback.handler.class = null - sasl.login.class = null - sasl.login.connect.timeout.ms = null - sasl.login.read.timeout.ms = null - sasl.login.refresh.buffer.seconds = 300 - sasl.login.refresh.min.period.seconds = 60 - sasl.login.refresh.window.factor = 0.8 - sasl.login.refresh.window.jitter = 0.05 - sasl.login.retry.backoff.max.ms = 10000 - sasl.login.retry.backoff.ms = 100 - sasl.mechanism = GSSAPI - sasl.oauthbearer.clock.skew.seconds = 30 - sasl.oauthbearer.expected.audience = null - sasl.oauthbearer.expected.issuer = null - sasl.oauthbearer.jwks.endpoint.refresh.ms = 3600000 - sasl.oauthbearer.jwks.endpoint.retry.backoff.max.ms = 10000 - sasl.oauthbearer.jwks.endpoint.retry.backoff.ms = 100 - sasl.oauthbearer.jwks.endpoint.url = null - sasl.oauthbearer.scope.claim.name = scope - sasl.oauthbearer.sub.claim.name = sub - sasl.oauthbearer.token.endpoint.url = null - security.protocol = PLAINTEXT - security.providers = null - send.buffer.bytes = 131072 - session.timeout.ms = 45000 - socket.connection.setup.timeout.max.ms = 30000 - socket.connection.setup.timeout.ms = 10000 - ssl.cipher.suites = null - ssl.enabled.protocols = [TLSv1.2, TLSv1.3] - ssl.endpoint.identification.algorithm = https - ssl.engine.factory.class = null - ssl.key.password = null - ssl.keymanager.algorithm = SunX509 - ssl.keystore.certificate.chain = null - ssl.keystore.key = null - ssl.keystore.location = null - ssl.keystore.password = null - ssl.keystore.type = JKS - ssl.protocol = TLSv1.3 - ssl.provider = null - ssl.secure.random.implementation = null - ssl.trustmanager.algorithm = PKIX - ssl.truststore.certificates = null - ssl.truststore.location = null - ssl.truststore.password = null - ssl.truststore.type = JKS - value.deserializer = class org.apache.kafka.common.serialization.StringDeserializer - -2022-10-06 15:38:01,173 INFO [org.apa.kaf.com.uti.AppInfoParser] (main) Kafka version: 3.2.1 -2022-10-06 15:38:01,173 INFO [org.apa.kaf.com.uti.AppInfoParser] (main) Kafka commitId: b172a0a94f4ebb9f -2022-10-06 15:38:01,173 INFO [org.apa.kaf.com.uti.AppInfoParser] (main) Kafka startTimeMs: 1665063481172 -2022-10-06 15:38:01,174 INFO [org.apa.kaf.cli.con.KafkaConsumer] (pool-4-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Subscribed to topic(s): ruleunit-event-driven-responses -INFO 2022-10-06 13:38:01,350 [shard 0] cluster - topics_frontend.cc:71 - Create topics {{configuration: { topic: {ns: {kafka}, topic: {ruleunit-event-driven-responses}}, partition_count: 1, replication_factor: 1, properties: { compression: {nullopt}, cleanup_policy_bitflags: {nullopt}, compaction_strategy: {nullopt}, retention_bytes: {}, retention_duration_ms: {}, segment_size: {nullopt}, timestamp_type: {nullopt}, recovery_enabled: {nullopt}, shadow_indexing: {nullopt} }}, custom_assignments: {}}} -2022-10-06 15:38:01,350 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:01,350 [shard 0] cluster - topics_frontend.cc:71 - Create topics {{configuration: { topic: {ns: {kafka}, topic: {ruleunit-event-driven-responses}}, partition_count: 1, replication_factor: 1, properties: { compression: {nullopt}, cleanup_policy_bitflags: {nullopt}, compaction_strategy: {nullopt}, retention_bytes: {}, retention_duration_ms: {}, segment_size: {nullopt}, timestamp_type: {nullopt}, recovery_enabled: {nullopt}, shadow_indexing: {nullopt} }}, custom_assignments: {}}} -INFO 2022-10-06 13:38:01,374 [shard 0] cluster - partition_manager.cc:80 - Log created manage completed, ntp: {kafka/ruleunit-event-driven-responses/0}, rev: 6, 0 segments, 0 bytes -INFO 2022-10-06 13:38:01,374 [shard 0] raft - [group_id:3, {kafka/ruleunit-event-driven-responses/0}] consensus.cc:992 - Starting -INFO 2022-10-06 13:38:01,374 [shard 0] raft - [group_id:3, {kafka/ruleunit-event-driven-responses/0}] consensus.cc:1024 - Starting with voted_for {id: {-2147483648}, revision: {-9223372036854775808}} term 0 initial_state true -2022-10-06 15:38:01,374 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:01,374 [shard 0] cluster - partition_manager.cc:80 - Log created manage completed, ntp: {kafka/ruleunit-event-driven-responses/0}, rev: 6, 0 segments, 0 bytes -2022-10-06 15:38:01,374 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:01,374 [shard 0] raft - [group_id:3, {kafka/ruleunit-event-driven-responses/0}] consensus.cc:992 - Starting -2022-10-06 15:38:01,374 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:01,374 [shard 0] raft - [group_id:3, {kafka/ruleunit-event-driven-responses/0}] consensus.cc:1024 - Starting with voted_for {id: {-2147483648}, revision: {-9223372036854775808}} term 0 initial_state true -INFO 2022-10-06 13:38:01,396 [shard 0] offset_translator - ntp: {kafka/ruleunit-event-driven-responses/0} - offset_translator.cc:90 - resetting offset translation state -2022-10-06 15:38:01,396 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:01,396 [shard 0] offset_translator - ntp: {kafka/ruleunit-event-driven-responses/0} - offset_translator.cc:90 - resetting offset translation state -INFO 2022-10-06 13:38:01,420 [shard 0] offset_translator - ntp: {kafka/ruleunit-event-driven-responses/0} - offset_translator.cc:141 - started, state: {base offset/delta: {-9223372036854775808}/0, map size: 1, last delta: 0}, highest_known_offset: -9223372036854775808 -2022-10-06 15:38:01,421 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:01,420 [shard 0] offset_translator - ntp: {kafka/ruleunit-event-driven-responses/0} - offset_translator.cc:141 - started, state: {base offset/delta: {-9223372036854775808}/0, map size: 1, last delta: 0}, highest_known_offset: -9223372036854775808 -INFO 2022-10-06 13:38:01,420 [shard 0] raft - [group_id:3, {kafka/ruleunit-event-driven-responses/0}] consensus.cc:1066 - Read bootstrap state: data_seen 0 config_seen 0 eol false commit 0 term 0 prev_idx 0 prev_term 0 config_tracker -9223372036854775808 commit_base_tracker -9223372036854775808 configurations {} -INFO 2022-10-06 13:38:01,420 [shard 0] raft - [group_id:3, {kafka/ruleunit-event-driven-responses/0}] consensus.cc:1067 - Current log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808} -INFO 2022-10-06 13:38:01,420 [shard 0] raft - [group_id:3, {kafka/ruleunit-event-driven-responses/0}] consensus.cc:1091 - Truncating configurations at -9223372036854775808 -2022-10-06 15:38:01,421 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:01,420 [shard 0] raft - [group_id:3, {kafka/ruleunit-event-driven-responses/0}] consensus.cc:1066 - Read bootstrap state: data_seen 0 config_seen 0 eol false commit 0 term 0 prev_idx 0 prev_term 0 config_tracker -9223372036854775808 commit_base_tracker -9223372036854775808 configurations {} -2022-10-06 15:38:01,421 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:01,420 [shard 0] raft - [group_id:3, {kafka/ruleunit-event-driven-responses/0}] consensus.cc:1067 - Current log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808} -2022-10-06 15:38:01,421 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:01,420 [shard 0] raft - [group_id:3, {kafka/ruleunit-event-driven-responses/0}] consensus.cc:1091 - Truncating configurations at -9223372036854775808 -INFO 2022-10-06 13:38:01,443 [shard 0] offset_translator - ntp: {kafka/ruleunit-event-driven-responses/0} - offset_translator.cc:203 - synced with log, state: {base offset/delta: {-9223372036854775808}/0, map size: 1, last delta: 0}, highest_known_offset: -9223372036854775808 -INFO 2022-10-06 13:38:01,443 [shard 0] raft - [group_id:3, {kafka/ruleunit-event-driven-responses/0}] consensus.cc:1188 - started raft, log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808}, term: 0, configuration: {current: {voters: {{id: {0}, revision: {6}}}, learners: {}}, old:{nullopt}, revision: 6, brokers: {{id: 0, kafka_advertised_listeners: {{OUTSIDE:{host: localhost, port: 49238}}, {PLAINTEXT:{host: f5b812c0f0a4, port: 29092}}}, rpc_address: {host: 0.0.0.0, port: 33145}, rack: {nullopt}, properties: {cores 1, mem_available 0, disk_available 0}, membership_state: active}}} -INFO 2022-10-06 13:38:01,443 [shard 0] cluster - state_machine.cc:29 - Starting state machine for ntp={kafka/ruleunit-event-driven-responses/0} -INFO 2022-10-06 13:38:01,443 [shard 0] cluster - controller_backend.cc:437 - partition operation {type: addition, ntp: {kafka/ruleunit-event-driven-responses/0}, offset: 6, new_assignment: { id: 0, group_id: 3, replicas: {{node_id: 0, shard: 0}} }, previous_assignment: {nullopt}} finished -2022-10-06 15:38:01,443 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:01,443 [shard 0] offset_translator - ntp: {kafka/ruleunit-event-driven-responses/0} - offset_translator.cc:203 - synced with log, state: {base offset/delta: {-9223372036854775808}/0, map size: 1, last delta: 0}, highest_known_offset: -9223372036854775808 -2022-10-06 15:38:01,443 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:01,443 [shard 0] raft - [group_id:3, {kafka/ruleunit-event-driven-responses/0}] consensus.cc:1188 - started raft, log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808}, term: 0, configuration: {current: {voters: {{id: {0}, revision: {6}}}, learners: {}}, old:{nullopt}, revision: 6, brokers: {{id: 0, kafka_advertised_listeners: {{OUTSIDE:{host: localhost, port: 49238}}, {PLAINTEXT:{host: f5b812c0f0a4, port: 29092}}}, rpc_address: {host: 0.0.0.0, port: 33145}, rack: {nullopt}, properties: {cores 1, mem_available 0, disk_available 0}, membership_state: active}}} -2022-10-06 15:38:01,443 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:01,443 [shard 0] cluster - state_machine.cc:29 - Starting state machine for ntp={kafka/ruleunit-event-driven-responses/0} -2022-10-06 15:38:01,444 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:01,443 [shard 0] cluster - controller_backend.cc:437 - partition operation {type: addition, ntp: {kafka/ruleunit-event-driven-responses/0}, offset: 6, new_assignment: { id: 0, group_id: 3, replicas: {{node_id: 0, shard: 0}} }, previous_assignment: {nullopt}} finished -INFO 2022-10-06 13:38:01,454 [shard 0] raft - [group_id:3, {kafka/ruleunit-event-driven-responses/0}] vote_stm.cc:252 - became the leader term:1 -INFO 2022-10-06 13:38:01,454 [shard 0] storage - segment.cc:635 - Creating new segment /var/lib/redpanda/data/kafka/ruleunit-event-driven-responses/0_6/0-1-v1.log -2022-10-06 15:38:01,454 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:01,454 [shard 0] raft - [group_id:3, {kafka/ruleunit-event-driven-responses/0}] vote_stm.cc:252 - became the leader term:1 -2022-10-06 15:38:01,454 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:01,454 [shard 0] storage - segment.cc:635 - Creating new segment /var/lib/redpanda/data/kafka/ruleunit-event-driven-responses/0_6/0-1-v1.log -2022-10-06 15:38:01,466 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-4-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Discovered group coordinator localhost:49238 (id: 2147483647 rack: null) -2022-10-06 15:38:01,468 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-4-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] (Re-)joining group -2022-10-06 15:38:01,481 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-4-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Request joining group due to: need to re-join with the given member-id: consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1-e3bb2d05-e4c5-4e4f-a008-3e574d459031 -2022-10-06 15:38:01,482 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-4-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Request joining group due to: rebalance failed due to 'The group member needs to have a valid member id before actually entering a consumer group.' (MemberIdRequiredException) -2022-10-06 15:38:01,482 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-4-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] (Re-)joining group -2022-10-06 15:38:01,483 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-4-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Successfully joined group with generation Generation{generationId=1, memberId='consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1-e3bb2d05-e4c5-4e4f-a008-3e574d459031', protocol='range'} -2022-10-06 15:38:01,485 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-4-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Finished assignment for group at generation 1: {consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1-e3bb2d05-e4c5-4e4f-a008-3e574d459031=Assignment(partitions=[ruleunit-event-driven-responses-0])} -2022-10-06 15:38:01,490 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-4-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Successfully synced group in generation Generation{generationId=1, memberId='consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1-e3bb2d05-e4c5-4e4f-a008-3e574d459031', protocol='range'} -2022-10-06 15:38:01,490 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-4-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Notifying assignor about the new Assignment(partitions=[ruleunit-event-driven-responses-0]) -2022-10-06 15:38:01,492 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-4-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Adding newly assigned partitions: ruleunit-event-driven-responses-0 -2022-10-06 15:38:01,498 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-4-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Found no committed offset for partition ruleunit-event-driven-responses-0 -2022-10-06 15:38:01,507 INFO [org.apa.kaf.cli.con.int.SubscriptionState] (pool-4-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Resetting offset for partition ruleunit-event-driven-responses-0 to position FetchPosition{offset=0, offsetEpoch=Optional.empty, currentLeader=LeaderAndEpoch{leader=Optional[localhost:49238 (id: 0 rack: null)], epoch=absent}}. -INFO 2022-10-06 13:38:01,512 [shard 0] kafka - fetch_session_cache.cc:106 - fetch session created: 2 -2022-10-06 15:38:01,513 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:01,512 [shard 0] kafka - fetch_session_cache.cc:106 - fetch session created: 2 -2022-10-06 15:38:04,190 INFO [org.apa.kaf.cli.pro.ProducerConfig] (awaitility-thread) ProducerConfig values: - acks = -1 - batch.size = 16384 - bootstrap.servers = [localhost:49238] - buffer.memory = 33554432 - client.dns.lookup = use_all_dns_ips - client.id = org.kie.kogito.test.quarkus.kafka.KafkaTestClientProducer - compression.type = none - connections.max.idle.ms = 540000 - delivery.timeout.ms = 120000 - enable.idempotence = true - interceptor.classes = [] - key.serializer = class org.apache.kafka.common.serialization.StringSerializer - linger.ms = 0 - max.block.ms = 60000 - max.in.flight.requests.per.connection = 5 - max.request.size = 1048576 - metadata.max.age.ms = 300000 - metadata.max.idle.ms = 300000 - metric.reporters = [] - metrics.num.samples = 2 - metrics.recording.level = INFO - metrics.sample.window.ms = 30000 - partitioner.class = class org.apache.kafka.clients.producer.internals.DefaultPartitioner - receive.buffer.bytes = 32768 - reconnect.backoff.max.ms = 1000 - reconnect.backoff.ms = 50 - request.timeout.ms = 30000 - retries = 2147483647 - retry.backoff.ms = 100 - sasl.client.callback.handler.class = null - sasl.jaas.config = null - sasl.kerberos.kinit.cmd = /usr/bin/kinit - sasl.kerberos.min.time.before.relogin = 60000 - sasl.kerberos.service.name = null - sasl.kerberos.ticket.renew.jitter = 0.05 - sasl.kerberos.ticket.renew.window.factor = 0.8 - sasl.login.callback.handler.class = null - sasl.login.class = null - sasl.login.connect.timeout.ms = null - sasl.login.read.timeout.ms = null - sasl.login.refresh.buffer.seconds = 300 - sasl.login.refresh.min.period.seconds = 60 - sasl.login.refresh.window.factor = 0.8 - sasl.login.refresh.window.jitter = 0.05 - sasl.login.retry.backoff.max.ms = 10000 - sasl.login.retry.backoff.ms = 100 - sasl.mechanism = GSSAPI - sasl.oauthbearer.clock.skew.seconds = 30 - sasl.oauthbearer.expected.audience = null - sasl.oauthbearer.expected.issuer = null - sasl.oauthbearer.jwks.endpoint.refresh.ms = 3600000 - sasl.oauthbearer.jwks.endpoint.retry.backoff.max.ms = 10000 - sasl.oauthbearer.jwks.endpoint.retry.backoff.ms = 100 - sasl.oauthbearer.jwks.endpoint.url = null - sasl.oauthbearer.scope.claim.name = scope - sasl.oauthbearer.sub.claim.name = sub - sasl.oauthbearer.token.endpoint.url = null - security.protocol = PLAINTEXT - security.providers = null - send.buffer.bytes = 131072 - socket.connection.setup.timeout.max.ms = 30000 - socket.connection.setup.timeout.ms = 10000 - ssl.cipher.suites = null - ssl.enabled.protocols = [TLSv1.2, TLSv1.3] - ssl.endpoint.identification.algorithm = https - ssl.engine.factory.class = null - ssl.key.password = null - ssl.keymanager.algorithm = SunX509 - ssl.keystore.certificate.chain = null - ssl.keystore.key = null - ssl.keystore.location = null - ssl.keystore.password = null - ssl.keystore.type = JKS - ssl.protocol = TLSv1.3 - ssl.provider = null - ssl.secure.random.implementation = null - ssl.trustmanager.algorithm = PKIX - ssl.truststore.certificates = null - ssl.truststore.location = null - ssl.truststore.password = null - ssl.truststore.type = JKS - transaction.timeout.ms = 60000 - transactional.id = null - value.serializer = class org.apache.kafka.common.serialization.StringSerializer - -2022-10-06 15:38:04,198 INFO [org.apa.kaf.cli.pro.KafkaProducer] (awaitility-thread) [Producer clientId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientProducer] Instantiated an idempotent producer. -2022-10-06 15:38:04,208 INFO [org.apa.kaf.com.uti.AppInfoParser] (awaitility-thread) Kafka version: 3.2.1 -2022-10-06 15:38:04,208 INFO [org.apa.kaf.com.uti.AppInfoParser] (awaitility-thread) Kafka commitId: b172a0a94f4ebb9f -2022-10-06 15:38:04,208 INFO [org.apa.kaf.com.uti.AppInfoParser] (awaitility-thread) Kafka startTimeMs: 1665063484208 -2022-10-06 15:38:04,208 INFO [org.kie.kog.tes.qua.kaf.KafkaTestClient] (awaitility-thread) Publishing event with data { - "specversion": "1.0", - "id": "a89b61a2-5644-487a-8a86-144855c5dce8", - "source": "SomeEventSource", - "type": "RulesRequest", - "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", - "kogitoruleunitquery": "FindApproved", - "data": { - "maxAmount": 5000, - "loanApplications": [ - { - "id": "ABC10001", - "amount": 2000, - "deposit": 100, - "applicant": { - "age": 45, - "name": "John" - } - }, - { - "id": "ABC10002", - "amount": 5000, - "deposit": 100, - "applicant": { - "age": 25, - "name": "Paul" - } - }, - { - "id": "ABC10015", - "amount": 1000, - "deposit": 100, - "applicant": { - "age": 12, - "name": "George" - } - } - ] - } -} - for topic ruleunit-event-driven-requests -INFO 2022-10-06 13:38:04,211 [shard 0] cluster - topics_frontend.cc:71 - Create topics {{configuration: { topic: {ns: {kafka_internal}, topic: {id_allocator}}, partition_count: 1, replication_factor: 1, properties: { compression: {nullopt}, cleanup_policy_bitflags: {none}, compaction_strategy: {nullopt}, retention_bytes: {}, retention_duration_ms: {}, segment_size: {nullopt}, timestamp_type: {nullopt}, recovery_enabled: {nullopt}, shadow_indexing: {nullopt} }}, custom_assignments: {}}} -2022-10-06 15:38:04,212 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:04,211 [shard 0] cluster - topics_frontend.cc:71 - Create topics {{configuration: { topic: {ns: {kafka_internal}, topic: {id_allocator}}, partition_count: 1, replication_factor: 1, properties: { compression: {nullopt}, cleanup_policy_bitflags: {none}, compaction_strategy: {nullopt}, retention_bytes: {}, retention_duration_ms: {}, segment_size: {nullopt}, timestamp_type: {nullopt}, recovery_enabled: {nullopt}, shadow_indexing: {nullopt} }}, custom_assignments: {}}} -INFO 2022-10-06 13:38:04,229 [shard 0] cluster - partition_manager.cc:80 - Log created manage completed, ntp: {kafka_internal/id_allocator/0}, rev: 8, 0 segments, 0 bytes -INFO 2022-10-06 13:38:04,229 [shard 0] raft - [group_id:4, {kafka_internal/id_allocator/0}] consensus.cc:992 - Starting -INFO 2022-10-06 13:38:04,229 [shard 0] raft - [group_id:4, {kafka_internal/id_allocator/0}] consensus.cc:1024 - Starting with voted_for {id: {-2147483648}, revision: {-9223372036854775808}} term 0 initial_state true -2022-10-06 15:38:04,230 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:04,229 [shard 0] cluster - partition_manager.cc:80 - Log created manage completed, ntp: {kafka_internal/id_allocator/0}, rev: 8, 0 segments, 0 bytes -2022-10-06 15:38:04,230 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:04,229 [shard 0] raft - [group_id:4, {kafka_internal/id_allocator/0}] consensus.cc:992 - Starting -2022-10-06 15:38:04,230 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:04,229 [shard 0] raft - [group_id:4, {kafka_internal/id_allocator/0}] consensus.cc:1024 - Starting with voted_for {id: {-2147483648}, revision: {-9223372036854775808}} term 0 initial_state true -INFO 2022-10-06 13:38:04,251 [shard 0] raft - [group_id:4, {kafka_internal/id_allocator/0}] consensus.cc:1066 - Read bootstrap state: data_seen 0 config_seen 0 eol false commit 0 term 0 prev_idx 0 prev_term 0 config_tracker -9223372036854775808 commit_base_tracker -9223372036854775808 configurations {} -INFO 2022-10-06 13:38:04,251 [shard 0] raft - [group_id:4, {kafka_internal/id_allocator/0}] consensus.cc:1067 - Current log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808} -INFO 2022-10-06 13:38:04,252 [shard 0] raft - [group_id:4, {kafka_internal/id_allocator/0}] consensus.cc:1091 - Truncating configurations at -9223372036854775808 -2022-10-06 15:38:04,252 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:04,251 [shard 0] raft - [group_id:4, {kafka_internal/id_allocator/0}] consensus.cc:1066 - Read bootstrap state: data_seen 0 config_seen 0 eol false commit 0 term 0 prev_idx 0 prev_term 0 config_tracker -9223372036854775808 commit_base_tracker -9223372036854775808 configurations {} -2022-10-06 15:38:04,252 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:04,251 [shard 0] raft - [group_id:4, {kafka_internal/id_allocator/0}] consensus.cc:1067 - Current log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808} -2022-10-06 15:38:04,252 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:04,252 [shard 0] raft - [group_id:4, {kafka_internal/id_allocator/0}] consensus.cc:1091 - Truncating configurations at -9223372036854775808 -INFO 2022-10-06 13:38:04,274 [shard 0] raft - [group_id:4, {kafka_internal/id_allocator/0}] consensus.cc:1188 - started raft, log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808}, term: 0, configuration: {current: {voters: {{id: {0}, revision: {8}}}, learners: {}}, old:{nullopt}, revision: 8, brokers: {{id: 0, kafka_advertised_listeners: {{OUTSIDE:{host: localhost, port: 49238}}, {PLAINTEXT:{host: f5b812c0f0a4, port: 29092}}}, rpc_address: {host: 0.0.0.0, port: 33145}, rack: {nullopt}, properties: {cores 1, mem_available 0, disk_available 0}, membership_state: active}}} -INFO 2022-10-06 13:38:04,274 [shard 0] cluster - state_machine.cc:29 - Starting state machine for ntp={kafka_internal/id_allocator/0} -INFO 2022-10-06 13:38:04,274 [shard 0] cluster - controller_backend.cc:437 - partition operation {type: addition, ntp: {kafka_internal/id_allocator/0}, offset: 8, new_assignment: { id: 0, group_id: 4, replicas: {{node_id: 0, shard: 0}} }, previous_assignment: {nullopt}} finished -2022-10-06 15:38:04,274 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:04,274 [shard 0] raft - [group_id:4, {kafka_internal/id_allocator/0}] consensus.cc:1188 - started raft, log offsets: {start_offset:-9223372036854775808, committed_offset:-9223372036854775808, committed_offset_term:-9223372036854775808, dirty_offset:-9223372036854775808, dirty_offset_term:-9223372036854775808, last_term_start_offset:-9223372036854775808}, term: 0, configuration: {current: {voters: {{id: {0}, revision: {8}}}, learners: {}}, old:{nullopt}, revision: 8, brokers: {{id: 0, kafka_advertised_listeners: {{OUTSIDE:{host: localhost, port: 49238}}, {PLAINTEXT:{host: f5b812c0f0a4, port: 29092}}}, rpc_address: {host: 0.0.0.0, port: 33145}, rack: {nullopt}, properties: {cores 1, mem_available 0, disk_available 0}, membership_state: active}}} -2022-10-06 15:38:04,275 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:04,274 [shard 0] cluster - state_machine.cc:29 - Starting state machine for ntp={kafka_internal/id_allocator/0} -2022-10-06 15:38:04,275 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:04,274 [shard 0] cluster - controller_backend.cc:437 - partition operation {type: addition, ntp: {kafka_internal/id_allocator/0}, offset: 8, new_assignment: { id: 0, group_id: 4, replicas: {{node_id: 0, shard: 0}} }, previous_assignment: {nullopt}} finished -INFO 2022-10-06 13:38:04,285 [shard 0] raft - [group_id:4, {kafka_internal/id_allocator/0}] vote_stm.cc:252 - became the leader term:1 -INFO 2022-10-06 13:38:04,285 [shard 0] storage - segment.cc:635 - Creating new segment /var/lib/redpanda/data/kafka_internal/id_allocator/0_8/0-1-v1.log -2022-10-06 15:38:04,286 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:04,285 [shard 0] raft - [group_id:4, {kafka_internal/id_allocator/0}] vote_stm.cc:252 - became the leader term:1 -2022-10-06 15:38:04,286 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:04,285 [shard 0] storage - segment.cc:635 - Creating new segment /var/lib/redpanda/data/kafka_internal/id_allocator/0_8/0-1-v1.log -2022-10-06 15:38:04,545 INFO [org.apa.kaf.cli.pro.int.TransactionManager] (kafka-producer-network-thread | org.kie.kogito.test.quarkus.kafka.KafkaTestClientProducer) [Producer clientId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientProducer] ProducerId set to 1 with epoch 0 -2022-10-06 15:38:04,579 INFO [org.apa.kaf.cli.pro.KafkaProducer] (awaitility-thread) [Producer clientId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientProducer] Closing the Kafka producer with timeoutMillis = 9223372036854775807 ms. -2022-10-06 15:38:04,582 INFO [org.apa.kaf.com.met.Metrics] (awaitility-thread) Metrics scheduler closed -2022-10-06 15:38:04,582 INFO [org.apa.kaf.com.met.Metrics] (awaitility-thread) Closing reporter org.apache.kafka.common.metrics.JmxReporter -2022-10-06 15:38:04,582 INFO [org.apa.kaf.com.met.Metrics] (awaitility-thread) Metrics reporters closed -2022-10-06 15:38:04,582 INFO [org.apa.kaf.com.uti.AppInfoParser] (awaitility-thread) App info kafka.producer for org.kie.kogito.test.quarkus.kafka.KafkaTestClientProducer unregistered -2022-10-06 15:38:05,587 INFO [io.sma.rea.mes.kafka] (vert.x-eventloop-thread-10) SRMSG18256: Initialize record store for topic-partition 'ruleunit-event-driven-requests-0' at position -1. -2022-10-06 15:38:05,597 DEBUG [org.kie.kog.add.qua.mes.com.AbstractQuarkusCloudEventReceiver] (vert.x-eventloop-thread-10) Received message { - "specversion": "1.0", - "id": "a89b61a2-5644-487a-8a86-144855c5dce8", - "source": "SomeEventSource", - "type": "RulesRequest", - "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", - "kogitoruleunitquery": "FindApproved", - "data": { - "maxAmount": 5000, - "loanApplications": [ - { - "id": "ABC10001", - "amount": 2000, - "deposit": 100, - "applicant": { - "age": 45, - "name": "John" - } - }, - { - "id": "ABC10002", - "amount": 5000, - "deposit": 100, - "applicant": { - "age": 25, - "name": "Paul" - } - }, - { - "id": "ABC10015", - "amount": 1000, - "deposit": 100, - "applicant": { - "age": 12, - "name": "George" - } - } - ] - } -} - -2022-10-06 15:38:05,617 DEBUG [org.kie.kog.eve.rul.EventDrivenRulesController] (vert.x-eventloop-thread-10) Processing event CloudEventWrapDataEvent [cloudEvent=CloudEvent{id='a89b61a2-5644-487a-8a86-144855c5dce8', source=SomeEventSource, type='RulesRequest', subject='TheSubject', data=JsonCloudEventData{node={"maxAmount":5000,"loanApplications":[{"id":"ABC10001","amount":2000,"deposit":100,"applicant":{"age":45,"name":"John"}},{"id":"ABC10002","amount":5000,"deposit":100,"applicant":{"age":25,"name":"Paul"}},{"id":"ABC10015","amount":1000,"deposit":100,"applicant":{"age":12,"name":"George"}}]}}, extensions={kogitoruleunitquery=FindApproved, kogitoruleunitid=org.kie.kogito.queries.LoanUnit}}] -2022-10-06 15:38:05,719 DEBUG [org.kie.kog.add.qua.mes.com.AbstractQuarkusCloudEventEmitter] (vert.x-eventloop-thread-10) publishing event CloudEvent{id='5a855b0a-c37b-4090-8ff5-ab6b81392d0f', source=find-approved, type='RulesResponse', subject='TheSubject', data=BytesCloudEventData{value=[91, 123, 34, 105, 100, 34, 58, 34, 65, 66, 67, 49, 48, 48, 48, 49, 34, 44, 34, 97, 112, 112, 108, 105, 99, 97, 110, 116, 34, 58, 123, 34, 110, 97, 109, 101, 34, 58, 34, 74, 111, 104, 110, 34, 44, 34, 97, 103, 101, 34, 58, 52, 53, 125, 44, 34, 97, 109, 111, 117, 110, 116, 34, 58, 50, 48, 48, 48, 44, 34, 100, 101, 112, 111, 115, 105, 116, 34, 58, 49, 48, 48, 44, 34, 97, 112, 112, 114, 111, 118, 101, 100, 34, 58, 116, 114, 117, 101, 125, 93]}, extensions={kogitoruleunitquery=FindApproved, kogitoruleunitid=org.kie.kogito.queries.LoanUnit}} for type RulesResponse -2022-10-06 15:38:05,726 DEBUG [org.kie.kog.eve.rul.EventDrivenRulesController] (vert.x-eventloop-thread-10) Processing event CloudEventWrapDataEvent [cloudEvent=CloudEvent{id='a89b61a2-5644-487a-8a86-144855c5dce8', source=SomeEventSource, type='RulesRequest', subject='TheSubject', data=JsonCloudEventData{node={"maxAmount":5000,"loanApplications":[{"id":"ABC10001","amount":2000,"deposit":100,"applicant":{"age":45,"name":"John"}},{"id":"ABC10002","amount":5000,"deposit":100,"applicant":{"age":25,"name":"Paul"}},{"id":"ABC10015","amount":1000,"deposit":100,"applicant":{"age":12,"name":"George"}}]}}, extensions={kogitoruleunitquery=FindApproved, kogitoruleunitid=org.kie.kogito.queries.LoanUnit}}] -2022-10-06 15:38:05,727 DEBUG [org.kie.kog.eve.rul.EventDrivenRulesController] (vert.x-eventloop-thread-10) Invalid request. Event CloudEventWrapDataEvent [cloudEvent=CloudEvent{id='a89b61a2-5644-487a-8a86-144855c5dce8', source=SomeEventSource, type='RulesRequest', subject='TheSubject', data=JsonCloudEventData{node={"maxAmount":5000,"loanApplications":[{"id":"ABC10001","amount":2000,"deposit":100,"applicant":{"age":45,"name":"John"}},{"id":"ABC10002","amount":5000,"deposit":100,"applicant":{"age":25,"name":"Paul"}},{"id":"ABC10015","amount":1000,"deposit":100,"applicant":{"age":12,"name":"George"}}]}}, extensions={kogitoruleunitquery=FindApproved, kogitoruleunitid=org.kie.kogito.queries.LoanUnit}}] with extension KogitoRulesExtension [ruleUnitId=org.kie.kogito.queries.LoanUnit, ruleUnitQuery=FindApproved] is not recognized by executor AbstractEventDrivenQueryExecutor [ruleUnit=org.kie.kogito.queries.LoanUnitRuleUnit@322c39d7, queryName=FindNotApprovedIdAndAmount, objectClass=class org.kie.kogito.queries.LoanUnit] -2022-10-06 15:38:05,728 DEBUG [org.kie.kog.eve.rul.EventDrivenRulesController] (vert.x-eventloop-thread-10) Processing event CloudEventWrapDataEvent [cloudEvent=CloudEvent{id='a89b61a2-5644-487a-8a86-144855c5dce8', source=SomeEventSource, type='RulesRequest', subject='TheSubject', data=JsonCloudEventData{node={"maxAmount":5000,"loanApplications":[{"id":"ABC10001","amount":2000,"deposit":100,"applicant":{"age":45,"name":"John"}},{"id":"ABC10002","amount":5000,"deposit":100,"applicant":{"age":25,"name":"Paul"}},{"id":"ABC10015","amount":1000,"deposit":100,"applicant":{"age":12,"name":"George"}}]}}, extensions={kogitoruleunitquery=FindApproved, kogitoruleunitid=org.kie.kogito.queries.LoanUnit}}] -2022-10-06 15:38:05,728 DEBUG [org.kie.kog.eve.rul.EventDrivenRulesController] (vert.x-eventloop-thread-10) Invalid request. Event CloudEventWrapDataEvent [cloudEvent=CloudEvent{id='a89b61a2-5644-487a-8a86-144855c5dce8', source=SomeEventSource, type='RulesRequest', subject='TheSubject', data=JsonCloudEventData{node={"maxAmount":5000,"loanApplications":[{"id":"ABC10001","amount":2000,"deposit":100,"applicant":{"age":45,"name":"John"}},{"id":"ABC10002","amount":5000,"deposit":100,"applicant":{"age":25,"name":"Paul"}},{"id":"ABC10015","amount":1000,"deposit":100,"applicant":{"age":12,"name":"George"}}]}}, extensions={kogitoruleunitquery=FindApproved, kogitoruleunitid=org.kie.kogito.queries.LoanUnit}}] with extension KogitoRulesExtension [ruleUnitId=org.kie.kogito.queries.LoanUnit, ruleUnitQuery=FindApproved] is not recognized by executor AbstractEventDrivenQueryExecutor [ruleUnit=org.kie.kogito.queries.LoanUnitRuleUnit@322c39d7, queryName=FindAllApplicationAmounts, objectClass=class org.kie.kogito.queries.LoanUnit] -2022-10-06 15:38:05,728 DEBUG [org.kie.kog.add.qua.mes.com.AbstractQuarkusCloudEventReceiver] (vert.x-eventloop-thread-10) Acking message id { - "specversion": "1.0", - "id": "a89b61a2-5644-487a-8a86-144855c5dce8", - "source": "SomeEventSource", - "type": "RulesRequest", - "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", - "kogitoruleunitquery": "FindApproved", - "data": { - "maxAmount": 5000, - "loanApplications": [ - { - "id": "ABC10001", - "amount": 2000, - "deposit": 100, - "applicant": { - "age": 45, - "name": "John" - } - }, - { - "id": "ABC10002", - "amount": 5000, - "deposit": 100, - "applicant": { - "age": 25, - "name": "Paul" - } - }, - { - "id": "ABC10015", - "amount": 1000, - "deposit": 100, - "applicant": { - "age": 12, - "name": "George" - } - } - ] - } -} - -2022-10-06 15:38:06,750 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-4-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Revoke previously assigned partitions ruleunit-event-driven-responses-0 -2022-10-06 15:38:06,753 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-4-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Member consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1-e3bb2d05-e4c5-4e4f-a008-3e574d459031 sending LeaveGroup request to coordinator localhost:49238 (id: 2147483647 rack: null) due to the consumer is being closed -2022-10-06 15:38:06,754 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-4-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Resetting generation and member id due to: consumer pro-actively leaving the group -2022-10-06 15:38:06,754 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-4-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Request joining group due to: consumer pro-actively leaving the group -2022-10-06 15:38:06,755 INFO [org.apa.kaf.com.met.Metrics] (pool-4-thread-1) Metrics scheduler closed -2022-10-06 15:38:06,755 INFO [org.apa.kaf.com.met.Metrics] (pool-4-thread-1) Closing reporter org.apache.kafka.common.metrics.JmxReporter -2022-10-06 15:38:06,755 INFO [org.apa.kaf.com.met.Metrics] (pool-4-thread-1) Metrics reporters closed -2022-10-06 15:38:06,758 INFO [org.apa.kaf.com.uti.AppInfoParser] (pool-4-thread-1) App info kafka.consumer for consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-1 unregistered -2022-10-06 15:38:06,772 INFO [org.apa.kaf.cli.con.ConsumerConfig] (main) ConsumerConfig values: - allow.auto.create.topics = true - auto.commit.interval.ms = 5000 - auto.offset.reset = earliest - bootstrap.servers = [localhost:49238] - check.crcs = true - client.dns.lookup = use_all_dns_ips - client.id = consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2 - client.rack = - connections.max.idle.ms = 540000 - default.api.timeout.ms = 60000 - enable.auto.commit = false - exclude.internal.topics = true - fetch.max.bytes = 52428800 - fetch.max.wait.ms = 500 - fetch.min.bytes = 1 - group.id = org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer - group.instance.id = null - heartbeat.interval.ms = 3000 - interceptor.classes = [] - internal.leave.group.on.close = true - internal.throw.on.fetch.stable.offset.unsupported = false - isolation.level = read_uncommitted - key.deserializer = class org.apache.kafka.common.serialization.StringDeserializer - max.partition.fetch.bytes = 1048576 - max.poll.interval.ms = 300000 - max.poll.records = 500 - metadata.max.age.ms = 300000 - metric.reporters = [] - metrics.num.samples = 2 - metrics.recording.level = INFO - metrics.sample.window.ms = 30000 - partition.assignment.strategy = [class org.apache.kafka.clients.consumer.RangeAssignor, class org.apache.kafka.clients.consumer.CooperativeStickyAssignor] - receive.buffer.bytes = 65536 - reconnect.backoff.max.ms = 1000 - reconnect.backoff.ms = 50 - request.timeout.ms = 30000 - retry.backoff.ms = 100 - sasl.client.callback.handler.class = null - sasl.jaas.config = null - sasl.kerberos.kinit.cmd = /usr/bin/kinit - sasl.kerberos.min.time.before.relogin = 60000 - sasl.kerberos.service.name = null - sasl.kerberos.ticket.renew.jitter = 0.05 - sasl.kerberos.ticket.renew.window.factor = 0.8 - sasl.login.callback.handler.class = null - sasl.login.class = null - sasl.login.connect.timeout.ms = null - sasl.login.read.timeout.ms = null - sasl.login.refresh.buffer.seconds = 300 - sasl.login.refresh.min.period.seconds = 60 - sasl.login.refresh.window.factor = 0.8 - sasl.login.refresh.window.jitter = 0.05 - sasl.login.retry.backoff.max.ms = 10000 - sasl.login.retry.backoff.ms = 100 - sasl.mechanism = GSSAPI - sasl.oauthbearer.clock.skew.seconds = 30 - sasl.oauthbearer.expected.audience = null - sasl.oauthbearer.expected.issuer = null - sasl.oauthbearer.jwks.endpoint.refresh.ms = 3600000 - sasl.oauthbearer.jwks.endpoint.retry.backoff.max.ms = 10000 - sasl.oauthbearer.jwks.endpoint.retry.backoff.ms = 100 - sasl.oauthbearer.jwks.endpoint.url = null - sasl.oauthbearer.scope.claim.name = scope - sasl.oauthbearer.sub.claim.name = sub - sasl.oauthbearer.token.endpoint.url = null - security.protocol = PLAINTEXT - security.providers = null - send.buffer.bytes = 131072 - session.timeout.ms = 45000 - socket.connection.setup.timeout.max.ms = 30000 - socket.connection.setup.timeout.ms = 10000 - ssl.cipher.suites = null - ssl.enabled.protocols = [TLSv1.2, TLSv1.3] - ssl.endpoint.identification.algorithm = https - ssl.engine.factory.class = null - ssl.key.password = null - ssl.keymanager.algorithm = SunX509 - ssl.keystore.certificate.chain = null - ssl.keystore.key = null - ssl.keystore.location = null - ssl.keystore.password = null - ssl.keystore.type = JKS - ssl.protocol = TLSv1.3 - ssl.provider = null - ssl.secure.random.implementation = null - ssl.trustmanager.algorithm = PKIX - ssl.truststore.certificates = null - ssl.truststore.location = null - ssl.truststore.password = null - ssl.truststore.type = JKS - value.deserializer = class org.apache.kafka.common.serialization.StringDeserializer - -2022-10-06 15:38:06,775 INFO [org.apa.kaf.com.uti.AppInfoParser] (main) Kafka version: 3.2.1 -2022-10-06 15:38:06,775 INFO [org.apa.kaf.com.uti.AppInfoParser] (main) Kafka commitId: b172a0a94f4ebb9f -2022-10-06 15:38:06,775 INFO [org.apa.kaf.com.uti.AppInfoParser] (main) Kafka startTimeMs: 1665063486775 -2022-10-06 15:38:06,775 INFO [org.apa.kaf.cli.con.KafkaConsumer] (pool-5-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Subscribed to topic(s): ruleunit-event-driven-responses -2022-10-06 15:38:06,778 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-5-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Discovered group coordinator localhost:49238 (id: 2147483647 rack: null) -2022-10-06 15:38:06,779 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-5-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] (Re-)joining group -2022-10-06 15:38:06,781 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-5-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Request joining group due to: need to re-join with the given member-id: consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2-2f78b085-a7a3-45f8-80be-dc2f159efeef -2022-10-06 15:38:06,781 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-5-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Request joining group due to: rebalance failed due to 'The group member needs to have a valid member id before actually entering a consumer group.' (MemberIdRequiredException) -2022-10-06 15:38:06,781 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-5-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] (Re-)joining group -2022-10-06 15:38:06,782 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-5-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Successfully joined group with generation Generation{generationId=3, memberId='consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2-2f78b085-a7a3-45f8-80be-dc2f159efeef', protocol='range'} -2022-10-06 15:38:06,782 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-5-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Finished assignment for group at generation 3: {consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2-2f78b085-a7a3-45f8-80be-dc2f159efeef=Assignment(partitions=[ruleunit-event-driven-responses-0])} -2022-10-06 15:38:06,783 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-5-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Successfully synced group in generation Generation{generationId=3, memberId='consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2-2f78b085-a7a3-45f8-80be-dc2f159efeef', protocol='range'} -2022-10-06 15:38:06,784 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-5-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Notifying assignor about the new Assignment(partitions=[ruleunit-event-driven-responses-0]) -2022-10-06 15:38:06,784 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-5-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Adding newly assigned partitions: ruleunit-event-driven-responses-0 -2022-10-06 15:38:06,784 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-5-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Setting offset for partition ruleunit-event-driven-responses-0 to the committed offset FetchPosition{offset=1, offsetEpoch=Optional.empty, currentLeader=LeaderAndEpoch{leader=Optional[localhost:49238 (id: 0 rack: null)], epoch=absent}} -INFO 2022-10-06 13:38:06,786 [shard 0] kafka - fetch_session_cache.cc:106 - fetch session created: 3 -2022-10-06 15:38:06,787 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:06,786 [shard 0] kafka - fetch_session_cache.cc:106 - fetch session created: 3 -2022-10-06 15:38:09,778 INFO [org.apa.kaf.cli.pro.ProducerConfig] (awaitility-thread) ProducerConfig values: - acks = -1 - batch.size = 16384 - bootstrap.servers = [localhost:49238] - buffer.memory = 33554432 - client.dns.lookup = use_all_dns_ips - client.id = org.kie.kogito.test.quarkus.kafka.KafkaTestClientProducer - compression.type = none - connections.max.idle.ms = 540000 - delivery.timeout.ms = 120000 - enable.idempotence = true - interceptor.classes = [] - key.serializer = class org.apache.kafka.common.serialization.StringSerializer - linger.ms = 0 - max.block.ms = 60000 - max.in.flight.requests.per.connection = 5 - max.request.size = 1048576 - metadata.max.age.ms = 300000 - metadata.max.idle.ms = 300000 - metric.reporters = [] - metrics.num.samples = 2 - metrics.recording.level = INFO - metrics.sample.window.ms = 30000 - partitioner.class = class org.apache.kafka.clients.producer.internals.DefaultPartitioner - receive.buffer.bytes = 32768 - reconnect.backoff.max.ms = 1000 - reconnect.backoff.ms = 50 - request.timeout.ms = 30000 - retries = 2147483647 - retry.backoff.ms = 100 - sasl.client.callback.handler.class = null - sasl.jaas.config = null - sasl.kerberos.kinit.cmd = /usr/bin/kinit - sasl.kerberos.min.time.before.relogin = 60000 - sasl.kerberos.service.name = null - sasl.kerberos.ticket.renew.jitter = 0.05 - sasl.kerberos.ticket.renew.window.factor = 0.8 - sasl.login.callback.handler.class = null - sasl.login.class = null - sasl.login.connect.timeout.ms = null - sasl.login.read.timeout.ms = null - sasl.login.refresh.buffer.seconds = 300 - sasl.login.refresh.min.period.seconds = 60 - sasl.login.refresh.window.factor = 0.8 - sasl.login.refresh.window.jitter = 0.05 - sasl.login.retry.backoff.max.ms = 10000 - sasl.login.retry.backoff.ms = 100 - sasl.mechanism = GSSAPI - sasl.oauthbearer.clock.skew.seconds = 30 - sasl.oauthbearer.expected.audience = null - sasl.oauthbearer.expected.issuer = null - sasl.oauthbearer.jwks.endpoint.refresh.ms = 3600000 - sasl.oauthbearer.jwks.endpoint.retry.backoff.max.ms = 10000 - sasl.oauthbearer.jwks.endpoint.retry.backoff.ms = 100 - sasl.oauthbearer.jwks.endpoint.url = null - sasl.oauthbearer.scope.claim.name = scope - sasl.oauthbearer.sub.claim.name = sub - sasl.oauthbearer.token.endpoint.url = null - security.protocol = PLAINTEXT - security.providers = null - send.buffer.bytes = 131072 - socket.connection.setup.timeout.max.ms = 30000 - socket.connection.setup.timeout.ms = 10000 - ssl.cipher.suites = null - ssl.enabled.protocols = [TLSv1.2, TLSv1.3] - ssl.endpoint.identification.algorithm = https - ssl.engine.factory.class = null - ssl.key.password = null - ssl.keymanager.algorithm = SunX509 - ssl.keystore.certificate.chain = null - ssl.keystore.key = null - ssl.keystore.location = null - ssl.keystore.password = null - ssl.keystore.type = JKS - ssl.protocol = TLSv1.3 - ssl.provider = null - ssl.secure.random.implementation = null - ssl.trustmanager.algorithm = PKIX - ssl.truststore.certificates = null - ssl.truststore.location = null - ssl.truststore.password = null - ssl.truststore.type = JKS - transaction.timeout.ms = 60000 - transactional.id = null - value.serializer = class org.apache.kafka.common.serialization.StringSerializer - -2022-10-06 15:38:09,780 INFO [org.apa.kaf.cli.pro.KafkaProducer] (awaitility-thread) [Producer clientId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientProducer] Instantiated an idempotent producer. -2022-10-06 15:38:09,784 INFO [org.apa.kaf.com.uti.AppInfoParser] (awaitility-thread) Kafka version: 3.2.1 -2022-10-06 15:38:09,784 INFO [org.apa.kaf.com.uti.AppInfoParser] (awaitility-thread) Kafka commitId: b172a0a94f4ebb9f -2022-10-06 15:38:09,784 INFO [org.apa.kaf.com.uti.AppInfoParser] (awaitility-thread) Kafka startTimeMs: 1665063489783 -2022-10-06 15:38:09,784 INFO [org.kie.kog.tes.qua.kaf.KafkaTestClient] (awaitility-thread) Publishing event with data { - "specversion": "1.0", - "id": "a89b61a2-5644-487a-8a86-144855c5dce8", - "source": "SomeEventSource", - "type": "RulesRequest", - "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", - "kogitoruleunitquery": "FindNotApprovedIdAndAmount", - "data": { - "maxAmount": 5000, - "loanApplications": [ - { - "id": "ABC10001", - "amount": 2000, - "deposit": 100, - "applicant": { - "age": 45, - "name": "John" - } - }, - { - "id": "ABC10002", - "amount": 5000, - "deposit": 100, - "applicant": { - "age": 25, - "name": "Paul" - } - }, - { - "id": "ABC10015", - "amount": 1000, - "deposit": 100, - "applicant": { - "age": 12, - "name": "George" - } - } - ] - } -} - for topic ruleunit-event-driven-requests -2022-10-06 15:38:09,786 INFO [org.apa.kaf.cli.pro.int.TransactionManager] (kafka-producer-network-thread | org.kie.kogito.test.quarkus.kafka.KafkaTestClientProducer) [Producer clientId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientProducer] ProducerId set to 2 with epoch 0 -2022-10-06 15:38:09,790 INFO [org.apa.kaf.cli.pro.KafkaProducer] (awaitility-thread) [Producer clientId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientProducer] Closing the Kafka producer with timeoutMillis = 9223372036854775807 ms. -2022-10-06 15:38:09,791 INFO [org.apa.kaf.com.met.Metrics] (awaitility-thread) Metrics scheduler closed -2022-10-06 15:38:09,791 INFO [org.apa.kaf.com.met.Metrics] (awaitility-thread) Closing reporter org.apache.kafka.common.metrics.JmxReporter -2022-10-06 15:38:09,791 INFO [org.apa.kaf.com.met.Metrics] (awaitility-thread) Metrics reporters closed -2022-10-06 15:38:09,791 INFO [org.apa.kaf.com.uti.AppInfoParser] (awaitility-thread) App info kafka.producer for org.kie.kogito.test.quarkus.kafka.KafkaTestClientProducer unregistered -2022-10-06 15:38:09,791 DEBUG [org.kie.kog.add.qua.mes.com.AbstractQuarkusCloudEventReceiver] (vert.x-eventloop-thread-10) Received message { - "specversion": "1.0", - "id": "a89b61a2-5644-487a-8a86-144855c5dce8", - "source": "SomeEventSource", - "type": "RulesRequest", - "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", - "kogitoruleunitquery": "FindNotApprovedIdAndAmount", - "data": { - "maxAmount": 5000, - "loanApplications": [ - { - "id": "ABC10001", - "amount": 2000, - "deposit": 100, - "applicant": { - "age": 45, - "name": "John" - } - }, - { - "id": "ABC10002", - "amount": 5000, - "deposit": 100, - "applicant": { - "age": 25, - "name": "Paul" - } - }, - { - "id": "ABC10015", - "amount": 1000, - "deposit": 100, - "applicant": { - "age": 12, - "name": "George" - } - } - ] - } -} - -2022-10-06 15:38:09,792 DEBUG [org.kie.kog.eve.rul.EventDrivenRulesController] (vert.x-eventloop-thread-10) Processing event CloudEventWrapDataEvent [cloudEvent=CloudEvent{id='a89b61a2-5644-487a-8a86-144855c5dce8', source=SomeEventSource, type='RulesRequest', subject='TheSubject', data=JsonCloudEventData{node={"maxAmount":5000,"loanApplications":[{"id":"ABC10001","amount":2000,"deposit":100,"applicant":{"age":45,"name":"John"}},{"id":"ABC10002","amount":5000,"deposit":100,"applicant":{"age":25,"name":"Paul"}},{"id":"ABC10015","amount":1000,"deposit":100,"applicant":{"age":12,"name":"George"}}]}}, extensions={kogitoruleunitquery=FindNotApprovedIdAndAmount, kogitoruleunitid=org.kie.kogito.queries.LoanUnit}}] -2022-10-06 15:38:09,792 DEBUG [org.kie.kog.eve.rul.EventDrivenRulesController] (vert.x-eventloop-thread-10) Invalid request. Event CloudEventWrapDataEvent [cloudEvent=CloudEvent{id='a89b61a2-5644-487a-8a86-144855c5dce8', source=SomeEventSource, type='RulesRequest', subject='TheSubject', data=JsonCloudEventData{node={"maxAmount":5000,"loanApplications":[{"id":"ABC10001","amount":2000,"deposit":100,"applicant":{"age":45,"name":"John"}},{"id":"ABC10002","amount":5000,"deposit":100,"applicant":{"age":25,"name":"Paul"}},{"id":"ABC10015","amount":1000,"deposit":100,"applicant":{"age":12,"name":"George"}}]}}, extensions={kogitoruleunitquery=FindNotApprovedIdAndAmount, kogitoruleunitid=org.kie.kogito.queries.LoanUnit}}] with extension KogitoRulesExtension [ruleUnitId=org.kie.kogito.queries.LoanUnit, ruleUnitQuery=FindNotApprovedIdAndAmount] is not recognized by executor AbstractEventDrivenQueryExecutor [ruleUnit=org.kie.kogito.queries.LoanUnitRuleUnit@322c39d7, queryName=FindApproved, objectClass=class org.kie.kogito.queries.LoanUnit] -2022-10-06 15:38:09,793 DEBUG [org.kie.kog.eve.rul.EventDrivenRulesController] (vert.x-eventloop-thread-10) Processing event CloudEventWrapDataEvent [cloudEvent=CloudEvent{id='a89b61a2-5644-487a-8a86-144855c5dce8', source=SomeEventSource, type='RulesRequest', subject='TheSubject', data=JsonCloudEventData{node={"maxAmount":5000,"loanApplications":[{"id":"ABC10001","amount":2000,"deposit":100,"applicant":{"age":45,"name":"John"}},{"id":"ABC10002","amount":5000,"deposit":100,"applicant":{"age":25,"name":"Paul"}},{"id":"ABC10015","amount":1000,"deposit":100,"applicant":{"age":12,"name":"George"}}]}}, extensions={kogitoruleunitquery=FindNotApprovedIdAndAmount, kogitoruleunitid=org.kie.kogito.queries.LoanUnit}}] -2022-10-06 15:38:09,825 DEBUG [org.kie.kog.add.qua.mes.com.AbstractQuarkusCloudEventEmitter] (vert.x-eventloop-thread-10) publishing event CloudEvent{id='3be203a5-5a72-4ad6-b45a-e4466408277a', source=find-not-approved-id-and-amount, type='RulesResponse', subject='TheSubject', data=BytesCloudEventData{value=[91, 123, 34, 36, 97, 109, 111, 117, 110, 116, 34, 58, 53, 48, 48, 48, 44, 34, 36, 105, 100, 34, 58, 34, 65, 66, 67, 49, 48, 48, 48, 50, 34, 125, 44, 123, 34, 36, 97, 109, 111, 117, 110, 116, 34, 58, 49, 48, 48, 48, 44, 34, 36, 105, 100, 34, 58, 34, 65, 66, 67, 49, 48, 48, 49, 53, 34, 125, 93]}, extensions={kogitoruleunitquery=FindNotApprovedIdAndAmount, kogitoruleunitid=org.kie.kogito.queries.LoanUnit}} for type RulesResponse -2022-10-06 15:38:09,826 DEBUG [org.kie.kog.eve.rul.EventDrivenRulesController] (vert.x-eventloop-thread-10) Processing event CloudEventWrapDataEvent [cloudEvent=CloudEvent{id='a89b61a2-5644-487a-8a86-144855c5dce8', source=SomeEventSource, type='RulesRequest', subject='TheSubject', data=JsonCloudEventData{node={"maxAmount":5000,"loanApplications":[{"id":"ABC10001","amount":2000,"deposit":100,"applicant":{"age":45,"name":"John"}},{"id":"ABC10002","amount":5000,"deposit":100,"applicant":{"age":25,"name":"Paul"}},{"id":"ABC10015","amount":1000,"deposit":100,"applicant":{"age":12,"name":"George"}}]}}, extensions={kogitoruleunitquery=FindNotApprovedIdAndAmount, kogitoruleunitid=org.kie.kogito.queries.LoanUnit}}] -2022-10-06 15:38:09,827 DEBUG [org.kie.kog.eve.rul.EventDrivenRulesController] (vert.x-eventloop-thread-10) Invalid request. Event CloudEventWrapDataEvent [cloudEvent=CloudEvent{id='a89b61a2-5644-487a-8a86-144855c5dce8', source=SomeEventSource, type='RulesRequest', subject='TheSubject', data=JsonCloudEventData{node={"maxAmount":5000,"loanApplications":[{"id":"ABC10001","amount":2000,"deposit":100,"applicant":{"age":45,"name":"John"}},{"id":"ABC10002","amount":5000,"deposit":100,"applicant":{"age":25,"name":"Paul"}},{"id":"ABC10015","amount":1000,"deposit":100,"applicant":{"age":12,"name":"George"}}]}}, extensions={kogitoruleunitquery=FindNotApprovedIdAndAmount, kogitoruleunitid=org.kie.kogito.queries.LoanUnit}}] with extension KogitoRulesExtension [ruleUnitId=org.kie.kogito.queries.LoanUnit, ruleUnitQuery=FindNotApprovedIdAndAmount] is not recognized by executor AbstractEventDrivenQueryExecutor [ruleUnit=org.kie.kogito.queries.LoanUnitRuleUnit@322c39d7, queryName=FindAllApplicationAmounts, objectClass=class org.kie.kogito.queries.LoanUnit] -2022-10-06 15:38:09,827 DEBUG [org.kie.kog.add.qua.mes.com.AbstractQuarkusCloudEventReceiver] (vert.x-eventloop-thread-10) Acking message id { - "specversion": "1.0", - "id": "a89b61a2-5644-487a-8a86-144855c5dce8", - "source": "SomeEventSource", - "type": "RulesRequest", - "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", - "kogitoruleunitquery": "FindNotApprovedIdAndAmount", - "data": { - "maxAmount": 5000, - "loanApplications": [ - { - "id": "ABC10001", - "amount": 2000, - "deposit": 100, - "applicant": { - "age": 45, - "name": "John" - } - }, - { - "id": "ABC10002", - "amount": 5000, - "deposit": 100, - "applicant": { - "age": 25, - "name": "Paul" - } - }, - { - "id": "ABC10015", - "amount": 1000, - "deposit": 100, - "applicant": { - "age": 12, - "name": "George" - } - } - ] - } -} - -2022-10-06 15:38:10,834 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-5-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Revoke previously assigned partitions ruleunit-event-driven-responses-0 -2022-10-06 15:38:10,836 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-5-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Member consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2-2f78b085-a7a3-45f8-80be-dc2f159efeef sending LeaveGroup request to coordinator localhost:49238 (id: 2147483647 rack: null) due to the consumer is being closed -2022-10-06 15:38:10,836 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-5-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Resetting generation and member id due to: consumer pro-actively leaving the group -2022-10-06 15:38:10,837 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-5-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Request joining group due to: consumer pro-actively leaving the group -2022-10-06 15:38:10,837 INFO [org.apa.kaf.com.met.Metrics] (pool-5-thread-1) Metrics scheduler closed -2022-10-06 15:38:10,837 INFO [org.apa.kaf.com.met.Metrics] (pool-5-thread-1) Closing reporter org.apache.kafka.common.metrics.JmxReporter -2022-10-06 15:38:10,837 INFO [org.apa.kaf.com.met.Metrics] (pool-5-thread-1) Metrics reporters closed -2022-10-06 15:38:10,839 INFO [org.apa.kaf.com.uti.AppInfoParser] (pool-5-thread-1) App info kafka.consumer for consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-2 unregistered -2022-10-06 15:38:10,844 INFO [org.apa.kaf.cli.con.ConsumerConfig] (main) ConsumerConfig values: - allow.auto.create.topics = true - auto.commit.interval.ms = 5000 - auto.offset.reset = earliest - bootstrap.servers = [localhost:49238] - check.crcs = true - client.dns.lookup = use_all_dns_ips - client.id = consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3 - client.rack = - connections.max.idle.ms = 540000 - default.api.timeout.ms = 60000 - enable.auto.commit = false - exclude.internal.topics = true - fetch.max.bytes = 52428800 - fetch.max.wait.ms = 500 - fetch.min.bytes = 1 - group.id = org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer - group.instance.id = null - heartbeat.interval.ms = 3000 - interceptor.classes = [] - internal.leave.group.on.close = true - internal.throw.on.fetch.stable.offset.unsupported = false - isolation.level = read_uncommitted - key.deserializer = class org.apache.kafka.common.serialization.StringDeserializer - max.partition.fetch.bytes = 1048576 - max.poll.interval.ms = 300000 - max.poll.records = 500 - metadata.max.age.ms = 300000 - metric.reporters = [] - metrics.num.samples = 2 - metrics.recording.level = INFO - metrics.sample.window.ms = 30000 - partition.assignment.strategy = [class org.apache.kafka.clients.consumer.RangeAssignor, class org.apache.kafka.clients.consumer.CooperativeStickyAssignor] - receive.buffer.bytes = 65536 - reconnect.backoff.max.ms = 1000 - reconnect.backoff.ms = 50 - request.timeout.ms = 30000 - retry.backoff.ms = 100 - sasl.client.callback.handler.class = null - sasl.jaas.config = null - sasl.kerberos.kinit.cmd = /usr/bin/kinit - sasl.kerberos.min.time.before.relogin = 60000 - sasl.kerberos.service.name = null - sasl.kerberos.ticket.renew.jitter = 0.05 - sasl.kerberos.ticket.renew.window.factor = 0.8 - sasl.login.callback.handler.class = null - sasl.login.class = null - sasl.login.connect.timeout.ms = null - sasl.login.read.timeout.ms = null - sasl.login.refresh.buffer.seconds = 300 - sasl.login.refresh.min.period.seconds = 60 - sasl.login.refresh.window.factor = 0.8 - sasl.login.refresh.window.jitter = 0.05 - sasl.login.retry.backoff.max.ms = 10000 - sasl.login.retry.backoff.ms = 100 - sasl.mechanism = GSSAPI - sasl.oauthbearer.clock.skew.seconds = 30 - sasl.oauthbearer.expected.audience = null - sasl.oauthbearer.expected.issuer = null - sasl.oauthbearer.jwks.endpoint.refresh.ms = 3600000 - sasl.oauthbearer.jwks.endpoint.retry.backoff.max.ms = 10000 - sasl.oauthbearer.jwks.endpoint.retry.backoff.ms = 100 - sasl.oauthbearer.jwks.endpoint.url = null - sasl.oauthbearer.scope.claim.name = scope - sasl.oauthbearer.sub.claim.name = sub - sasl.oauthbearer.token.endpoint.url = null - security.protocol = PLAINTEXT - security.providers = null - send.buffer.bytes = 131072 - session.timeout.ms = 45000 - socket.connection.setup.timeout.max.ms = 30000 - socket.connection.setup.timeout.ms = 10000 - ssl.cipher.suites = null - ssl.enabled.protocols = [TLSv1.2, TLSv1.3] - ssl.endpoint.identification.algorithm = https - ssl.engine.factory.class = null - ssl.key.password = null - ssl.keymanager.algorithm = SunX509 - ssl.keystore.certificate.chain = null - ssl.keystore.key = null - ssl.keystore.location = null - ssl.keystore.password = null - ssl.keystore.type = JKS - ssl.protocol = TLSv1.3 - ssl.provider = null - ssl.secure.random.implementation = null - ssl.trustmanager.algorithm = PKIX - ssl.truststore.certificates = null - ssl.truststore.location = null - ssl.truststore.password = null - ssl.truststore.type = JKS - value.deserializer = class org.apache.kafka.common.serialization.StringDeserializer - -2022-10-06 15:38:10,848 INFO [org.apa.kaf.com.uti.AppInfoParser] (main) Kafka version: 3.2.1 -2022-10-06 15:38:10,848 INFO [org.apa.kaf.com.uti.AppInfoParser] (main) Kafka commitId: b172a0a94f4ebb9f -2022-10-06 15:38:10,849 INFO [org.apa.kaf.com.uti.AppInfoParser] (main) Kafka startTimeMs: 1665063490848 -2022-10-06 15:38:10,849 INFO [org.apa.kaf.cli.con.KafkaConsumer] (pool-6-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Subscribed to topic(s): ruleunit-event-driven-responses -2022-10-06 15:38:10,854 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-6-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Discovered group coordinator localhost:49238 (id: 2147483647 rack: null) -2022-10-06 15:38:10,855 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-6-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] (Re-)joining group -2022-10-06 15:38:10,858 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-6-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Request joining group due to: need to re-join with the given member-id: consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3-ca80add5-49c0-419c-a7fb-478bcf468700 -2022-10-06 15:38:10,859 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-6-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Request joining group due to: rebalance failed due to 'The group member needs to have a valid member id before actually entering a consumer group.' (MemberIdRequiredException) -2022-10-06 15:38:10,859 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-6-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] (Re-)joining group -2022-10-06 15:38:10,860 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-6-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Successfully joined group with generation Generation{generationId=5, memberId='consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3-ca80add5-49c0-419c-a7fb-478bcf468700', protocol='range'} -2022-10-06 15:38:10,860 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-6-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Finished assignment for group at generation 5: {consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3-ca80add5-49c0-419c-a7fb-478bcf468700=Assignment(partitions=[ruleunit-event-driven-responses-0])} -2022-10-06 15:38:10,862 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-6-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Successfully synced group in generation Generation{generationId=5, memberId='consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3-ca80add5-49c0-419c-a7fb-478bcf468700', protocol='range'} -2022-10-06 15:38:10,863 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-6-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Notifying assignor about the new Assignment(partitions=[ruleunit-event-driven-responses-0]) -2022-10-06 15:38:10,863 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-6-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Adding newly assigned partitions: ruleunit-event-driven-responses-0 -2022-10-06 15:38:10,864 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-6-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Setting offset for partition ruleunit-event-driven-responses-0 to the committed offset FetchPosition{offset=2, offsetEpoch=Optional.empty, currentLeader=LeaderAndEpoch{leader=Optional[localhost:49238 (id: 0 rack: null)], epoch=absent}} -INFO 2022-10-06 13:38:10,868 [shard 0] kafka - fetch_session_cache.cc:106 - fetch session created: 4 -2022-10-06 15:38:10,868 INFO [org.kie.kog.tes.KogitoGenericContainer] (docker-java-stream-617210730) STDERR: INFO 2022-10-06 13:38:10,868 [shard 0] kafka - fetch_session_cache.cc:106 - fetch session created: 4 -2022-10-06 15:38:13,850 INFO [org.apa.kaf.cli.pro.ProducerConfig] (awaitility-thread) ProducerConfig values: - acks = -1 - batch.size = 16384 - bootstrap.servers = [localhost:49238] - buffer.memory = 33554432 - client.dns.lookup = use_all_dns_ips - client.id = org.kie.kogito.test.quarkus.kafka.KafkaTestClientProducer - compression.type = none - connections.max.idle.ms = 540000 - delivery.timeout.ms = 120000 - enable.idempotence = true - interceptor.classes = [] - key.serializer = class org.apache.kafka.common.serialization.StringSerializer - linger.ms = 0 - max.block.ms = 60000 - max.in.flight.requests.per.connection = 5 - max.request.size = 1048576 - metadata.max.age.ms = 300000 - metadata.max.idle.ms = 300000 - metric.reporters = [] - metrics.num.samples = 2 - metrics.recording.level = INFO - metrics.sample.window.ms = 30000 - partitioner.class = class org.apache.kafka.clients.producer.internals.DefaultPartitioner - receive.buffer.bytes = 32768 - reconnect.backoff.max.ms = 1000 - reconnect.backoff.ms = 50 - request.timeout.ms = 30000 - retries = 2147483647 - retry.backoff.ms = 100 - sasl.client.callback.handler.class = null - sasl.jaas.config = null - sasl.kerberos.kinit.cmd = /usr/bin/kinit - sasl.kerberos.min.time.before.relogin = 60000 - sasl.kerberos.service.name = null - sasl.kerberos.ticket.renew.jitter = 0.05 - sasl.kerberos.ticket.renew.window.factor = 0.8 - sasl.login.callback.handler.class = null - sasl.login.class = null - sasl.login.connect.timeout.ms = null - sasl.login.read.timeout.ms = null - sasl.login.refresh.buffer.seconds = 300 - sasl.login.refresh.min.period.seconds = 60 - sasl.login.refresh.window.factor = 0.8 - sasl.login.refresh.window.jitter = 0.05 - sasl.login.retry.backoff.max.ms = 10000 - sasl.login.retry.backoff.ms = 100 - sasl.mechanism = GSSAPI - sasl.oauthbearer.clock.skew.seconds = 30 - sasl.oauthbearer.expected.audience = null - sasl.oauthbearer.expected.issuer = null - sasl.oauthbearer.jwks.endpoint.refresh.ms = 3600000 - sasl.oauthbearer.jwks.endpoint.retry.backoff.max.ms = 10000 - sasl.oauthbearer.jwks.endpoint.retry.backoff.ms = 100 - sasl.oauthbearer.jwks.endpoint.url = null - sasl.oauthbearer.scope.claim.name = scope - sasl.oauthbearer.sub.claim.name = sub - sasl.oauthbearer.token.endpoint.url = null - security.protocol = PLAINTEXT - security.providers = null - send.buffer.bytes = 131072 - socket.connection.setup.timeout.max.ms = 30000 - socket.connection.setup.timeout.ms = 10000 - ssl.cipher.suites = null - ssl.enabled.protocols = [TLSv1.2, TLSv1.3] - ssl.endpoint.identification.algorithm = https - ssl.engine.factory.class = null - ssl.key.password = null - ssl.keymanager.algorithm = SunX509 - ssl.keystore.certificate.chain = null - ssl.keystore.key = null - ssl.keystore.location = null - ssl.keystore.password = null - ssl.keystore.type = JKS - ssl.protocol = TLSv1.3 - ssl.provider = null - ssl.secure.random.implementation = null - ssl.trustmanager.algorithm = PKIX - ssl.truststore.certificates = null - ssl.truststore.location = null - ssl.truststore.password = null - ssl.truststore.type = JKS - transaction.timeout.ms = 60000 - transactional.id = null - value.serializer = class org.apache.kafka.common.serialization.StringSerializer - -2022-10-06 15:38:13,851 INFO [org.apa.kaf.cli.pro.KafkaProducer] (awaitility-thread) [Producer clientId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientProducer] Instantiated an idempotent producer. -2022-10-06 15:38:13,853 INFO [org.apa.kaf.com.uti.AppInfoParser] (awaitility-thread) Kafka version: 3.2.1 -2022-10-06 15:38:13,853 INFO [org.apa.kaf.com.uti.AppInfoParser] (awaitility-thread) Kafka commitId: b172a0a94f4ebb9f -2022-10-06 15:38:13,853 INFO [org.apa.kaf.com.uti.AppInfoParser] (awaitility-thread) Kafka startTimeMs: 1665063493853 -2022-10-06 15:38:13,853 INFO [org.kie.kog.tes.qua.kaf.KafkaTestClient] (awaitility-thread) Publishing event with data { - "specversion": "1.0", - "id": "a89b61a2-5644-487a-8a86-144855c5dce8", - "source": "SomeEventSource", - "type": "RulesRequest", - "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", - "kogitoruleunitquery": "FindAllApplicationAmounts", - "data": { - "maxAmount": 5000, - "loanApplications": [ - { - "id": "ABC10001", - "amount": 2000, - "deposit": 100, - "applicant": { - "age": 45, - "name": "John" - } - }, - { - "id": "ABC10002", - "amount": 5000, - "deposit": 100, - "applicant": { - "age": 25, - "name": "Paul" - } - }, - { - "id": "ABC10015", - "amount": 1000, - "deposit": 100, - "applicant": { - "age": 12, - "name": "George" - } - } - ] - } -} - for topic ruleunit-event-driven-requests -2022-10-06 15:38:13,856 INFO [org.apa.kaf.cli.pro.int.TransactionManager] (kafka-producer-network-thread | org.kie.kogito.test.quarkus.kafka.KafkaTestClientProducer) [Producer clientId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientProducer] ProducerId set to 3 with epoch 0 -2022-10-06 15:38:13,869 INFO [org.apa.kaf.cli.pro.KafkaProducer] (awaitility-thread) [Producer clientId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientProducer] Closing the Kafka producer with timeoutMillis = 9223372036854775807 ms. -2022-10-06 15:38:13,871 DEBUG [org.kie.kog.add.qua.mes.com.AbstractQuarkusCloudEventReceiver] (vert.x-eventloop-thread-10) Received message { - "specversion": "1.0", - "id": "a89b61a2-5644-487a-8a86-144855c5dce8", - "source": "SomeEventSource", - "type": "RulesRequest", - "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", - "kogitoruleunitquery": "FindAllApplicationAmounts", - "data": { - "maxAmount": 5000, - "loanApplications": [ - { - "id": "ABC10001", - "amount": 2000, - "deposit": 100, - "applicant": { - "age": 45, - "name": "John" - } - }, - { - "id": "ABC10002", - "amount": 5000, - "deposit": 100, - "applicant": { - "age": 25, - "name": "Paul" - } - }, - { - "id": "ABC10015", - "amount": 1000, - "deposit": 100, - "applicant": { - "age": 12, - "name": "George" - } - } - ] - } -} - -2022-10-06 15:38:13,872 INFO [org.apa.kaf.com.met.Metrics] (awaitility-thread) Metrics scheduler closed -2022-10-06 15:38:13,872 INFO [org.apa.kaf.com.met.Metrics] (awaitility-thread) Closing reporter org.apache.kafka.common.metrics.JmxReporter -2022-10-06 15:38:13,872 INFO [org.apa.kaf.com.met.Metrics] (awaitility-thread) Metrics reporters closed -2022-10-06 15:38:13,872 INFO [org.apa.kaf.com.uti.AppInfoParser] (awaitility-thread) App info kafka.producer for org.kie.kogito.test.quarkus.kafka.KafkaTestClientProducer unregistered -2022-10-06 15:38:13,872 DEBUG [org.kie.kog.eve.rul.EventDrivenRulesController] (vert.x-eventloop-thread-10) Processing event CloudEventWrapDataEvent [cloudEvent=CloudEvent{id='a89b61a2-5644-487a-8a86-144855c5dce8', source=SomeEventSource, type='RulesRequest', subject='TheSubject', data=JsonCloudEventData{node={"maxAmount":5000,"loanApplications":[{"id":"ABC10001","amount":2000,"deposit":100,"applicant":{"age":45,"name":"John"}},{"id":"ABC10002","amount":5000,"deposit":100,"applicant":{"age":25,"name":"Paul"}},{"id":"ABC10015","amount":1000,"deposit":100,"applicant":{"age":12,"name":"George"}}]}}, extensions={kogitoruleunitquery=FindAllApplicationAmounts, kogitoruleunitid=org.kie.kogito.queries.LoanUnit}}] -2022-10-06 15:38:13,873 DEBUG [org.kie.kog.eve.rul.EventDrivenRulesController] (vert.x-eventloop-thread-10) Invalid request. Event CloudEventWrapDataEvent [cloudEvent=CloudEvent{id='a89b61a2-5644-487a-8a86-144855c5dce8', source=SomeEventSource, type='RulesRequest', subject='TheSubject', data=JsonCloudEventData{node={"maxAmount":5000,"loanApplications":[{"id":"ABC10001","amount":2000,"deposit":100,"applicant":{"age":45,"name":"John"}},{"id":"ABC10002","amount":5000,"deposit":100,"applicant":{"age":25,"name":"Paul"}},{"id":"ABC10015","amount":1000,"deposit":100,"applicant":{"age":12,"name":"George"}}]}}, extensions={kogitoruleunitquery=FindAllApplicationAmounts, kogitoruleunitid=org.kie.kogito.queries.LoanUnit}}] with extension KogitoRulesExtension [ruleUnitId=org.kie.kogito.queries.LoanUnit, ruleUnitQuery=FindAllApplicationAmounts] is not recognized by executor AbstractEventDrivenQueryExecutor [ruleUnit=org.kie.kogito.queries.LoanUnitRuleUnit@322c39d7, queryName=FindApproved, objectClass=class org.kie.kogito.queries.LoanUnit] -2022-10-06 15:38:13,874 DEBUG [org.kie.kog.eve.rul.EventDrivenRulesController] (vert.x-eventloop-thread-10) Processing event CloudEventWrapDataEvent [cloudEvent=CloudEvent{id='a89b61a2-5644-487a-8a86-144855c5dce8', source=SomeEventSource, type='RulesRequest', subject='TheSubject', data=JsonCloudEventData{node={"maxAmount":5000,"loanApplications":[{"id":"ABC10001","amount":2000,"deposit":100,"applicant":{"age":45,"name":"John"}},{"id":"ABC10002","amount":5000,"deposit":100,"applicant":{"age":25,"name":"Paul"}},{"id":"ABC10015","amount":1000,"deposit":100,"applicant":{"age":12,"name":"George"}}]}}, extensions={kogitoruleunitquery=FindAllApplicationAmounts, kogitoruleunitid=org.kie.kogito.queries.LoanUnit}}] -2022-10-06 15:38:13,875 DEBUG [org.kie.kog.eve.rul.EventDrivenRulesController] (vert.x-eventloop-thread-10) Invalid request. Event CloudEventWrapDataEvent [cloudEvent=CloudEvent{id='a89b61a2-5644-487a-8a86-144855c5dce8', source=SomeEventSource, type='RulesRequest', subject='TheSubject', data=JsonCloudEventData{node={"maxAmount":5000,"loanApplications":[{"id":"ABC10001","amount":2000,"deposit":100,"applicant":{"age":45,"name":"John"}},{"id":"ABC10002","amount":5000,"deposit":100,"applicant":{"age":25,"name":"Paul"}},{"id":"ABC10015","amount":1000,"deposit":100,"applicant":{"age":12,"name":"George"}}]}}, extensions={kogitoruleunitquery=FindAllApplicationAmounts, kogitoruleunitid=org.kie.kogito.queries.LoanUnit}}] with extension KogitoRulesExtension [ruleUnitId=org.kie.kogito.queries.LoanUnit, ruleUnitQuery=FindAllApplicationAmounts] is not recognized by executor AbstractEventDrivenQueryExecutor [ruleUnit=org.kie.kogito.queries.LoanUnitRuleUnit@322c39d7, queryName=FindNotApprovedIdAndAmount, objectClass=class org.kie.kogito.queries.LoanUnit] -2022-10-06 15:38:13,876 DEBUG [org.kie.kog.eve.rul.EventDrivenRulesController] (vert.x-eventloop-thread-10) Processing event CloudEventWrapDataEvent [cloudEvent=CloudEvent{id='a89b61a2-5644-487a-8a86-144855c5dce8', source=SomeEventSource, type='RulesRequest', subject='TheSubject', data=JsonCloudEventData{node={"maxAmount":5000,"loanApplications":[{"id":"ABC10001","amount":2000,"deposit":100,"applicant":{"age":45,"name":"John"}},{"id":"ABC10002","amount":5000,"deposit":100,"applicant":{"age":25,"name":"Paul"}},{"id":"ABC10015","amount":1000,"deposit":100,"applicant":{"age":12,"name":"George"}}]}}, extensions={kogitoruleunitquery=FindAllApplicationAmounts, kogitoruleunitid=org.kie.kogito.queries.LoanUnit}}] -2022-10-06 15:38:13,921 DEBUG [org.kie.kog.add.qua.mes.com.AbstractQuarkusCloudEventEmitter] (vert.x-eventloop-thread-10) publishing event CloudEvent{id='e3e2b624-cd6e-4f27-8323-7abf530070cb', source=find-all-application-amounts, type='RulesResponse', subject='TheSubject', data=BytesCloudEventData{value=[91, 123, 34, 97, 109, 111, 117, 110, 116, 115, 34, 58, 56, 48, 48, 48, 125, 93]}, extensions={kogitoruleunitquery=FindAllApplicationAmounts, kogitoruleunitid=org.kie.kogito.queries.LoanUnit}} for type RulesResponse -2022-10-06 15:38:13,922 DEBUG [org.kie.kog.add.qua.mes.com.AbstractQuarkusCloudEventReceiver] (vert.x-eventloop-thread-10) Acking message id { - "specversion": "1.0", - "id": "a89b61a2-5644-487a-8a86-144855c5dce8", - "source": "SomeEventSource", - "type": "RulesRequest", - "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", - "kogitoruleunitquery": "FindAllApplicationAmounts", - "data": { - "maxAmount": 5000, - "loanApplications": [ - { - "id": "ABC10001", - "amount": 2000, - "deposit": 100, - "applicant": { - "age": 45, - "name": "John" - } - }, - { - "id": "ABC10002", - "amount": 5000, - "deposit": 100, - "applicant": { - "age": 25, - "name": "Paul" - } - }, - { - "id": "ABC10015", - "amount": 1000, - "deposit": 100, - "applicant": { - "age": 12, - "name": "George" - } - } - ] - } -} - -2022-10-06 15:38:14,935 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-6-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Revoke previously assigned partitions ruleunit-event-driven-responses-0 -2022-10-06 15:38:14,937 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-6-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Member consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3-ca80add5-49c0-419c-a7fb-478bcf468700 sending LeaveGroup request to coordinator localhost:49238 (id: 2147483647 rack: null) due to the consumer is being closed -2022-10-06 15:38:14,938 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-6-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Resetting generation and member id due to: consumer pro-actively leaving the group -2022-10-06 15:38:14,938 INFO [org.apa.kaf.cli.con.int.ConsumerCoordinator] (pool-6-thread-1) [Consumer clientId=consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3, groupId=org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer] Request joining group due to: consumer pro-actively leaving the group -2022-10-06 15:38:14,939 INFO [org.apa.kaf.com.met.Metrics] (pool-6-thread-1) Metrics scheduler closed -2022-10-06 15:38:14,940 INFO [org.apa.kaf.com.met.Metrics] (pool-6-thread-1) Closing reporter org.apache.kafka.common.metrics.JmxReporter -2022-10-06 15:38:14,940 INFO [org.apa.kaf.com.met.Metrics] (pool-6-thread-1) Metrics reporters closed -2022-10-06 15:38:14,944 INFO [org.apa.kaf.com.uti.AppInfoParser] (pool-6-thread-1) App info kafka.consumer for consumer-org.kie.kogito.test.quarkus.kafka.KafkaTestClientConsumer-3 unregistered -[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.636 s - in org.kie.kogito.examples.RuleUnitEventDrivenIT -2022-10-06 15:38:15,114 WARN [org.apa.kaf.cli.NetworkClient] (smallrye-kafka-consumer-thread-0) [Consumer clientId=kafka-consumer-kogito_incoming_stream, groupId=ruleunit-event-driven-example] Connection to node 0 (localhost/127.0.0.1:49238) could not be established. Broker may not be available. -2022-10-06 15:38:15,115 WARN [org.apa.kaf.cli.NetworkClient] (kafka-producer-network-thread | kafka-producer-kogito_outgoing_stream) [Producer clientId=kafka-producer-kogito_outgoing_stream] Connection to node 0 (localhost/127.0.0.1:49238) could not be established. Broker may not be available. -[INFO] -[INFO] Results: -[INFO] -[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0 -[INFO] -[INFO] -[INFO] --- maven-failsafe-plugin:3.0.0-M5:integration-test (default) @ ruleunit-event-driven-quarkus --- -[INFO] Skipping execution of surefire because it has already been run for this configuration -[INFO] -[INFO] --- maven-failsafe-plugin:3.0.0-M5:verify (integration-test) @ ruleunit-event-driven-quarkus --- -[INFO] -[INFO] --- maven-failsafe-plugin:3.0.0-M5:verify (default) @ ruleunit-event-driven-quarkus --- -[INFO] -[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ ruleunit-event-driven-quarkus --- -[INFO] Installing /home/ftirados/git/kogito-examples/kogito-quarkus-examples/ruleunit-event-driven-quarkus/target/ruleunit-event-driven-quarkus.jar to /home/ftirados/.m2/repository/org/kie/kogito/examples/ruleunit-event-driven-quarkus/2.0.0-SNAPSHOT/ruleunit-event-driven-quarkus-2.0.0-SNAPSHOT.jar -[INFO] Installing /home/ftirados/git/kogito-examples/kogito-quarkus-examples/ruleunit-event-driven-quarkus/pom.xml to /home/ftirados/.m2/repository/org/kie/kogito/examples/ruleunit-event-driven-quarkus/2.0.0-SNAPSHOT/ruleunit-event-driven-quarkus-2.0.0-SNAPSHOT.pom -[INFO] Installing /home/ftirados/git/kogito-examples/kogito-quarkus-examples/ruleunit-event-driven-quarkus/target/ruleunit-event-driven-quarkus-tests.jar to /home/ftirados/.m2/repository/org/kie/kogito/examples/ruleunit-event-driven-quarkus/2.0.0-SNAPSHOT/ruleunit-event-driven-quarkus-2.0.0-SNAPSHOT-tests.jar -[INFO] Installing /home/ftirados/git/kogito-examples/kogito-quarkus-examples/ruleunit-event-driven-quarkus/target/ruleunit-event-driven-quarkus-sources.jar to /home/ftirados/.m2/repository/org/kie/kogito/examples/ruleunit-event-driven-quarkus/2.0.0-SNAPSHOT/ruleunit-event-driven-quarkus-2.0.0-SNAPSHOT-sources.jar -[INFO] Installing /home/ftirados/git/kogito-examples/kogito-quarkus-examples/ruleunit-event-driven-quarkus/target/ruleunit-event-driven-quarkus-test-sources.jar to /home/ftirados/.m2/repository/org/kie/kogito/examples/ruleunit-event-driven-quarkus/2.0.0-SNAPSHOT/ruleunit-event-driven-quarkus-2.0.0-SNAPSHOT-test-sources.jar -[INFO] ------------------------------------------------------------------------ -[INFO] BUILD SUCCESS -[INFO] ------------------------------------------------------------------------ -[INFO] Total time: 28.313 s -[INFO] Finished at: 2022-10-06T15:38:15+02:00 -[INFO] ------------------------------------------------------------------------ diff --git a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/pom.xml b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/pom.xml index d04d837993..885c5cd2a3 100644 --- a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/pom.xml +++ b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/kie/kogito/queries/AllAmounts.java b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/acme/queries/AllAmounts.java similarity index 96% rename from kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/kie/kogito/queries/AllAmounts.java rename to kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/acme/queries/AllAmounts.java index e0c67ef987..9c39f215d0 100644 --- a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/kie/kogito/queries/AllAmounts.java +++ b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/acme/queries/AllAmounts.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; public class AllAmounts { private int amounts; diff --git a/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/kie/kogito/queries/Applicant.java b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/acme/queries/Applicant.java similarity index 97% rename from kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/kie/kogito/queries/Applicant.java rename to kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/acme/queries/Applicant.java index 175d3a98d5..c63d1274c8 100644 --- a/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/kie/kogito/queries/Applicant.java +++ b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/acme/queries/Applicant.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; public class Applicant { diff --git a/kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/kie/kogito/queries/LoanApplication.java b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/acme/queries/LoanApplication.java similarity index 98% rename from kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/kie/kogito/queries/LoanApplication.java rename to kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/acme/queries/LoanApplication.java index 70eec1c4e3..a6a205d958 100644 --- a/kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/kie/kogito/queries/LoanApplication.java +++ b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/acme/queries/LoanApplication.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; public class LoanApplication { diff --git a/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/kie/kogito/queries/LoanUnit.java b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/acme/queries/LoanUnit.java similarity index 98% rename from kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/kie/kogito/queries/LoanUnit.java rename to kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/acme/queries/LoanUnit.java index 3f68f880e8..bd51d017ce 100644 --- a/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/kie/kogito/queries/LoanUnit.java +++ b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/acme/queries/LoanUnit.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; import org.drools.ruleunits.api.DataSource; import org.drools.ruleunits.api.DataStore; diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/resources/org/kie/kogito/queries/RuleUnitQuery.drl b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/resources/org/acme/queries/RuleUnitQuery.drl similarity index 93% rename from kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/resources/org/kie/kogito/queries/RuleUnitQuery.drl rename to kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/resources/org/acme/queries/RuleUnitQuery.drl index 2f14454ead..4a55746570 100644 --- a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/resources/org/kie/kogito/queries/RuleUnitQuery.drl +++ b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/resources/org/acme/queries/RuleUnitQuery.drl @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; unit LoanUnit; -import org.kie.kogito.queries.LoanApplication; -import org.kie.kogito.queries.AllAmounts; +import org.acme.queries.LoanApplication; +import org.acme.queries.AllAmounts; rule SmallDepositApprove when $l: /loanApplications[ applicant.age >= 20, deposit < 1000, amount <= 2000 ] diff --git a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/java/org/kie/kogito/examples/RuleUnitEventDrivenIT.java b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/java/org/acme/examples/RuleUnitEventDrivenIT.java similarity index 99% rename from kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/java/org/kie/kogito/examples/RuleUnitEventDrivenIT.java rename to kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/java/org/acme/examples/RuleUnitEventDrivenIT.java index 4d3687a923..cef3a820e5 100644 --- a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/java/org/kie/kogito/examples/RuleUnitEventDrivenIT.java +++ b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/java/org/acme/examples/RuleUnitEventDrivenIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.io.IOException; import java.net.URL; diff --git a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_all_application_amounts/input.json b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_all_application_amounts/input.json index 123fec11d0..cd57723a01 100644 --- a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_all_application_amounts/input.json +++ b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_all_application_amounts/input.json @@ -4,7 +4,7 @@ "source": "SomeEventSource", "type": "RulesRequest", "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", + "kogitoruleunitid": "org.acme.queries.LoanUnit", "kogitoruleunitquery": "FindAllApplicationAmounts", "data": { "maxAmount": 5000, diff --git a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_all_application_amounts/output.json b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_all_application_amounts/output.json index 93dc6db47f..fb1516895d 100644 --- a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_all_application_amounts/output.json +++ b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_all_application_amounts/output.json @@ -4,7 +4,7 @@ "source": "find-all-application-amounts", "type": "RulesResponse", "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", + "kogitoruleunitid": "org.acme.queries.LoanUnit", "kogitoruleunitquery": "FindAllApplicationAmounts", "data": [ { diff --git a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_approved/input.json b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_approved/input.json index 7e7fea489c..71dba2fd94 100644 --- a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_approved/input.json +++ b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_approved/input.json @@ -4,7 +4,7 @@ "source": "SomeEventSource", "type": "RulesRequest", "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", + "kogitoruleunitid": "org.acme.queries.LoanUnit", "kogitoruleunitquery": "FindApproved", "data": { "maxAmount": 5000, diff --git a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_approved/output.json b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_approved/output.json index 9106df086e..825a95ad40 100644 --- a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_approved/output.json +++ b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_approved/output.json @@ -4,7 +4,7 @@ "source": "find-approved", "type": "RulesResponse", "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", + "kogitoruleunitid": "org.acme.queries.LoanUnit", "kogitoruleunitquery": "FindApproved", "data": [ { diff --git a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_not_approved_id_and_amount/input.json b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_not_approved_id_and_amount/input.json index e433d32a9b..b67dd817fd 100644 --- a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_not_approved_id_and_amount/input.json +++ b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_not_approved_id_and_amount/input.json @@ -4,7 +4,7 @@ "source": "SomeEventSource", "type": "RulesRequest", "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", + "kogitoruleunitid": "org.acme.queries.LoanUnit", "kogitoruleunitquery": "FindNotApprovedIdAndAmount", "data": { "maxAmount": 5000, diff --git a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_not_approved_id_and_amount/output.json b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_not_approved_id_and_amount/output.json index 61844e894e..fc1e6eca28 100644 --- a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_not_approved_id_and_amount/output.json +++ b/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/test/resources/events/query/find_not_approved_id_and_amount/output.json @@ -4,7 +4,7 @@ "source": "find-not-approved-id-and-amount", "type": "RulesResponse", "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", + "kogitoruleunitid": "org.acme.queries.LoanUnit", "kogitoruleunitquery": "FindNotApprovedIdAndAmount", "data": [ { diff --git a/kogito-quarkus-examples/ruleunit-quarkus-example/pom.xml b/kogito-quarkus-examples/ruleunit-quarkus-example/pom.xml index 8093fb0f02..0307e841d9 100644 --- a/kogito-quarkus-examples/ruleunit-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/ruleunit-quarkus-example/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/kie/kogito/queries/AllAmounts.java b/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/acme/queries/AllAmounts.java similarity index 96% rename from kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/kie/kogito/queries/AllAmounts.java rename to kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/acme/queries/AllAmounts.java index e0c67ef987..9c39f215d0 100644 --- a/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/kie/kogito/queries/AllAmounts.java +++ b/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/acme/queries/AllAmounts.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; public class AllAmounts { private int amounts; diff --git a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/kie/kogito/queries/Applicant.java b/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/acme/queries/Applicant.java similarity index 97% rename from kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/kie/kogito/queries/Applicant.java rename to kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/acme/queries/Applicant.java index 175d3a98d5..c63d1274c8 100644 --- a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/kie/kogito/queries/Applicant.java +++ b/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/acme/queries/Applicant.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; public class Applicant { diff --git a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/kie/kogito/queries/LoanApplication.java b/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/acme/queries/LoanApplication.java similarity index 98% rename from kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/kie/kogito/queries/LoanApplication.java rename to kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/acme/queries/LoanApplication.java index 70eec1c4e3..a6a205d958 100644 --- a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/kie/kogito/queries/LoanApplication.java +++ b/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/acme/queries/LoanApplication.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; public class LoanApplication { diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/kie/kogito/queries/LoanUnit.java b/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/acme/queries/LoanUnit.java similarity index 98% rename from kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/kie/kogito/queries/LoanUnit.java rename to kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/acme/queries/LoanUnit.java index 3f68f880e8..bd51d017ce 100644 --- a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/kie/kogito/queries/LoanUnit.java +++ b/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/java/org/acme/queries/LoanUnit.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; import org.drools.ruleunits.api.DataSource; import org.drools.ruleunits.api.DataStore; diff --git a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/resources/org/kie/kogito/queries/RuleUnitQuery.drl b/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/resources/org/acme/queries/RuleUnitQuery.drl similarity index 93% rename from kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/resources/org/kie/kogito/queries/RuleUnitQuery.drl rename to kogito-quarkus-examples/ruleunit-quarkus-example/src/main/resources/org/acme/queries/RuleUnitQuery.drl index 2f14454ead..4a55746570 100644 --- a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/resources/org/kie/kogito/queries/RuleUnitQuery.drl +++ b/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/resources/org/acme/queries/RuleUnitQuery.drl @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; unit LoanUnit; -import org.kie.kogito.queries.LoanApplication; -import org.kie.kogito.queries.AllAmounts; +import org.acme.queries.LoanApplication; +import org.acme.queries.AllAmounts; rule SmallDepositApprove when $l: /loanApplications[ applicant.age >= 20, deposit < 1000, amount <= 2000 ] diff --git a/kogito-quarkus-examples/ruleunit-quarkus-example/src/test/java/org/kie/kogito/decisiontable/quarkus/ruleunit/NativeRestQueryTestIT.java b/kogito-quarkus-examples/ruleunit-quarkus-example/src/test/java/org/acme/decisiontable/quarkus/ruleunit/NativeRestQueryTestIT.java similarity index 93% rename from kogito-quarkus-examples/ruleunit-quarkus-example/src/test/java/org/kie/kogito/decisiontable/quarkus/ruleunit/NativeRestQueryTestIT.java rename to kogito-quarkus-examples/ruleunit-quarkus-example/src/test/java/org/acme/decisiontable/quarkus/ruleunit/NativeRestQueryTestIT.java index ae65452de2..44964ea463 100644 --- a/kogito-quarkus-examples/ruleunit-quarkus-example/src/test/java/org/kie/kogito/decisiontable/quarkus/ruleunit/NativeRestQueryTestIT.java +++ b/kogito-quarkus-examples/ruleunit-quarkus-example/src/test/java/org/acme/decisiontable/quarkus/ruleunit/NativeRestQueryTestIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.decisiontable.quarkus.ruleunit; +package org.acme.decisiontable.quarkus.ruleunit; import io.quarkus.test.junit.NativeImageTest; diff --git a/kogito-quarkus-examples/ruleunit-quarkus-example/src/test/java/org/kie/kogito/decisiontable/quarkus/ruleunit/RestQueryTest.java b/kogito-quarkus-examples/ruleunit-quarkus-example/src/test/java/org/acme/decisiontable/quarkus/ruleunit/RestQueryTest.java similarity index 98% rename from kogito-quarkus-examples/ruleunit-quarkus-example/src/test/java/org/kie/kogito/decisiontable/quarkus/ruleunit/RestQueryTest.java rename to kogito-quarkus-examples/ruleunit-quarkus-example/src/test/java/org/acme/decisiontable/quarkus/ruleunit/RestQueryTest.java index c9cda39bbd..db973f609a 100644 --- a/kogito-quarkus-examples/ruleunit-quarkus-example/src/test/java/org/kie/kogito/decisiontable/quarkus/ruleunit/RestQueryTest.java +++ b/kogito-quarkus-examples/ruleunit-quarkus-example/src/test/java/org/acme/decisiontable/quarkus/ruleunit/RestQueryTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.decisiontable.quarkus.ruleunit; +package org.acme.decisiontable.quarkus.ruleunit; import org.junit.jupiter.api.Test; diff --git a/kogito-quarkus-examples/trusty-tracing-quarkus-devservices/pom.xml b/kogito-quarkus-examples/trusty-tracing-quarkus-devservices/pom.xml index 90831591a0..e36d455787 100644 --- a/kogito-quarkus-examples/trusty-tracing-quarkus-devservices/pom.xml +++ b/kogito-quarkus-examples/trusty-tracing-quarkus-devservices/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-quarkus-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/decisiontable-springboot-example/pom.xml b/kogito-springboot-examples/decisiontable-springboot-example/pom.xml index a6cc7875ee..cc7ba0719e 100644 --- a/kogito-springboot-examples/decisiontable-springboot-example/pom.xml +++ b/kogito-springboot-examples/decisiontable-springboot-example/pom.xml @@ -3,7 +3,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/kie/kogito/queries/Applicant.java b/kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/acme/queries/Applicant.java similarity index 97% rename from kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/kie/kogito/queries/Applicant.java rename to kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/acme/queries/Applicant.java index 175d3a98d5..c63d1274c8 100644 --- a/kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/kie/kogito/queries/Applicant.java +++ b/kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/acme/queries/Applicant.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; public class Applicant { diff --git a/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/kie/kogito/legacy/KogitoSpringbootApplication.java b/kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/acme/queries/KogitoSpringbootApplication.java similarity index 95% rename from kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/kie/kogito/legacy/KogitoSpringbootApplication.java rename to kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/acme/queries/KogitoSpringbootApplication.java index 1d841598f7..05518ab0e3 100644 --- a/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/kie/kogito/legacy/KogitoSpringbootApplication.java +++ b/kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/acme/queries/KogitoSpringbootApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.legacy; +package org.acme.queries; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.drools.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) public class KogitoSpringbootApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/kie/kogito/queries/LoanApplication.java b/kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/acme/queries/LoanApplication.java similarity index 98% rename from kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/kie/kogito/queries/LoanApplication.java rename to kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/acme/queries/LoanApplication.java index 70eec1c4e3..a6a205d958 100644 --- a/kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/kie/kogito/queries/LoanApplication.java +++ b/kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/acme/queries/LoanApplication.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; public class LoanApplication { diff --git a/kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/kie/kogito/queries/LoanUnit.java b/kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/acme/queries/LoanUnit.java similarity index 97% rename from kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/kie/kogito/queries/LoanUnit.java rename to kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/acme/queries/LoanUnit.java index 3d35a77609..063377fe07 100644 --- a/kogito-quarkus-examples/decisiontable-quarkus-example/src/main/java/org/kie/kogito/queries/LoanUnit.java +++ b/kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/acme/queries/LoanUnit.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; import org.drools.ruleunits.api.DataSource; import org.drools.ruleunits.api.DataStore; diff --git a/kogito-quarkus-examples/decisiontable-quarkus-example/src/main/resources/org/kie/kogito/queries/LoanUnit.drl.xls b/kogito-springboot-examples/decisiontable-springboot-example/src/main/resources/org/acme/queries/LoanUnit.drl.xls similarity index 57% rename from kogito-quarkus-examples/decisiontable-quarkus-example/src/main/resources/org/kie/kogito/queries/LoanUnit.drl.xls rename to kogito-springboot-examples/decisiontable-springboot-example/src/main/resources/org/acme/queries/LoanUnit.drl.xls index cfa4b8db5f3d0134512e113f8531fb4b2eaaeed8..5e9e0040f48b41c25cb27c8e58c55fc687adb489 100644 GIT binary patch delta 974 zcmbtT%WD&15T9A|*fa@gN)jW*JTSy0q`{S{5k(9wLQx};mV$V235!OWY?=oO7B=2I z^pN!X2NVSl3R?Cg2rVAOlb$399`qo1@YsWjCeF9nw2^poK8D$yncuvaX*V;Tkg||YkR+3jF@*Odd?LQ0wSpO@B4Ho4a zYFU;bpcy6yyyTq`@0kYqUBC;&(ZUXlLI~x6i)ux!SLLE2!L(Vm5s#+hggLcYD=D=| zUb!W~04o|n2?`Ev6g)XvC-Q+%g{E%2z%bk=4{=aBIeTESR95OdQRFgpSCL@oVhs0R zE+PH1c+iSZ^}ZX?z9XEZh$-Ffc_C<%0BY@eMlP0>%xY7i9_o>CRpx>!S8~FAG_H zJ-8*Z<=}CakA>OIsBbq9UuV0SM+oU_(X`;{QYYU@cN$XsvB!sAZx)gmp>~Yh;FumQ zyVaB&&;RvE{1dY6#MfZ^w%zNMWy*Kk(cU$wDRW5DSPRmeG z-JO5V`dbG>bo!b;Nkr}48?QN1^&HvlWXP7Pq}%wD>EKE>*|qjxPqG#bd~QUUc6f?D zVBHBf8AcIlo~FmNK=3MFU}M(c~oKnRcJzMBA`q+yOmk`AtI*vbA;LO zMl?S(+d1ZeJv9Y7-@H2hR_P8(>&yO$^Cn*?rkJHtddAx9ls+oCJ$lh>5AS*Ma`b}a z3;vrirKC{VH#3278A8cECOgwuYs^e{&x1AP@y{%+iH2MbE=566t_PEme=vOKpfUCJ z%O@M&Gop!AQxD#=R8=00z$7y&%-NeK3lA3e=reX>aYPQ!Hgbd;JL(s7gfHupv;7_9 jLW(4Z3LzH9N=@)MC2Og<{vbU7r&aXb>|gXt*$%x diff --git a/kogito-springboot-examples/decisiontable-springboot-example/src/test/java/org/kie/kogito/decisiontable/springboot/RestQueryTest.java b/kogito-springboot-examples/decisiontable-springboot-example/src/test/java/org/acme/decisiontable/springboot/RestQueryTest.java similarity index 97% rename from kogito-springboot-examples/decisiontable-springboot-example/src/test/java/org/kie/kogito/decisiontable/springboot/RestQueryTest.java rename to kogito-springboot-examples/decisiontable-springboot-example/src/test/java/org/acme/decisiontable/springboot/RestQueryTest.java index 30860d23fb..7e735b7de3 100644 --- a/kogito-springboot-examples/decisiontable-springboot-example/src/test/java/org/kie/kogito/decisiontable/springboot/RestQueryTest.java +++ b/kogito-springboot-examples/decisiontable-springboot-example/src/test/java/org/acme/decisiontable/springboot/RestQueryTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.decisiontable.springboot; +package org.acme.decisiontable.springboot; +import org.acme.queries.KogitoSpringbootApplication; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.kie.kogito.queries.KogitoSpringbootApplication; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.web.server.LocalServerPort; import org.springframework.test.annotation.DirtiesContext; diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/pom.xml b/kogito-springboot-examples/dmn-drools-springboot-metrics/pom.xml index 67de35feea..19aaeedb72 100755 --- a/kogito-springboot-examples/dmn-drools-springboot-metrics/pom.xml +++ b/kogito-springboot-examples/dmn-drools-springboot-metrics/pom.xml @@ -5,12 +5,12 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT dmn-drools-springboot-metrics - Kogito Example :: DMN Metrics SpringBoot + Kogito Example :: DMN Drools SpringBoot Metrics 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/filtered-resources/META-INF/dashboards/domain-dashboard-dmn-drools-springboot-metrics-Custom.json b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/filtered-resources/META-INF/dashboards/domain-dashboard-dmn-drools-springboot-metrics-Custom.json index ea0c67bf6d..369f323736 100644 --- a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/filtered-resources/META-INF/dashboards/domain-dashboard-dmn-drools-springboot-metrics-Custom.json +++ b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/filtered-resources/META-INF/dashboards/domain-dashboard-dmn-drools-springboot-metrics-Custom.json @@ -1 +1,211 @@ -{"id":"-1553684235","uid":"4c69e1c6-b58d-4371-953c-2fa2ab4157bb","title":"dmn-drools-springboot-metrics_${project.version} - Custom - Domain Dashboard","tags":[],"style":"dark","timezone":"","editable":true,"hideControls":false,"graphTooltip":0,"panels":[{"type":"graph","title":"Decision Eligibility","gridPos":{"x":0,"y":0,"w":12,"h":8},"id":1,"pluginVersion":"6.6.1","targets":[{"expr":"sum by (identifier) (increase(string_dmn_result_total{endpoint=\"LoanEligibility\",decision=\"Eligibility\",artifactId=\"dmn-drools-springboot-metrics\",version=\"${project.version}\"}[1m]))","format":"time_series","intervalFactor":2,"refId":"A","instant":false}],"bars":false,"dashes":false,"fill":1,"fillGradient":0,"hiddenSeries":false,"linewidth":1,"pointradius":2,"points":false,"percentage":false,"renderer":"flot","spaceLength":10,"stack":false,"steppedLine":false,"lines":true,"dashLength":0},{"type":"graph","title":"Decision Judgement","gridPos":{"x":12,"y":0,"w":12,"h":8},"id":2,"pluginVersion":"6.6.1","targets":[{"expr":"sum by (identifier) (increase(string_dmn_result_total{endpoint=\"LoanEligibility\",decision=\"Judgement\",artifactId=\"dmn-drools-springboot-metrics\",version=\"${project.version}\"}[1m]))","format":"time_series","intervalFactor":2,"refId":"A","instant":false}],"bars":false,"dashes":false,"fill":1,"fillGradient":0,"hiddenSeries":false,"linewidth":1,"pointradius":2,"points":false,"percentage":false,"renderer":"flot","spaceLength":10,"stack":false,"steppedLine":false,"lines":true,"dashLength":0},{"type":"graph","title":"Decision Is Enough?","gridPos":{"x":0,"y":8,"w":12,"h":8},"id":3,"pluginVersion":"6.6.1","targets":[{"expr":"(sum(increase(number_dmn_result_sum{endpoint=\"LoanEligibility\",decision=\"Is Enough?\",artifactId=\"dmn-drools-springboot-metrics\",version=\"${project.version}\"}[1m])))/(sum(increase(number_dmn_result_count{endpoint=\"LoanEligibility\",decision=\"Is Enough?\",artifactId=\"dmn-drools-springboot-metrics\",version=\"${project.version}\"}[1m])))","format":"time_series","intervalFactor":2,"refId":"A","instant":false}],"bars":false,"dashes":false,"fill":1,"fillGradient":0,"hiddenSeries":false,"linewidth":1,"pointradius":2,"points":false,"percentage":false,"renderer":"flot","spaceLength":10,"stack":false,"steppedLine":false,"lines":true,"dashLength":0},{"type":"graph","title":"Decision Decide","gridPos":{"x":12,"y":8,"w":12,"h":8},"id":4,"pluginVersion":"6.6.1","targets":[{"expr":"sum by (identifier) (increase(boolean_dmn_result_total{endpoint=\"LoanEligibility\",decision=\"Decide\",artifactId=\"dmn-drools-springboot-metrics\",version=\"${project.version}\"}[1m]))","format":"time_series","intervalFactor":2,"refId":"A","instant":false}],"bars":false,"dashes":false,"fill":1,"fillGradient":0,"hiddenSeries":false,"linewidth":1,"pointradius":2,"points":false,"percentage":false,"renderer":"flot","spaceLength":10,"stack":false,"steppedLine":false,"lines":true,"dashLength":0}],"time":{"from":"now-10m","to":"now"},"timepicker":{"time_options":["5m","15m","1h","6h","12h","24h","2d","7d","30d"],"refresh_intervals":["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"],"now":false,"notice":false,"enable":false,"collapse":false},"templating":{"enable":false,"list":[]},"refresh":"5s","schemaVersion":22,"version":14,"links":[],"annotations":{"list":[{"builtIn":1,"datasource":"-- Grafana --","enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations & Alerts","type":"dashboard"}]}} \ No newline at end of file +{ + "id": "-1553684235", + "uid": "4c69e1c6-b58d-4371-953c-2fa2ab4157bb", + "title": "dmn-drools-springboot-metrics_${project.version} - Custom - Domain Dashboard", + "tags": [], + "style": "dark", + "timezone": "", + "editable": true, + "hideControls": false, + "graphTooltip": 0, + "panels": [ + { + "type": "graph", + "title": "Decision Eligibility", + "gridPos": { + "x": 0, + "y": 0, + "w": 12, + "h": 8 + }, + "id": 1, + "pluginVersion": "6.6.1", + "targets": [ + { + "expr": "sum by (identifier) (increase(string_dmn_result_total{endpoint=\"LoanEligibility\",decision=\"Eligibility\",artifactId=\"dmn-drools-springboot-metrics\",version=\"${project.version}\"}[1m]))", + "format": "time_series", + "intervalFactor": 2, + "refId": "A", + "instant": false + } + ], + "bars": false, + "dashes": false, + "fill": 1, + "fillGradient": 0, + "hiddenSeries": false, + "linewidth": 1, + "pointradius": 2, + "points": false, + "percentage": false, + "renderer": "flot", + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "lines": true, + "dashLength": 0 + }, + { + "type": "graph", + "title": "Decision Judgement", + "gridPos": { + "x": 12, + "y": 0, + "w": 12, + "h": 8 + }, + "id": 2, + "pluginVersion": "6.6.1", + "targets": [ + { + "expr": "sum by (identifier) (increase(string_dmn_result_total{endpoint=\"LoanEligibility\",decision=\"Judgement\",artifactId=\"dmn-drools-springboot-metrics\",version=\"${project.version}\"}[1m]))", + "format": "time_series", + "intervalFactor": 2, + "refId": "A", + "instant": false + } + ], + "bars": false, + "dashes": false, + "fill": 1, + "fillGradient": 0, + "hiddenSeries": false, + "linewidth": 1, + "pointradius": 2, + "points": false, + "percentage": false, + "renderer": "flot", + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "lines": true, + "dashLength": 0 + }, + { + "type": "graph", + "title": "Decision Is Enough?", + "gridPos": { + "x": 0, + "y": 8, + "w": 12, + "h": 8 + }, + "id": 3, + "pluginVersion": "6.6.1", + "targets": [ + { + "expr": "(sum(increase(number_dmn_result_sum{endpoint=\"LoanEligibility\",decision=\"Is Enough?\",artifactId=\"dmn-drools-springboot-metrics\",version=\"${project.version}\"}[1m])))/(sum(increase(number_dmn_result_count{endpoint=\"LoanEligibility\",decision=\"Is Enough?\",artifactId=\"dmn-drools-springboot-metrics\",version=\"${project.version}\"}[1m])))", + "format": "time_series", + "intervalFactor": 2, + "refId": "A", + "instant": false + } + ], + "bars": false, + "dashes": false, + "fill": 1, + "fillGradient": 0, + "hiddenSeries": false, + "linewidth": 1, + "pointradius": 2, + "points": false, + "percentage": false, + "renderer": "flot", + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "lines": true, + "dashLength": 0 + }, + { + "type": "graph", + "title": "Decision Decide", + "gridPos": { + "x": 12, + "y": 8, + "w": 12, + "h": 8 + }, + "id": 4, + "pluginVersion": "6.6.1", + "targets": [ + { + "expr": "sum by (identifier) (increase(boolean_dmn_result_total{endpoint=\"LoanEligibility\",decision=\"Decide\",artifactId=\"dmn-drools-springboot-metrics\",version=\"${project.version}\"}[1m]))", + "format": "time_series", + "intervalFactor": 2, + "refId": "A", + "instant": false + } + ], + "bars": false, + "dashes": false, + "fill": 1, + "fillGradient": 0, + "hiddenSeries": false, + "linewidth": 1, + "pointradius": 2, + "points": false, + "percentage": false, + "renderer": "flot", + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "lines": true, + "dashLength": 0 + } + ], + "time": { + "from": "now-10m", + "to": "now" + }, + "timepicker": { + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ], + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "now": false, + "notice": false, + "enable": false, + "collapse": false + }, + "templating": { + "enable": false, + "list": [] + }, + "refresh": "5s", + "schemaVersion": 22, + "version": 14, + "links": [], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + } +} \ No newline at end of file diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/filtered-resources/META-INF/dashboards/operational-dashboard-dmn-drools-springboot-metrics-Custom.json b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/filtered-resources/META-INF/dashboards/operational-dashboard-dmn-drools-springboot-metrics-Custom.json index bcafbe6296..5e66d2c24b 100644 --- a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/filtered-resources/META-INF/dashboards/operational-dashboard-dmn-drools-springboot-metrics-Custom.json +++ b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/filtered-resources/META-INF/dashboards/operational-dashboard-dmn-drools-springboot-metrics-Custom.json @@ -1 +1,469 @@ -{"id":"685152267","uid":"7d6b35da-af42-47f6-bf2c-bedc4caaa7e7","title":"dmn-drools-springboot-metrics_${project.version} - Custom - Operational Dashboard","tags":[],"style":"dark","timezone":"","editable":true,"hideControls":false,"graphTooltip":0,"panels":[{"type":"stat","title":"LoanEligibility endpoint request count per day","gridPos":{"x":0,"y":0,"w":12,"h":8},"id":1,"pluginVersion":"6.6.1","targets":[{"expr":"sum(increase(api_http_response_code_total{endpoint=\"LoanEligibility\", artifactId=\"dmn-drools-springboot-metrics\", version=\"${project.version}\"}[1d]))","format":"time_series","intervalFactor":1,"refId":"A","instant":false}],"links":[],"options":{"colorMode":"value","fieldOptions":{"calcs":["last"],"defaults":{"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green"}]}},"overrides":[],"values":false},"graphMode":"area","justifyMode":"auto","orientation":"auto"}},{"type":"graph","title":"Average requests per minute to LoanEligibility endpoint","gridPos":{"x":12,"y":0,"w":12,"h":8},"id":2,"pluginVersion":"6.6.1","targets":[{"expr":"sum(increase(api_http_response_code_total{endpoint=\"LoanEligibility\", artifactId=\"dmn-drools-springboot-metrics\", version=\"${project.version}\"}[1m]))","intervalFactor":2,"refId":"A","instant":false}],"bars":false,"dashes":false,"fill":1,"fillGradient":0,"hiddenSeries":false,"linewidth":1,"pointradius":2,"points":false,"percentage":false,"renderer":"flot","spaceLength":10,"stack":false,"steppedLine":false,"lines":true,"aliasColors":{},"dashLength":10,"legend":{"alignAsTable":false,"avg":false,"current":false,"hideEmpty":false,"hideZero":false,"legend":false,"max":false,"min":false,"rightSide":false,"show":false,"total":false,"values":false},"nullPointMode":"null","seriesOverrides":[],"thresholds":[],"timeRegions":[],"tooltip":{"shared":true,"sort":0,"value_type":"individual","show":false,"showHistogram":false},"xaxis":{"mode":"time","show":false,"values":[]},"yaxes":[{"format":"short","logBase":1,"min":"0","show":true},{"format":"short","logBase":1,"show":false}],"yaxis":{"align":false},"options":{"dataLinks":[]}},{"type":"graph","title":"Execution time quantiles for endpoint LoanEligibility","gridPos":{"x":0,"y":8,"w":12,"h":8},"id":3,"pluginVersion":"6.6.1","targets":[{"expr":"sum(increase(api_execution_elapsed_seconds_sum{endpoint=\"LoanEligibility\", artifactId=\"dmn-drools-springboot-metrics\", version=\"${project.version}\"}[1m]))/sum(increase(api_execution_elapsed_seconds_count{endpoint=\"LoanEligibility\", artifactId=\"dmn-drools-springboot-metrics\", version=\"${project.version}\"}[1m]))","format":"time_series","intervalFactor":1,"refId":"A","instant":false}],"links":[],"bars":false,"dashes":false,"fill":1,"fillGradient":0,"hiddenSeries":false,"linewidth":1,"pointradius":2,"points":false,"percentage":false,"renderer":"flot","spaceLength":10,"stack":false,"steppedLine":false,"lines":true,"aliasColors":{},"dashLength":10,"legend":{"alignAsTable":true,"avg":false,"current":false,"hideEmpty":false,"hideZero":false,"legend":false,"max":false,"min":false,"rightSide":false,"show":true,"total":false,"values":false},"nullPointMode":"null","seriesOverrides":[],"thresholds":[],"timeRegions":[],"tooltip":{"shared":true,"sort":0,"value_type":"individual","show":false,"showHistogram":false},"xaxis":{"mode":"time","show":true,"values":[]},"yaxes":[{"format":"s","logBase":1,"show":true},{"format":"none","logBase":1,"show":false}],"yaxis":{"align":false},"options":{"dataLinks":[]}},{"type":"graph","title":"LoanEligibility endpoint status code responses per minute","gridPos":{"x":12,"y":8,"w":12,"h":8},"id":4,"pluginVersion":"6.6.1","targets":[{"expr":"sum by (identifier) (increase(api_http_response_code_total{endpoint=\"LoanEligibility\", artifactId=\"dmn-drools-springboot-metrics\", version=\"${project.version}\"}[1m]))","intervalFactor":2,"refId":"A","instant":false}],"bars":false,"dashes":false,"fill":1,"fillGradient":0,"hiddenSeries":false,"linewidth":1,"pointradius":2,"points":false,"percentage":false,"renderer":"flot","spaceLength":10,"stack":false,"steppedLine":false,"lines":true,"aliasColors":{},"dashLength":10,"legend":{"alignAsTable":false,"avg":false,"current":false,"hideEmpty":false,"hideZero":false,"legend":false,"max":false,"min":false,"rightSide":false,"show":true,"total":false,"values":false},"nullPointMode":"null","seriesOverrides":[],"thresholds":[],"timeRegions":[],"tooltip":{"shared":true,"sort":0,"value_type":"individual","show":false,"showHistogram":false},"xaxis":{"mode":"time","show":true,"values":[]},"yaxes":[{"format":"short","logBase":1,"show":true},{"format":"short","logBase":1,"show":true}],"yaxis":{"align":false},"options":{"dataLinks":[]}},{"type":"table","title":"Exceptions details","gridPos":{"x":0,"y":16,"w":12,"h":8},"id":5,"pluginVersion":"6.6.1","targets":[{"expr":"sum by (identifier) (increase(api_http_stacktrace_exceptions_total{endpoint=\"LoanEligibility\", artifactId=\"dmn-drools-springboot-metrics\", version=\"${project.version}\"}[1d]))","format":"table","intervalFactor":2,"refId":"A","instant":true}],"fontSize":"100%","showHeader":true,"styles":[{"alias":"Time","align":"auto","pattern":"Time","type":"date","dateFormat":"YYYY-MM-DD HH:mm:ss"},{"alias":"","align":"right","pattern":"/.*/","type":"number","colors":["rgba(245, 54, 54, 0.9)","rgba(237, 129, 40, 0.89)","rgba(50, 172, 45, 0.97)"],"decimals":2,"thresholds":[],"unit":"short"}],"transform":"table","sort":{"col":0,"desc":true},"columns":[],"options":{}},{"type":"stat","title":"Exception count per day","gridPos":{"x":12,"y":16,"w":12,"h":8},"id":6,"pluginVersion":"6.6.1","targets":[{"expr":"sum(increase(api_http_stacktrace_exceptions_total{endpoint=\"LoanEligibility\", artifactId=\"dmn-drools-springboot-metrics\", version=\"${project.version}\"}[1d]))","intervalFactor":2,"refId":"A","instant":true}],"options":{"colorMode":"value","fieldOptions":{"calcs":["last"],"defaults":{"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green"},{"color":"red","value":80.0}]}},"overrides":[],"values":false},"graphMode":"area","justifyMode":"auto","orientation":"auto"}}],"time":{"from":"now-3h","to":"now"},"timepicker":{"time_options":["5m","15m","1h","6h","12h","24h","2d","7d","30d"],"refresh_intervals":["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"],"now":false,"notice":false,"enable":false,"collapse":false},"templating":{"enable":false,"list":[]},"refresh":"10s","schemaVersion":22,"version":14,"links":[],"annotations":{"list":[{"builtIn":1,"datasource":"-- Grafana --","enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations & Alerts","type":"dashboard"}]}} \ No newline at end of file +{ + "id": "685152267", + "uid": "7d6b35da-af42-47f6-bf2c-bedc4caaa7e7", + "title": "dmn-drools-springboot-metrics_${project.version} - Custom - Operational Dashboard", + "tags": [], + "style": "dark", + "timezone": "", + "editable": true, + "hideControls": false, + "graphTooltip": 0, + "panels": [ + { + "type": "stat", + "title": "LoanEligibility endpoint request count per day", + "gridPos": { + "x": 0, + "y": 0, + "w": 12, + "h": 8 + }, + "id": 1, + "pluginVersion": "6.6.1", + "targets": [ + { + "expr": "sum(increase(api_http_response_code_total{endpoint=\"LoanEligibility\", artifactId=\"dmn-drools-springboot-metrics\", version=\"${project.version}\"}[1d]))", + "format": "time_series", + "intervalFactor": 1, + "refId": "A", + "instant": false + } + ], + "links": [], + "options": { + "colorMode": "value", + "fieldOptions": { + "calcs": [ + "last" + ], + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + } + }, + "overrides": [], + "values": false + }, + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto" + } + }, + { + "type": "graph", + "title": "Average requests per minute to LoanEligibility endpoint", + "gridPos": { + "x": 12, + "y": 0, + "w": 12, + "h": 8 + }, + "id": 2, + "pluginVersion": "6.6.1", + "targets": [ + { + "expr": "sum(increase(api_http_response_code_total{endpoint=\"LoanEligibility\", artifactId=\"dmn-drools-springboot-metrics\", version=\"${project.version}\"}[1m]))", + "intervalFactor": 2, + "refId": "A", + "instant": false + } + ], + "bars": false, + "dashes": false, + "fill": 1, + "fillGradient": 0, + "hiddenSeries": false, + "linewidth": 1, + "pointradius": 2, + "points": false, + "percentage": false, + "renderer": "flot", + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "lines": true, + "aliasColors": {}, + "dashLength": 10, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "hideEmpty": false, + "hideZero": false, + "legend": false, + "max": false, + "min": false, + "rightSide": false, + "show": false, + "total": false, + "values": false + }, + "nullPointMode": "null", + "seriesOverrides": [], + "thresholds": [], + "timeRegions": [], + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual", + "show": false, + "showHistogram": false + }, + "xaxis": { + "mode": "time", + "show": false, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "logBase": 1, + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + }, + "options": { + "dataLinks": [] + } + }, + { + "type": "graph", + "title": "Execution time quantiles for endpoint LoanEligibility", + "gridPos": { + "x": 0, + "y": 8, + "w": 12, + "h": 8 + }, + "id": 3, + "pluginVersion": "6.6.1", + "targets": [ + { + "expr": "sum(increase(api_execution_elapsed_seconds_sum{endpoint=\"LoanEligibility\", artifactId=\"dmn-drools-springboot-metrics\", version=\"${project.version}\"}[1m]))/sum(increase(api_execution_elapsed_seconds_count{endpoint=\"LoanEligibility\", artifactId=\"dmn-drools-springboot-metrics\", version=\"${project.version}\"}[1m]))", + "format": "time_series", + "intervalFactor": 1, + "refId": "A", + "instant": false + } + ], + "links": [], + "bars": false, + "dashes": false, + "fill": 1, + "fillGradient": 0, + "hiddenSeries": false, + "linewidth": 1, + "pointradius": 2, + "points": false, + "percentage": false, + "renderer": "flot", + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "lines": true, + "aliasColors": {}, + "dashLength": 10, + "legend": { + "alignAsTable": true, + "avg": false, + "current": false, + "hideEmpty": false, + "hideZero": false, + "legend": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false + }, + "nullPointMode": "null", + "seriesOverrides": [], + "thresholds": [], + "timeRegions": [], + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual", + "show": false, + "showHistogram": false + }, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "s", + "logBase": 1, + "show": true + }, + { + "format": "none", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + }, + "options": { + "dataLinks": [] + } + }, + { + "type": "graph", + "title": "LoanEligibility endpoint status code responses per minute", + "gridPos": { + "x": 12, + "y": 8, + "w": 12, + "h": 8 + }, + "id": 4, + "pluginVersion": "6.6.1", + "targets": [ + { + "expr": "sum by (identifier) (increase(api_http_response_code_total{endpoint=\"LoanEligibility\", artifactId=\"dmn-drools-springboot-metrics\", version=\"${project.version}\"}[1m]))", + "intervalFactor": 2, + "refId": "A", + "instant": false + } + ], + "bars": false, + "dashes": false, + "fill": 1, + "fillGradient": 0, + "hiddenSeries": false, + "linewidth": 1, + "pointradius": 2, + "points": false, + "percentage": false, + "renderer": "flot", + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "lines": true, + "aliasColors": {}, + "dashLength": 10, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "hideEmpty": false, + "hideZero": false, + "legend": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "total": false, + "values": false + }, + "nullPointMode": "null", + "seriesOverrides": [], + "thresholds": [], + "timeRegions": [], + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual", + "show": false, + "showHistogram": false + }, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "logBase": 1, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + }, + "options": { + "dataLinks": [] + } + }, + { + "type": "table", + "title": "Exceptions details", + "gridPos": { + "x": 0, + "y": 16, + "w": 12, + "h": 8 + }, + "id": 5, + "pluginVersion": "6.6.1", + "targets": [ + { + "expr": "sum by (identifier) (increase(api_http_stacktrace_exceptions_total{endpoint=\"LoanEligibility\", artifactId=\"dmn-drools-springboot-metrics\", version=\"${project.version}\"}[1d]))", + "format": "table", + "intervalFactor": 2, + "refId": "A", + "instant": true + } + ], + "fontSize": "100%", + "showHeader": true, + "styles": [ + { + "alias": "Time", + "align": "auto", + "pattern": "Time", + "type": "date", + "dateFormat": "YYYY-MM-DD HH:mm:ss" + }, + { + "alias": "", + "align": "right", + "pattern": "/.*/", + "type": "number", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "decimals": 2, + "thresholds": [], + "unit": "short" + } + ], + "transform": "table", + "sort": { + "col": 0, + "desc": true + }, + "columns": [], + "options": {} + }, + { + "type": "stat", + "title": "Exception count per day", + "gridPos": { + "x": 12, + "y": 16, + "w": 12, + "h": 8 + }, + "id": 6, + "pluginVersion": "6.6.1", + "targets": [ + { + "expr": "sum(increase(api_http_stacktrace_exceptions_total{endpoint=\"LoanEligibility\", artifactId=\"dmn-drools-springboot-metrics\", version=\"${project.version}\"}[1d]))", + "intervalFactor": 2, + "refId": "A", + "instant": true + } + ], + "options": { + "colorMode": "value", + "fieldOptions": { + "calcs": [ + "last" + ], + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80.0 + } + ] + } + }, + "overrides": [], + "values": false + }, + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto" + } + } + ], + "time": { + "from": "now-3h", + "to": "now" + }, + "timepicker": { + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ], + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "now": false, + "notice": false, + "enable": false, + "collapse": false + }, + "templating": { + "enable": false, + "list": [] + }, + "refresh": "10s", + "schemaVersion": 22, + "version": 14, + "links": [], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + } +} \ No newline at end of file diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/kie/kogito/app/CustomDMNRuntimeEventListener.java b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/acme/app/CustomDMNRuntimeEventListener.java similarity index 95% rename from kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/kie/kogito/app/CustomDMNRuntimeEventListener.java rename to kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/acme/app/CustomDMNRuntimeEventListener.java index 8aa7c6e104..3e149f2a64 100644 --- a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/kie/kogito/app/CustomDMNRuntimeEventListener.java +++ b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/acme/app/CustomDMNRuntimeEventListener.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.app; +package org.acme.app; import org.kie.dmn.api.core.event.AfterEvaluateAllEvent; import org.kie.dmn.api.core.event.AfterEvaluateContextEntryEvent; @@ -86,7 +86,7 @@ public void afterEvaluateAll(AfterEvaluateAllEvent event) { private void registerEvent(DMNEvent event) { logger.debug(event.getClass().getSimpleName()); - prometheusMeterRegistry.counter("org.kie.kogito.examples.customdmnruntimeeventlistener", "event", + prometheusMeterRegistry.counter("org.acme.examples.customdmnruntimeeventlistener", "event", event.getClass().getSimpleName().toLowerCase()).increment(); } } diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/kie/kogito/app/RuleEventListenerConfig.java b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/acme/app/RuleEventListenerConfig.java similarity index 93% rename from kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/kie/kogito/app/RuleEventListenerConfig.java rename to kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/acme/app/RuleEventListenerConfig.java index ec19ada235..29db5b2d80 100644 --- a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/kie/kogito/app/RuleEventListenerConfig.java +++ b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/acme/app/RuleEventListenerConfig.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.app; +package org.acme.app; +import org.acme.examples.CustomRuleEventListener; import org.kie.kogito.drools.core.config.DefaultRuleEventListenerConfig; -import org.kie.kogito.examples.CustomRuleEventListener; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Configuration; diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/kie/kogito/examples/CustomRuleEventListener.java b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/acme/examples/CustomRuleEventListener.java similarity index 96% rename from kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/kie/kogito/examples/CustomRuleEventListener.java rename to kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/acme/examples/CustomRuleEventListener.java index af8bb110d9..04b1e0b906 100644 --- a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/kie/kogito/examples/CustomRuleEventListener.java +++ b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/acme/examples/CustomRuleEventListener.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.drools.core.event.DefaultAgendaEventListener; import org.kie.api.event.KieRuntimeEvent; @@ -102,7 +102,7 @@ public void afterRuleFlowGroupDeactivated(RuleFlowGroupDeactivatedEvent event) { private void registerEvent(KieRuntimeEvent event) { logger.debug(event.getClass().getSimpleName()); - prometheusMeterRegistry.counter("org.kie.kogito.examples.customruleeventlistener", "event", + prometheusMeterRegistry.counter("org.acme.examples.customruleeventlistener", "event", event.getClass().getSimpleName().toLowerCase()).increment(); } } diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/kie/kogito/examples/Hello.java b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/acme/examples/Hello.java similarity index 96% rename from kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/kie/kogito/examples/Hello.java rename to kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/acme/examples/Hello.java index f9a66b2d24..9e77c14ed1 100644 --- a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/kie/kogito/examples/Hello.java +++ b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/acme/examples/Hello.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.drools.ruleunits.api.DataSource; import org.drools.ruleunits.api.DataStore; diff --git a/kogito-springboot-examples/pmml-event-driven-springboot/src/main/java/org/kie/kogito/pmml/springboot/example/KogitoSpringbootApplication.java b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/acme/examples/springboot/KogitoSpringbootApplication.java similarity index 93% rename from kogito-springboot-examples/pmml-event-driven-springboot/src/main/java/org/kie/kogito/pmml/springboot/example/KogitoSpringbootApplication.java rename to kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/acme/examples/springboot/KogitoSpringbootApplication.java index 96dbd9d8d6..0a7bcb8147 100644 --- a/kogito-springboot-examples/pmml-event-driven-springboot/src/main/java/org/kie/kogito/pmml/springboot/example/KogitoSpringbootApplication.java +++ b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/acme/examples/springboot/KogitoSpringbootApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.pmml.springboot.example; +package org.acme.examples.springboot; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "test**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**", "http**" }) public class KogitoSpringbootApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/resources/org/kie/kogito/examples/Hello.drl b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/resources/org/acme/examples/Hello.drl similarity index 95% rename from kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/resources/org/kie/kogito/examples/Hello.drl rename to kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/resources/org/acme/examples/Hello.drl index e6d2073438..1d08d9af73 100644 --- a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/resources/org/kie/kogito/examples/Hello.drl +++ b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/resources/org/acme/examples/Hello.drl @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; unit Hello; rule helloWorld diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/resources/org/kie/kogito/examples/LoanEligibility.dmn b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/resources/org/acme/examples/LoanEligibility.dmn similarity index 100% rename from kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/resources/org/kie/kogito/examples/LoanEligibility.dmn rename to kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/resources/org/acme/examples/LoanEligibility.dmn diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/resources/org/kie/kogito/examples/Traffic Violation.dmn b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/resources/org/acme/examples/Traffic Violation.dmn similarity index 100% rename from kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/resources/org/kie/kogito/examples/Traffic Violation.dmn rename to kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/resources/org/acme/examples/Traffic Violation.dmn diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/kie/kogito/examples/springboot/DashboardsListTest.java b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/acme/examples/springboot/DashboardsListTest.java similarity index 97% rename from kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/kie/kogito/examples/springboot/DashboardsListTest.java rename to kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/acme/examples/springboot/DashboardsListTest.java index a0ae9e8eb2..de3f9cc38d 100644 --- a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/kie/kogito/examples/springboot/DashboardsListTest.java +++ b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/acme/examples/springboot/DashboardsListTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.springboot; +package org.acme.examples.springboot; import java.util.List; diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/kie/kogito/examples/springboot/DroolsMetricsTest.java b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/acme/examples/springboot/DroolsMetricsTest.java similarity index 87% rename from kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/kie/kogito/examples/springboot/DroolsMetricsTest.java rename to kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/acme/examples/springboot/DroolsMetricsTest.java index abebfb6da0..e0b9ced3b0 100644 --- a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/kie/kogito/examples/springboot/DroolsMetricsTest.java +++ b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/acme/examples/springboot/DroolsMetricsTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.springboot; +package org.acme.examples.springboot; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -72,21 +72,21 @@ public void testDrlMetrics() { .get("/actuator/prometheus") .then() .statusCode(200) - .body(containsString("org_kie_kogito_examples_customruleeventlistener_total{event=\"afteractivationfiredeventimpl" + + .body(containsString("org_acme_examples_customruleeventlistener_total{event=\"afteractivationfiredeventimpl" + "\",} 1.0")); given() .when() .get("/actuator/prometheus") .then() .statusCode(200) - .body(containsString("org_kie_kogito_examples_customruleeventlistener_total{event=\"beforeactivationfiredeventimpl" + + .body(containsString("org_acme_examples_customruleeventlistener_total{event=\"beforeactivationfiredeventimpl" + "\",} 1.0")); given() .when() .get("/actuator/prometheus") .then() .statusCode(200) - .body(containsString("org_kie_kogito_examples_customruleeventlistener_total{event=\"activationcreatedeventimpl" + + .body(containsString("org_acme_examples_customruleeventlistener_total{event=\"activationcreatedeventimpl" + "\",} 1.0")); } } diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/kie/kogito/examples/springboot/GrafanaDockerComposeIT.java b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/acme/examples/springboot/GrafanaDockerComposeIT.java similarity index 97% rename from kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/kie/kogito/examples/springboot/GrafanaDockerComposeIT.java rename to kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/acme/examples/springboot/GrafanaDockerComposeIT.java index ddcb5668c4..d721838be3 100644 --- a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/kie/kogito/examples/springboot/GrafanaDockerComposeIT.java +++ b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/acme/examples/springboot/GrafanaDockerComposeIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.springboot; +package org.acme.examples.springboot; import java.io.File; import java.net.URISyntaxException; @@ -66,9 +66,9 @@ public class GrafanaDockerComposeIT { .withStartupTimeout(STARTUP_MINUTES_TIMEOUT)) .withLogConsumer("prometheus_1", new Slf4jLogConsumer(LOGGER)) .withPull(false) - .withLocalCompose(true) + .withLocalCompose(true); //See https://github.com/testcontainers/testcontainers-java/issues/4565 - .withOptions("--compatibility"); + //.withOptions("--compatibility"); } catch (URISyntaxException e) { throw new RuntimeException(e); } diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/kie/kogito/examples/springboot/LoanEligibilityTest.java b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/acme/examples/springboot/LoanEligibilityTest.java similarity index 92% rename from kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/kie/kogito/examples/springboot/LoanEligibilityTest.java rename to kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/acme/examples/springboot/LoanEligibilityTest.java index 894f46759c..028641fed6 100644 --- a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/kie/kogito/examples/springboot/LoanEligibilityTest.java +++ b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/acme/examples/springboot/LoanEligibilityTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.springboot; +package org.acme.examples.springboot; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -130,16 +130,15 @@ public void testEvaluateLoanEligibility() { String.format("api_http_response_code_total{artifactId=\"%s\",endpoint=\"LoanEligibility\",identifier=\"200\",version=\"%s\",} 2.0", PROJECT_ARTIFACT_ID, PROJECT_VERSION))) .body(containsString( String.format("api_execution_elapsed_seconds_count{artifactId=\"%s\",endpoint=\"LoanEligibility\",version=\"%s\",} 2.0", PROJECT_ARTIFACT_ID, PROJECT_VERSION))) - .body(containsString("org_kie_kogito_examples_customdmnruntimeeventlistener_total{event" + + .body(containsString("org_acme_examples_customdmnruntimeeventlistener_total{event" + "=\"beforeevaluatedecisiontableeventimpl\",}")) - .body(containsString("org_kie_kogito_examples_customdmnruntimeeventlistener_total{event" + + .body(containsString("org_acme_examples_customdmnruntimeeventlistener_total{event" + "=\"afterevaluatedecisiontableeventimpl\",}")) - .body(containsString("org_kie_kogito_examples_customdmnruntimeeventlistener_total{event" + + .body(containsString("org_acme_examples_customdmnruntimeeventlistener_total{event" + "=\"beforeevaluatealleventimpl\",}")) - .body(containsString("org_kie_kogito_examples_customdmnruntimeeventlistener_total{event" + + .body(containsString("org_acme_examples_customdmnruntimeeventlistener_total{event" + "=\"afterevaluatealleventimpl\",}")) - .body(containsString("org_kie_kogito_examples_customdmnruntimeeventlistener_total{event" + + .body(containsString("org_acme_examples_customdmnruntimeeventlistener_total{event" + "=\"afterevaluatedecisioneventimpl\",}")); } - } diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/kie/kogito/examples/springboot/ProjectMetadataProvider.java b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/acme/examples/springboot/ProjectMetadataProvider.java similarity index 97% rename from kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/kie/kogito/examples/springboot/ProjectMetadataProvider.java rename to kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/acme/examples/springboot/ProjectMetadataProvider.java index b295acb4f8..6731846354 100644 --- a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/kie/kogito/examples/springboot/ProjectMetadataProvider.java +++ b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/acme/examples/springboot/ProjectMetadataProvider.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.springboot; +package org.acme.examples.springboot; import java.io.IOException; import java.util.Properties; diff --git a/kogito-springboot-examples/dmn-event-driven-springboot/pom.xml b/kogito-springboot-examples/dmn-event-driven-springboot/pom.xml index dfb740f571..a6cfe43ca9 100644 --- a/kogito-springboot-examples/dmn-event-driven-springboot/pom.xml +++ b/kogito-springboot-examples/dmn-event-driven-springboot/pom.xml @@ -6,7 +6,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/dmn-event-driven-springboot/src/main/java/org/kie/kogito/dmn/springboot/example/KogitoSpringbootApplication.java b/kogito-springboot-examples/dmn-event-driven-springboot/src/main/java/org/acme/dmn/springboot/example/KogitoSpringbootApplication.java similarity index 85% rename from kogito-springboot-examples/dmn-event-driven-springboot/src/main/java/org/kie/kogito/dmn/springboot/example/KogitoSpringbootApplication.java rename to kogito-springboot-examples/dmn-event-driven-springboot/src/main/java/org/acme/dmn/springboot/example/KogitoSpringbootApplication.java index 3e65b56318..ee50271f91 100644 --- a/kogito-springboot-examples/dmn-event-driven-springboot/src/main/java/org/kie/kogito/dmn/springboot/example/KogitoSpringbootApplication.java +++ b/kogito-springboot-examples/dmn-event-driven-springboot/src/main/java/org/acme/dmn/springboot/example/KogitoSpringbootApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.springboot.example; +package org.acme.dmn.springboot.example; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.app.**", "org.kie.kogito.**", "http**" }) +@SpringBootApplication(scanBasePackages = { "org.acme.**", "org.kie.kogito.**", "http**" }) public class KogitoSpringbootApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/dmn-event-driven-springboot/src/test/java/org/kie/kogito/examples/DmnEventDrivenIT.java b/kogito-springboot-examples/dmn-event-driven-springboot/src/test/java/org/acme/examples/DmnEventDrivenIT.java similarity index 98% rename from kogito-springboot-examples/dmn-event-driven-springboot/src/test/java/org/kie/kogito/examples/DmnEventDrivenIT.java rename to kogito-springboot-examples/dmn-event-driven-springboot/src/test/java/org/acme/examples/DmnEventDrivenIT.java index 5f27725cd9..05917d1b91 100644 --- a/kogito-springboot-examples/dmn-event-driven-springboot/src/test/java/org/kie/kogito/examples/DmnEventDrivenIT.java +++ b/kogito-springboot-examples/dmn-event-driven-springboot/src/test/java/org/acme/examples/DmnEventDrivenIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.io.IOException; import java.net.URL; @@ -28,10 +28,10 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.stream.Stream; +import org.acme.dmn.springboot.example.KogitoSpringbootApplication; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; -import org.kie.kogito.dmn.springboot.example.KogitoSpringbootApplication; import org.kie.kogito.test.springboot.kafka.KafkaTestClient; import org.kie.kogito.testcontainers.springboot.KafkaSpringBootTestResource; import org.skyscreamer.jsonassert.JSONAssert; diff --git a/kogito-springboot-examples/dmn-listener-springboot/pom.xml b/kogito-springboot-examples/dmn-listener-springboot/pom.xml index 4bf7103971..556c9c88ea 100644 --- a/kogito-springboot-examples/dmn-listener-springboot/pom.xml +++ b/kogito-springboot-examples/dmn-listener-springboot/pom.xml @@ -6,7 +6,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/kie/kogito/dmn/springboot/example/listener/ExampleDMNRuntimeEventListener.java b/kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/acme/dmn/springboot/example/listener/ExampleDMNRuntimeEventListener.java similarity index 96% rename from kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/kie/kogito/dmn/springboot/example/listener/ExampleDMNRuntimeEventListener.java rename to kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/acme/dmn/springboot/example/listener/ExampleDMNRuntimeEventListener.java index 6f03197c52..cf4e2a5451 100644 --- a/kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/kie/kogito/dmn/springboot/example/listener/ExampleDMNRuntimeEventListener.java +++ b/kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/acme/dmn/springboot/example/listener/ExampleDMNRuntimeEventListener.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.springboot.example.listener; +package org.acme.dmn.springboot.example.listener; import org.springframework.stereotype.Component; diff --git a/kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/kie/kogito/dmn/springboot/example/listener/ExampleDecisionEventListenerConfig.java b/kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/acme/dmn/springboot/example/listener/ExampleDecisionEventListenerConfig.java similarity index 97% rename from kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/kie/kogito/dmn/springboot/example/listener/ExampleDecisionEventListenerConfig.java rename to kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/acme/dmn/springboot/example/listener/ExampleDecisionEventListenerConfig.java index 6796d66ad7..9ff004fd40 100644 --- a/kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/kie/kogito/dmn/springboot/example/listener/ExampleDecisionEventListenerConfig.java +++ b/kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/acme/dmn/springboot/example/listener/ExampleDecisionEventListenerConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.springboot.example.listener; +package org.acme.dmn.springboot.example.listener; import org.kie.kogito.dmn.config.CachedDecisionEventListenerConfig; import org.springframework.stereotype.Component; diff --git a/kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/acme/dmn/springboot/example/listener/KogitoSpringbootApplication.java b/kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/acme/dmn/springboot/example/listener/KogitoSpringbootApplication.java new file mode 100644 index 0000000000..922c1c6837 --- /dev/null +++ b/kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/acme/dmn/springboot/example/listener/KogitoSpringbootApplication.java @@ -0,0 +1,27 @@ +/* + * Copyright 2020 Red Hat, Inc. and/or its affiliates. + * + * Licensed 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.acme.dmn.springboot.example.listener; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**", "http**" }) +public class KogitoSpringbootApplication { + + public static void main(String[] args) { + SpringApplication.run(KogitoSpringbootApplication.class, args); + } +} diff --git a/kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/kie/kogito/dmn/springboot/example/listener/LoggingDMNRuntimeEventListener.java b/kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/acme/dmn/springboot/example/listener/LoggingDMNRuntimeEventListener.java similarity index 98% rename from kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/kie/kogito/dmn/springboot/example/listener/LoggingDMNRuntimeEventListener.java rename to kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/acme/dmn/springboot/example/listener/LoggingDMNRuntimeEventListener.java index 5475a79af8..91b18832c6 100644 --- a/kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/kie/kogito/dmn/springboot/example/listener/LoggingDMNRuntimeEventListener.java +++ b/kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/acme/dmn/springboot/example/listener/LoggingDMNRuntimeEventListener.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.springboot.example.listener; +package org.acme.dmn.springboot.example.listener; import org.kie.dmn.api.core.event.AfterEvaluateAllEvent; import org.kie.dmn.api.core.event.AfterEvaluateContextEntryEvent; diff --git a/kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/kie/kogito/dmn/springboot/example/listener/TrafficViolationListenerTest.java b/kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/acme/dmn/springboot/example/listener/TrafficViolationListenerTest.java similarity index 89% rename from kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/kie/kogito/dmn/springboot/example/listener/TrafficViolationListenerTest.java rename to kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/acme/dmn/springboot/example/listener/TrafficViolationListenerTest.java index a17dfd4c20..c776b0f4e0 100644 --- a/kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/kie/kogito/dmn/springboot/example/listener/TrafficViolationListenerTest.java +++ b/kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/acme/dmn/springboot/example/listener/TrafficViolationListenerTest.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.springboot.example.listener; +package org.acme.dmn.springboot.example.listener; import java.util.List; import java.util.Map; import java.util.Optional; +import org.acme.dmn.springboot.example.mock.MockDMNRuntimeEventListener; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.kie.dmn.api.core.event.DMNRuntimeEventListener; import org.kie.kogito.decision.DecisionConfig; import org.kie.kogito.decision.DecisionEventListenerConfig; -import org.kie.kogito.dmn.springboot.example.mock.MockDMNRuntimeEventListener; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.web.server.LocalServerPort; @@ -36,7 +36,6 @@ import static io.restassured.RestAssured.given; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import static org.kie.kogito.dmn.springboot.example.listener.TrafficViolationTest.TRAFFIC_VIOLATION_TEST_BODY; @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = KogitoSpringbootApplication.class) @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD) @@ -70,7 +69,7 @@ public void testEvaluateTrafficViolation() { testListener.reset(); - given().body(TRAFFIC_VIOLATION_TEST_BODY).contentType(ContentType.JSON).post("/Traffic Violation"); + given().body(TrafficViolationTest.TRAFFIC_VIOLATION_TEST_BODY).contentType(ContentType.JSON).post("/Traffic Violation"); Map testListenerCalls = testListener.getCalls(); assertTrue(testListenerCalls.containsKey("beforeEvaluateAll")); diff --git a/kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/kie/kogito/dmn/springboot/example/listener/TrafficViolationTest.java b/kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/acme/dmn/springboot/example/listener/TrafficViolationTest.java similarity index 97% rename from kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/kie/kogito/dmn/springboot/example/listener/TrafficViolationTest.java rename to kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/acme/dmn/springboot/example/listener/TrafficViolationTest.java index d440b2f912..360f29762d 100644 --- a/kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/kie/kogito/dmn/springboot/example/listener/TrafficViolationTest.java +++ b/kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/acme/dmn/springboot/example/listener/TrafficViolationTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.springboot.example.listener; +package org.acme.dmn.springboot.example.listener; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/kie/kogito/dmn/springboot/example/mock/MockDMNRuntimeEventListener.java b/kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/acme/dmn/springboot/example/mock/MockDMNRuntimeEventListener.java similarity index 96% rename from kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/kie/kogito/dmn/springboot/example/mock/MockDMNRuntimeEventListener.java rename to kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/acme/dmn/springboot/example/mock/MockDMNRuntimeEventListener.java index ca42ac1075..061390a47f 100644 --- a/kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/kie/kogito/dmn/springboot/example/mock/MockDMNRuntimeEventListener.java +++ b/kogito-springboot-examples/dmn-listener-springboot/src/test/java/org/acme/dmn/springboot/example/mock/MockDMNRuntimeEventListener.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.springboot.example.mock; +package org.acme.dmn.springboot.example.mock; import java.util.HashMap; import java.util.Map; diff --git a/kogito-springboot-examples/dmn-pmml-springboot-example/pom.xml b/kogito-springboot-examples/dmn-pmml-springboot-example/pom.xml index 48564bdf33..d501af4f88 100644 --- a/kogito-springboot-examples/dmn-pmml-springboot-example/pom.xml +++ b/kogito-springboot-examples/dmn-pmml-springboot-example/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/kie/kogito/queries/KogitoSpringbootApplication.java b/kogito-springboot-examples/dmn-pmml-springboot-example/src/main/java/org/acme/dmn/pmml/springboot/example/KogitoSpringbootApplication.java similarity index 86% rename from kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/kie/kogito/queries/KogitoSpringbootApplication.java rename to kogito-springboot-examples/dmn-pmml-springboot-example/src/main/java/org/acme/dmn/pmml/springboot/example/KogitoSpringbootApplication.java index d6f7c7a33f..7922f4e6a2 100644 --- a/kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/kie/kogito/queries/KogitoSpringbootApplication.java +++ b/kogito-springboot-examples/dmn-pmml-springboot-example/src/main/java/org/acme/dmn/pmml/springboot/example/KogitoSpringbootApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.dmn.pmml.springboot.example; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**" }) +@SpringBootApplication(scanBasePackages = { "org.acme.**", "org.kie.kogito.**", "http**" }) public class KogitoSpringbootApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/dmn-pmml-springboot-example/src/main/java/org/kie/kogito/dmn/pmml/springboot/example/KogitoSpringbootApplication.java b/kogito-springboot-examples/dmn-pmml-springboot-example/src/main/java/org/kie/kogito/dmn/pmml/springboot/example/KogitoSpringbootApplication.java deleted file mode 100644 index 4f4d108346..0000000000 --- a/kogito-springboot-examples/dmn-pmml-springboot-example/src/main/java/org/kie/kogito/dmn/pmml/springboot/example/KogitoSpringbootApplication.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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.dmn.pmml.springboot.example; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; - -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.dmn.pmml.**", "org.kie.kogito.**", "http**" }) -public class KogitoSpringbootApplication { - - public static void main(String[] args) { - SpringApplication.run(KogitoSpringbootApplication.class, args); - } -} diff --git a/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/kie/kogito/pmml/springboot/example/CommonTestUtils.java b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/CommonTestUtils.java similarity index 98% rename from kogito-springboot-examples/pmml-springboot-example/src/test/java/org/kie/kogito/pmml/springboot/example/CommonTestUtils.java rename to kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/CommonTestUtils.java index 32415993c1..a8670d1b88 100644 --- a/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/kie/kogito/pmml/springboot/example/CommonTestUtils.java +++ b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/CommonTestUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.pmml.springboot.example; +package org.acme.dmn.pmml.springboot.example; import java.util.Map; diff --git a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/DMNMiningModelTest.java b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/DMNMiningModelTest.java similarity index 97% rename from kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/DMNMiningModelTest.java rename to kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/DMNMiningModelTest.java index 3d9de5cda8..870cd2230c 100644 --- a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/DMNMiningModelTest.java +++ b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/DMNMiningModelTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.springboot.example; +package org.acme.dmn.pmml.springboot.example; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/DMNRegressionTest.java b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/DMNRegressionTest.java similarity index 97% rename from kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/DMNRegressionTest.java rename to kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/DMNRegressionTest.java index 0db95dc71b..3bc4b498ed 100644 --- a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/DMNRegressionTest.java +++ b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/DMNRegressionTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.springboot.example; +package org.acme.dmn.pmml.springboot.example; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/DMNScoreCardTest.java b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/DMNScoreCardTest.java similarity index 98% rename from kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/DMNScoreCardTest.java rename to kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/DMNScoreCardTest.java index 6287eaa2aa..b24b29b0cb 100644 --- a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/DMNScoreCardTest.java +++ b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/DMNScoreCardTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.springboot.example; +package org.acme.dmn.pmml.springboot.example; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/DMNTreeTest.java b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/DMNTreeTest.java similarity index 97% rename from kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/DMNTreeTest.java rename to kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/DMNTreeTest.java index 3885a8b888..e764ffccd8 100644 --- a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/DMNTreeTest.java +++ b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/DMNTreeTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.springboot.example; +package org.acme.dmn.pmml.springboot.example; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/DecisionTreeTest.java b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/DecisionTreeTest.java similarity index 90% rename from kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/DecisionTreeTest.java rename to kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/DecisionTreeTest.java index 617b877357..8a014f447d 100644 --- a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/DecisionTreeTest.java +++ b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/DecisionTreeTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.springboot.example; +package org.acme.dmn.pmml.springboot.example; import java.util.HashMap; import java.util.Map; @@ -26,8 +26,8 @@ import io.restassured.RestAssured; -import static org.kie.kogito.dmn.pmml.springboot.example.CommonTestUtils.testDescriptive; -import static org.kie.kogito.dmn.pmml.springboot.example.CommonTestUtils.testResult; +import static org.acme.dmn.pmml.springboot.example.CommonTestUtils.testDescriptive; +import static org.acme.dmn.pmml.springboot.example.CommonTestUtils.testResult; @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = KogitoSpringbootApplication.class) @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD) diff --git a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/LinRegTest.java b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/LinRegTest.java similarity index 76% rename from kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/LinRegTest.java rename to kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/LinRegTest.java index 24ff9ec0c8..a89b86072f 100644 --- a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/LinRegTest.java +++ b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/LinRegTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.springboot.example; +package org.acme.dmn.pmml.springboot.example; import java.util.Collections; import java.util.Map; @@ -26,11 +26,6 @@ import io.restassured.RestAssured; -import static org.kie.kogito.dmn.pmml.springboot.example.CommonTestUtils.testDescriptive; -import static org.kie.kogito.dmn.pmml.springboot.example.CommonTestUtils.testDescriptiveWrongData; -import static org.kie.kogito.dmn.pmml.springboot.example.CommonTestUtils.testResult; -import static org.kie.kogito.dmn.pmml.springboot.example.CommonTestUtils.testResultWrongData; - @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = KogitoSpringbootApplication.class) @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD) public class LinRegTest { @@ -49,25 +44,25 @@ public void setUp() { @Test void testEvaluateLinRegResult() { String inputData = "{\"fld1\":3.0, \"fld2\":2.0, \"fld3\":\"y\"}"; - testResult(inputData, BASE_PATH, TARGET, 52.5f); + CommonTestUtils.testResult(inputData, BASE_PATH, TARGET, 52.5f); } @Test void testEvaluateLinRegResultWrongData() { String inputData = "{\"fld1\":\"wrong-input\", \"fld2\":2.0, \"fld3\":\"y\"}"; - testResultWrongData(inputData, BASE_PATH); + CommonTestUtils.testResultWrongData(inputData, BASE_PATH); } @Test void testEvaluateLinRegDescriptive() { String inputData = "{\"fld1\":3.0, \"fld2\":2.0, \"fld3\":\"y\"}"; final Map expectedResultMap = Collections.singletonMap(TARGET, 52.5f); - testDescriptive(inputData, BASE_PATH, TARGET, expectedResultMap); + CommonTestUtils.testDescriptive(inputData, BASE_PATH, TARGET, expectedResultMap); } @Test void testEvaluateLinRegDescriptiveWrongData() { String inputData = "{\"fld1\":\"wrong-input\", \"fld2\":2.0, \"fld3\":\"y\"}"; - testDescriptiveWrongData(inputData, BASE_PATH); + CommonTestUtils.testDescriptiveWrongData(inputData, BASE_PATH); } } diff --git a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/MiningModelTest.java b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/MiningModelTest.java similarity index 76% rename from kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/MiningModelTest.java rename to kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/MiningModelTest.java index 0c57345b4d..4c3fc3749e 100644 --- a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/MiningModelTest.java +++ b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/MiningModelTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.springboot.example; +package org.acme.dmn.pmml.springboot.example; import java.util.Collections; import java.util.Map; @@ -26,11 +26,6 @@ import io.restassured.RestAssured; -import static org.kie.kogito.dmn.pmml.springboot.example.CommonTestUtils.testDescriptive; -import static org.kie.kogito.dmn.pmml.springboot.example.CommonTestUtils.testDescriptiveWrongData; -import static org.kie.kogito.dmn.pmml.springboot.example.CommonTestUtils.testResult; -import static org.kie.kogito.dmn.pmml.springboot.example.CommonTestUtils.testResultWrongData; - @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = KogitoSpringbootApplication.class) @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD) public class MiningModelTest { @@ -49,25 +44,25 @@ public void setUp() { @Test void testEvaluateMiningModelResult() { String inputData = "{\"input1\":200.0, \"input2\":-1.0, \"input3\":2.0}"; - testResult(inputData, BASE_PATH, TARGET, -299.0f); + CommonTestUtils.testResult(inputData, BASE_PATH, TARGET, -299.0f); } @Test void testEvaluateMiningModelResultWrongData() { String inputData = "{\"input1\":wrong-data, \"input2\":-1.0, \"input3\":2.0}"; - testResultWrongData(inputData, BASE_PATH); + CommonTestUtils.testResultWrongData(inputData, BASE_PATH); } @Test void testEvaluateMiningModelResultDescriptive() { String inputData = "{\"input1\":200.0, \"input2\":-1.0, \"input3\":2.0}"; final Map expectedResultMap = Collections.singletonMap(TARGET, -299.0f); - testDescriptive(inputData, BASE_PATH, TARGET, expectedResultMap); + CommonTestUtils.testDescriptive(inputData, BASE_PATH, TARGET, expectedResultMap); } @Test void testEvaluateMiningModelResultDescriptiveWrongData() { String inputData = "{\"input1\":wrong-data, \"input2\":-1.0, \"input3\":2.0}"; - testDescriptiveWrongData(inputData, BASE_PATH); + CommonTestUtils.testDescriptiveWrongData(inputData, BASE_PATH); } } diff --git a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/ScoreCardTest.java b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/ScoreCardTest.java similarity index 86% rename from kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/ScoreCardTest.java rename to kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/ScoreCardTest.java index 64a10b51df..f21bdaef7e 100644 --- a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/ScoreCardTest.java +++ b/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/acme/dmn/pmml/springboot/example/ScoreCardTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.springboot.example; +package org.acme.dmn.pmml.springboot.example; import java.util.Collections; import java.util.Map; @@ -26,10 +26,10 @@ import io.restassured.RestAssured; -import static org.kie.kogito.dmn.pmml.springboot.example.CommonTestUtils.testDescriptive; -import static org.kie.kogito.dmn.pmml.springboot.example.CommonTestUtils.testDescriptiveWrongData; -import static org.kie.kogito.dmn.pmml.springboot.example.CommonTestUtils.testResult; -import static org.kie.kogito.dmn.pmml.springboot.example.CommonTestUtils.testResultWrongData; +import static org.acme.dmn.pmml.springboot.example.CommonTestUtils.testDescriptive; +import static org.acme.dmn.pmml.springboot.example.CommonTestUtils.testDescriptiveWrongData; +import static org.acme.dmn.pmml.springboot.example.CommonTestUtils.testResult; +import static org.acme.dmn.pmml.springboot.example.CommonTestUtils.testResultWrongData; @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = KogitoSpringbootApplication.class) @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD) diff --git a/kogito-springboot-examples/dmn-springboot-example/README.md b/kogito-springboot-examples/dmn-springboot-example/README.md index ab8e58e95d..265ce9329e 100644 --- a/kogito-springboot-examples/dmn-springboot-example/README.md +++ b/kogito-springboot-examples/dmn-springboot-example/README.md @@ -97,7 +97,7 @@ In order to have the DMN generated resources properly scanned by Spring Boot, pl The generated classes must be included in the annotation definitions of the main `Application` class: ``` -@SpringBootApplication(scanBasePackages={"org.kie.kogito.**", "org.kie.kogito.app.**", "http*"}) +@SpringBootApplication(scanBasePackages={"org.kie.kogito.**", "org.acme.**", "http*"}) public class KogitoSpringbootApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/dmn-springboot-example/pom.xml b/kogito-springboot-examples/dmn-springboot-example/pom.xml index 1016db26ac..088c80f493 100644 --- a/kogito-springboot-examples/dmn-springboot-example/pom.xml +++ b/kogito-springboot-examples/dmn-springboot-example/pom.xml @@ -6,7 +6,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/dmn-springboot-example/src/main/java/org/acme/dmn/springboot/example/KogitoSpringbootApplication.java b/kogito-springboot-examples/dmn-springboot-example/src/main/java/org/acme/dmn/springboot/example/KogitoSpringbootApplication.java new file mode 100644 index 0000000000..ec18937450 --- /dev/null +++ b/kogito-springboot-examples/dmn-springboot-example/src/main/java/org/acme/dmn/springboot/example/KogitoSpringbootApplication.java @@ -0,0 +1,27 @@ +/* + * Copyright 2020 Red Hat, Inc. and/or its affiliates. + * + * Licensed 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.acme.dmn.springboot.example; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.dmn.**", "http**" }) +public class KogitoSpringbootApplication { + + public static void main(String[] args) { + SpringApplication.run(KogitoSpringbootApplication.class, args); + } +} diff --git a/kogito-springboot-examples/dmn-springboot-example/src/main/java/org/kie/kogito/dmn/springboot/example/KogitoSpringbootApplication.java b/kogito-springboot-examples/dmn-springboot-example/src/main/java/org/kie/kogito/dmn/springboot/example/KogitoSpringbootApplication.java deleted file mode 100644 index a1e86fc7c6..0000000000 --- a/kogito-springboot-examples/dmn-springboot-example/src/main/java/org/kie/kogito/dmn/springboot/example/KogitoSpringbootApplication.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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.dmn.springboot.example; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; - -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.dmn.**", "org.kie.kogito.app.**", "http**" }) -public class KogitoSpringbootApplication { - - public static void main(String[] args) { - SpringApplication.run(KogitoSpringbootApplication.class, args); - } -} diff --git a/kogito-springboot-examples/dmn-springboot-example/src/test/java/org/kie/kogito/dmn/springboot/example/TrafficViolationTest.java b/kogito-springboot-examples/dmn-springboot-example/src/test/java/org/acme/dmn/springboot/example/TrafficViolationTest.java similarity index 97% rename from kogito-springboot-examples/dmn-springboot-example/src/test/java/org/kie/kogito/dmn/springboot/example/TrafficViolationTest.java rename to kogito-springboot-examples/dmn-springboot-example/src/test/java/org/acme/dmn/springboot/example/TrafficViolationTest.java index cdd4237320..c9f2914b06 100644 --- a/kogito-springboot-examples/dmn-springboot-example/src/test/java/org/kie/kogito/dmn/springboot/example/TrafficViolationTest.java +++ b/kogito-springboot-examples/dmn-springboot-example/src/test/java/org/acme/dmn/springboot/example/TrafficViolationTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.springboot.example; +package org.acme.dmn.springboot.example; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/kogito-springboot-examples/dmn-tracing-springboot/pom.xml b/kogito-springboot-examples/dmn-tracing-springboot/pom.xml index 458b024c42..6bc323e31e 100644 --- a/kogito-springboot-examples/dmn-tracing-springboot/pom.xml +++ b/kogito-springboot-examples/dmn-tracing-springboot/pom.xml @@ -6,7 +6,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/dmn-tracing-springboot/src/main/java/org/kie/kogito/dmn/springboot/tracing/KogitoSpringbootApplication.java b/kogito-springboot-examples/dmn-tracing-springboot/src/main/java/org/acme/dmn/springboot/tracing/KogitoSpringbootApplication.java similarity index 80% rename from kogito-springboot-examples/dmn-tracing-springboot/src/main/java/org/kie/kogito/dmn/springboot/tracing/KogitoSpringbootApplication.java rename to kogito-springboot-examples/dmn-tracing-springboot/src/main/java/org/acme/dmn/springboot/tracing/KogitoSpringbootApplication.java index f6648ebbae..0b9dd22fe4 100644 --- a/kogito-springboot-examples/dmn-tracing-springboot/src/main/java/org/kie/kogito/dmn/springboot/tracing/KogitoSpringbootApplication.java +++ b/kogito-springboot-examples/dmn-tracing-springboot/src/main/java/org/acme/dmn/springboot/tracing/KogitoSpringbootApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.springboot.tracing; +package org.acme.dmn.springboot.tracing; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.dmn.**", "org.kie.kogito.**", "org.kie.kogito.tracing.**", "http**", "org.kie.kogito.monitoring.*" }) +@SpringBootApplication(scanBasePackages = { "org.acme.**", "org.kie.kogito.dmn.**", "org.kie.kogito.**", "org.kie.kogito.tracing.**", "http**", "org.kie.kogito.monitoring.*" }) public class KogitoSpringbootApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/dmn-tracing-springboot/src/test/java/org/kie/kogito/dmn/springboot/tracing/LoanEligibilityIT.java b/kogito-springboot-examples/dmn-tracing-springboot/src/test/java/org/acme/dmn/springboot/tracing/LoanEligibilityIT.java similarity index 96% rename from kogito-springboot-examples/dmn-tracing-springboot/src/test/java/org/kie/kogito/dmn/springboot/tracing/LoanEligibilityIT.java rename to kogito-springboot-examples/dmn-tracing-springboot/src/test/java/org/acme/dmn/springboot/tracing/LoanEligibilityIT.java index e3db89f928..07bf903b3b 100644 --- a/kogito-springboot-examples/dmn-tracing-springboot/src/test/java/org/kie/kogito/dmn/springboot/tracing/LoanEligibilityIT.java +++ b/kogito-springboot-examples/dmn-tracing-springboot/src/test/java/org/acme/dmn/springboot/tracing/LoanEligibilityIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.springboot.tracing; +package org.acme.dmn.springboot.tracing; import java.util.Optional; import java.util.concurrent.CountDownLatch; @@ -35,9 +35,9 @@ import io.restassured.http.ContentType; import static io.restassured.RestAssured.given; +import static org.acme.dmn.springboot.tracing.matcher.StringMatchesUUIDPattern.matchesThePatternOfAUUID; import static org.hamcrest.Matchers.is; import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.kie.kogito.dmn.springboot.tracing.matcher.StringMatchesUUIDPattern.matchesThePatternOfAUUID; @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = KogitoSpringbootApplication.class) @ContextConfiguration(initializers = KafkaSpringBootTestResource.class) diff --git a/kogito-springboot-examples/dmn-tracing-springboot/src/test/java/org/kie/kogito/dmn/springboot/tracing/matcher/StringMatchesUUIDPattern.java b/kogito-springboot-examples/dmn-tracing-springboot/src/test/java/org/acme/dmn/springboot/tracing/matcher/StringMatchesUUIDPattern.java similarity index 95% rename from kogito-springboot-examples/dmn-tracing-springboot/src/test/java/org/kie/kogito/dmn/springboot/tracing/matcher/StringMatchesUUIDPattern.java rename to kogito-springboot-examples/dmn-tracing-springboot/src/test/java/org/acme/dmn/springboot/tracing/matcher/StringMatchesUUIDPattern.java index 8c34bb72ad..f64becdabc 100644 --- a/kogito-springboot-examples/dmn-tracing-springboot/src/test/java/org/kie/kogito/dmn/springboot/tracing/matcher/StringMatchesUUIDPattern.java +++ b/kogito-springboot-examples/dmn-tracing-springboot/src/test/java/org/acme/dmn/springboot/tracing/matcher/StringMatchesUUIDPattern.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.springboot.tracing.matcher; +package org.acme.dmn.springboot.tracing.matcher; import org.hamcrest.Description; import org.hamcrest.Matcher; diff --git a/kogito-springboot-examples/flexible-process-springboot/pom.xml b/kogito-springboot-examples/flexible-process-springboot/pom.xml index a54b5b752d..07b838ef57 100644 --- a/kogito-springboot-examples/flexible-process-springboot/pom.xml +++ b/kogito-springboot-examples/flexible-process-springboot/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/model/Comment.java b/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/model/Comment.java similarity index 97% rename from kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/model/Comment.java rename to kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/model/Comment.java index c6e924361e..cfbae34857 100644 --- a/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/model/Comment.java +++ b/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/model/Comment.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.flexible.example.model; +package org.acme.flexible.example.model; import java.time.ZonedDateTime; diff --git a/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/model/Product.java b/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/model/Product.java similarity index 96% rename from kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/model/Product.java rename to kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/model/Product.java index 9efe281bc8..a9a6e7f4e5 100644 --- a/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/model/Product.java +++ b/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/model/Product.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.flexible.example.model; +package org.acme.flexible.example.model; public class Product { diff --git a/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/model/Questionnaire.java b/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/model/Questionnaire.java similarity index 97% rename from kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/model/Questionnaire.java rename to kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/model/Questionnaire.java index 974f8c7fb1..11c645b477 100644 --- a/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/model/Questionnaire.java +++ b/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/model/Questionnaire.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.flexible.example.model; +package org.acme.flexible.example.model; import java.time.ZonedDateTime; diff --git a/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/model/State.java b/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/model/State.java similarity index 93% rename from kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/model/State.java rename to kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/model/State.java index 29b47e5ed5..f0d9c410fe 100644 --- a/kogito-quarkus-examples/flexible-process-quarkus/src/main/java/org/kie/kogito/flexible/example/model/State.java +++ b/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/model/State.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.flexible.example.model; +package org.acme.flexible.example.model; public enum State { NEW, diff --git a/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/model/SupportCase.java b/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/model/SupportCase.java similarity index 95% rename from kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/model/SupportCase.java rename to kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/model/SupportCase.java index efb4b4ed24..33ef63166e 100644 --- a/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/model/SupportCase.java +++ b/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/model/SupportCase.java @@ -13,21 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.flexible.example.model; +package org.acme.flexible.example.model; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; -import static org.kie.kogito.flexible.example.model.State.NEW; - public class SupportCase { private Product product; private String description; private String engineer; private String customer; - private State state = NEW; + private State state = State.NEW; private List comments; private Questionnaire questionnaire; diff --git a/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/service/CommentService.java b/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/service/CommentService.java similarity index 71% rename from kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/service/CommentService.java rename to kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/service/CommentService.java index 55f280ba70..9afa59de44 100644 --- a/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/service/CommentService.java +++ b/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/service/CommentService.java @@ -13,25 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.flexible.example.service; +package org.acme.flexible.example.service; -import org.kie.kogito.flexible.example.model.Comment; -import org.kie.kogito.flexible.example.model.State; -import org.kie.kogito.flexible.example.model.SupportCase; +import org.acme.flexible.example.model.Comment; +import org.acme.flexible.example.model.State; +import org.acme.flexible.example.model.SupportCase; import org.springframework.stereotype.Component; -import static org.kie.kogito.flexible.example.model.State.WAITING_FOR_CUSTOMER; -import static org.kie.kogito.flexible.example.model.State.WAITING_FOR_OWNER; - @Component public class CommentService { public SupportCase addCustomerComment(SupportCase supportCase, String comment, String author) { - return addComment(supportCase, author, comment, WAITING_FOR_OWNER); + return addComment(supportCase, author, comment, State.WAITING_FOR_OWNER); } public SupportCase addSupportComment(SupportCase supportCase, String comment, String author) { - return addComment(supportCase, author, comment, WAITING_FOR_CUSTOMER); + return addComment(supportCase, author, comment, State.WAITING_FOR_CUSTOMER); } private SupportCase addComment(SupportCase supportCase, String author, String comment, State newState) { diff --git a/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/service/StateService.java b/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/service/StateService.java similarity index 84% rename from kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/service/StateService.java rename to kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/service/StateService.java index ae43868e2c..e05b52afca 100644 --- a/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/service/StateService.java +++ b/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/service/StateService.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.flexible.example.service; +package org.acme.flexible.example.service; -import org.kie.kogito.flexible.example.model.Questionnaire; -import org.kie.kogito.flexible.example.model.State; -import org.kie.kogito.flexible.example.model.SupportCase; +import org.acme.flexible.example.model.Questionnaire; +import org.acme.flexible.example.model.State; +import org.acme.flexible.example.model.SupportCase; import org.springframework.stereotype.Component; @Component diff --git a/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/service/TriageService.java b/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/service/TriageService.java similarity index 93% rename from kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/service/TriageService.java rename to kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/service/TriageService.java index 7b0a8f6f40..64f6b7dbb7 100644 --- a/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/service/TriageService.java +++ b/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/flexible/example/service/TriageService.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.flexible.example.service; +package org.acme.flexible.example.service; import java.util.Random; -import org.kie.kogito.flexible.example.model.State; -import org.kie.kogito.flexible.example.model.SupportCase; +import org.acme.flexible.example.model.State; +import org.acme.flexible.example.model.SupportCase; import org.springframework.stereotype.Component; @Component diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/kie/kogito/springboot/KogitoSpringbootApplication.java b/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/tests/KogitoSpringbootApplication.java similarity index 94% rename from kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/kie/kogito/springboot/KogitoSpringbootApplication.java rename to kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/tests/KogitoSpringbootApplication.java index c832c38757..8e7a538689 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/kie/kogito/springboot/KogitoSpringbootApplication.java +++ b/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/acme/tests/KogitoSpringbootApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.springboot; +package org.acme.tests; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.travels.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) public class KogitoSpringbootApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/tests/KogitoSpringbootApplication.java b/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/tests/KogitoSpringbootApplication.java deleted file mode 100644 index 9fa783e4a1..0000000000 --- a/kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/tests/KogitoSpringbootApplication.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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.tests; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; - -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**" }) -public class KogitoSpringbootApplication { - - public static void main(String[] args) { - SpringApplication.run(KogitoSpringbootApplication.class, args); - } - -} diff --git a/kogito-springboot-examples/flexible-process-springboot/src/main/resources/service-desk.bpmn b/kogito-springboot-examples/flexible-process-springboot/src/main/resources/service-desk.bpmn index b172529784..1823b8534d 100644 --- a/kogito-springboot-examples/flexible-process-springboot/src/main/resources/service-desk.bpmn +++ b/kogito-springboot-examples/flexible-process-springboot/src/main/resources/service-desk.bpmn @@ -1,17 +1,17 @@ - + - + - + - - + + - + @@ -56,10 +56,10 @@ - + - + @@ -72,42 +72,42 @@ - - - + + + - - + + - + - - - + + + - + - + - + - + - + - + @@ -167,7 +167,7 @@ - + @@ -175,8 +175,8 @@ _C651F6F2-8C0D-4E9A-94B3-0BB337536F51 - - + + _5DCB19C5-63B3-4846-A8C7-9E383306E915_supportCaseInputX @@ -296,7 +296,7 @@ supportGroup - + @@ -305,9 +305,9 @@ _4D493B33-AE13-464F-B7F5-4A7A9A9044BA _5CF61231-028A-4E4A-AC50-01C1737FEC0A - + - + _D17F5E0D-779E-4AF4-9E33-6E37D8F54DA7_supportCaseInputX _D17F5E0D-779E-4AF4-9E33-6E37D8F54DA7_supportGroupInputX @@ -337,7 +337,7 @@ _6B10C12D-99D4-4758-B2D3-32D8E527A287 _28168759-AF8E-47D3-9FEA-8095507ABEB7 - + @@ -345,9 +345,9 @@ _DBE81078-2C21-4128-ADDE-CA5E170F0792 - + - + _26E99F98-8E2E-4321-98A7-BE7570FF0BD2_supportCaseInputX _26E99F98-8E2E-4321-98A7-BE7570FF0BD2_supportGroupInputX @@ -382,10 +382,10 @@ _DBE81078-2C21-4128-ADDE-CA5E170F0792 - + - + _BACB7C86-E7FA-4E2B-931A-CC02C812A698_TaskNameInputX _BACB7C86-E7FA-4E2B-931A-CC02C812A698_supportCaseInputX @@ -448,7 +448,7 @@ - + @@ -456,10 +456,10 @@ _56AFC157-45AE-44E0-A94D-52AE95EFC74B - + - + _BEAA2A42-CD36-4A08-BB42-4823EAA5C137_supportCaseInputX _BEAA2A42-CD36-4A08-BB42-4823EAA5C137_evaluationInputX @@ -667,7 +667,7 @@ author - + @@ -675,10 +675,10 @@ _D49DA468-8A7B-4688-A8DB-5B09D1AE22B1 - + - + _5B1A92B6-7044-4C8B-9011-62CD592F255F_supportCaseInputX _5B1A92B6-7044-4C8B-9011-62CD592F255F_commentInputX @@ -705,7 +705,7 @@ supportCase - + @@ -713,10 +713,10 @@ _021482FA-6264-4060-B11B-ABD91159122A - + - + _D514F716-3F06-468F-A487-892F6089C776_supportCaseInputX _D514F716-3F06-468F-A487-892F6089C776_commentInputX @@ -743,7 +743,7 @@ supportCase - + diff --git a/kogito-springboot-examples/flexible-process-springboot/src/test/java/org/kie/kogito/flexible/example/springboot/ServiceDeskProcessTest.java b/kogito-springboot-examples/flexible-process-springboot/src/test/java/org/acme/flexible/example/springboot/ServiceDeskProcessTest.java similarity index 94% rename from kogito-springboot-examples/flexible-process-springboot/src/test/java/org/kie/kogito/flexible/example/springboot/ServiceDeskProcessTest.java rename to kogito-springboot-examples/flexible-process-springboot/src/test/java/org/acme/flexible/example/springboot/ServiceDeskProcessTest.java index cdcfba2ad2..22bd5ce5b5 100644 --- a/kogito-springboot-examples/flexible-process-springboot/src/test/java/org/kie/kogito/flexible/example/springboot/ServiceDeskProcessTest.java +++ b/kogito-springboot-examples/flexible-process-springboot/src/test/java/org/acme/flexible/example/springboot/ServiceDeskProcessTest.java @@ -13,19 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.flexible.example.springboot; +package org.acme.flexible.example.springboot; import java.util.HashMap; import java.util.List; import java.util.Map; +import org.acme.flexible.example.model.Product; +import org.acme.flexible.example.model.State; +import org.acme.flexible.example.model.SupportCase; +import org.acme.flexible.example.service.TriageService; +import org.acme.tests.KogitoSpringbootApplication; +import org.hamcrest.CoreMatchers; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.kie.kogito.flexible.example.model.Product; -import org.kie.kogito.flexible.example.model.State; -import org.kie.kogito.flexible.example.model.SupportCase; -import org.kie.kogito.flexible.example.service.TriageService; -import org.kie.kogito.tests.KogitoSpringbootApplication; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.web.server.LocalServerPort; import org.springframework.test.annotation.DirtiesContext; @@ -86,7 +87,7 @@ private String createSupportCase() { .statusCode(201) .header("Location", notNullValue()) .body("id", notNullValue()) - .body("supportCase.state", is(State.WAITING_FOR_OWNER.name())) + .body("supportCase.state", CoreMatchers.is(State.WAITING_FOR_OWNER.name())) .body("supportCase.engineer", anyOf(is(TriageService.KOGITO_ENGINEERS[0]), is(TriageService.KOGITO_ENGINEERS[1]))) .body("supportGroup", is("Kogito")) .extract() diff --git a/kogito-springboot-examples/onboarding-springboot/pom.xml b/kogito-springboot-examples/onboarding-springboot/pom.xml index cbf0db3c57..9e37cd3ef0 100644 --- a/kogito-springboot-examples/onboarding-springboot/pom.xml +++ b/kogito-springboot-examples/onboarding-springboot/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/onboarding-springboot/src/main/java/org/kie/kogito/examples/KogitoOnboardingApplication.java b/kogito-springboot-examples/onboarding-springboot/src/main/java/org/acme/examples/KogitoOnboardingApplication.java similarity index 93% rename from kogito-springboot-examples/onboarding-springboot/src/main/java/org/kie/kogito/examples/KogitoOnboardingApplication.java rename to kogito-springboot-examples/onboarding-springboot/src/main/java/org/acme/examples/KogitoOnboardingApplication.java index 2764617167..3a71a65c8b 100644 --- a/kogito-springboot-examples/onboarding-springboot/src/main/java/org/kie/kogito/examples/KogitoOnboardingApplication.java +++ b/kogito-springboot-examples/onboarding-springboot/src/main/java/org/acme/examples/KogitoOnboardingApplication.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.springframework.boot.SpringApplication; import org.springframework.boot.actuate.autoconfigure.metrics.cache.CacheMetricsAutoConfiguration; @@ -22,7 +22,7 @@ import org.springframework.cloud.kubernetes.fabric8.discovery.KubernetesDiscoveryClientAutoConfiguration; // Disabling the cache metrics for now, see: https://github.com/infinispan/infinispan-spring-boot/issues/168 -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**" }, +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }, exclude = { CacheMetricsAutoConfiguration.class, KubernetesDiscoveryClientAutoConfiguration.class, KubernetesCatalogWatchAutoConfiguration.class }) diff --git a/kogito-springboot-examples/onboarding-springboot/src/main/java/org/kie/kogito/examples/WorkItemHandlerConfig.java b/kogito-springboot-examples/onboarding-springboot/src/main/java/org/acme/examples/WorkItemHandlerConfig.java similarity index 97% rename from kogito-springboot-examples/onboarding-springboot/src/main/java/org/kie/kogito/examples/WorkItemHandlerConfig.java rename to kogito-springboot-examples/onboarding-springboot/src/main/java/org/acme/examples/WorkItemHandlerConfig.java index 92d7ecb125..24d422c85f 100644 --- a/kogito-springboot-examples/onboarding-springboot/src/main/java/org/kie/kogito/examples/WorkItemHandlerConfig.java +++ b/kogito-springboot-examples/onboarding-springboot/src/main/java/org/acme/examples/WorkItemHandlerConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.util.ArrayList; import java.util.Arrays; @@ -24,11 +24,11 @@ import javax.annotation.PostConstruct; +import org.acme.examples.onboarding.DecisionTaskWorkItemHandler; import org.kie.kogito.addons.k8s.Endpoint; import org.kie.kogito.addons.k8s.EndpointQueryKey; import org.kie.kogito.addons.k8s.LocalEndpointDiscovery; import org.kie.kogito.addons.springboot.k8s.workitems.SpringDiscoveredEndpointCaller; -import org.kie.kogito.examples.onboarding.DecisionTaskWorkItemHandler; import org.kie.kogito.internal.process.runtime.KogitoWorkItemHandler; import org.kie.kogito.process.impl.DefaultWorkItemHandlerConfig; import org.springframework.beans.factory.annotation.Autowired; diff --git a/kogito-springboot-examples/onboarding-springboot/src/main/java/org/kie/kogito/examples/onboarding/Address.java b/kogito-springboot-examples/onboarding-springboot/src/main/java/org/acme/examples/onboarding/Address.java similarity index 97% rename from kogito-springboot-examples/onboarding-springboot/src/main/java/org/kie/kogito/examples/onboarding/Address.java rename to kogito-springboot-examples/onboarding-springboot/src/main/java/org/acme/examples/onboarding/Address.java index e4adcdbe31..cd8564b170 100644 --- a/kogito-springboot-examples/onboarding-springboot/src/main/java/org/kie/kogito/examples/onboarding/Address.java +++ b/kogito-springboot-examples/onboarding-springboot/src/main/java/org/acme/examples/onboarding/Address.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.onboarding; +package org.acme.examples.onboarding; /** * This class was automatically generated by the data modeler tool. diff --git a/kogito-springboot-examples/onboarding-springboot/src/main/java/org/kie/kogito/examples/onboarding/DecisionTaskWorkItemHandler.java b/kogito-springboot-examples/onboarding-springboot/src/main/java/org/acme/examples/onboarding/DecisionTaskWorkItemHandler.java similarity index 97% rename from kogito-springboot-examples/onboarding-springboot/src/main/java/org/kie/kogito/examples/onboarding/DecisionTaskWorkItemHandler.java rename to kogito-springboot-examples/onboarding-springboot/src/main/java/org/acme/examples/onboarding/DecisionTaskWorkItemHandler.java index 60c766bfc3..27fc0526fb 100644 --- a/kogito-springboot-examples/onboarding-springboot/src/main/java/org/kie/kogito/examples/onboarding/DecisionTaskWorkItemHandler.java +++ b/kogito-springboot-examples/onboarding-springboot/src/main/java/org/acme/examples/onboarding/DecisionTaskWorkItemHandler.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.onboarding; +package org.acme.examples.onboarding; import java.util.Map; diff --git a/kogito-springboot-examples/onboarding-springboot/src/main/java/org/kie/kogito/examples/onboarding/Employee.java b/kogito-springboot-examples/onboarding-springboot/src/main/java/org/acme/examples/onboarding/Employee.java similarity index 86% rename from kogito-springboot-examples/onboarding-springboot/src/main/java/org/kie/kogito/examples/onboarding/Employee.java rename to kogito-springboot-examples/onboarding-springboot/src/main/java/org/acme/examples/onboarding/Employee.java index 12923c8e7f..0e0f50ff13 100644 --- a/kogito-springboot-examples/onboarding-springboot/src/main/java/org/kie/kogito/examples/onboarding/Employee.java +++ b/kogito-springboot-examples/onboarding-springboot/src/main/java/org/acme/examples/onboarding/Employee.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.onboarding; +package org.acme.examples.onboarding; /** * This class was automatically generated by the data modeler tool. @@ -27,7 +27,7 @@ public class Employee implements java.io.Serializable { private java.lang.String personalId; private java.util.Date birthDate; - private org.kie.kogito.examples.onboarding.Address address; + private Address address; public Employee() { } @@ -64,17 +64,17 @@ public void setBirthDate(java.util.Date birthDate) { this.birthDate = birthDate; } - public org.kie.kogito.examples.onboarding.Address getAddress() { + public Address getAddress() { return this.address; } - public void setAddress(org.kie.kogito.examples.onboarding.Address address) { + public void setAddress(Address address) { this.address = address; } public Employee(java.lang.String firstName, java.lang.String lastName, java.lang.String personalId, java.util.Date birthDate, - org.kie.kogito.examples.onboarding.Address address) { + Address address) { this.firstName = firstName; this.lastName = lastName; this.personalId = personalId; diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/kie/kogito/examples/onboarding/Payroll.java b/kogito-springboot-examples/onboarding-springboot/src/main/java/org/acme/examples/onboarding/Payroll.java similarity index 97% rename from kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/kie/kogito/examples/onboarding/Payroll.java rename to kogito-springboot-examples/onboarding-springboot/src/main/java/org/acme/examples/onboarding/Payroll.java index 9ed04c3f25..a638f39014 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/kie/kogito/examples/onboarding/Payroll.java +++ b/kogito-springboot-examples/onboarding-springboot/src/main/java/org/acme/examples/onboarding/Payroll.java @@ -13,14 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.onboarding; +package org.acme.examples.onboarding; import com.fasterxml.jackson.annotation.JsonFormat; /** * This class was automatically generated by the data modeler tool. */ - public class Payroll implements java.io.Serializable { static final long serialVersionUID = 1L; diff --git a/kogito-springboot-examples/onboarding-springboot/src/main/resources/org/kie/kogito/examples/onboarding/DecisionTasks.wid b/kogito-springboot-examples/onboarding-springboot/src/main/resources/org/acme/examples/onboarding/DecisionTasks.wid similarity index 100% rename from kogito-springboot-examples/onboarding-springboot/src/main/resources/org/kie/kogito/examples/onboarding/DecisionTasks.wid rename to kogito-springboot-examples/onboarding-springboot/src/main/resources/org/acme/examples/onboarding/DecisionTasks.wid diff --git a/kogito-springboot-examples/onboarding-springboot/src/main/resources/org/kie/kogito/examples/onboarding/onboarding.bpmn b/kogito-springboot-examples/onboarding-springboot/src/main/resources/org/acme/examples/onboarding/onboarding.bpmn similarity index 95% rename from kogito-springboot-examples/onboarding-springboot/src/main/resources/org/kie/kogito/examples/onboarding/onboarding.bpmn rename to kogito-springboot-examples/onboarding-springboot/src/main/resources/org/acme/examples/onboarding/onboarding.bpmn index c82b0acf00..632af58e18 100644 --- a/kogito-springboot-examples/onboarding-springboot/src/main/resources/org/kie/kogito/examples/onboarding/onboarding.bpmn +++ b/kogito-springboot-examples/onboarding-springboot/src/main/resources/org/acme/examples/onboarding/onboarding.bpmn @@ -1,7 +1,7 @@ - - + + @@ -13,15 +13,15 @@ - - + + - + - + @@ -32,15 +32,15 @@ - + - + - + @@ -125,9 +125,9 @@ _44ABA3C5-9A26-4843-B03B-99C2C0251707 - + - + @@ -209,7 +209,7 @@ _D5E3808E-4D68-4B8F-939D-17C7643E58FD _D32B4A20-53D1-46F3-95F6-276A2392931F - + @@ -248,7 +248,7 @@ - + @@ -314,8 +314,8 @@ _DF6979D3-AFD3-4BC8-A866-8B9214F7F0FB _BB67B9E9-611B-4B17-A6F9-3CD4DCA4B249 - - + + _9D7A4927-BFCB-4F17-A4D4-E3D03B3FBE49_employeeInputX @@ -353,7 +353,7 @@ - + diff --git a/kogito-springboot-examples/onboarding-springboot/src/main/resources/org/kie/kogito/examples/onboarding/setupHR.bpmn b/kogito-springboot-examples/onboarding-springboot/src/main/resources/org/acme/examples/onboarding/setupHR.bpmn similarity index 96% rename from kogito-springboot-examples/onboarding-springboot/src/main/resources/org/kie/kogito/examples/onboarding/setupHR.bpmn rename to kogito-springboot-examples/onboarding-springboot/src/main/resources/org/acme/examples/onboarding/setupHR.bpmn index 6197ea0873..e5ecbd9828 100644 --- a/kogito-springboot-examples/onboarding-springboot/src/main/resources/org/kie/kogito/examples/onboarding/setupHR.bpmn +++ b/kogito-springboot-examples/onboarding-springboot/src/main/resources/org/acme/examples/onboarding/setupHR.bpmn @@ -1,15 +1,15 @@ - + - + - + @@ -50,7 +50,7 @@ - + diff --git a/kogito-springboot-examples/onboarding-springboot/src/main/resources/org/kie/kogito/examples/onboarding/setupPayroll.bpmn b/kogito-springboot-examples/onboarding-springboot/src/main/resources/org/acme/examples/onboarding/setupPayroll.bpmn similarity index 96% rename from kogito-springboot-examples/onboarding-springboot/src/main/resources/org/kie/kogito/examples/onboarding/setupPayroll.bpmn rename to kogito-springboot-examples/onboarding-springboot/src/main/resources/org/acme/examples/onboarding/setupPayroll.bpmn index 1b8d288b15..09f2350df7 100644 --- a/kogito-springboot-examples/onboarding-springboot/src/main/resources/org/kie/kogito/examples/onboarding/setupPayroll.bpmn +++ b/kogito-springboot-examples/onboarding-springboot/src/main/resources/org/acme/examples/onboarding/setupPayroll.bpmn @@ -1,27 +1,27 @@ - - + + - + - + - + - + @@ -96,7 +96,7 @@ - + @@ -172,7 +172,7 @@ - + @@ -243,7 +243,7 @@ - + @@ -302,7 +302,7 @@ _7B55F281-D560-4130-88C9-177C960E8682 SequenceFlow_3 - org.kie.kogito.examples.onboarding.Payroll empPayroll = new org.kie.kogito.examples.onboarding.Payroll(vacationDays, taxRate, paymentDate); + org.acme.examples.onboarding.Payroll empPayroll = new org.acme.examples.onboarding.Payroll(vacationDays, taxRate, paymentDate); kcontext.setVariable("payroll", empPayroll); diff --git a/kogito-springboot-examples/onboarding-springboot/src/test/java/org/kie/kogito/examples/onboarding/OnboardingEndpointIT.java b/kogito-springboot-examples/onboarding-springboot/src/test/java/org/acme/examples/onboarding/OnboardingEndpointIT.java similarity index 97% rename from kogito-springboot-examples/onboarding-springboot/src/test/java/org/kie/kogito/examples/onboarding/OnboardingEndpointIT.java rename to kogito-springboot-examples/onboarding-springboot/src/test/java/org/acme/examples/onboarding/OnboardingEndpointIT.java index 03279f7644..9ad64f9713 100644 --- a/kogito-springboot-examples/onboarding-springboot/src/test/java/org/kie/kogito/examples/onboarding/OnboardingEndpointIT.java +++ b/kogito-springboot-examples/onboarding-springboot/src/test/java/org/acme/examples/onboarding/OnboardingEndpointIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.onboarding; +package org.acme.examples.onboarding; import java.time.ZonedDateTime; import java.time.format.DateTimeFormatter; @@ -23,11 +23,11 @@ import java.util.Map; import java.util.function.Function; +import org.acme.examples.KogitoOnboardingApplication; +import org.acme.examples.test.RecordedOutputWorkItemHandler; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; -import org.kie.kogito.examples.KogitoOnboardingApplication; -import org.kie.kogito.examples.test.RecordedOutputWorkItemHandler; import org.kie.kogito.internal.process.runtime.KogitoWorkItem; import org.kie.kogito.internal.process.runtime.KogitoWorkItemHandler; import org.kie.kogito.process.ProcessConfig; diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/kie/kogito/examples/test/RecordedOutputWorkItemHandler.java b/kogito-springboot-examples/onboarding-springboot/src/test/java/org/acme/examples/test/RecordedOutputWorkItemHandler.java similarity index 97% rename from kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/kie/kogito/examples/test/RecordedOutputWorkItemHandler.java rename to kogito-springboot-examples/onboarding-springboot/src/test/java/org/acme/examples/test/RecordedOutputWorkItemHandler.java index 98c20ea8b5..ddbaef6549 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/test/java/org/kie/kogito/examples/test/RecordedOutputWorkItemHandler.java +++ b/kogito-springboot-examples/onboarding-springboot/src/test/java/org/acme/examples/test/RecordedOutputWorkItemHandler.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.test; +package org.acme.examples.test; import java.util.HashMap; import java.util.Map; diff --git a/kogito-springboot-examples/onboarding-springboot/src/test/java/org/kie/kogito/examples/test/RecordedWorkItemHandlerConfig.java b/kogito-springboot-examples/onboarding-springboot/src/test/java/org/acme/examples/test/RecordedWorkItemHandlerConfig.java similarity index 97% rename from kogito-springboot-examples/onboarding-springboot/src/test/java/org/kie/kogito/examples/test/RecordedWorkItemHandlerConfig.java rename to kogito-springboot-examples/onboarding-springboot/src/test/java/org/acme/examples/test/RecordedWorkItemHandlerConfig.java index de8947db89..4b99bcab28 100644 --- a/kogito-springboot-examples/onboarding-springboot/src/test/java/org/kie/kogito/examples/test/RecordedWorkItemHandlerConfig.java +++ b/kogito-springboot-examples/onboarding-springboot/src/test/java/org/acme/examples/test/RecordedWorkItemHandlerConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.test; +package org.acme.examples.test; import java.util.ArrayList; import java.util.Arrays; diff --git a/kogito-springboot-examples/pmml-event-driven-springboot/pom.xml b/kogito-springboot-examples/pmml-event-driven-springboot/pom.xml index 9a46b97a15..f5abbaf394 100644 --- a/kogito-springboot-examples/pmml-event-driven-springboot/pom.xml +++ b/kogito-springboot-examples/pmml-event-driven-springboot/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/kie/kogito/examples/springboot/KogitoSpringbootApplication.java b/kogito-springboot-examples/pmml-event-driven-springboot/src/main/java/org/acme/pmml/springboot/example/KogitoSpringbootApplication.java similarity index 93% rename from kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/kie/kogito/examples/springboot/KogitoSpringbootApplication.java rename to kogito-springboot-examples/pmml-event-driven-springboot/src/main/java/org/acme/pmml/springboot/example/KogitoSpringbootApplication.java index 73e73fc5fb..029a7a3685 100644 --- a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/main/java/org/kie/kogito/examples/springboot/KogitoSpringbootApplication.java +++ b/kogito-springboot-examples/pmml-event-driven-springboot/src/main/java/org/acme/pmml/springboot/example/KogitoSpringbootApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.springboot; +package org.acme.pmml.springboot.example; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "http**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**","test**" }) public class KogitoSpringbootApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/pmml-event-driven-springboot/src/test/java/org/kie/kogito/examples/PmmlEventDrivenIT.java b/kogito-springboot-examples/pmml-event-driven-springboot/src/test/java/org/acme/examples/PmmlEventDrivenIT.java similarity index 98% rename from kogito-springboot-examples/pmml-event-driven-springboot/src/test/java/org/kie/kogito/examples/PmmlEventDrivenIT.java rename to kogito-springboot-examples/pmml-event-driven-springboot/src/test/java/org/acme/examples/PmmlEventDrivenIT.java index f125539a2f..1c4ee32bdc 100644 --- a/kogito-springboot-examples/pmml-event-driven-springboot/src/test/java/org/kie/kogito/examples/PmmlEventDrivenIT.java +++ b/kogito-springboot-examples/pmml-event-driven-springboot/src/test/java/org/acme/examples/PmmlEventDrivenIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.io.IOException; import java.net.URL; @@ -25,8 +25,8 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.atomic.AtomicReference; +import org.acme.pmml.springboot.example.KogitoSpringbootApplication; import org.junit.jupiter.api.Test; -import org.kie.kogito.pmml.springboot.example.KogitoSpringbootApplication; import org.kie.kogito.test.springboot.kafka.KafkaTestClient; import org.kie.kogito.testcontainers.springboot.KafkaSpringBootTestResource; import org.skyscreamer.jsonassert.JSONAssert; diff --git a/kogito-springboot-examples/pmml-springboot-example/pom.xml b/kogito-springboot-examples/pmml-springboot-example/pom.xml index 8f7ef4a2f8..e52f78f6db 100644 --- a/kogito-springboot-examples/pmml-springboot-example/pom.xml +++ b/kogito-springboot-examples/pmml-springboot-example/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/kie/kogito/dmn/springboot/example/listener/KogitoSpringbootApplication.java b/kogito-springboot-examples/pmml-springboot-example/src/main/java/org/acme/pmml/springboot/example/KogitoSpringbootApplication.java similarity index 93% rename from kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/kie/kogito/dmn/springboot/example/listener/KogitoSpringbootApplication.java rename to kogito-springboot-examples/pmml-springboot-example/src/main/java/org/acme/pmml/springboot/example/KogitoSpringbootApplication.java index 7d9e1d2726..04794a9307 100644 --- a/kogito-springboot-examples/dmn-listener-springboot/src/main/java/org/kie/kogito/dmn/springboot/example/listener/KogitoSpringbootApplication.java +++ b/kogito-springboot-examples/pmml-springboot-example/src/main/java/org/acme/pmml/springboot/example/KogitoSpringbootApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.springboot.example.listener; +package org.acme.pmml.springboot.example; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "http**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**", "test**" }) public class KogitoSpringbootApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/CommonTestUtils.java b/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/acme/pmml/springboot/example/CommonTestUtils.java similarity index 98% rename from kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/CommonTestUtils.java rename to kogito-springboot-examples/pmml-springboot-example/src/test/java/org/acme/pmml/springboot/example/CommonTestUtils.java index 1af710d2ac..0faac75e3a 100644 --- a/kogito-springboot-examples/dmn-pmml-springboot-example/src/test/java/org/kie/kogito/dmn/pmml/springboot/example/CommonTestUtils.java +++ b/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/acme/pmml/springboot/example/CommonTestUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.dmn.pmml.springboot.example; +package org.acme.pmml.springboot.example; import java.util.Map; diff --git a/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/kie/kogito/pmml/springboot/example/LinRegTest.java b/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/acme/pmml/springboot/example/LinRegTest.java similarity index 89% rename from kogito-springboot-examples/pmml-springboot-example/src/test/java/org/kie/kogito/pmml/springboot/example/LinRegTest.java rename to kogito-springboot-examples/pmml-springboot-example/src/test/java/org/acme/pmml/springboot/example/LinRegTest.java index e2be1f17ab..536f00bafe 100644 --- a/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/kie/kogito/pmml/springboot/example/LinRegTest.java +++ b/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/acme/pmml/springboot/example/LinRegTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.pmml.springboot.example; +package org.acme.pmml.springboot.example; import java.util.Collections; import java.util.Map; @@ -26,8 +26,8 @@ import io.restassured.RestAssured; -import static org.kie.kogito.pmml.springboot.example.CommonTestUtils.testDescriptive; -import static org.kie.kogito.pmml.springboot.example.CommonTestUtils.testResult; +import static org.acme.pmml.springboot.example.CommonTestUtils.testDescriptive; +import static org.acme.pmml.springboot.example.CommonTestUtils.testResult; @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = KogitoSpringbootApplication.class) @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD) diff --git a/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/kie/kogito/pmml/springboot/example/MiningModelTest.java b/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/acme/pmml/springboot/example/MiningModelTest.java similarity index 92% rename from kogito-springboot-examples/pmml-springboot-example/src/test/java/org/kie/kogito/pmml/springboot/example/MiningModelTest.java rename to kogito-springboot-examples/pmml-springboot-example/src/test/java/org/acme/pmml/springboot/example/MiningModelTest.java index 875c7a2f1f..9046bab5d6 100644 --- a/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/kie/kogito/pmml/springboot/example/MiningModelTest.java +++ b/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/acme/pmml/springboot/example/MiningModelTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.pmml.springboot.example; +package org.acme.pmml.springboot.example; import java.util.Collections; import java.util.Map; @@ -26,8 +26,8 @@ import io.restassured.RestAssured; -import static org.kie.kogito.pmml.springboot.example.CommonTestUtils.testDescriptive; -import static org.kie.kogito.pmml.springboot.example.CommonTestUtils.testResult; +import static org.acme.pmml.springboot.example.CommonTestUtils.testDescriptive; +import static org.acme.pmml.springboot.example.CommonTestUtils.testResult; @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = KogitoSpringbootApplication.class) @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD) diff --git a/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/kie/kogito/pmml/springboot/example/SampleMineTest.java b/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/acme/pmml/springboot/example/SampleMineTest.java similarity index 84% rename from kogito-springboot-examples/pmml-springboot-example/src/test/java/org/kie/kogito/pmml/springboot/example/SampleMineTest.java rename to kogito-springboot-examples/pmml-springboot-example/src/test/java/org/acme/pmml/springboot/example/SampleMineTest.java index 686593bf21..fa196f6aa3 100644 --- a/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/kie/kogito/pmml/springboot/example/SampleMineTest.java +++ b/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/acme/pmml/springboot/example/SampleMineTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.pmml.springboot.example; +package org.acme.pmml.springboot.example; import java.util.HashMap; import java.util.Map; @@ -26,9 +26,6 @@ import io.restassured.RestAssured; -import static org.kie.kogito.pmml.springboot.example.CommonTestUtils.testDescriptive; -import static org.kie.kogito.pmml.springboot.example.CommonTestUtils.testResult; - @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = KogitoSpringbootApplication.class) @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD) class SampleMineTest { @@ -47,7 +44,7 @@ public void setUp() { @Test void testEvaluateSampleMineResult() { String inputData = "{\"temperature\":30.0, \"humidity\":10.0}"; - testResult(inputData, BASE_PATH, TARGET, "sunglasses"); + CommonTestUtils.testResult(inputData, BASE_PATH, TARGET, "sunglasses"); } @Test @@ -56,7 +53,7 @@ void testEvaluateSampleMineDescriptive() { final Map expectedResultMap = new HashMap<>(); expectedResultMap.put(TARGET, "sunglasses"); expectedResultMap.put("weatherdecision", "sunglasses"); - testDescriptive(inputData, BASE_PATH, TARGET, expectedResultMap); + CommonTestUtils.testDescriptive(inputData, BASE_PATH, TARGET, expectedResultMap); } } diff --git a/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/kie/kogito/pmml/springboot/example/SimpleScorecardTest.java b/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/acme/pmml/springboot/example/SimpleScorecardTest.java similarity index 84% rename from kogito-springboot-examples/pmml-springboot-example/src/test/java/org/kie/kogito/pmml/springboot/example/SimpleScorecardTest.java rename to kogito-springboot-examples/pmml-springboot-example/src/test/java/org/acme/pmml/springboot/example/SimpleScorecardTest.java index 0ab88633a0..c95d80a27f 100644 --- a/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/kie/kogito/pmml/springboot/example/SimpleScorecardTest.java +++ b/kogito-springboot-examples/pmml-springboot-example/src/test/java/org/acme/pmml/springboot/example/SimpleScorecardTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.pmml.springboot.example; +package org.acme.pmml.springboot.example; import java.util.HashMap; import java.util.Map; @@ -26,9 +26,6 @@ import io.restassured.RestAssured; -import static org.kie.kogito.pmml.springboot.example.CommonTestUtils.testDescriptive; -import static org.kie.kogito.pmml.springboot.example.CommonTestUtils.testResult; - @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = KogitoSpringbootApplication.class) @DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD) class SimpleScorecardTest { @@ -47,7 +44,7 @@ public void setUp() { @Test void testEvaluateSimpleScorecardResult() { String inputData = "{\"input1\":5.0, \"input2\":-10.0}"; - testResult(inputData, BASE_PATH, TARGET, -15.0f); + CommonTestUtils.testResult(inputData, BASE_PATH, TARGET, -15.0f); } @Test @@ -57,7 +54,7 @@ void testEvaluateSimpleScorecardDescriptive() { expectedResultMap.put(TARGET, -15.0f); expectedResultMap.put("Reason Code 1", "Input1ReasonCode"); expectedResultMap.put("Reason Code 2", "Input2ReasonCode"); - testDescriptive(inputData, BASE_PATH, TARGET, expectedResultMap); + CommonTestUtils.testDescriptive(inputData, BASE_PATH, TARGET, expectedResultMap); } } diff --git a/kogito-springboot-examples/pom.xml b/kogito-springboot-examples/pom.xml index df57d4a323..7044ec6ba8 100644 --- a/kogito-springboot-examples/pom.xml +++ b/kogito-springboot-examples/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-business-rules-springboot/mvnw b/kogito-springboot-examples/process-business-rules-springboot/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-springboot-examples/process-business-rules-springboot/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-springboot-examples/process-business-rules-springboot/mvnw.cmd b/kogito-springboot-examples/process-business-rules-springboot/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-springboot-examples/process-business-rules-springboot/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-springboot-examples/process-business-rules-springboot/pom.xml b/kogito-springboot-examples/process-business-rules-springboot/pom.xml index e770ea884d..e3d3af7da7 100644 --- a/kogito-springboot-examples/process-business-rules-springboot/pom.xml +++ b/kogito-springboot-examples/process-business-rules-springboot/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-business-rules-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java b/kogito-springboot-examples/process-business-rules-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java new file mode 100644 index 0000000000..940000c484 --- /dev/null +++ b/kogito-springboot-examples/process-business-rules-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java @@ -0,0 +1,28 @@ +/* + * Copyright 2020 Red Hat, Inc. and/or its affiliates. + * + * Licensed 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.acme.tests; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**", "org.drools.**" }) +public class KogitoInfinispanSpringbootApplication { + + public static void main(String[] args) { + SpringApplication.run(KogitoInfinispanSpringbootApplication.class, args); + } + +} diff --git a/kogito-springboot-examples/process-business-rules-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java b/kogito-springboot-examples/process-business-rules-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java deleted file mode 100644 index 4b2388ce3c..0000000000 --- a/kogito-springboot-examples/process-business-rules-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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.tests; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; - -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.travels.**", "org.drools.project.model.**" }) -public class KogitoInfinispanSpringbootApplication { - - public static void main(String[] args) { - SpringApplication.run(KogitoInfinispanSpringbootApplication.class, args); - } - -} diff --git a/kogito-springboot-examples/process-business-rules-springboot/src/test/java/org/acme/travels/PersonsProcessTest.java b/kogito-springboot-examples/process-business-rules-springboot/src/test/java/org/acme/travels/PersonsProcessTest.java index aefc9e3487..8d8bf99bbd 100644 --- a/kogito-springboot-examples/process-business-rules-springboot/src/test/java/org/acme/travels/PersonsProcessTest.java +++ b/kogito-springboot-examples/process-business-rules-springboot/src/test/java/org/acme/travels/PersonsProcessTest.java @@ -19,13 +19,13 @@ import java.util.List; import java.util.Map; +import org.acme.tests.KogitoInfinispanSpringbootApplication; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.kie.kogito.Model; import org.kie.kogito.process.Process; import org.kie.kogito.process.ProcessInstance; import org.kie.kogito.process.WorkItem; -import org.kie.kogito.tests.KogitoInfinispanSpringbootApplication; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.test.context.SpringBootTest; diff --git a/kogito-springboot-examples/process-decisions-rest-springboot/README.md b/kogito-springboot-examples/process-decisions-rest-springboot/README.md index fd42534ac3..8f618bab1c 100644 --- a/kogito-springboot-examples/process-decisions-rest-springboot/README.md +++ b/kogito-springboot-examples/process-decisions-rest-springboot/README.md @@ -23,7 +23,7 @@ It is based on the traffic violation evaluation process, where it is required to ![Traffic Process](docs/images/traffic-rules-dmn-service-task.png) -In this approach it requires coding, to provide an implementation in the application responsible to execute the task, in this case, a REST/HTTP call. The implementation is up to the user, but here it's been used what the platform provides, like the [RestTemplate](https://spring.io/guides/gs/consuming-rest/). Details can be seen in the classes [LicenseValidationRestService](src/main/java/org/kie/kogito/traffic/LicenseValidationRestService.java) and [TrafficViolationRestService](src/main/java/org/kie/kogito/traffic/TrafficViolationRestService.java). +In this approach it requires coding, to provide an implementation in the application responsible to execute the task, in this case, a REST/HTTP call. The implementation is up to the user, but here it's been used what the platform provides, like the [RestTemplate](https://spring.io/guides/gs/consuming-rest/). Details can be seen in the classes [LicenseValidationRestService](src/main/java/org/acme/traffic/LicenseValidationRestService.java) and [TrafficViolationRestService](src/main/java/org/acme/traffic/TrafficViolationRestService.java). The BPMN file where this process is declared is [traffic-rules-dmn-service-task.bpmn](src/main/resources/traffic-rules-dmn-service-task.bpmn) @@ -44,13 +44,13 @@ These are the properties defined for the process, the most important one in this * #### Proces Variables -The variables used in the process itself, but the focus in this example are the classes that are used to define the POJOs to interact the process with decisions, that are the [Violation](src/main/java/org/kie/kogito/traffic/Violation.java), [Driver](src/main/java/org/kie/kogito/traffic/Driver.java), [Fine](src/main/java/org/kie/kogito/traffic/Fine.java) and [TrafficViolationResponse](src/main/java/org/kie/kogito/traffic/TrafficViolationResponse.java). +The variables used in the process itself, but the focus in this example are the classes that are used to define the POJOs to interact the process with decisions, that are the [Violation](src/main/java/org/acme/traffic/Violation.java), [Driver](src/main/java/org/acme/traffic/Driver.java), [Fine](src/main/java/org/acme/traffic/Fine.java) and [TrafficViolationResponse](src/main/java/org/acme/traffic/TrafficViolationResponse.java). **Mapping data from Process to/from DMN** -It is important to mention DMN for instance can define the Data Type in its structure, but we can align all attributes names in a Java class that is used as process variables, in case the attribute names contain spaces or are not following java conventions we can use [Jackson](https://github.com/FasterXML/jackson) annotations to make the process variable POJOs aligned with DMN data types, for instance in the [Violation](src/main/java/org/kie/kogito/traffic/Violation.java) class, where it is mapped the `speedLimit` attribute as `Speed Limit` using `@JsonProperty` annotation, in this case, this attribute from the process variable with Violation can be seamlessly integrated Violation Data Type defined in DMN. +It is important to mention DMN for instance can define the Data Type in its structure, but we can align all attributes names in a Java class that is used as process variables, in case the attribute names contain spaces or are not following java conventions we can use [Jackson](https://github.com/FasterXML/jackson) annotations to make the process variable POJOs aligned with DMN data types, for instance in the [Violation](src/main/java/org/acme/traffic/Violation.java) class, where it is mapped the `speedLimit` attribute as `Speed Limit` using `@JsonProperty` annotation, in this case, this attribute from the process variable with Violation can be seamlessly integrated Violation Data Type defined in DMN. **Violation Data Type in DMN** @@ -61,7 +61,7 @@ It is important to mention DMN for instance can define the Data Type in its stru Fetch for driver information, in this implementation it is just mocking a result, that simply fill with an expired license date in case the `driverId` is an odd number and with a valid date in case of an even number. In a real use case, it could be performing an external call to a service or a database to get this information. -The service task implementation is done in the [DriverService](src/main/java/org/kie/kogito/traffic/DriverService.java) class. +The service task implementation is done in the [DriverService](src/main/java/org/acme/traffic/DriverService.java) class. In the data assignment the input is the `driverId` and output is the `driver` variable, filled with all driver information. @@ -102,7 +102,7 @@ The implementation properties where it is necessary to set the Java class implem -The input for this task is the `Driver` and `Violation` variables, and the output is the `Suspended` and `Fine` that are wrapped into the [TrafficViolationResponse](src/main/java/org/kie/kogito/traffic/TrafficViolationResponse.java). +The input for this task is the `Driver` and `Violation` variables, and the output is the `Suspended` and `Fine` that are wrapped into the [TrafficViolationResponse](src/main/java/org/acme/traffic/TrafficViolationResponse.java). ![Traffic Violation Service Data](docs/images/traffic-violation-drl-service-task-data.png) @@ -111,7 +111,7 @@ The input for this task is the `Driver` and `Violation` variables, and the outpu -The input for this task is the `Driver` and `Violation` variables, and the output is the `Suspended` and `Fine` that are wrapped into the [TrafficViolationResponse](src/main/java/org/kie/kogito/traffic/TrafficViolationResponse.java). For REST Work Item the URL and HTTP Method are set as input parameters in the process itselt, that is different from the Service Task approaach. +The input for this task is the `Driver` and `Violation` variables, and the output is the `Suspended` and `Fine` that are wrapped into the [TrafficViolationResponse](src/main/java/org/acme/traffic/TrafficViolationResponse.java). For REST Work Item the URL and HTTP Method are set as input parameters in the process itselt, that is different from the Service Task approaach. ![Traffic Violation WIH Data](docs/images/traffic-violation-drl-wih-data.png) @@ -129,7 +129,7 @@ Just an example task where it could be performed any action based on the conditi This decision consistis in rules which are evaluated to check if a driver's license is expired or not according to the expiration date and thus populating the result in the information in the driver variable. -The DRL file where this Rule Unit is declared is [LicenseValidationService.drl](src/main/resources/LicenseValidationService.drl) and the the Java class that contains the Rule Unit Data is [LicenseValidationService](src/main/java/org/kie/kogito/traffic/LicenseValidationService.java). +The DRL file where this Rule Unit is declared is [LicenseValidationService.drl](src/main/resources/LicenseValidationService.drl) and the the Java class that contains the Rule Unit Data is [LicenseValidationService](src/main/java/org/acme/traffic/LicenseValidationService.java). ### Traffic Violation - DMN diff --git a/kogito-springboot-examples/process-decisions-rest-springboot/pom.xml b/kogito-springboot-examples/process-decisions-rest-springboot/pom.xml index ce8928da69..cafff2b8e2 100644 --- a/kogito-springboot-examples/process-decisions-rest-springboot/pom.xml +++ b/kogito-springboot-examples/process-decisions-rest-springboot/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/Driver.java b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/Driver.java similarity index 98% rename from kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/Driver.java rename to kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/Driver.java index f77a47b749..26bd79ee24 100644 --- a/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/Driver.java +++ b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/Driver.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.util.Date; diff --git a/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/DriverService.java b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/DriverService.java similarity index 97% rename from kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/DriverService.java rename to kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/DriverService.java index c6e2e44bb9..a0b9732243 100644 --- a/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/DriverService.java +++ b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/DriverService.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.time.ZonedDateTime; import java.util.Date; diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/Fine.java b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/Fine.java similarity index 97% rename from kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/Fine.java rename to kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/Fine.java index 4b6873829e..d82495c3d1 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/Fine.java +++ b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/Fine.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/KogitoApplication.java b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/KogitoApplication.java similarity index 93% rename from kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/KogitoApplication.java rename to kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/KogitoApplication.java index e761b023d5..2200a3deef 100644 --- a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/KogitoApplication.java +++ b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/KogitoApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "http**", "com.example.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "http**", "org.acme.**" }) public class KogitoApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/LicenseValidationRestService.java b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/LicenseValidationRestService.java similarity index 98% rename from kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/LicenseValidationRestService.java rename to kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/LicenseValidationRestService.java index efcefb779c..5926141d66 100644 --- a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/LicenseValidationRestService.java +++ b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/LicenseValidationRestService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.net.URI; import java.util.Collections; diff --git a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/LicenseValidationService.java b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/LicenseValidationService.java similarity index 97% rename from kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/LicenseValidationService.java rename to kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/LicenseValidationService.java index 53fd44ed58..2423a7c362 100644 --- a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/LicenseValidationService.java +++ b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/LicenseValidationService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.util.Date; diff --git a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/TrafficViolationResponse.java b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/TrafficViolationResponse.java similarity index 97% rename from kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/TrafficViolationResponse.java rename to kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/TrafficViolationResponse.java index cd550b1c03..eabb4ee936 100644 --- a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/TrafficViolationResponse.java +++ b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/TrafficViolationResponse.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/TrafficViolationRestService.java b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/TrafficViolationRestService.java similarity index 98% rename from kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/TrafficViolationRestService.java rename to kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/TrafficViolationRestService.java index 5b4b78550a..36346663e5 100644 --- a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/TrafficViolationRestService.java +++ b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/TrafficViolationRestService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.net.URI; import java.util.HashMap; diff --git a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/Violation.java b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/Violation.java similarity index 98% rename from kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/Violation.java rename to kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/Violation.java index 56446af2d2..232567b0e0 100644 --- a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/Violation.java +++ b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/acme/traffic/Violation.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.math.BigDecimal; import java.util.Date; diff --git a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/resources/LicenseValidationService.drl b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/resources/LicenseValidationService.drl index 799c78abd4..06c7bc2412 100644 --- a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/resources/LicenseValidationService.drl +++ b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/resources/LicenseValidationService.drl @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic +package org.acme.traffic unit LicenseValidationService diff --git a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/resources/traffic-rules-dmn-service-task.bpmn b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/resources/traffic-rules-dmn-service-task.bpmn index 7ba4f69c61..9323dd6cb3 100644 --- a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/resources/traffic-rules-dmn-service-task.bpmn +++ b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/resources/traffic-rules-dmn-service-task.bpmn @@ -1,25 +1,25 @@ - - - + + + - - - - - - - + + + + + + + - + - + - + @@ -92,7 +92,7 @@ - + _8A36870E-651D-4E0A-B345-D5CFF2182F0F _E183B890-1419-4A36-B1DC-257EB0B333E0 - - - + + + _BB50D380-3FE4-4B5E-9732-6E7E2B704BA0_driverInputX _BB50D380-3FE4-4B5E-9732-6E7E2B704BA0_violationInputX @@ -126,7 +126,7 @@ DMN]]> trafficViolationResponse - + _A19108FE-08A2-4E80-B7A8-0254C49209A6 _729FBA6E-72AB-4541-9965-DB7CDCD2E0A9 - - + + _8D1A7055-57B3-4C74-A502-2AB715599268_driverInputX @@ -162,7 +162,7 @@ DRL]]> _044AA388-325A-45DE-B783-4F48421B788B _8A36870E-651D-4E0A-B345-D5CFF2182F0F - + @@ -172,7 +172,7 @@ DRL]]> _A19108FE-08A2-4E80-B7A8-0254C49209A6 - + _93FFD317-476E-4624-84EF-994617572560_driverIdInputX diff --git a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/resources/traffic-rules-dmn-wih.bpmn b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/resources/traffic-rules-dmn-wih.bpmn index 6aa79d7bdf..0f1767de1f 100644 --- a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/resources/traffic-rules-dmn-wih.bpmn +++ b/kogito-springboot-examples/process-decisions-rest-springboot/src/main/resources/traffic-rules-dmn-wih.bpmn @@ -1,32 +1,32 @@ - - - + + + - + - + - + - - + + - - + + - + @@ -108,14 +108,14 @@ DMN]]> - - + + - + _38F4877F-50AD-4500-98E1-9B4FD3972291_MethodInputX _38F4877F-50AD-4500-98E1-9B4FD3972291_UrlInputX @@ -177,14 +177,14 @@ DRL]]> - + - + _D8D9E6BA-5940-41F5-BF3A-1A08ADA72A4C_MethodInputX _D8D9E6BA-5940-41F5-BF3A-1A08ADA72A4C_UrlInputX @@ -245,7 +245,7 @@ DRL]]> _8A36870E-651D-4E0A-B345-D5CFF2182F0F _044AA388-325A-45DE-B783-4F48421B788B - + @@ -255,7 +255,7 @@ DRL]]> _A19108FE-08A2-4E80-B7A8-0254C49209A6 - + _93FFD317-476E-4624-84EF-994617572560_driverIdInputX diff --git a/kogito-springboot-examples/process-decisions-rest-springboot/src/test/java/org/kie/kogito/traffic/TrafficProcessIT.java b/kogito-springboot-examples/process-decisions-rest-springboot/src/test/java/org/acme/traffic/TrafficProcessIT.java similarity index 98% rename from kogito-springboot-examples/process-decisions-rest-springboot/src/test/java/org/kie/kogito/traffic/TrafficProcessIT.java rename to kogito-springboot-examples/process-decisions-rest-springboot/src/test/java/org/acme/traffic/TrafficProcessIT.java index 5eedf8de77..56855b7b99 100644 --- a/kogito-springboot-examples/process-decisions-rest-springboot/src/test/java/org/kie/kogito/traffic/TrafficProcessIT.java +++ b/kogito-springboot-examples/process-decisions-rest-springboot/src/test/java/org/acme/traffic/TrafficProcessIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.math.BigDecimal; import java.util.HashMap; diff --git a/kogito-springboot-examples/process-decisions-rules-springboot/README.md b/kogito-springboot-examples/process-decisions-rules-springboot/README.md index 69289d2ec6..409558dbf5 100644 --- a/kogito-springboot-examples/process-decisions-rules-springboot/README.md +++ b/kogito-springboot-examples/process-decisions-rules-springboot/README.md @@ -32,13 +32,13 @@ These are the properties defined for the process, the most important one in this * #### Proces Variables -The variables used in the process itself, but the focus in this example are the classes that are used to define the POJOs to interact the process with decisions, that are the [Violation](src/main/java/org/kie/kogito/traffic/Violation.java), [Driver](src/main/java/org/kie/kogito/traffic/Driver.java), [Fine](src/main/java/org/kie/kogito/traffic/Fine.java). +The variables used in the process itself, but the focus in this example are the classes that are used to define the POJOs to interact the process with decisions, that are the [Violation](src/main/java/org/acme/traffic/Violation.java), [Driver](src/main/java/org/acme/traffic/Driver.java), [Fine](src/main/java/org/acme/traffic/Fine.java). **Mapping data from Process to/from DMN** -It is important to mention DMN for instance can define the Data Type in its structure, but we can align all attributes names in a Java class that is used as process variables, in case the attribute names contain spaces or are not following java conventions we can use [Jackson](https://github.com/FasterXML/jackson) annotations to make the process variable POJOs aligned with DMN data types, for instance in the [Violation](src/main/java/org/kie/kogito/traffic/Violation.java) class, where it is mapped the `speedLimit` attribute as `Speed Limit` using `@JsonProperty` annotation, in this case, this attribute from the process variable with Violation can be seamlessly integrated Violation Data Type defined in DMN. +It is important to mention DMN for instance can define the Data Type in its structure, but we can align all attributes names in a Java class that is used as process variables, in case the attribute names contain spaces or are not following java conventions we can use [Jackson](https://github.com/FasterXML/jackson) annotations to make the process variable POJOs aligned with DMN data types, for instance in the [Violation](src/main/java/org/acme/traffic/Violation.java) class, where it is mapped the `speedLimit` attribute as `Speed Limit` using `@JsonProperty` annotation, in this case, this attribute from the process variable with Violation can be seamlessly integrated Violation Data Type defined in DMN. **Violation Data Type in DMN** @@ -49,7 +49,7 @@ It is important to mention DMN for instance can define the Data Type in its stru Fetch for driver information, in this implementation it is just mocking a result, that simply fill with an expired license date in case the `driverId` is an odd number and with a valid date in case of an even number. In a real use case, it could be performing an external call to a service or a database to get this information. -The service task implementation is done in the [DriverService](src/main/java/org/kie/kogito/traffic/DriverService.java) class. +The service task implementation is done in the [DriverService](src/main/java/org/acme/traffic/DriverService.java) class. In the data assignment the input is the `driverId` and output is the `driver` variable, filled with all driver information. @@ -59,7 +59,7 @@ Represents the task to do the call to the DRL service. -The properties to be set are mainly the `Rule Language`that should be set as `DRL` and the `Rule Flow Group` with `unit:` + `[the FQCN of the Rule Unit Data class]`, in this case [org.kie.kogito.traffic.LicenseValidationService](src/main/java/org/kie/kogito/traffic/LicenseValidationService.java). +The properties to be set are mainly the `Rule Language`that should be set as `DRL` and the `Rule Flow Group` with `unit:` + `[the FQCN of the Rule Unit Data class]`, in this case [org.acme.traffic.LicenseValidationService](src/main/java/org/acme/traffic/LicenseValidationService.java). @@ -95,7 +95,7 @@ Just an example task where it could be performed any action based on the conditi This decision consistis in rules which are evaluated to check if a driver's license is expired or not according to the expiration date and thus populating the result in the information in the driver variable. -The DRL file where this Rule Unit is declared is [LicenseValidationService.drl](src/main/resources/LicenseValidationService.drl) and the the Java class that contains the Rule Unit Data is [LicenseValidationService](src/main/java/org/kie/kogito/traffic/LicenseValidationService.java). +The DRL file where this Rule Unit is declared is [LicenseValidationService.drl](src/main/resources/LicenseValidationService.drl) and the the Java class that contains the Rule Unit Data is [LicenseValidationService](src/main/java/org/acme/traffic/LicenseValidationService.java). ### Traffic Violation - DMN diff --git a/kogito-springboot-examples/process-decisions-rules-springboot/pom.xml b/kogito-springboot-examples/process-decisions-rules-springboot/pom.xml index 72beacfa13..512dce2e2a 100644 --- a/kogito-springboot-examples/process-decisions-rules-springboot/pom.xml +++ b/kogito-springboot-examples/process-decisions-rules-springboot/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/DriverService.java b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/DriverService.java similarity index 94% rename from kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/DriverService.java rename to kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/DriverService.java index 9db51425a8..92a63e6937 100644 --- a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/DriverService.java +++ b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/DriverService.java @@ -14,12 +14,12 @@ * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.time.ZonedDateTime; import java.util.Date; -import org.kie.kogito.traffic.licensevalidation.Driver; +import org.acme.traffic.licensevalidation.Driver; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; diff --git a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/Fine.java b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/Fine.java new file mode 100644 index 0000000000..d82495c3d1 --- /dev/null +++ b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/Fine.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Red Hat, Inc. and/or its affiliates. + * + * Licensed 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.acme.traffic; + +import com.fasterxml.jackson.annotation.JsonProperty; + +public class Fine { + + @JsonProperty("Amount") + private Double amount; + + @JsonProperty("Points") + private Integer points; + + public Double getAmount() { + return amount; + } + + public void setAmount(Double amount) { + this.amount = amount; + } + + public Integer getPoints() { + return points; + } + + public void setPoints(Integer points) { + this.points = points; + } +} diff --git a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/KogitoApplication.java b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/KogitoApplication.java similarity index 94% rename from kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/KogitoApplication.java rename to kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/KogitoApplication.java index 6009267b46..9329d207bb 100644 --- a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/KogitoApplication.java +++ b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/KogitoApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "com.example.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) public class KogitoApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/Violation.java b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/Violation.java new file mode 100644 index 0000000000..232567b0e0 --- /dev/null +++ b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/Violation.java @@ -0,0 +1,90 @@ +/* + * Copyright 2021 Red Hat, Inc. and/or its affiliates. + * + * Licensed 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.acme.traffic; + +import java.math.BigDecimal; +import java.util.Date; + +import com.fasterxml.jackson.annotation.JsonProperty; + +public class Violation { + + @JsonProperty("Code") + private String code; + + @JsonProperty("Date") + private Date date; + + @JsonProperty("Type") + private String type; + + @JsonProperty("Speed Limit") + private BigDecimal speedLimit; + + @JsonProperty("Actual Speed") + private BigDecimal actualSpeed; + + public Violation() { + } + + public Violation(String type, BigDecimal speedLimit, BigDecimal actualSpeed) { + this.type = type; + this.speedLimit = speedLimit; + this.actualSpeed = actualSpeed; + this.date = new Date(); + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public Date getDate() { + return date; + } + + public void setDate(Date date) { + this.date = date; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public BigDecimal getSpeedLimit() { + return speedLimit; + } + + public void setSpeedLimit(BigDecimal speedLimit) { + this.speedLimit = speedLimit; + } + + public BigDecimal getActualSpeed() { + return actualSpeed; + } + + public void setActualSpeed(BigDecimal actualSpeed) { + this.actualSpeed = actualSpeed; + } +} diff --git a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/licensevalidated/LicenseValidatedService.java b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/licensevalidated/LicenseValidatedService.java similarity index 96% rename from kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/licensevalidated/LicenseValidatedService.java rename to kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/licensevalidated/LicenseValidatedService.java index b6a0374e9d..b37b889f3a 100644 --- a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/licensevalidated/LicenseValidatedService.java +++ b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/licensevalidated/LicenseValidatedService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic.licensevalidated; +package org.acme.traffic.licensevalidated; import java.util.Date; diff --git a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/licensevalidated/Validated.java b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/licensevalidated/Validated.java similarity index 96% rename from kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/licensevalidated/Validated.java rename to kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/licensevalidated/Validated.java index 90c51f09e3..9f8a843e96 100644 --- a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/licensevalidated/Validated.java +++ b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/licensevalidated/Validated.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.traffic.licensevalidated; +package org.acme.traffic.licensevalidated; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/licensevalidation/Driver.java b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/licensevalidation/Driver.java similarity index 98% rename from kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/licensevalidation/Driver.java rename to kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/licensevalidation/Driver.java index 6ee8bfbb04..992738b4f0 100644 --- a/kogito-quarkus-examples/process-decisions-rules-quarkus/src/main/java/org/kie/kogito/traffic/licensevalidation/Driver.java +++ b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/licensevalidation/Driver.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.traffic.licensevalidation; +package org.acme.traffic.licensevalidation; import java.util.Date; diff --git a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/licensevalidation/LicenseValidationService.java b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/licensevalidation/LicenseValidationService.java new file mode 100644 index 0000000000..7d4488af6b --- /dev/null +++ b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/acme/traffic/licensevalidation/LicenseValidationService.java @@ -0,0 +1,46 @@ +/* + * Copyright 2020 Red Hat, Inc. and/or its affiliates. + * + * Licensed 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.acme.traffic.licensevalidation; + +import java.util.Date; + +import org.drools.ruleunits.api.DataSource; +import org.drools.ruleunits.api.RuleUnitData; +import org.drools.ruleunits.api.SingletonStore; + +public class LicenseValidationService implements RuleUnitData { + private SingletonStore driver; + + public LicenseValidationService() { + this(DataSource.createSingleton()); + } + + public LicenseValidationService(SingletonStore driver) { + this.driver = driver; + } + + public void setDriver(SingletonStore driver) { + this.driver = driver; + } + + public SingletonStore getDriver() { + return driver; + } + + public Date getCurrentTime() { + return new Date(); + } +} diff --git a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/Fine.java b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/Fine.java deleted file mode 100644 index 4b6873829e..0000000000 --- a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/Fine.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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.traffic; - -import com.fasterxml.jackson.annotation.JsonProperty; - -public class Fine { - - @JsonProperty("Amount") - private Double amount; - - @JsonProperty("Points") - private Integer points; - - public Double getAmount() { - return amount; - } - - public void setAmount(Double amount) { - this.amount = amount; - } - - public Integer getPoints() { - return points; - } - - public void setPoints(Integer points) { - this.points = points; - } -} diff --git a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/Violation.java b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/Violation.java deleted file mode 100644 index 56446af2d2..0000000000 --- a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/Violation.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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.traffic; - -import java.math.BigDecimal; -import java.util.Date; - -import com.fasterxml.jackson.annotation.JsonProperty; - -public class Violation { - - @JsonProperty("Code") - private String code; - - @JsonProperty("Date") - private Date date; - - @JsonProperty("Type") - private String type; - - @JsonProperty("Speed Limit") - private BigDecimal speedLimit; - - @JsonProperty("Actual Speed") - private BigDecimal actualSpeed; - - public Violation() { - } - - public Violation(String type, BigDecimal speedLimit, BigDecimal actualSpeed) { - this.type = type; - this.speedLimit = speedLimit; - this.actualSpeed = actualSpeed; - this.date = new Date(); - } - - public String getCode() { - return code; - } - - public void setCode(String code) { - this.code = code; - } - - public Date getDate() { - return date; - } - - public void setDate(Date date) { - this.date = date; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public BigDecimal getSpeedLimit() { - return speedLimit; - } - - public void setSpeedLimit(BigDecimal speedLimit) { - this.speedLimit = speedLimit; - } - - public BigDecimal getActualSpeed() { - return actualSpeed; - } - - public void setActualSpeed(BigDecimal actualSpeed) { - this.actualSpeed = actualSpeed; - } -} diff --git a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/licensevalidation/LicenseValidationService.java b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/licensevalidation/LicenseValidationService.java deleted file mode 100644 index 2d56c89eea..0000000000 --- a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/java/org/kie/kogito/traffic/licensevalidation/LicenseValidationService.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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.traffic.licensevalidation; - -import java.util.Date; - -import org.drools.ruleunits.api.DataSource; -import org.drools.ruleunits.api.RuleUnitData; -import org.drools.ruleunits.api.SingletonStore; - -public class LicenseValidationService implements RuleUnitData { - private SingletonStore driver; - - public LicenseValidationService() { - this(DataSource.createSingleton()); - } - - public LicenseValidationService(SingletonStore driver) { - this.driver = driver; - } - - public void setDriver(SingletonStore driver) { - this.driver = driver; - } - - public SingletonStore getDriver() { - return driver; - } - - public Date getCurrentTime() { - return new Date(); - } -} diff --git a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/resources/LicenseValidatedService.drl b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/resources/LicenseValidatedService.drl index 5dd428e835..1dc62a9096 100644 --- a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/resources/LicenseValidatedService.drl +++ b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/resources/LicenseValidatedService.drl @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic.licensevalidated +package org.acme.traffic.licensevalidated unit LicenseValidatedService diff --git a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/resources/LicenseValidationService.drl b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/resources/LicenseValidationService.drl index 324866bfa3..1b4622d9a3 100644 --- a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/resources/LicenseValidationService.drl +++ b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/resources/LicenseValidationService.drl @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic.licensevalidation +package org.acme.traffic.licensevalidation unit LicenseValidationService diff --git a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/resources/traffic-rules-dmn.bpmn b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/resources/traffic-rules-dmn.bpmn index bb3c183e1e..ee189729e5 100644 --- a/kogito-springboot-examples/process-decisions-rules-springboot/src/main/resources/traffic-rules-dmn.bpmn +++ b/kogito-springboot-examples/process-decisions-rules-springboot/src/main/resources/traffic-rules-dmn.bpmn @@ -1,36 +1,36 @@ - - - - + + + + - - - - + + + + - + - - + + - - - + + + - + @@ -114,7 +114,7 @@ - + _BB963FF4-CF17-4CA0-A727-9AFC2BE17C29 _E7EF578E-3735-42D9-BF0C-8CCBF398D41C - - + + _3F719C8E-DA3F-46F8-B8F2-5F04DB132E9C_validatedInputX @@ -155,7 +155,7 @@ DRL]]> _D2252EFF-5EC4-4D61-B797-653F71652627 _044AA388-325A-45DE-B783-4F48421B788B - + _A19108FE-08A2-4E80-B7A8-0254C49209A6 _D3E2F4B7-7739-452F-8D55-0C4F169D4A44 - - + + _95EFED1F-73F8-47E7-9604-A81EFE5DE8F5_driverInputX @@ -183,7 +183,7 @@ DRL]]> driver - + @@ -193,7 +193,7 @@ DRL]]> _A19108FE-08A2-4E80-B7A8-0254C49209A6 - + _93FFD317-476E-4624-84EF-994617572560_driverIdInputX @@ -261,10 +261,10 @@ DMN]]> - - - - + + + + _B076DF7E-91A5-47C7-B3FC-2C2EC06E5941_namespaceInputX _B076DF7E-91A5-47C7-B3FC-2C2EC06E5941_decisionInputX diff --git a/kogito-springboot-examples/process-decisions-rules-springboot/src/test/java/org.kie.kogito.traffic/TrafficProcessIT.java b/kogito-springboot-examples/process-decisions-rules-springboot/src/test/java/org/acme/traffic/TrafficProcessIT.java similarity index 98% rename from kogito-springboot-examples/process-decisions-rules-springboot/src/test/java/org.kie.kogito.traffic/TrafficProcessIT.java rename to kogito-springboot-examples/process-decisions-rules-springboot/src/test/java/org/acme/traffic/TrafficProcessIT.java index 35fe70cf43..5f93b42810 100644 --- a/kogito-springboot-examples/process-decisions-rules-springboot/src/test/java/org.kie.kogito.traffic/TrafficProcessIT.java +++ b/kogito-springboot-examples/process-decisions-rules-springboot/src/test/java/org/acme/traffic/TrafficProcessIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.math.BigDecimal; import java.util.HashMap; diff --git a/kogito-springboot-examples/process-decisions-springboot/README.md b/kogito-springboot-examples/process-decisions-springboot/README.md index e549d18fe8..4be0da677f 100644 --- a/kogito-springboot-examples/process-decisions-springboot/README.md +++ b/kogito-springboot-examples/process-decisions-springboot/README.md @@ -32,13 +32,13 @@ These are the properties defined for the process, the most important one in this * #### Proces Variables -The variables used in the process itself, but the focus in this example are the classes that are used to define the POJOs to interact the process with decisions, that are the [Violation](src/main/java/org/kie/kogito/traffic/Violation.java), [Driver](src/main/java/org/kie/kogito/traffic/Driver.java), [Fine](src/main/java/org/kie/kogito/traffic/Fine.java). +The variables used in the process itself, but the focus in this example are the classes that are used to define the POJOs to interact the process with decisions, that are the [Violation](src/main/java/org/acme/traffic/Violation.java), [Driver](src/main/java/org/acme/traffic/Driver.java), [Fine](src/main/java/org/acme/traffic/Fine.java). **Mapping data from Process to/from DMN** -It is important to mention DMN for instance can define the Data Type in its structure, but we can align all attributes names in a Java class that is used as process variables, in case the attribute names contain spaces or are not following java conventions we can use [Jackson](https://github.com/FasterXML/jackson) annotations to make the process variable POJOs aligned with DMN data types, for instance in the [Violation](src/main/java/org/kie/kogito/traffic/Violation.java) class, where it is mapped the `speedLimit` attribute as `Speed Limit` using `@JsonProperty` annotation, in this case, this attribute from the process variable with Violation can be seamlessly integrated Violation Data Type defined in DMN. +It is important to mention DMN for instance can define the Data Type in its structure, but we can align all attributes names in a Java class that is used as process variables, in case the attribute names contain spaces or are not following java conventions we can use [Jackson](https://github.com/FasterXML/jackson) annotations to make the process variable POJOs aligned with DMN data types, for instance in the [Violation](src/main/java/org/acme/traffic/Violation.java) class, where it is mapped the `speedLimit` attribute as `Speed Limit` using `@JsonProperty` annotation, in this case, this attribute from the process variable with Violation can be seamlessly integrated Violation Data Type defined in DMN. **Violation Data Type in DMN** @@ -49,7 +49,7 @@ It is important to mention DMN for instance can define the Data Type in its stru Fetch for driver information, in this implementation it is just mocking a result, that simply fill with an expired license date in case the `driverId` is an odd number and with a valid date in case of an even number. In a real use case, it could be performing an external call to a service or a database to get this information. -The service task implementation is done in the [DriverService](src/main/java/org/kie/kogito/traffic/DriverService.java) class. +The service task implementation is done in the [DriverService](src/main/java/org/acme/traffic/DriverService.java) class. In the data assignment the input is the `driverId` and output is the `driver` variable, filled with all driver information. @@ -59,7 +59,7 @@ Represents the task to do the call to the DRL service. -The properties to be set are mainly the `Rule Language`that should be set as `DRL` and the `Rule Flow Group` with `unit:` + `[the FQCN of the Rule Unit Data class]`, in this case [org.kie.kogito.traffic.LicenseValidationService](src/main/java/org/kie/kogito/traffic/LicenseValidationService.java). +The properties to be set are mainly the `Rule Language`that should be set as `DRL` and the `Rule Flow Group` with `unit:` + `[the FQCN of the Rule Unit Data class]`, in this case [org.acme.traffic.LicenseValidationService](src/main/java/org/acme/traffic/LicenseValidationService.java). @@ -95,7 +95,7 @@ Just an example task where it could be performed any action based on the conditi This decision consistis in rules which are evaluated to check if a driver's license is expired or not according to the expiration date and thus populating the result in the information in the driver variable. -The DRL file where this Rule Unit is declared is [LicenseValidationService.drl](src/main/resources/LicenseValidationService.drl) and the the Java class that contains the Rule Unit Data is [LicenseValidationService](src/main/java/org/kie/kogito/traffic/LicenseValidationService.java). +The DRL file where this Rule Unit is declared is [LicenseValidationService.drl](src/main/resources/LicenseValidationService.drl) and the the Java class that contains the Rule Unit Data is [LicenseValidationService](src/main/java/org/acme/traffic/LicenseValidationService.java). ### Traffic Violation - DMN diff --git a/kogito-springboot-examples/process-decisions-springboot/pom.xml b/kogito-springboot-examples/process-decisions-springboot/pom.xml index 24b7e98096..c10bc221b9 100644 --- a/kogito-springboot-examples/process-decisions-springboot/pom.xml +++ b/kogito-springboot-examples/process-decisions-springboot/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/Driver.java b/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/Driver.java similarity index 98% rename from kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/Driver.java rename to kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/Driver.java index f77a47b749..26bd79ee24 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/src/main/java/org/kie/kogito/traffic/Driver.java +++ b/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/Driver.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.util.Date; diff --git a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/DriverService.java b/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/DriverService.java similarity index 97% rename from kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/DriverService.java rename to kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/DriverService.java index c6e2e44bb9..a0b9732243 100644 --- a/kogito-springboot-examples/process-decisions-rest-springboot/src/main/java/org/kie/kogito/traffic/DriverService.java +++ b/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/DriverService.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.time.ZonedDateTime; import java.util.Date; diff --git a/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/Fine.java b/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/Fine.java new file mode 100644 index 0000000000..d82495c3d1 --- /dev/null +++ b/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/Fine.java @@ -0,0 +1,43 @@ +/* + * Copyright 2021 Red Hat, Inc. and/or its affiliates. + * + * Licensed 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.acme.traffic; + +import com.fasterxml.jackson.annotation.JsonProperty; + +public class Fine { + + @JsonProperty("Amount") + private Double amount; + + @JsonProperty("Points") + private Integer points; + + public Double getAmount() { + return amount; + } + + public void setAmount(Double amount) { + this.amount = amount; + } + + public Integer getPoints() { + return points; + } + + public void setPoints(Integer points) { + this.points = points; + } +} diff --git a/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/KogitoApplication.java b/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/KogitoApplication.java similarity index 94% rename from kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/KogitoApplication.java rename to kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/KogitoApplication.java index 6009267b46..9329d207bb 100644 --- a/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/KogitoApplication.java +++ b/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/KogitoApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "com.example.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) public class KogitoApplication { public static void main(String[] args) { diff --git a/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/kie/kogito/traffic/LicenseValidationService.java b/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/LicenseValidationService.java similarity index 97% rename from kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/kie/kogito/traffic/LicenseValidationService.java rename to kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/LicenseValidationService.java index 53fd44ed58..2423a7c362 100644 --- a/kogito-quarkus-examples/process-decisions-quarkus/src/main/java/org/kie/kogito/traffic/LicenseValidationService.java +++ b/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/LicenseValidationService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.util.Date; diff --git a/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/Violation.java b/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/Violation.java new file mode 100644 index 0000000000..232567b0e0 --- /dev/null +++ b/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/acme/traffic/Violation.java @@ -0,0 +1,90 @@ +/* + * Copyright 2021 Red Hat, Inc. and/or its affiliates. + * + * Licensed 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.acme.traffic; + +import java.math.BigDecimal; +import java.util.Date; + +import com.fasterxml.jackson.annotation.JsonProperty; + +public class Violation { + + @JsonProperty("Code") + private String code; + + @JsonProperty("Date") + private Date date; + + @JsonProperty("Type") + private String type; + + @JsonProperty("Speed Limit") + private BigDecimal speedLimit; + + @JsonProperty("Actual Speed") + private BigDecimal actualSpeed; + + public Violation() { + } + + public Violation(String type, BigDecimal speedLimit, BigDecimal actualSpeed) { + this.type = type; + this.speedLimit = speedLimit; + this.actualSpeed = actualSpeed; + this.date = new Date(); + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public Date getDate() { + return date; + } + + public void setDate(Date date) { + this.date = date; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public BigDecimal getSpeedLimit() { + return speedLimit; + } + + public void setSpeedLimit(BigDecimal speedLimit) { + this.speedLimit = speedLimit; + } + + public BigDecimal getActualSpeed() { + return actualSpeed; + } + + public void setActualSpeed(BigDecimal actualSpeed) { + this.actualSpeed = actualSpeed; + } +} diff --git a/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/Fine.java b/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/Fine.java deleted file mode 100644 index 4b6873829e..0000000000 --- a/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/Fine.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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.traffic; - -import com.fasterxml.jackson.annotation.JsonProperty; - -public class Fine { - - @JsonProperty("Amount") - private Double amount; - - @JsonProperty("Points") - private Integer points; - - public Double getAmount() { - return amount; - } - - public void setAmount(Double amount) { - this.amount = amount; - } - - public Integer getPoints() { - return points; - } - - public void setPoints(Integer points) { - this.points = points; - } -} diff --git a/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/Violation.java b/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/Violation.java deleted file mode 100644 index 56446af2d2..0000000000 --- a/kogito-springboot-examples/process-decisions-springboot/src/main/java/org/kie/kogito/traffic/Violation.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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.traffic; - -import java.math.BigDecimal; -import java.util.Date; - -import com.fasterxml.jackson.annotation.JsonProperty; - -public class Violation { - - @JsonProperty("Code") - private String code; - - @JsonProperty("Date") - private Date date; - - @JsonProperty("Type") - private String type; - - @JsonProperty("Speed Limit") - private BigDecimal speedLimit; - - @JsonProperty("Actual Speed") - private BigDecimal actualSpeed; - - public Violation() { - } - - public Violation(String type, BigDecimal speedLimit, BigDecimal actualSpeed) { - this.type = type; - this.speedLimit = speedLimit; - this.actualSpeed = actualSpeed; - this.date = new Date(); - } - - public String getCode() { - return code; - } - - public void setCode(String code) { - this.code = code; - } - - public Date getDate() { - return date; - } - - public void setDate(Date date) { - this.date = date; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public BigDecimal getSpeedLimit() { - return speedLimit; - } - - public void setSpeedLimit(BigDecimal speedLimit) { - this.speedLimit = speedLimit; - } - - public BigDecimal getActualSpeed() { - return actualSpeed; - } - - public void setActualSpeed(BigDecimal actualSpeed) { - this.actualSpeed = actualSpeed; - } -} diff --git a/kogito-springboot-examples/process-decisions-springboot/src/main/resources/LicenseValidationService.drl b/kogito-springboot-examples/process-decisions-springboot/src/main/resources/LicenseValidationService.drl index 799c78abd4..06c7bc2412 100644 --- a/kogito-springboot-examples/process-decisions-springboot/src/main/resources/LicenseValidationService.drl +++ b/kogito-springboot-examples/process-decisions-springboot/src/main/resources/LicenseValidationService.drl @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic +package org.acme.traffic unit LicenseValidationService diff --git a/kogito-springboot-examples/process-decisions-springboot/src/main/resources/traffic-rules-dmn.bpmn b/kogito-springboot-examples/process-decisions-springboot/src/main/resources/traffic-rules-dmn.bpmn index 2cc3bd1c29..1d047d44ff 100644 --- a/kogito-springboot-examples/process-decisions-springboot/src/main/resources/traffic-rules-dmn.bpmn +++ b/kogito-springboot-examples/process-decisions-springboot/src/main/resources/traffic-rules-dmn.bpmn @@ -1,27 +1,27 @@ - - - + + + - - + + - + - + - - - + + + - + @@ -118,7 +118,7 @@ _8A36870E-651D-4E0A-B345-D5CFF2182F0F _044AA388-325A-45DE-B783-4F48421B788B - + _A19108FE-08A2-4E80-B7A8-0254C49209A6 _D3E2F4B7-7739-452F-8D55-0C4F169D4A44 - - + + _95EFED1F-73F8-47E7-9604-A81EFE5DE8F5_driverInputX @@ -146,7 +146,7 @@ DRL]]> driver - + @@ -156,7 +156,7 @@ DRL]]> _A19108FE-08A2-4E80-B7A8-0254C49209A6 - + _93FFD317-476E-4624-84EF-994617572560_driverIdInputX @@ -219,10 +219,10 @@ DMN]]> - - + + - + _B076DF7E-91A5-47C7-B3FC-2C2EC06E5941_namespaceInputX _B076DF7E-91A5-47C7-B3FC-2C2EC06E5941_decisionInputX diff --git a/kogito-springboot-examples/process-decisions-springboot/src/test/java/org.kie.kogito.traffic/TrafficProcessIT.java b/kogito-springboot-examples/process-decisions-springboot/src/test/java/org/acme/traffic/TrafficProcessIT.java similarity index 98% rename from kogito-springboot-examples/process-decisions-springboot/src/test/java/org.kie.kogito.traffic/TrafficProcessIT.java rename to kogito-springboot-examples/process-decisions-springboot/src/test/java/org/acme/traffic/TrafficProcessIT.java index b3e8048df7..4a68522f3a 100644 --- a/kogito-springboot-examples/process-decisions-springboot/src/test/java/org.kie.kogito.traffic/TrafficProcessIT.java +++ b/kogito-springboot-examples/process-decisions-springboot/src/test/java/org/acme/traffic/TrafficProcessIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.traffic; +package org.acme.traffic; import java.math.BigDecimal; import java.util.HashMap; diff --git a/kogito-springboot-examples/process-infinispan-persistence-springboot/mvnw b/kogito-springboot-examples/process-infinispan-persistence-springboot/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-springboot-examples/process-infinispan-persistence-springboot/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-springboot-examples/process-infinispan-persistence-springboot/mvnw.cmd b/kogito-springboot-examples/process-infinispan-persistence-springboot/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-springboot-examples/process-infinispan-persistence-springboot/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-springboot-examples/process-infinispan-persistence-springboot/pom.xml b/kogito-springboot-examples/process-infinispan-persistence-springboot/pom.xml index fa6e8e5f3b..cb0568b1fd 100644 --- a/kogito-springboot-examples/process-infinispan-persistence-springboot/pom.xml +++ b/kogito-springboot-examples/process-infinispan-persistence-springboot/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-infinispan-persistence-springboot/src/main/java/org/acme/deals/KogitoApplication.java b/kogito-springboot-examples/process-infinispan-persistence-springboot/src/main/java/org/acme/deals/KogitoApplication.java index ecc589a487..f892c2a7a9 100644 --- a/kogito-springboot-examples/process-infinispan-persistence-springboot/src/main/java/org/acme/deals/KogitoApplication.java +++ b/kogito-springboot-examples/process-infinispan-persistence-springboot/src/main/java/org/acme/deals/KogitoApplication.java @@ -18,7 +18,7 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.deals.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) public class KogitoApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/process-kafka-multi-springboot/pom.xml b/kogito-springboot-examples/process-kafka-multi-springboot/pom.xml index a0ac301010..209285bc71 100644 --- a/kogito-springboot-examples/process-kafka-multi-springboot/pom.xml +++ b/kogito-springboot-examples/process-kafka-multi-springboot/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-kafka-multi-springboot/src/main/java/org/kie/kogito/tests/KogitoKafkaMultiSpringbootApplication.java b/kogito-springboot-examples/process-kafka-multi-springboot/src/main/java/org/acme/tests/KogitoKafkaMultiSpringbootApplication.java similarity index 91% rename from kogito-springboot-examples/process-kafka-multi-springboot/src/main/java/org/kie/kogito/tests/KogitoKafkaMultiSpringbootApplication.java rename to kogito-springboot-examples/process-kafka-multi-springboot/src/main/java/org/acme/tests/KogitoKafkaMultiSpringbootApplication.java index a612a99eaa..afd3e8c1c7 100644 --- a/kogito-springboot-examples/process-kafka-multi-springboot/src/main/java/org/kie/kogito/tests/KogitoKafkaMultiSpringbootApplication.java +++ b/kogito-springboot-examples/process-kafka-multi-springboot/src/main/java/org/acme/tests/KogitoKafkaMultiSpringbootApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.tests; +package org.acme.tests; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.kie.kogito.tests.**", "org.drools.project.model.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**", "org.drools.**" }) public class KogitoKafkaMultiSpringbootApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/process-kafka-multi-springboot/src/main/resources/handle-travellers.bpmn b/kogito-springboot-examples/process-kafka-multi-springboot/src/main/resources/handle-travellers.bpmn index 34f29f09e2..646b365741 100644 --- a/kogito-springboot-examples/process-kafka-multi-springboot/src/main/resources/handle-travellers.bpmn +++ b/kogito-springboot-examples/process-kafka-multi-springboot/src/main/resources/handle-travellers.bpmn @@ -14,7 +14,7 @@ - + diff --git a/kogito-springboot-examples/process-kafka-multi-springboot/src/test/java/org/acme/travel/tests/multimessaging/springboot/MultiMessagingIT.java b/kogito-springboot-examples/process-kafka-multi-springboot/src/test/java/org/acme/travel/tests/multimessaging/springboot/MultiMessagingIT.java index eeb7a740ab..41b56d8bd1 100644 --- a/kogito-springboot-examples/process-kafka-multi-springboot/src/test/java/org/acme/travel/tests/multimessaging/springboot/MultiMessagingIT.java +++ b/kogito-springboot-examples/process-kafka-multi-springboot/src/test/java/org/acme/travel/tests/multimessaging/springboot/MultiMessagingIT.java @@ -24,12 +24,12 @@ import java.util.concurrent.TimeUnit; import java.util.stream.IntStream; +import org.acme.tests.KogitoKafkaMultiSpringbootApplication; import org.acme.travel.Traveller; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; import org.kie.kogito.test.springboot.kafka.KafkaTestClient; import org.kie.kogito.testcontainers.springboot.KafkaSpringBootTestResource; -import org.kie.kogito.tests.KogitoKafkaMultiSpringbootApplication; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; diff --git a/kogito-springboot-examples/process-kafka-quickstart-springboot/mvnw b/kogito-springboot-examples/process-kafka-quickstart-springboot/mvnw deleted file mode 100755 index 8b9da3b8b6..0000000000 --- a/kogito-springboot-examples/process-kafka-quickstart-springboot/mvnw +++ /dev/null @@ -1,286 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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 -# -# https://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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" - # TODO classpath? -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar" - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - wget "$jarUrl" -O "$wrapperJarPath" - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - curl -o "$wrapperJarPath" "$jarUrl" - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-springboot-examples/process-kafka-quickstart-springboot/mvnw.cmd b/kogito-springboot-examples/process-kafka-quickstart-springboot/mvnw.cmd deleted file mode 100644 index fef5a8f7f9..0000000000 --- a/kogito-springboot-examples/process-kafka-quickstart-springboot/mvnw.cmd +++ /dev/null @@ -1,161 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM https://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar" -FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - echo Found %WRAPPER_JAR% -) else ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')" - echo Finished downloading %WRAPPER_JAR% -) -@REM End of extension - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-springboot-examples/process-kafka-quickstart-springboot/pom.xml b/kogito-springboot-examples/process-kafka-quickstart-springboot/pom.xml index aee4a36fde..6a52fcaab8 100644 --- a/kogito-springboot-examples/process-kafka-quickstart-springboot/pom.xml +++ b/kogito-springboot-examples/process-kafka-quickstart-springboot/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-kafka-quickstart-springboot/src/main/java/org/kie/kogito/tests/KogitoKafkaQuickstartSpringbootApplication.java b/kogito-springboot-examples/process-kafka-quickstart-springboot/src/main/java/org/acme/tests/KogitoKafkaQuickstartSpringbootApplication.java similarity index 91% rename from kogito-springboot-examples/process-kafka-quickstart-springboot/src/main/java/org/kie/kogito/tests/KogitoKafkaQuickstartSpringbootApplication.java rename to kogito-springboot-examples/process-kafka-quickstart-springboot/src/main/java/org/acme/tests/KogitoKafkaQuickstartSpringbootApplication.java index 1f5f5d89ec..cba002b2a5 100644 --- a/kogito-springboot-examples/process-kafka-quickstart-springboot/src/main/java/org/kie/kogito/tests/KogitoKafkaQuickstartSpringbootApplication.java +++ b/kogito-springboot-examples/process-kafka-quickstart-springboot/src/main/java/org/acme/tests/KogitoKafkaQuickstartSpringbootApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.tests; +package org.acme.tests; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.kie.kogito.tests.**", "org.drools.project.model.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**", "org.drools.**" }) public class KogitoKafkaQuickstartSpringbootApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/process-kafka-quickstart-springboot/src/main/resources/handle-travellers.bpmn b/kogito-springboot-examples/process-kafka-quickstart-springboot/src/main/resources/handle-travellers.bpmn index 4a34cf65a5..2c1577a533 100644 --- a/kogito-springboot-examples/process-kafka-quickstart-springboot/src/main/resources/handle-travellers.bpmn +++ b/kogito-springboot-examples/process-kafka-quickstart-springboot/src/main/resources/handle-travellers.bpmn @@ -11,7 +11,7 @@ - + diff --git a/kogito-springboot-examples/process-kafka-quickstart-springboot/src/main/resources/travellers.drl b/kogito-springboot-examples/process-kafka-quickstart-springboot/src/main/resources/travellers.drl index 7bee0205bc..6eebcbbe07 100644 --- a/kogito-springboot-examples/process-kafka-quickstart-springboot/src/main/resources/travellers.drl +++ b/kogito-springboot-examples/process-kafka-quickstart-springboot/src/main/resources/travellers.drl @@ -17,7 +17,6 @@ package defaultPackage import org.acme.travel.Traveller; - rule "Process travellers" ruleflow-group "travellers" when diff --git a/kogito-springboot-examples/process-kafka-quickstart-springboot/src/test/java/org/acme/travel/tests/messaging/springboot/MessagingIT.java b/kogito-springboot-examples/process-kafka-quickstart-springboot/src/test/java/org/acme/travel/tests/messaging/springboot/MessagingIT.java index ac65f63520..eda668246c 100644 --- a/kogito-springboot-examples/process-kafka-quickstart-springboot/src/test/java/org/acme/travel/tests/messaging/springboot/MessagingIT.java +++ b/kogito-springboot-examples/process-kafka-quickstart-springboot/src/test/java/org/acme/travel/tests/messaging/springboot/MessagingIT.java @@ -23,12 +23,12 @@ import java.util.concurrent.TimeUnit; import java.util.stream.IntStream; +import org.acme.tests.KogitoKafkaQuickstartSpringbootApplication; import org.acme.travel.Traveller; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; import org.kie.kogito.test.springboot.kafka.KafkaTestClient; import org.kie.kogito.testcontainers.springboot.KafkaSpringBootTestResource; -import org.kie.kogito.tests.KogitoKafkaQuickstartSpringbootApplication; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; diff --git a/kogito-springboot-examples/process-mongodb-persistence-springboot/pom.xml b/kogito-springboot-examples/process-mongodb-persistence-springboot/pom.xml index 252f7d39e0..381d891f56 100644 --- a/kogito-springboot-examples/process-mongodb-persistence-springboot/pom.xml +++ b/kogito-springboot-examples/process-mongodb-persistence-springboot/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-mongodb-persistence-springboot/src/main/java/org/acme/travels/KogitoApplication.java b/kogito-springboot-examples/process-mongodb-persistence-springboot/src/main/java/org/acme/travels/KogitoApplication.java index 6450a769a9..4e6c45b08a 100644 --- a/kogito-springboot-examples/process-mongodb-persistence-springboot/src/main/java/org/acme/travels/KogitoApplication.java +++ b/kogito-springboot-examples/process-mongodb-persistence-springboot/src/main/java/org/acme/travels/KogitoApplication.java @@ -18,7 +18,7 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.deals.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) public class KogitoApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/process-monitoring-springboot/pom.xml b/kogito-springboot-examples/process-monitoring-springboot/pom.xml index 06d75a9cfd..adb7579ac0 100644 --- a/kogito-springboot-examples/process-monitoring-springboot/pom.xml +++ b/kogito-springboot-examples/process-monitoring-springboot/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/kie/kogito/examples/springboot/CalculationService.java b/kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/acme/examples/springboot/CalculationService.java similarity index 90% rename from kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/kie/kogito/examples/springboot/CalculationService.java rename to kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/acme/examples/springboot/CalculationService.java index 6538ad0d69..c9340edab7 100644 --- a/kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/kie/kogito/examples/springboot/CalculationService.java +++ b/kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/acme/examples/springboot/CalculationService.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.springboot; +package org.acme.examples.springboot; import java.util.Random; -import org.kie.kogito.examples.springboot.demo.Order; +import org.acme.examples.springboot.demo.Order; import org.springframework.stereotype.Component; @Component diff --git a/kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/kie/kogito/examples/springboot/DemoApplication.java b/kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/acme/examples/springboot/DemoApplication.java similarity index 88% rename from kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/kie/kogito/examples/springboot/DemoApplication.java rename to kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/acme/examples/springboot/DemoApplication.java index 977c3f2bb0..2f9c9294ac 100644 --- a/kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/kie/kogito/examples/springboot/DemoApplication.java +++ b/kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/acme/examples/springboot/DemoApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.springboot; +package org.acme.examples.springboot; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) public class DemoApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/kie/kogito/examples/springboot/demo/Order.java b/kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/acme/examples/springboot/demo/Order.java similarity index 97% rename from kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/kie/kogito/examples/springboot/demo/Order.java rename to kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/acme/examples/springboot/demo/Order.java index 1a207d4f1f..467f9b2a3f 100755 --- a/kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/kie/kogito/examples/springboot/demo/Order.java +++ b/kogito-springboot-examples/process-monitoring-springboot/src/main/java/org/acme/examples/springboot/demo/Order.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.springboot.demo; +package org.acme.examples.springboot.demo; public class Order implements java.io.Serializable { diff --git a/kogito-springboot-examples/process-monitoring-springboot/src/main/resources/org/acme/examples/springboot/orderItems.bpmn2 b/kogito-springboot-examples/process-monitoring-springboot/src/main/resources/org/acme/examples/springboot/orderItems.bpmn2 new file mode 100644 index 0000000000..1850ccf5e6 --- /dev/null +++ b/kogito-springboot-examples/process-monitoring-springboot/src/main/resources/org/acme/examples/springboot/orderItems.bpmn2 @@ -0,0 +1,224 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Message_1 + Message_2 + + + + + + + + + + + + + + + SequenceFlow_1 + + + + + + + + SequenceFlow_4 + + + + + + + + SequenceFlow_1 + SequenceFlow_3 + + + + + DataInput_1 + + + DataOutput_1 + + + + order + DataInput_1 + + + DataOutput_1 + order + + + + + + + + + + + SequenceFlow_3 + SequenceFlow_4 + + + + + + + + + + + + + DataInput_14 + DataInput_15 + DataInput_16 + DataInput_17 + DataInput_18 + DataInput_19 + DataInput_20 + DataInput_21 + DataInput_22 + DataInput_23 + + + + + DataInput_14 + + Verify order + DataInput_14 + + + + DataInput_15 + + 1 + DataInput_15 + + + + DataInput_16 + + + DataInput_17 + + + DataInput_18 + + + DataInput_19 + + true + DataInput_19 + + + + DataInput_20 + + + DataInput_21 + + en-UK + DataInput_21 + + + + DataInput_22 + + + order + DataInput_23 + + + + john + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kogito-springboot-examples/process-monitoring-springboot/src/main/resources/org/kie/kogito/examples/springboot/orders.bpmn2 b/kogito-springboot-examples/process-monitoring-springboot/src/main/resources/org/acme/examples/springboot/orders.bpmn2 similarity index 92% rename from kogito-springboot-examples/process-monitoring-springboot/src/main/resources/org/kie/kogito/examples/springboot/orders.bpmn2 rename to kogito-springboot-examples/process-monitoring-springboot/src/main/resources/org/acme/examples/springboot/orders.bpmn2 index 28fec2d931..3e3fa323cc 100644 --- a/kogito-springboot-examples/process-monitoring-springboot/src/main/resources/org/kie/kogito/examples/springboot/orders.bpmn2 +++ b/kogito-springboot-examples/process-monitoring-springboot/src/main/resources/org/acme/examples/springboot/orders.bpmn2 @@ -1,10 +1,10 @@ - + - - - + + + @@ -39,8 +39,8 @@ _58684613-0155-48B2-8746-7675AFF24439 _8216C810-34D8-4BFA-B814-1AA01907810F - - + + _9484CB12-FE52-434C-AE9F-3C3C267D1C96_orderInputX diff --git a/kogito-springboot-examples/process-monitoring-springboot/src/main/resources/org/kie/kogito/examples/springboot/orderItems.bpmn2 b/kogito-springboot-examples/process-monitoring-springboot/src/main/resources/org/kie/kogito/examples/springboot/orderItems.bpmn2 deleted file mode 100644 index 494356dd04..0000000000 --- a/kogito-springboot-examples/process-monitoring-springboot/src/main/resources/org/kie/kogito/examples/springboot/orderItems.bpmn2 +++ /dev/null @@ -1,224 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Message_1 - Message_2 - - - - - - - - - - - - - - - SequenceFlow_1 - - - - - - - - SequenceFlow_4 - - - - - - - - SequenceFlow_1 - SequenceFlow_3 - - - - - DataInput_1 - - - DataOutput_1 - - - - order - DataInput_1 - - - DataOutput_1 - order - - - - - - - - - - - SequenceFlow_3 - SequenceFlow_4 - - - - - - - - - - - - - DataInput_14 - DataInput_15 - DataInput_16 - DataInput_17 - DataInput_18 - DataInput_19 - DataInput_20 - DataInput_21 - DataInput_22 - DataInput_23 - - - - - DataInput_14 - - Verify order - DataInput_14 - - - - DataInput_15 - - 1 - DataInput_15 - - - - DataInput_16 - - - DataInput_17 - - - DataInput_18 - - - DataInput_19 - - true - DataInput_19 - - - - DataInput_20 - - - DataInput_21 - - en-UK - DataInput_21 - - - - DataInput_22 - - - order - DataInput_23 - - - - john - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/kie/kogito/examples/springboot/DashboardGenerationTest.java b/kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/acme/examples/springboot/DashboardGenerationTest.java similarity index 97% rename from kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/kie/kogito/examples/springboot/DashboardGenerationTest.java rename to kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/acme/examples/springboot/DashboardGenerationTest.java index abc62570ff..a571e57e85 100644 --- a/kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/kie/kogito/examples/springboot/DashboardGenerationTest.java +++ b/kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/acme/examples/springboot/DashboardGenerationTest.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples.springboot; +package org.acme.examples.springboot; import java.util.List; diff --git a/kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/kie/kogito/examples/springboot/ProcessMetricsTest.java b/kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/acme/examples/springboot/ProcessMetricsTest.java similarity index 92% rename from kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/kie/kogito/examples/springboot/ProcessMetricsTest.java rename to kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/acme/examples/springboot/ProcessMetricsTest.java index 67e78bfa51..e3f6fcfffd 100644 --- a/kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/kie/kogito/examples/springboot/ProcessMetricsTest.java +++ b/kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/acme/examples/springboot/ProcessMetricsTest.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples.springboot; +package org.acme.examples.springboot; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -106,15 +106,15 @@ public void testProcessMetricsSpringboot() { PROJECT_ARTIFACT_ID, PROJECT_VERSION))) .body(containsString( String.format( - "kogito_work_item_duration_seconds_max{artifactId=\"%s\",name=\"org.kie.kogito.examples.springboot.CalculationService_calculateTotal_3_Handler\",version=\"%s\",}", + "kogito_work_item_duration_seconds_max{artifactId=\"%s\",name=\"org.acme.examples.springboot.CalculationService_calculateTotal_3_Handler\",version=\"%s\",}", PROJECT_ARTIFACT_ID, PROJECT_VERSION))) .body(containsString( String.format( - "kogito_work_item_duration_seconds_count{artifactId=\"%s\",name=\"org.kie.kogito.examples.springboot.CalculationService_calculateTotal_3_Handler\",version=\"%s\",}", + "kogito_work_item_duration_seconds_count{artifactId=\"%s\",name=\"org.acme.examples.springboot.CalculationService_calculateTotal_3_Handler\",version=\"%s\",}", PROJECT_ARTIFACT_ID, PROJECT_VERSION))) .body(containsString( String.format( - "kogito_work_item_duration_seconds_sum{artifactId=\"%s\",name=\"org.kie.kogito.examples.springboot.CalculationService_calculateTotal_3_Handler\",version=\"%s\",}", + "kogito_work_item_duration_seconds_sum{artifactId=\"%s\",name=\"org.acme.examples.springboot.CalculationService_calculateTotal_3_Handler\",version=\"%s\",}", PROJECT_ARTIFACT_ID, PROJECT_VERSION))); } } diff --git a/kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/kie/kogito/examples/springboot/ProjectMetadataProvider.java b/kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/acme/examples/springboot/ProjectMetadataProvider.java similarity index 97% rename from kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/kie/kogito/examples/springboot/ProjectMetadataProvider.java rename to kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/acme/examples/springboot/ProjectMetadataProvider.java index 326ea6ab00..9be6cdd9d0 100644 --- a/kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/kie/kogito/examples/springboot/ProjectMetadataProvider.java +++ b/kogito-springboot-examples/process-monitoring-springboot/src/test/java/org/acme/examples/springboot/ProjectMetadataProvider.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.springboot; +package org.acme.examples.springboot; import java.io.IOException; import java.util.Properties; diff --git a/kogito-springboot-examples/process-outbox-mongodb-springboot/pom.xml b/kogito-springboot-examples/process-outbox-mongodb-springboot/pom.xml index 703fb4bcad..6d304476d3 100644 --- a/kogito-springboot-examples/process-outbox-mongodb-springboot/pom.xml +++ b/kogito-springboot-examples/process-outbox-mongodb-springboot/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito/examples/CalculationService.java b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme/examples/CalculationService.java similarity index 92% rename from kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito/examples/CalculationService.java rename to kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme/examples/CalculationService.java index d0f4303280..77ffe7c441 100644 --- a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito/examples/CalculationService.java +++ b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme/examples/CalculationService.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.util.Random; -import org.kie.kogito.examples.demo.Order; +import org.acme.examples.demo.Order; import org.springframework.stereotype.Component; @Component diff --git a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito/examples/CorsConfig.java b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme/examples/CorsConfig.java similarity index 97% rename from kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito/examples/CorsConfig.java rename to kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme/examples/CorsConfig.java index a48d7bdef4..f3bad3470d 100644 --- a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito/examples/CorsConfig.java +++ b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme/examples/CorsConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; diff --git a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito/examples/DemoApplication.java b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme/examples/DemoApplication.java similarity index 89% rename from kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito/examples/DemoApplication.java rename to kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme/examples/DemoApplication.java index ce8ce7e79d..3a6cfa9588 100644 --- a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/kie/kogito/examples/DemoApplication.java +++ b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme/examples/DemoApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) public class DemoApplication { public static void main(String[] args) { diff --git a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/kie/kogito/examples/PersonValidationService.java b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme/examples/PersonValidationService.java similarity index 92% rename from kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/kie/kogito/examples/PersonValidationService.java rename to kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme/examples/PersonValidationService.java index af854584cb..a9896bbeb9 100644 --- a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/kie/kogito/examples/PersonValidationService.java +++ b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme/examples/PersonValidationService.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; +import org.acme.examples.demo.Person; import org.drools.ruleunits.api.DataSource; import org.drools.ruleunits.api.DataStore; import org.drools.ruleunits.api.RuleUnitData; -import org.kie.kogito.examples.demo.Person; public class PersonValidationService implements RuleUnitData { private DataStore persons = DataSource.createStore(); diff --git a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/kie/kogito/examples/demo/Order.java b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme/examples/demo/Order.java similarity index 97% rename from kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/kie/kogito/examples/demo/Order.java rename to kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme/examples/demo/Order.java index 753b87aecd..5ef3a795e9 100755 --- a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/kie/kogito/examples/demo/Order.java +++ b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme/examples/demo/Order.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.demo; +package org.acme.examples.demo; public class Order implements java.io.Serializable { diff --git a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/kie/kogito/examples/demo/Person.java b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme/examples/demo/Person.java similarity index 97% rename from kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/kie/kogito/examples/demo/Person.java rename to kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme/examples/demo/Person.java index c38f75fe3c..dad4622b65 100644 --- a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/java/org/kie/kogito/examples/demo/Person.java +++ b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/java/org/acme/examples/demo/Person.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.demo; +package org.acme.examples.demo; import java.io.Serializable; diff --git a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/kie/kogito/examples/PersonValidationService.drl b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/acme/examples/PersonValidationService.drl similarity index 90% rename from kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/kie/kogito/examples/PersonValidationService.drl rename to kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/acme/examples/PersonValidationService.drl index 81e156389c..b0b311d775 100644 --- a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/kie/kogito/examples/PersonValidationService.drl +++ b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/acme/examples/PersonValidationService.drl @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples +package org.acme.examples unit PersonValidationService -import org.kie.kogito.examples.demo.Person; +import org.acme.examples.demo.Person; rule "Is adult" when diff --git a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/kie/kogito/examples/orderItems.bpmn2 b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/acme/examples/orderItems.bpmn2 similarity index 96% rename from kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/kie/kogito/examples/orderItems.bpmn2 rename to kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/acme/examples/orderItems.bpmn2 index 9a3df852b4..fe6dbd00e8 100644 --- a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/kie/kogito/examples/orderItems.bpmn2 +++ b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/acme/examples/orderItems.bpmn2 @@ -1,7 +1,7 @@ - + @@ -11,9 +11,9 @@ - + - + @@ -31,15 +31,15 @@ - + Message_1 Message_2 - + - + diff --git a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/kie/kogito/examples/orders.bpmn2 b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/acme/examples/orders.bpmn2 similarity index 93% rename from kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/kie/kogito/examples/orders.bpmn2 rename to kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/acme/examples/orders.bpmn2 index e4e3646586..24ba45b497 100644 --- a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/kie/kogito/examples/orders.bpmn2 +++ b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/acme/examples/orders.bpmn2 @@ -1,10 +1,10 @@ - + - - - + + + @@ -39,8 +39,8 @@ _58684613-0155-48B2-8746-7675AFF24439 _8216C810-34D8-4BFA-B814-1AA01907810F - - + + _9484CB12-FE52-434C-AE9F-3C3C267D1C96_orderInputX diff --git a/kogito-springboot-examples/process-springboot-example/src/main/resources/org/kie/kogito/examples/persons.bpmn2 b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/acme/examples/persons.bpmn2 similarity index 93% rename from kogito-springboot-examples/process-springboot-example/src/main/resources/org/kie/kogito/examples/persons.bpmn2 rename to kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/acme/examples/persons.bpmn2 index 70a41e3cc5..5deac40f48 100644 --- a/kogito-springboot-examples/process-springboot-example/src/main/resources/org/kie/kogito/examples/persons.bpmn2 +++ b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/main/resources/org/acme/examples/persons.bpmn2 @@ -1,5 +1,5 @@ - + @@ -12,13 +12,13 @@ - + - - - + + + @@ -37,7 +37,7 @@ SequenceFlow_1 - + @@ -46,8 +46,8 @@ SequenceFlow_1 SequenceFlow_2 - - + + BusinessRuleTask_1_personsInputX @@ -84,7 +84,7 @@ SequenceFlow_4 - + diff --git a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/test/java/org/kie/kogito/springboot/outbox/OutboxIT.java b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/test/java/org/acme/springboot/outbox/OutboxIT.java similarity index 99% rename from kogito-springboot-examples/process-outbox-mongodb-springboot/src/test/java/org/kie/kogito/springboot/outbox/OutboxIT.java rename to kogito-springboot-examples/process-outbox-mongodb-springboot/src/test/java/org/acme/springboot/outbox/OutboxIT.java index 0d476bce81..b0962113f9 100644 --- a/kogito-springboot-examples/process-outbox-mongodb-springboot/src/test/java/org/kie/kogito/springboot/outbox/OutboxIT.java +++ b/kogito-springboot-examples/process-outbox-mongodb-springboot/src/test/java/org/acme/springboot/outbox/OutboxIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.springboot.outbox; +package org.acme.springboot.outbox; import java.nio.file.Path; import java.nio.file.Paths; diff --git a/kogito-springboot-examples/process-performance-springboot/README.md b/kogito-springboot-examples/process-performance-springboot/README.md index 3dae359665..7d7aa3dc87 100644 --- a/kogito-springboot-examples/process-performance-springboot/README.md +++ b/kogito-springboot-examples/process-performance-springboot/README.md @@ -49,5 +49,5 @@ java -jar target/process-performance-springboot.jar ## Example Usage -Once the service is up and running, to collect throughput numbers you need to manually change parameters in code of, compile and run class ```org.kie.kogito.performance.client.MainRunner``` in process-performace-client project +Once the service is up and running, to collect throughput numbers you need to manually change parameters in code of, compile and run class ```org.acme.performance.client.MainRunner``` in process-performace-client project diff --git a/kogito-springboot-examples/process-performance-springboot/pom.xml b/kogito-springboot-examples/process-performance-springboot/pom.xml index 2c3f44867b..8d919a2447 100755 --- a/kogito-springboot-examples/process-performance-springboot/pom.xml +++ b/kogito-springboot-examples/process-performance-springboot/pom.xml @@ -5,7 +5,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-performance-springboot/src/main/java/org/kie/kogito/tests/KogitoPerformanceSpringbootApplication.java b/kogito-springboot-examples/process-performance-springboot/src/main/java/org/acme/tests/KogitoPerformanceSpringbootApplication.java similarity index 91% rename from kogito-springboot-examples/process-performance-springboot/src/main/java/org/kie/kogito/tests/KogitoPerformanceSpringbootApplication.java rename to kogito-springboot-examples/process-performance-springboot/src/main/java/org/acme/tests/KogitoPerformanceSpringbootApplication.java index eefdb3ab8a..49bafdba84 100644 --- a/kogito-springboot-examples/process-performance-springboot/src/main/java/org/kie/kogito/tests/KogitoPerformanceSpringbootApplication.java +++ b/kogito-springboot-examples/process-performance-springboot/src/main/java/org/acme/tests/KogitoPerformanceSpringbootApplication.java @@ -14,12 +14,12 @@ * limitations under the License. */ -package org.kie.kogito.tests; +package org.acme.tests; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.kie.kogito.tests.**", "org.drools.project.model.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**", "org.drools.**" }) public class KogitoPerformanceSpringbootApplication { public static void main(String[] args) { diff --git a/kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/kie/kogito/examples/kafkaTest.bpmn2 b/kogito-springboot-examples/process-performance-springboot/src/main/resources/org/acme/examples/kafkaTest.bpmn2 similarity index 97% rename from kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/kie/kogito/examples/kafkaTest.bpmn2 rename to kogito-springboot-examples/process-performance-springboot/src/main/resources/org/acme/examples/kafkaTest.bpmn2 index 16c544ffe6..2b6e9462cc 100644 --- a/kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/kie/kogito/examples/kafkaTest.bpmn2 +++ b/kogito-springboot-examples/process-performance-springboot/src/main/resources/org/acme/examples/kafkaTest.bpmn2 @@ -6,7 +6,7 @@ - + diff --git a/kogito-springboot-examples/process-performance-springboot/src/main/resources/org/kie/kogito/examples/kafkaTestOtherChannel.bpmn2 b/kogito-springboot-examples/process-performance-springboot/src/main/resources/org/acme/examples/kafkaTestOtherChannel.bpmn2 similarity index 98% rename from kogito-springboot-examples/process-performance-springboot/src/main/resources/org/kie/kogito/examples/kafkaTestOtherChannel.bpmn2 rename to kogito-springboot-examples/process-performance-springboot/src/main/resources/org/acme/examples/kafkaTestOtherChannel.bpmn2 index 4ce9c94cf6..64d28cd66b 100644 --- a/kogito-springboot-examples/process-performance-springboot/src/main/resources/org/kie/kogito/examples/kafkaTestOtherChannel.bpmn2 +++ b/kogito-springboot-examples/process-performance-springboot/src/main/resources/org/acme/examples/kafkaTestOtherChannel.bpmn2 @@ -6,7 +6,7 @@ - + diff --git a/kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/kie/kogito/examples/test.bpmn2 b/kogito-springboot-examples/process-performance-springboot/src/main/resources/org/acme/examples/test.bpmn2 similarity index 97% rename from kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/kie/kogito/examples/test.bpmn2 rename to kogito-springboot-examples/process-performance-springboot/src/main/resources/org/acme/examples/test.bpmn2 index d41e777321..685f9246d6 100644 --- a/kogito-quarkus-examples/process-performance-quarkus/src/main/resources/org/kie/kogito/examples/test.bpmn2 +++ b/kogito-springboot-examples/process-performance-springboot/src/main/resources/org/acme/examples/test.bpmn2 @@ -3,7 +3,7 @@ - + diff --git a/kogito-springboot-examples/process-postgresql-persistence-springboot/pom.xml b/kogito-springboot-examples/process-postgresql-persistence-springboot/pom.xml index b64ac9d404..492390225c 100644 --- a/kogito-springboot-examples/process-postgresql-persistence-springboot/pom.xml +++ b/kogito-springboot-examples/process-postgresql-persistence-springboot/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-postgresql-persistence-springboot/src/main/java/org/acme/travels/KogitoApplication.java b/kogito-springboot-examples/process-postgresql-persistence-springboot/src/main/java/org/acme/travels/KogitoApplication.java index 6450a769a9..4e6c45b08a 100644 --- a/kogito-springboot-examples/process-postgresql-persistence-springboot/src/main/java/org/acme/travels/KogitoApplication.java +++ b/kogito-springboot-examples/process-postgresql-persistence-springboot/src/main/java/org/acme/travels/KogitoApplication.java @@ -18,7 +18,7 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.deals.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) public class KogitoApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/process-rest-service-call-springboot/mvnw b/kogito-springboot-examples/process-rest-service-call-springboot/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-springboot-examples/process-rest-service-call-springboot/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-springboot-examples/process-rest-service-call-springboot/mvnw.cmd b/kogito-springboot-examples/process-rest-service-call-springboot/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-springboot-examples/process-rest-service-call-springboot/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-springboot-examples/process-rest-service-call-springboot/pom.xml b/kogito-springboot-examples/process-rest-service-call-springboot/pom.xml index 21ffc3289e..16fe3ae854 100644 --- a/kogito-springboot-examples/process-rest-service-call-springboot/pom.xml +++ b/kogito-springboot-examples/process-rest-service-call-springboot/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-rest-service-call-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java b/kogito-springboot-examples/process-rest-service-call-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java similarity index 95% rename from kogito-springboot-examples/process-rest-service-call-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java rename to kogito-springboot-examples/process-rest-service-call-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java index 5119aa965b..9bff077042 100644 --- a/kogito-springboot-examples/process-rest-service-call-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java +++ b/kogito-springboot-examples/process-rest-service-call-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.tests; +package org.acme.tests; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @@ -21,7 +21,7 @@ import org.springframework.context.annotation.Bean; import org.springframework.web.client.RestTemplate; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.travels.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) public class KogitoInfinispanSpringbootApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/process-rest-service-call-springboot/src/test/java/org/acme/travels/springboot/UsersProcessTest.java b/kogito-springboot-examples/process-rest-service-call-springboot/src/test/java/org/acme/travels/springboot/UsersProcessTest.java index ea1d5dd0f9..916804c441 100644 --- a/kogito-springboot-examples/process-rest-service-call-springboot/src/test/java/org/acme/travels/springboot/UsersProcessTest.java +++ b/kogito-springboot-examples/process-rest-service-call-springboot/src/test/java/org/acme/travels/springboot/UsersProcessTest.java @@ -18,13 +18,13 @@ import java.util.HashMap; import java.util.Map; +import org.acme.tests.KogitoInfinispanSpringbootApplication; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.kie.kogito.Model; import org.kie.kogito.process.Process; import org.kie.kogito.process.ProcessInstance; -import org.kie.kogito.tests.KogitoInfinispanSpringbootApplication; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.test.context.SpringBootTest; diff --git a/kogito-springboot-examples/process-scripts-springboot/mvnw b/kogito-springboot-examples/process-scripts-springboot/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-springboot-examples/process-scripts-springboot/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-springboot-examples/process-scripts-springboot/mvnw.cmd b/kogito-springboot-examples/process-scripts-springboot/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-springboot-examples/process-scripts-springboot/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-springboot-examples/process-scripts-springboot/pom.xml b/kogito-springboot-examples/process-scripts-springboot/pom.xml index 1dfd2631dc..922772612d 100644 --- a/kogito-springboot-examples/process-scripts-springboot/pom.xml +++ b/kogito-springboot-examples/process-scripts-springboot/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-usertasks-springboot-with-console/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java b/kogito-springboot-examples/process-scripts-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java similarity index 94% rename from kogito-springboot-examples/process-usertasks-springboot-with-console/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java rename to kogito-springboot-examples/process-scripts-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java index 7b2daaca72..3588f4755d 100644 --- a/kogito-springboot-examples/process-usertasks-springboot-with-console/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java +++ b/kogito-springboot-examples/process-scripts-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.tests; +package org.acme.tests; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.travels.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) public class KogitoInfinispanSpringbootApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/process-scripts-springboot/src/test/java/org/acme/travels/springboot/ScriptsProcessTest.java b/kogito-springboot-examples/process-scripts-springboot/src/test/java/org/acme/travels/springboot/ScriptsProcessTest.java index e756dce13f..2734f261ae 100644 --- a/kogito-springboot-examples/process-scripts-springboot/src/test/java/org/acme/travels/springboot/ScriptsProcessTest.java +++ b/kogito-springboot-examples/process-scripts-springboot/src/test/java/org/acme/travels/springboot/ScriptsProcessTest.java @@ -18,12 +18,12 @@ import java.util.HashMap; import java.util.Map; +import org.acme.tests.KogitoInfinispanSpringbootApplication; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.kie.kogito.Model; import org.kie.kogito.process.Process; import org.kie.kogito.process.ProcessInstance; -import org.kie.kogito.tests.KogitoInfinispanSpringbootApplication; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.test.context.SpringBootTest; diff --git a/kogito-springboot-examples/process-service-calls-springboot/mvnw b/kogito-springboot-examples/process-service-calls-springboot/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-springboot-examples/process-service-calls-springboot/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-springboot-examples/process-service-calls-springboot/mvnw.cmd b/kogito-springboot-examples/process-service-calls-springboot/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-springboot-examples/process-service-calls-springboot/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-springboot-examples/process-service-calls-springboot/pom.xml b/kogito-springboot-examples/process-service-calls-springboot/pom.xml index b689418ad1..b25159f7d9 100644 --- a/kogito-springboot-examples/process-service-calls-springboot/pom.xml +++ b/kogito-springboot-examples/process-service-calls-springboot/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-scripts-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java b/kogito-springboot-examples/process-service-calls-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java similarity index 94% rename from kogito-springboot-examples/process-scripts-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java rename to kogito-springboot-examples/process-service-calls-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java index 7b2daaca72..3588f4755d 100644 --- a/kogito-springboot-examples/process-scripts-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java +++ b/kogito-springboot-examples/process-service-calls-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.tests; +package org.acme.tests; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.travels.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) public class KogitoInfinispanSpringbootApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/process-service-calls-springboot/src/test/java/org/acme/travels/springboot/MultiParamServiceProcessTest.java b/kogito-springboot-examples/process-service-calls-springboot/src/test/java/org/acme/travels/springboot/MultiParamServiceProcessTest.java index 378e76aa4b..7ec4a89435 100644 --- a/kogito-springboot-examples/process-service-calls-springboot/src/test/java/org/acme/travels/springboot/MultiParamServiceProcessTest.java +++ b/kogito-springboot-examples/process-service-calls-springboot/src/test/java/org/acme/travels/springboot/MultiParamServiceProcessTest.java @@ -18,12 +18,12 @@ import java.util.HashMap; import java.util.Map; +import org.acme.tests.KogitoInfinispanSpringbootApplication; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.kie.kogito.Model; import org.kie.kogito.process.Process; import org.kie.kogito.process.ProcessInstance; -import org.kie.kogito.tests.KogitoInfinispanSpringbootApplication; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.test.context.SpringBootTest; diff --git a/kogito-springboot-examples/process-service-calls-springboot/src/test/java/org/acme/travels/springboot/TravellersProcessTest.java b/kogito-springboot-examples/process-service-calls-springboot/src/test/java/org/acme/travels/springboot/TravellersProcessTest.java index 158bbfdd6f..4a6d41ccd9 100644 --- a/kogito-springboot-examples/process-service-calls-springboot/src/test/java/org/acme/travels/springboot/TravellersProcessTest.java +++ b/kogito-springboot-examples/process-service-calls-springboot/src/test/java/org/acme/travels/springboot/TravellersProcessTest.java @@ -18,12 +18,12 @@ import java.util.HashMap; import java.util.Map; +import org.acme.tests.KogitoInfinispanSpringbootApplication; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.kie.kogito.Model; import org.kie.kogito.process.Process; import org.kie.kogito.process.ProcessInstance; -import org.kie.kogito.tests.KogitoInfinispanSpringbootApplication; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.test.context.SpringBootTest; diff --git a/kogito-springboot-examples/process-springboot-example/mvnw b/kogito-springboot-examples/process-springboot-example/mvnw deleted file mode 100755 index 5551fde8e7..0000000000 --- a/kogito-springboot-examples/process-springboot-example/mvnw +++ /dev/null @@ -1,286 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" - # TODO classpath? -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar" - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - wget "$jarUrl" -O "$wrapperJarPath" - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - curl -o "$wrapperJarPath" "$jarUrl" - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-springboot-examples/process-springboot-example/mvnw.cmd b/kogito-springboot-examples/process-springboot-example/mvnw.cmd deleted file mode 100644 index e5cfb0ae9e..0000000000 --- a/kogito-springboot-examples/process-springboot-example/mvnw.cmd +++ /dev/null @@ -1,161 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar" -FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - echo Found %WRAPPER_JAR% -) else ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')" - echo Finished downloading %WRAPPER_JAR% -) -@REM End of extension - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-springboot-examples/process-springboot-example/pom.xml b/kogito-springboot-examples/process-springboot-example/pom.xml index 4ba2e55543..f71d593f93 100644 --- a/kogito-springboot-examples/process-springboot-example/pom.xml +++ b/kogito-springboot-examples/process-springboot-example/pom.xml @@ -4,13 +4,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT process-springboot-example - Kogito Example :: Process and Spring Boot + Kogito Example :: Process Spring Boot Example Order management service diff --git a/kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/CalculationService.java b/kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/CalculationService.java similarity index 92% rename from kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/CalculationService.java rename to kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/CalculationService.java index ee2d725f59..2382ab4b33 100644 --- a/kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/CalculationService.java +++ b/kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/CalculationService.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.util.Random; -import org.kie.kogito.examples.demo.Order; +import org.acme.examples.demo.Order; import org.springframework.stereotype.Component; @Component diff --git a/kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/CorsConfig.java b/kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/CorsConfig.java similarity index 97% rename from kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/CorsConfig.java rename to kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/CorsConfig.java index e195a6542b..f28e58cfbd 100644 --- a/kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/CorsConfig.java +++ b/kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/CorsConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; diff --git a/kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/DemoApplication.java b/kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/DemoApplication.java similarity index 89% rename from kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/DemoApplication.java rename to kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/DemoApplication.java index 3c920b37ab..f3c1410476 100644 --- a/kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/DemoApplication.java +++ b/kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/DemoApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) public class DemoApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/KafkaConfig.java b/kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/KafkaConfig.java similarity index 96% rename from kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/KafkaConfig.java rename to kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/KafkaConfig.java index eda9eb3dbf..cba1b68ff7 100644 --- a/kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/KafkaConfig.java +++ b/kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/KafkaConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; import org.springframework.context.annotation.Configuration; diff --git a/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/kie/kogito/examples/PersonValidationService.java b/kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/PersonValidationService.java similarity index 92% rename from kogito-quarkus-examples/process-quarkus-example/src/main/java/org/kie/kogito/examples/PersonValidationService.java rename to kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/PersonValidationService.java index 1601506f70..c6bc848a17 100644 --- a/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/kie/kogito/examples/PersonValidationService.java +++ b/kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/PersonValidationService.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; +import org.acme.examples.demo.Person; import org.drools.ruleunits.api.DataSource; import org.drools.ruleunits.api.DataStore; import org.drools.ruleunits.api.RuleUnitData; -import org.kie.kogito.examples.demo.Person; public class PersonValidationService implements RuleUnitData { private DataStore persons = DataSource.createStore(); diff --git a/kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/demo/Order.java b/kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/demo/Order.java similarity index 97% rename from kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/demo/Order.java rename to kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/demo/Order.java index de8b4fb8f2..ad88b5f75b 100755 --- a/kogito-springboot-examples/process-springboot-example/src/main/java/org/kie/kogito/examples/demo/Order.java +++ b/kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/demo/Order.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.demo; +package org.acme.examples.demo; public class Order implements java.io.Serializable { diff --git a/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/kie/kogito/examples/demo/Person.java b/kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/demo/Person.java similarity index 97% rename from kogito-quarkus-examples/process-quarkus-example/src/main/java/org/kie/kogito/examples/demo/Person.java rename to kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/demo/Person.java index 4ce2cb03d7..3bcbe19953 100644 --- a/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/kie/kogito/examples/demo/Person.java +++ b/kogito-springboot-examples/process-springboot-example/src/main/java/org/acme/examples/demo/Person.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.demo; +package org.acme.examples.demo; import java.io.Serializable; diff --git a/kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/kie/kogito/examples/PersonValidationService.drl b/kogito-springboot-examples/process-springboot-example/src/main/resources/org/acme/examples/PersonValidationService.drl similarity index 90% rename from kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/kie/kogito/examples/PersonValidationService.drl rename to kogito-springboot-examples/process-springboot-example/src/main/resources/org/acme/examples/PersonValidationService.drl index c78f0bc31b..bb86aec170 100644 --- a/kogito-quarkus-examples/process-quarkus-example/src/main/resources/org/kie/kogito/examples/PersonValidationService.drl +++ b/kogito-springboot-examples/process-springboot-example/src/main/resources/org/acme/examples/PersonValidationService.drl @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples +package org.acme.examples unit PersonValidationService -import org.kie.kogito.examples.demo.Person; +import org.acme.examples.demo.Person; rule "Is adult" when diff --git a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/kie/kogito/examples/orderItems.bpmn2 b/kogito-springboot-examples/process-springboot-example/src/main/resources/org/acme/examples/orderItems.bpmn2 similarity index 96% rename from kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/kie/kogito/examples/orderItems.bpmn2 rename to kogito-springboot-examples/process-springboot-example/src/main/resources/org/acme/examples/orderItems.bpmn2 index 9a3df852b4..fe6dbd00e8 100644 --- a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/kie/kogito/examples/orderItems.bpmn2 +++ b/kogito-springboot-examples/process-springboot-example/src/main/resources/org/acme/examples/orderItems.bpmn2 @@ -1,7 +1,7 @@ - + @@ -11,9 +11,9 @@ - + - + @@ -31,15 +31,15 @@ - + Message_1 Message_2 - + - + diff --git a/kogito-springboot-examples/process-springboot-example/src/main/resources/org/kie/kogito/examples/orders.bpmn2 b/kogito-springboot-examples/process-springboot-example/src/main/resources/org/acme/examples/orders.bpmn2 similarity index 93% rename from kogito-springboot-examples/process-springboot-example/src/main/resources/org/kie/kogito/examples/orders.bpmn2 rename to kogito-springboot-examples/process-springboot-example/src/main/resources/org/acme/examples/orders.bpmn2 index e4e3646586..24ba45b497 100644 --- a/kogito-springboot-examples/process-springboot-example/src/main/resources/org/kie/kogito/examples/orders.bpmn2 +++ b/kogito-springboot-examples/process-springboot-example/src/main/resources/org/acme/examples/orders.bpmn2 @@ -1,10 +1,10 @@ - + - - - + + + @@ -39,8 +39,8 @@ _58684613-0155-48B2-8746-7675AFF24439 _8216C810-34D8-4BFA-B814-1AA01907810F - - + + _9484CB12-FE52-434C-AE9F-3C3C267D1C96_orderInputX diff --git a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/kie/kogito/examples/persons.bpmn2 b/kogito-springboot-examples/process-springboot-example/src/main/resources/org/acme/examples/persons.bpmn2 similarity index 93% rename from kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/kie/kogito/examples/persons.bpmn2 rename to kogito-springboot-examples/process-springboot-example/src/main/resources/org/acme/examples/persons.bpmn2 index 70a41e3cc5..5deac40f48 100644 --- a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/main/resources/org/kie/kogito/examples/persons.bpmn2 +++ b/kogito-springboot-examples/process-springboot-example/src/main/resources/org/acme/examples/persons.bpmn2 @@ -1,5 +1,5 @@ - + @@ -12,13 +12,13 @@ - + - - - + + + @@ -37,7 +37,7 @@ SequenceFlow_1 - + @@ -46,8 +46,8 @@ SequenceFlow_1 SequenceFlow_2 - - + + BusinessRuleTask_1_personsInputX @@ -84,7 +84,7 @@ SequenceFlow_4 - + diff --git a/kogito-springboot-examples/process-springboot-example/src/test/java/org/kie/kogito/examples/demo/OrdersProcessIT.java b/kogito-springboot-examples/process-springboot-example/src/test/java/org/acme/examples/demo/OrdersProcessIT.java similarity index 98% rename from kogito-springboot-examples/process-springboot-example/src/test/java/org/kie/kogito/examples/demo/OrdersProcessIT.java rename to kogito-springboot-examples/process-springboot-example/src/test/java/org/acme/examples/demo/OrdersProcessIT.java index 571d13c8f1..12d714f7a6 100644 --- a/kogito-springboot-examples/process-springboot-example/src/test/java/org/kie/kogito/examples/demo/OrdersProcessIT.java +++ b/kogito-springboot-examples/process-springboot-example/src/test/java/org/acme/examples/demo/OrdersProcessIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.demo; +package org.acme.examples.demo; import java.util.Collections; import java.util.HashMap; @@ -21,12 +21,12 @@ import java.util.Map; import java.util.Optional; +import org.acme.examples.DemoApplication; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.kie.kogito.Model; import org.kie.kogito.auth.IdentityProviders; import org.kie.kogito.auth.SecurityPolicy; -import org.kie.kogito.examples.DemoApplication; import org.kie.kogito.process.Process; import org.kie.kogito.process.ProcessInstance; import org.kie.kogito.process.ProcessInstances; diff --git a/kogito-springboot-examples/process-springboot-example/src/test/java/org/kie/kogito/examples/demo/OrdersRestIT.java b/kogito-springboot-examples/process-springboot-example/src/test/java/org/acme/examples/demo/OrdersRestIT.java similarity index 99% rename from kogito-springboot-examples/process-springboot-example/src/test/java/org/kie/kogito/examples/demo/OrdersRestIT.java rename to kogito-springboot-examples/process-springboot-example/src/test/java/org/acme/examples/demo/OrdersRestIT.java index 975926ef57..98b2da5b36 100644 --- a/kogito-springboot-examples/process-springboot-example/src/test/java/org/kie/kogito/examples/demo/OrdersRestIT.java +++ b/kogito-springboot-examples/process-springboot-example/src/test/java/org/acme/examples/demo/OrdersRestIT.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.demo; +package org.acme.examples.demo; +import org.acme.examples.DemoApplication; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.kie.kogito.Model; -import org.kie.kogito.examples.DemoApplication; import org.kie.kogito.process.Process; import org.kie.kogito.testcontainers.springboot.InfinispanSpringBootTestResource; import org.kie.kogito.testcontainers.springboot.KafkaSpringBootTestResource; diff --git a/kogito-springboot-examples/process-springboot-example/src/test/java/org/kie/kogito/examples/demo/PersonProcessIT.java b/kogito-springboot-examples/process-springboot-example/src/test/java/org/acme/examples/demo/PersonProcessIT.java similarity index 98% rename from kogito-springboot-examples/process-springboot-example/src/test/java/org/kie/kogito/examples/demo/PersonProcessIT.java rename to kogito-springboot-examples/process-springboot-example/src/test/java/org/acme/examples/demo/PersonProcessIT.java index ba6d39c55e..5a90c4e3eb 100644 --- a/kogito-springboot-examples/process-springboot-example/src/test/java/org/kie/kogito/examples/demo/PersonProcessIT.java +++ b/kogito-springboot-examples/process-springboot-example/src/test/java/org/acme/examples/demo/PersonProcessIT.java @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.demo; +package org.acme.examples.demo; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; +import org.acme.examples.DemoApplication; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.kie.kogito.Model; import org.kie.kogito.auth.IdentityProviders; import org.kie.kogito.auth.SecurityPolicy; -import org.kie.kogito.examples.DemoApplication; import org.kie.kogito.process.Process; import org.kie.kogito.process.ProcessInstance; import org.kie.kogito.process.WorkItem; diff --git a/kogito-springboot-examples/process-springboot-example/src/test/java/org/kie/kogito/examples/demo/PersonsRestIT.java b/kogito-springboot-examples/process-springboot-example/src/test/java/org/acme/examples/demo/PersonsRestIT.java similarity index 99% rename from kogito-springboot-examples/process-springboot-example/src/test/java/org/kie/kogito/examples/demo/PersonsRestIT.java rename to kogito-springboot-examples/process-springboot-example/src/test/java/org/acme/examples/demo/PersonsRestIT.java index ca00f4a9bd..59cf8c25e9 100644 --- a/kogito-springboot-examples/process-springboot-example/src/test/java/org/kie/kogito/examples/demo/PersonsRestIT.java +++ b/kogito-springboot-examples/process-springboot-example/src/test/java/org/acme/examples/demo/PersonsRestIT.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.demo; +package org.acme.examples.demo; +import org.acme.examples.DemoApplication; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.DisabledIfSystemProperty; import org.junit.jupiter.api.extension.ExtendWith; import org.kie.kogito.Model; -import org.kie.kogito.examples.DemoApplication; import org.kie.kogito.process.Process; import org.kie.kogito.testcontainers.springboot.InfinispanSpringBootTestResource; import org.kie.kogito.testcontainers.springboot.KafkaSpringBootTestResource; diff --git a/kogito-springboot-examples/process-timer-springboot/mvnw b/kogito-springboot-examples/process-timer-springboot/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-springboot-examples/process-timer-springboot/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-springboot-examples/process-timer-springboot/mvnw.cmd b/kogito-springboot-examples/process-timer-springboot/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-springboot-examples/process-timer-springboot/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-springboot-examples/process-timer-springboot/pom.xml b/kogito-springboot-examples/process-timer-springboot/pom.xml index 00b0b708b6..17e5bb8c6b 100644 --- a/kogito-springboot-examples/process-timer-springboot/pom.xml +++ b/kogito-springboot-examples/process-timer-springboot/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-timer-springboot/src/main/java/org/kie/kogito/tests/KogitoApplication.java b/kogito-springboot-examples/process-timer-springboot/src/main/java/org/acme/tests/KogitoApplication.java similarity index 94% rename from kogito-springboot-examples/process-timer-springboot/src/main/java/org/kie/kogito/tests/KogitoApplication.java rename to kogito-springboot-examples/process-timer-springboot/src/main/java/org/acme/tests/KogitoApplication.java index 87059ca4cc..8d48169fbd 100644 --- a/kogito-springboot-examples/process-timer-springboot/src/main/java/org/kie/kogito/tests/KogitoApplication.java +++ b/kogito-springboot-examples/process-timer-springboot/src/main/java/org/acme/tests/KogitoApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.tests; +package org.acme.tests; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.travels.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) public class KogitoApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/mvnw b/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/mvnw.cmd b/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/pom.xml b/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/pom.xml index 8a3914d269..80762333b2 100644 --- a/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/pom.xml +++ b/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-service-calls-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java b/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java similarity index 94% rename from kogito-springboot-examples/process-service-calls-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java rename to kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java index 7b2daaca72..3588f4755d 100644 --- a/kogito-springboot-examples/process-service-calls-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java +++ b/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.tests; +package org.acme.tests; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.travels.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) public class KogitoInfinispanSpringbootApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/src/test/java/org/acme/travels/custom/lifecycle/springboot/ApprovalsProcessTest.java b/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/src/test/java/org/acme/travels/custom/lifecycle/springboot/ApprovalsProcessTest.java index b34a2db34d..236bd679cb 100644 --- a/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/src/test/java/org/acme/travels/custom/lifecycle/springboot/ApprovalsProcessTest.java +++ b/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/src/test/java/org/acme/travels/custom/lifecycle/springboot/ApprovalsProcessTest.java @@ -20,6 +20,7 @@ import java.util.List; import java.util.Map; +import org.acme.tests.KogitoInfinispanSpringbootApplication; import org.acme.travels.Address; import org.acme.travels.Traveller; import org.acme.travels.usertasks.Start; @@ -35,7 +36,6 @@ import org.kie.kogito.process.ProcessInstance; import org.kie.kogito.process.WorkItem; import org.kie.kogito.process.workitem.InvalidTransitionException; -import org.kie.kogito.tests.KogitoInfinispanSpringbootApplication; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.test.context.SpringBootTest; diff --git a/kogito-springboot-examples/process-usertasks-springboot-with-console/pom.xml b/kogito-springboot-examples/process-usertasks-springboot-with-console/pom.xml index 7b1859a5ff..0d4794db63 100644 --- a/kogito-springboot-examples/process-usertasks-springboot-with-console/pom.xml +++ b/kogito-springboot-examples/process-usertasks-springboot-with-console/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-usertasks-springboot-with-console/src/main/java/org/kie/kogito/tests/CorsConfig.java b/kogito-springboot-examples/process-usertasks-springboot-with-console/src/main/java/org/acme/tests/CorsConfig.java similarity index 98% rename from kogito-springboot-examples/process-usertasks-springboot-with-console/src/main/java/org/kie/kogito/tests/CorsConfig.java rename to kogito-springboot-examples/process-usertasks-springboot-with-console/src/main/java/org/acme/tests/CorsConfig.java index 3de49bf1ff..95b1a088ce 100644 --- a/kogito-springboot-examples/process-usertasks-springboot-with-console/src/main/java/org/kie/kogito/tests/CorsConfig.java +++ b/kogito-springboot-examples/process-usertasks-springboot-with-console/src/main/java/org/acme/tests/CorsConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.tests; +package org.acme.tests; import java.util.Arrays; diff --git a/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java b/kogito-springboot-examples/process-usertasks-springboot-with-console/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java similarity index 94% rename from kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java rename to kogito-springboot-examples/process-usertasks-springboot-with-console/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java index 7b2daaca72..3588f4755d 100644 --- a/kogito-springboot-examples/process-usertasks-custom-lifecycle-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java +++ b/kogito-springboot-examples/process-usertasks-springboot-with-console/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.tests; +package org.acme.tests; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.travels.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) public class KogitoInfinispanSpringbootApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/process-usertasks-springboot-with-console/src/test/java/org/acme/travels/ApprovalsTestIT.java b/kogito-springboot-examples/process-usertasks-springboot-with-console/src/test/java/org/acme/travels/ApprovalsTestIT.java index 8ffe2a5cd1..d789ccbd44 100644 --- a/kogito-springboot-examples/process-usertasks-springboot-with-console/src/test/java/org/acme/travels/ApprovalsTestIT.java +++ b/kogito-springboot-examples/process-usertasks-springboot-with-console/src/test/java/org/acme/travels/ApprovalsTestIT.java @@ -20,6 +20,7 @@ import java.util.List; import java.util.Map; +import org.acme.tests.KogitoInfinispanSpringbootApplication; import org.jbpm.process.instance.impl.humantask.HumanTaskTransition; import org.jbpm.process.instance.impl.humantask.phases.Claim; import org.jbpm.process.instance.impl.workitem.Complete; @@ -32,7 +33,6 @@ import org.kie.kogito.process.ProcessInstance; import org.kie.kogito.process.WorkItem; import org.kie.kogito.testcontainers.springboot.InfinispanSpringBootTestResource; -import org.kie.kogito.tests.KogitoInfinispanSpringbootApplication; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.test.context.SpringBootTest; diff --git a/kogito-springboot-examples/process-usertasks-springboot/mvnw b/kogito-springboot-examples/process-usertasks-springboot/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-springboot-examples/process-usertasks-springboot/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-springboot-examples/process-usertasks-springboot/mvnw.cmd b/kogito-springboot-examples/process-usertasks-springboot/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-springboot-examples/process-usertasks-springboot/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-springboot-examples/process-usertasks-springboot/pom.xml b/kogito-springboot-examples/process-usertasks-springboot/pom.xml index 0261a5c95a..e55c40b73e 100644 --- a/kogito-springboot-examples/process-usertasks-springboot/pom.xml +++ b/kogito-springboot-examples/process-usertasks-springboot/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-usertasks-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java b/kogito-springboot-examples/process-usertasks-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java new file mode 100644 index 0000000000..3588f4755d --- /dev/null +++ b/kogito-springboot-examples/process-usertasks-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java @@ -0,0 +1,28 @@ +/* + * Copyright 2020 Red Hat, Inc. and/or its affiliates. + * + * Licensed 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.acme.tests; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) +public class KogitoInfinispanSpringbootApplication { + + public static void main(String[] args) { + SpringApplication.run(KogitoInfinispanSpringbootApplication.class, args); + } + +} diff --git a/kogito-springboot-examples/process-usertasks-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java b/kogito-springboot-examples/process-usertasks-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java deleted file mode 100644 index 7b2daaca72..0000000000 --- a/kogito-springboot-examples/process-usertasks-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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.tests; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; - -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.travels.**" }) -public class KogitoInfinispanSpringbootApplication { - - public static void main(String[] args) { - SpringApplication.run(KogitoInfinispanSpringbootApplication.class, args); - } - -} diff --git a/kogito-springboot-examples/process-usertasks-springboot/src/test/java/org/acme/travels/springboot/ApprovalsProcessTest.java b/kogito-springboot-examples/process-usertasks-springboot/src/test/java/org/acme/travels/springboot/ApprovalsProcessTest.java index 5c89d73dfc..963e2c64b4 100644 --- a/kogito-springboot-examples/process-usertasks-springboot/src/test/java/org/acme/travels/springboot/ApprovalsProcessTest.java +++ b/kogito-springboot-examples/process-usertasks-springboot/src/test/java/org/acme/travels/springboot/ApprovalsProcessTest.java @@ -20,6 +20,7 @@ import java.util.List; import java.util.Map; +import org.acme.tests.KogitoInfinispanSpringbootApplication; import org.acme.travels.Address; import org.acme.travels.Traveller; import org.jbpm.process.instance.impl.humantask.HumanTaskTransition; @@ -33,7 +34,6 @@ import org.kie.kogito.process.Process; import org.kie.kogito.process.ProcessInstance; import org.kie.kogito.process.WorkItem; -import org.kie.kogito.tests.KogitoInfinispanSpringbootApplication; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.test.context.SpringBootTest; diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/pom.xml b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/pom.xml index 5eb4ea4ffc..ddcea61146 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/pom.xml +++ b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/kie/kogito/springboot/CorsConfig.java b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/acme/springboot/CorsConfig.java similarity index 97% rename from kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/kie/kogito/springboot/CorsConfig.java rename to kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/acme/springboot/CorsConfig.java index 9c7aba87e6..79450a805a 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/kie/kogito/springboot/CorsConfig.java +++ b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/acme/springboot/CorsConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.springboot; +package org.acme.springboot; import java.util.Arrays; diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/kie/kogito/springboot/DefaultWebSecurityConfig.java b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/acme/springboot/DefaultWebSecurityConfig.java similarity index 98% rename from kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/kie/kogito/springboot/DefaultWebSecurityConfig.java rename to kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/acme/springboot/DefaultWebSecurityConfig.java index d72bb6a176..e6edd163e7 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/kie/kogito/springboot/DefaultWebSecurityConfig.java +++ b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/acme/springboot/DefaultWebSecurityConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.springboot; +package org.acme.springboot; import org.keycloak.adapters.springsecurity.KeycloakConfiguration; import org.keycloak.adapters.springsecurity.KeycloakSecurityComponents; diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/kie/kogito/springboot/KeycloakResolverConfig.java b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/acme/springboot/KeycloakResolverConfig.java similarity index 96% rename from kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/kie/kogito/springboot/KeycloakResolverConfig.java rename to kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/acme/springboot/KeycloakResolverConfig.java index add510733f..d94b010718 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/kie/kogito/springboot/KeycloakResolverConfig.java +++ b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/acme/springboot/KeycloakResolverConfig.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.springboot; +package org.acme.springboot; import org.keycloak.adapters.springboot.KeycloakSpringBootConfigResolver; import org.springframework.context.annotation.Bean; diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/kie/kogito/springboot/KogitoSpringbootApplication.java b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/acme/springboot/KogitoSpringbootApplication.java similarity index 94% rename from kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/kie/kogito/springboot/KogitoSpringbootApplication.java rename to kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/acme/springboot/KogitoSpringbootApplication.java index c832c38757..de36104b38 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/kie/kogito/springboot/KogitoSpringbootApplication.java +++ b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/main/java/org/acme/springboot/KogitoSpringbootApplication.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.springboot; +package org.acme.springboot; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.travels.**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) public class KogitoSpringbootApplication { public static void main(String[] args) { diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/test/java/org/acme/travels/ApprovalsProcessTestIT.java b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/test/java/org/acme/travels/ApprovalsProcessTestIT.java index 19da7eefb3..2abd8ed8e3 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/test/java/org/acme/travels/ApprovalsProcessTestIT.java +++ b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/test/java/org/acme/travels/ApprovalsProcessTestIT.java @@ -21,6 +21,7 @@ import java.util.List; import java.util.Map; +import org.acme.springboot.KogitoSpringbootApplication; import org.jbpm.process.instance.impl.humantask.HumanTaskTransition; import org.jbpm.process.instance.impl.humantask.phases.Claim; import org.jbpm.process.instance.impl.workitem.Complete; @@ -32,7 +33,6 @@ import org.kie.kogito.process.Process; import org.kie.kogito.process.ProcessInstance; import org.kie.kogito.process.WorkItem; -import org.kie.kogito.springboot.KogitoSpringbootApplication; import org.kie.kogito.testcontainers.springboot.InfinispanSpringBootTestResource; import org.kie.kogito.testcontainers.springboot.KeycloakSpringBootTestResource; import org.springframework.beans.factory.annotation.Autowired; diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/test/java/org/acme/travels/ApprovalsRestIT.java b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/test/java/org/acme/travels/ApprovalsRestIT.java index e45fefd324..417292b5c6 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/test/java/org/acme/travels/ApprovalsRestIT.java +++ b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot-with-console/src/test/java/org/acme/travels/ApprovalsRestIT.java @@ -15,11 +15,11 @@ */ package org.acme.travels; +import org.acme.springboot.KogitoSpringbootApplication; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.keycloak.representations.AccessTokenResponse; -import org.kie.kogito.springboot.KogitoSpringbootApplication; import org.kie.kogito.testcontainers.springboot.InfinispanSpringBootTestResource; import org.kie.kogito.testcontainers.springboot.KafkaSpringBootTestResource; import org.kie.kogito.testcontainers.springboot.KeycloakSpringBootTestResource; diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/mvnw b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/mvnw.cmd b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/pom.xml b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/pom.xml index e242442ecc..09b3770bd9 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/pom.xml +++ b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/kie/kogito/springboot/DefaultWebSecurityConfig.java b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/acme/springboot/DefaultWebSecurityConfig.java similarity index 98% rename from kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/kie/kogito/springboot/DefaultWebSecurityConfig.java rename to kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/acme/springboot/DefaultWebSecurityConfig.java index e1e9fc439b..e9346d1b90 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/kie/kogito/springboot/DefaultWebSecurityConfig.java +++ b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/acme/springboot/DefaultWebSecurityConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.springboot; +package org.acme.springboot; import org.keycloak.adapters.springsecurity.KeycloakConfiguration; import org.keycloak.adapters.springsecurity.KeycloakSecurityComponents; diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/kie/kogito/springboot/KeycloakResolverConfig.java b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/acme/springboot/KeycloakResolverConfig.java similarity index 96% rename from kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/kie/kogito/springboot/KeycloakResolverConfig.java rename to kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/acme/springboot/KeycloakResolverConfig.java index add510733f..d94b010718 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/kie/kogito/springboot/KeycloakResolverConfig.java +++ b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/acme/springboot/KeycloakResolverConfig.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.springboot; +package org.acme.springboot; import org.keycloak.adapters.springboot.KeycloakSpringBootConfigResolver; import org.springframework.context.annotation.Bean; diff --git a/kogito-springboot-examples/pmml-springboot-example/src/main/java/org/kie/kogito/pmml/springboot/example/KogitoSpringbootApplication.java b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/acme/springboot/KogitoSpringbootApplication.java similarity index 94% rename from kogito-springboot-examples/pmml-springboot-example/src/main/java/org/kie/kogito/pmml/springboot/example/KogitoSpringbootApplication.java rename to kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/acme/springboot/KogitoSpringbootApplication.java index a2c900d261..de36104b38 100644 --- a/kogito-springboot-examples/pmml-springboot-example/src/main/java/org/kie/kogito/pmml/springboot/example/KogitoSpringbootApplication.java +++ b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/main/java/org/acme/springboot/KogitoSpringbootApplication.java @@ -13,15 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.pmml.springboot.example; +package org.acme.springboot; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "test**" }) +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) public class KogitoSpringbootApplication { public static void main(String[] args) { SpringApplication.run(KogitoSpringbootApplication.class, args); } + } diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/test/java/org/acme/travels/ApprovalsRestIT.java b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/test/java/org/acme/travels/ApprovalsRestIT.java index 32f63e398b..15f0374a14 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/test/java/org/acme/travels/ApprovalsRestIT.java +++ b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/test/java/org/acme/travels/ApprovalsRestIT.java @@ -15,11 +15,11 @@ */ package org.acme.travels; +import org.acme.springboot.KogitoSpringbootApplication; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.keycloak.representations.AccessTokenResponse; -import org.kie.kogito.springboot.KogitoSpringbootApplication; import org.kie.kogito.testcontainers.springboot.KeycloakSpringBootTestResource; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.test.context.SpringBootTest; diff --git a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/test/java/org/acme/travels/security/oidc/springboot/ApprovalsProcessTest.java b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/test/java/org/acme/travels/security/oidc/springboot/ApprovalsProcessTest.java index e3b05e077a..26aaf205da 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/test/java/org/acme/travels/security/oidc/springboot/ApprovalsProcessTest.java +++ b/kogito-springboot-examples/process-usertasks-with-security-oidc-springboot/src/test/java/org/acme/travels/security/oidc/springboot/ApprovalsProcessTest.java @@ -20,6 +20,7 @@ import java.util.List; import java.util.Map; +import org.acme.springboot.KogitoSpringbootApplication; import org.acme.travels.Address; import org.acme.travels.Traveller; import org.jbpm.process.instance.impl.humantask.HumanTaskTransition; @@ -33,7 +34,6 @@ import org.kie.kogito.process.Process; import org.kie.kogito.process.ProcessInstance; import org.kie.kogito.process.WorkItem; -import org.kie.kogito.springboot.KogitoSpringbootApplication; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.test.context.SpringBootTest; diff --git a/kogito-springboot-examples/process-usertasks-with-security-springboot/mvnw b/kogito-springboot-examples/process-usertasks-with-security-springboot/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-springboot-examples/process-usertasks-with-security-springboot/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-springboot-examples/process-usertasks-with-security-springboot/mvnw.cmd b/kogito-springboot-examples/process-usertasks-with-security-springboot/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-springboot-examples/process-usertasks-with-security-springboot/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-springboot-examples/process-usertasks-with-security-springboot/pom.xml b/kogito-springboot-examples/process-usertasks-with-security-springboot/pom.xml index 7da2721b9b..81d38741ad 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-springboot/pom.xml +++ b/kogito-springboot-examples/process-usertasks-with-security-springboot/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/kie/kogito/tests/DefaultWebSecurityConfig.java b/kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/acme/tests/DefaultWebSecurityConfig.java similarity index 98% rename from kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/kie/kogito/tests/DefaultWebSecurityConfig.java rename to kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/acme/tests/DefaultWebSecurityConfig.java index 714b155cb0..c2330f25db 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/kie/kogito/tests/DefaultWebSecurityConfig.java +++ b/kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/acme/tests/DefaultWebSecurityConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.tests; +package org.acme.tests; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; diff --git a/kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java b/kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java new file mode 100644 index 0000000000..3588f4755d --- /dev/null +++ b/kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/acme/tests/KogitoInfinispanSpringbootApplication.java @@ -0,0 +1,28 @@ +/* + * Copyright 2020 Red Hat, Inc. and/or its affiliates. + * + * Licensed 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.acme.tests; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) +public class KogitoInfinispanSpringbootApplication { + + public static void main(String[] args) { + SpringApplication.run(KogitoInfinispanSpringbootApplication.class, args); + } + +} diff --git a/kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/kie/kogito/tests/LogEventPublisher.java b/kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/acme/tests/LogEventPublisher.java similarity index 97% rename from kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/kie/kogito/tests/LogEventPublisher.java rename to kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/acme/tests/LogEventPublisher.java index 882c0ef2ee..12d7509081 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/kie/kogito/tests/LogEventPublisher.java +++ b/kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/acme/tests/LogEventPublisher.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.tests; +package org.acme.tests; import java.util.Collection; diff --git a/kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java b/kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java deleted file mode 100644 index 7b2daaca72..0000000000 --- a/kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/kie/kogito/tests/KogitoInfinispanSpringbootApplication.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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.tests; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; - -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.travels.**" }) -public class KogitoInfinispanSpringbootApplication { - - public static void main(String[] args) { - SpringApplication.run(KogitoInfinispanSpringbootApplication.class, args); - } - -} diff --git a/kogito-springboot-examples/process-usertasks-with-security-springboot/src/test/java/org/acme/travels/security/springboot/ApprovalsProcessTest.java b/kogito-springboot-examples/process-usertasks-with-security-springboot/src/test/java/org/acme/travels/security/springboot/ApprovalsProcessTest.java index 7c466176d4..780083680f 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-springboot/src/test/java/org/acme/travels/security/springboot/ApprovalsProcessTest.java +++ b/kogito-springboot-examples/process-usertasks-with-security-springboot/src/test/java/org/acme/travels/security/springboot/ApprovalsProcessTest.java @@ -20,6 +20,7 @@ import java.util.List; import java.util.Map; +import org.acme.tests.KogitoInfinispanSpringbootApplication; import org.acme.travels.Address; import org.acme.travels.Traveller; import org.jbpm.process.instance.impl.humantask.HumanTaskTransition; @@ -33,7 +34,6 @@ import org.kie.kogito.process.Process; import org.kie.kogito.process.ProcessInstance; import org.kie.kogito.process.WorkItem; -import org.kie.kogito.tests.KogitoInfinispanSpringbootApplication; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.test.context.SpringBootTest; diff --git a/kogito-springboot-examples/process-usertasks-with-security-springboot/src/test/java/org/acme/travels/security/springboot/ApprovalsRestTest.java b/kogito-springboot-examples/process-usertasks-with-security-springboot/src/test/java/org/acme/travels/security/springboot/ApprovalsRestTest.java index 18d52fdca0..c0272667ee 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-springboot/src/test/java/org/acme/travels/security/springboot/ApprovalsRestTest.java +++ b/kogito-springboot-examples/process-usertasks-with-security-springboot/src/test/java/org/acme/travels/security/springboot/ApprovalsRestTest.java @@ -15,10 +15,10 @@ */ package org.acme.travels.security.springboot; +import org.acme.tests.KogitoInfinispanSpringbootApplication; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; -import org.kie.kogito.tests.KogitoInfinispanSpringbootApplication; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.web.server.LocalServerPort; import org.springframework.test.annotation.DirtiesContext; diff --git a/kogito-springboot-examples/rules-legacy-springboot-example/pom.xml b/kogito-springboot-examples/rules-legacy-springboot-example/pom.xml index 6f98382b49..ae76db27ec 100644 --- a/kogito-springboot-examples/rules-legacy-springboot-example/pom.xml +++ b/kogito-springboot-examples/rules-legacy-springboot-example/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/kie/kogito/legacy/Applicant.java b/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/acme/legacy/Applicant.java similarity index 97% rename from kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/kie/kogito/legacy/Applicant.java rename to kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/acme/legacy/Applicant.java index 771c31fe80..9ccfd60395 100644 --- a/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/kie/kogito/legacy/Applicant.java +++ b/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/acme/legacy/Applicant.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.legacy; +package org.acme.legacy; public class Applicant { diff --git a/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/kie/kogito/legacy/FindApprovedLoansEndpoint.java b/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/acme/legacy/FindApprovedLoansEndpoint.java similarity index 98% rename from kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/kie/kogito/legacy/FindApprovedLoansEndpoint.java rename to kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/acme/legacy/FindApprovedLoansEndpoint.java index 4e8feb55fd..8d4036ad7a 100644 --- a/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/kie/kogito/legacy/FindApprovedLoansEndpoint.java +++ b/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/acme/legacy/FindApprovedLoansEndpoint.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.legacy; +package org.acme.legacy; import java.util.ArrayList; import java.util.List; diff --git a/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/acme/legacy/KogitoSpringbootApplication.java b/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/acme/legacy/KogitoSpringbootApplication.java new file mode 100644 index 0000000000..d64d538f87 --- /dev/null +++ b/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/acme/legacy/KogitoSpringbootApplication.java @@ -0,0 +1,27 @@ +/* + * Copyright 2020 Red Hat, Inc. and/or its affiliates. + * + * Licensed 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.acme.legacy; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.drools.**", "org.acme.**" }) +public class KogitoSpringbootApplication { + + public static void main(String[] args) { + SpringApplication.run(KogitoSpringbootApplication.class, args); + } +} diff --git a/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/kie/kogito/legacy/LoanApplication.java b/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/acme/legacy/LoanApplication.java similarity index 98% rename from kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/kie/kogito/legacy/LoanApplication.java rename to kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/acme/legacy/LoanApplication.java index 053c5e25b9..2c8037b63d 100644 --- a/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/kie/kogito/legacy/LoanApplication.java +++ b/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/acme/legacy/LoanApplication.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.legacy; +package org.acme.legacy; public class LoanApplication { diff --git a/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/kie/kogito/legacy/LoanDto.java b/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/acme/legacy/LoanDto.java similarity index 97% rename from kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/kie/kogito/legacy/LoanDto.java rename to kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/acme/legacy/LoanDto.java index 1db9def3c2..ef1a82c5c6 100644 --- a/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/java/org/kie/kogito/legacy/LoanDto.java +++ b/kogito-springboot-examples/rules-legacy-springboot-example/src/main/java/org/acme/legacy/LoanDto.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.legacy; +package org.acme.legacy; import java.util.List; diff --git a/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/resources/org/kie/kogito/legacy/LoanRules.drl b/kogito-springboot-examples/rules-legacy-springboot-example/src/main/resources/org/acme/legacy/LoanRules.drl similarity index 95% rename from kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/resources/org/kie/kogito/legacy/LoanRules.drl rename to kogito-springboot-examples/rules-legacy-springboot-example/src/main/resources/org/acme/legacy/LoanRules.drl index e9a24b46c9..5eafd184d5 100644 --- a/kogito-quarkus-examples/rules-legacy-quarkus-example/src/main/resources/org/kie/kogito/legacy/LoanRules.drl +++ b/kogito-springboot-examples/rules-legacy-springboot-example/src/main/resources/org/acme/legacy/LoanRules.drl @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.legacy; +package org.acme.legacy; -import org.kie.kogito.legacy.LoanApplication; +import org.acme.legacy.LoanApplication; global Integer maxAmount; global java.util.List approvedApplications; diff --git a/kogito-springboot-examples/rules-legacy-springboot-example/src/test/java/org/kie/kogito/RestQueryTest.java b/kogito-springboot-examples/rules-legacy-springboot-example/src/test/java/org/acme/RestQueryTest.java similarity index 97% rename from kogito-springboot-examples/rules-legacy-springboot-example/src/test/java/org/kie/kogito/RestQueryTest.java rename to kogito-springboot-examples/rules-legacy-springboot-example/src/test/java/org/acme/RestQueryTest.java index cd61a4ad93..affd4c7164 100644 --- a/kogito-springboot-examples/rules-legacy-springboot-example/src/test/java/org/kie/kogito/RestQueryTest.java +++ b/kogito-springboot-examples/rules-legacy-springboot-example/src/test/java/org/acme/RestQueryTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito; +package org.acme; +import org.acme.legacy.KogitoSpringbootApplication; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.kie.kogito.legacy.KogitoSpringbootApplication; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.web.server.LocalServerPort; import org.springframework.test.annotation.DirtiesContext; diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/README.md b/kogito-springboot-examples/ruleunit-event-driven-springboot/README.md index bd5febc87e..833fd6864a 100644 --- a/kogito-springboot-examples/ruleunit-event-driven-springboot/README.md +++ b/kogito-springboot-examples/ruleunit-event-driven-springboot/README.md @@ -82,7 +82,7 @@ java -jar target\dmn-event-driven-springboot.jar ## Example Usage -Here is an example of a input event that triggers the evaluation of the [Loan Unit](src/main/resources/org/kie/kogito/queries/RuleUnitQuery.drl) queries +Here is an example of a input event that triggers the evaluation of the [Loan Unit](src/main/resources/org/acme/queries/RuleUnitQuery.drl) queries included in this example. The `data` field contains the query input. Just send this payload to the configured input topic: @@ -94,7 +94,7 @@ Just send this payload to the configured input topic: "source": "SomeEventSource", "type": "RulesRequest", "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", + "kogitoruleunitid": "org.acme.queries.LoanUnit", "kogitoruleunitquery": "FindApproved", "data": { "maxAmount": 5000, @@ -140,7 +140,7 @@ And you should receive something similar to this in the output topic: "source": "find-approved", "type": "RulesResponse", "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", + "kogitoruleunitid": "org.acme.queries.LoanUnit", "kogitoruleunitquery": "FindApproved", "data": [ { diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/pom.xml b/kogito-springboot-examples/ruleunit-event-driven-springboot/pom.xml index 77decd35e6..777cca5b21 100644 --- a/kogito-springboot-examples/ruleunit-event-driven-springboot/pom.xml +++ b/kogito-springboot-examples/ruleunit-event-driven-springboot/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/kie/kogito/queries/AllAmounts.java b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/acme/queries/AllAmounts.java similarity index 96% rename from kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/kie/kogito/queries/AllAmounts.java rename to kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/acme/queries/AllAmounts.java index e0c67ef987..9c39f215d0 100644 --- a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/kie/kogito/queries/AllAmounts.java +++ b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/acme/queries/AllAmounts.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; public class AllAmounts { private int amounts; diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/acme/queries/Applicant.java b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/acme/queries/Applicant.java new file mode 100644 index 0000000000..c63d1274c8 --- /dev/null +++ b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/acme/queries/Applicant.java @@ -0,0 +1,46 @@ +/* + * Copyright 2020 Red Hat, Inc. and/or its affiliates. + * + * Licensed 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.acme.queries; + +public class Applicant { + + private String name; + private int age; + + public Applicant() { + } + + public Applicant(String name, int age) { + this.name = name; + this.age = age; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getAge() { + return age; + } + + public void setAge(int age) { + this.age = age; + } +} diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/acme/queries/KogitoSpringbootApplication.java b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/acme/queries/KogitoSpringbootApplication.java new file mode 100644 index 0000000000..05518ab0e3 --- /dev/null +++ b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/acme/queries/KogitoSpringbootApplication.java @@ -0,0 +1,27 @@ +/* + * Copyright 2020 Red Hat, Inc. and/or its affiliates. + * + * Licensed 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.acme.queries; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) +public class KogitoSpringbootApplication { + + public static void main(String[] args) { + SpringApplication.run(KogitoSpringbootApplication.class, args); + } +} diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/acme/queries/LoanApplication.java b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/acme/queries/LoanApplication.java new file mode 100644 index 0000000000..a6a205d958 --- /dev/null +++ b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/acme/queries/LoanApplication.java @@ -0,0 +1,80 @@ +/* + * Copyright 2020 Red Hat, Inc. and/or its affiliates. + * + * Licensed 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.acme.queries; + +public class LoanApplication { + + private String id; + + private Applicant applicant; + + private int amount; + + private int deposit; + + private boolean approved = false; + + public LoanApplication() { + } + + public LoanApplication(String id, Applicant applicant, int amount, int deposit) { + this.id = id; + this.applicant = applicant; + this.amount = amount; + this.deposit = deposit; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public Applicant getApplicant() { + return applicant; + } + + public void setApplicant(Applicant applicant) { + this.applicant = applicant; + } + + public boolean isApproved() { + return approved; + } + + public void setApproved(boolean approved) { + this.approved = approved; + } + + public int getAmount() { + return amount; + } + + public void setAmount(int amount) { + this.amount = amount; + } + + public int getDeposit() { + return deposit; + } + + public void setDeposit(int deposit) { + this.deposit = deposit; + } + +} diff --git a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/kie/kogito/queries/LoanUnit.java b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/acme/queries/LoanUnit.java similarity index 98% rename from kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/kie/kogito/queries/LoanUnit.java rename to kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/acme/queries/LoanUnit.java index 3f68f880e8..bd51d017ce 100644 --- a/kogito-quarkus-examples/ruleunit-event-driven-quarkus/src/main/java/org/kie/kogito/queries/LoanUnit.java +++ b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/acme/queries/LoanUnit.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; import org.drools.ruleunits.api.DataSource; import org.drools.ruleunits.api.DataStore; diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/kie/kogito/queries/Applicant.java b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/kie/kogito/queries/Applicant.java deleted file mode 100644 index 175d3a98d5..0000000000 --- a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/kie/kogito/queries/Applicant.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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.queries; - -public class Applicant { - - private String name; - private int age; - - public Applicant() { - } - - public Applicant(String name, int age) { - this.name = name; - this.age = age; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public int getAge() { - return age; - } - - public void setAge(int age) { - this.age = age; - } -} diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/kie/kogito/queries/KogitoSpringbootApplication.java b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/kie/kogito/queries/KogitoSpringbootApplication.java deleted file mode 100644 index d6f7c7a33f..0000000000 --- a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/kie/kogito/queries/KogitoSpringbootApplication.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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.queries; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; - -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**" }) -public class KogitoSpringbootApplication { - - public static void main(String[] args) { - SpringApplication.run(KogitoSpringbootApplication.class, args); - } -} diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/kie/kogito/queries/LoanApplication.java b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/kie/kogito/queries/LoanApplication.java deleted file mode 100644 index 70eec1c4e3..0000000000 --- a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/java/org/kie/kogito/queries/LoanApplication.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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.queries; - -public class LoanApplication { - - private String id; - - private Applicant applicant; - - private int amount; - - private int deposit; - - private boolean approved = false; - - public LoanApplication() { - } - - public LoanApplication(String id, Applicant applicant, int amount, int deposit) { - this.id = id; - this.applicant = applicant; - this.amount = amount; - this.deposit = deposit; - } - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public Applicant getApplicant() { - return applicant; - } - - public void setApplicant(Applicant applicant) { - this.applicant = applicant; - } - - public boolean isApproved() { - return approved; - } - - public void setApproved(boolean approved) { - this.approved = approved; - } - - public int getAmount() { - return amount; - } - - public void setAmount(int amount) { - this.amount = amount; - } - - public int getDeposit() { - return deposit; - } - - public void setDeposit(int deposit) { - this.deposit = deposit; - } - -} diff --git a/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/resources/org/kie/kogito/queries/RuleUnitQuery.drl b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/resources/org/acme/queries/RuleUnitQuery.drl similarity index 93% rename from kogito-quarkus-examples/ruleunit-quarkus-example/src/main/resources/org/kie/kogito/queries/RuleUnitQuery.drl rename to kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/resources/org/acme/queries/RuleUnitQuery.drl index 2f14454ead..4a55746570 100644 --- a/kogito-quarkus-examples/ruleunit-quarkus-example/src/main/resources/org/kie/kogito/queries/RuleUnitQuery.drl +++ b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/main/resources/org/acme/queries/RuleUnitQuery.drl @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; unit LoanUnit; -import org.kie.kogito.queries.LoanApplication; -import org.kie.kogito.queries.AllAmounts; +import org.acme.queries.LoanApplication; +import org.acme.queries.AllAmounts; rule SmallDepositApprove when $l: /loanApplications[ applicant.age >= 20, deposit < 1000, amount <= 2000 ] diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/java/org/kie/kogito/examples/RuleUnitEventDrivenIT.java b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/java/org/acme/examples/RuleUnitEventDrivenIT.java similarity index 98% rename from kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/java/org/kie/kogito/examples/RuleUnitEventDrivenIT.java rename to kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/java/org/acme/examples/RuleUnitEventDrivenIT.java index 019e8360ff..e27efab7a5 100644 --- a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/java/org/kie/kogito/examples/RuleUnitEventDrivenIT.java +++ b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/java/org/acme/examples/RuleUnitEventDrivenIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.io.IOException; import java.net.URL; @@ -25,8 +25,8 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.atomic.AtomicReference; +import org.acme.queries.KogitoSpringbootApplication; import org.junit.jupiter.api.Test; -import org.kie.kogito.queries.KogitoSpringbootApplication; import org.kie.kogito.test.springboot.kafka.KafkaTestClient; import org.kie.kogito.testcontainers.springboot.KafkaSpringBootTestResource; import org.skyscreamer.jsonassert.JSONAssert; diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_all_application_amounts/input.json b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_all_application_amounts/input.json index 123fec11d0..cd57723a01 100644 --- a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_all_application_amounts/input.json +++ b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_all_application_amounts/input.json @@ -4,7 +4,7 @@ "source": "SomeEventSource", "type": "RulesRequest", "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", + "kogitoruleunitid": "org.acme.queries.LoanUnit", "kogitoruleunitquery": "FindAllApplicationAmounts", "data": { "maxAmount": 5000, diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_all_application_amounts/output.json b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_all_application_amounts/output.json index 93dc6db47f..fb1516895d 100644 --- a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_all_application_amounts/output.json +++ b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_all_application_amounts/output.json @@ -4,7 +4,7 @@ "source": "find-all-application-amounts", "type": "RulesResponse", "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", + "kogitoruleunitid": "org.acme.queries.LoanUnit", "kogitoruleunitquery": "FindAllApplicationAmounts", "data": [ { diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_approved/input.json b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_approved/input.json index 7e7fea489c..71dba2fd94 100644 --- a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_approved/input.json +++ b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_approved/input.json @@ -4,7 +4,7 @@ "source": "SomeEventSource", "type": "RulesRequest", "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", + "kogitoruleunitid": "org.acme.queries.LoanUnit", "kogitoruleunitquery": "FindApproved", "data": { "maxAmount": 5000, diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_approved/output.json b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_approved/output.json index 9106df086e..825a95ad40 100644 --- a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_approved/output.json +++ b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_approved/output.json @@ -4,7 +4,7 @@ "source": "find-approved", "type": "RulesResponse", "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", + "kogitoruleunitid": "org.acme.queries.LoanUnit", "kogitoruleunitquery": "FindApproved", "data": [ { diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_not_approved_id_and_amount/input.json b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_not_approved_id_and_amount/input.json index e433d32a9b..b67dd817fd 100644 --- a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_not_approved_id_and_amount/input.json +++ b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_not_approved_id_and_amount/input.json @@ -4,7 +4,7 @@ "source": "SomeEventSource", "type": "RulesRequest", "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", + "kogitoruleunitid": "org.acme.queries.LoanUnit", "kogitoruleunitquery": "FindNotApprovedIdAndAmount", "data": { "maxAmount": 5000, diff --git a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_not_approved_id_and_amount/output.json b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_not_approved_id_and_amount/output.json index 61844e894e..fc1e6eca28 100644 --- a/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_not_approved_id_and_amount/output.json +++ b/kogito-springboot-examples/ruleunit-event-driven-springboot/src/test/resources/events/query/find_not_approved_id_and_amount/output.json @@ -4,7 +4,7 @@ "source": "find-not-approved-id-and-amount", "type": "RulesResponse", "subject": "TheSubject", - "kogitoruleunitid": "org.kie.kogito.queries.LoanUnit", + "kogitoruleunitid": "org.acme.queries.LoanUnit", "kogitoruleunitquery": "FindNotApprovedIdAndAmount", "data": [ { diff --git a/kogito-springboot-examples/ruleunit-springboot-example/pom.xml b/kogito-springboot-examples/ruleunit-springboot-example/pom.xml index e14f65ecb0..3823487c75 100644 --- a/kogito-springboot-examples/ruleunit-springboot-example/pom.xml +++ b/kogito-springboot-examples/ruleunit-springboot-example/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-springboot-examples 2.0.0-SNAPSHOT diff --git a/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/acme/queries/Applicant.java b/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/acme/queries/Applicant.java new file mode 100644 index 0000000000..c63d1274c8 --- /dev/null +++ b/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/acme/queries/Applicant.java @@ -0,0 +1,46 @@ +/* + * Copyright 2020 Red Hat, Inc. and/or its affiliates. + * + * Licensed 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.acme.queries; + +public class Applicant { + + private String name; + private int age; + + public Applicant() { + } + + public Applicant(String name, int age) { + this.name = name; + this.age = age; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getAge() { + return age; + } + + public void setAge(int age) { + this.age = age; + } +} diff --git a/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/acme/queries/KogitoSpringbootApplication.java b/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/acme/queries/KogitoSpringbootApplication.java new file mode 100644 index 0000000000..05518ab0e3 --- /dev/null +++ b/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/acme/queries/KogitoSpringbootApplication.java @@ -0,0 +1,27 @@ +/* + * Copyright 2020 Red Hat, Inc. and/or its affiliates. + * + * Licensed 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.acme.queries; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**", "org.acme.**" }) +public class KogitoSpringbootApplication { + + public static void main(String[] args) { + SpringApplication.run(KogitoSpringbootApplication.class, args); + } +} diff --git a/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/acme/queries/LoanApplication.java b/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/acme/queries/LoanApplication.java new file mode 100644 index 0000000000..a6a205d958 --- /dev/null +++ b/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/acme/queries/LoanApplication.java @@ -0,0 +1,80 @@ +/* + * Copyright 2020 Red Hat, Inc. and/or its affiliates. + * + * Licensed 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.acme.queries; + +public class LoanApplication { + + private String id; + + private Applicant applicant; + + private int amount; + + private int deposit; + + private boolean approved = false; + + public LoanApplication() { + } + + public LoanApplication(String id, Applicant applicant, int amount, int deposit) { + this.id = id; + this.applicant = applicant; + this.amount = amount; + this.deposit = deposit; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public Applicant getApplicant() { + return applicant; + } + + public void setApplicant(Applicant applicant) { + this.applicant = applicant; + } + + public boolean isApproved() { + return approved; + } + + public void setApproved(boolean approved) { + this.approved = approved; + } + + public int getAmount() { + return amount; + } + + public void setAmount(int amount) { + this.amount = amount; + } + + public int getDeposit() { + return deposit; + } + + public void setDeposit(int deposit) { + this.deposit = deposit; + } + +} diff --git a/kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/kie/kogito/queries/LoanUnit.java b/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/acme/queries/LoanUnit.java similarity index 97% rename from kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/kie/kogito/queries/LoanUnit.java rename to kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/acme/queries/LoanUnit.java index 3d35a77609..063377fe07 100644 --- a/kogito-springboot-examples/decisiontable-springboot-example/src/main/java/org/kie/kogito/queries/LoanUnit.java +++ b/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/acme/queries/LoanUnit.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; import org.drools.ruleunits.api.DataSource; import org.drools.ruleunits.api.DataStore; diff --git a/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/kie/kogito/queries/Applicant.java b/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/kie/kogito/queries/Applicant.java deleted file mode 100644 index 175d3a98d5..0000000000 --- a/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/kie/kogito/queries/Applicant.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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.queries; - -public class Applicant { - - private String name; - private int age; - - public Applicant() { - } - - public Applicant(String name, int age) { - this.name = name; - this.age = age; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public int getAge() { - return age; - } - - public void setAge(int age) { - this.age = age; - } -} diff --git a/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/kie/kogito/queries/KogitoSpringbootApplication.java b/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/kie/kogito/queries/KogitoSpringbootApplication.java deleted file mode 100644 index d6f7c7a33f..0000000000 --- a/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/kie/kogito/queries/KogitoSpringbootApplication.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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.queries; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; - -@SpringBootApplication(scanBasePackages = { "org.kie.kogito.**" }) -public class KogitoSpringbootApplication { - - public static void main(String[] args) { - SpringApplication.run(KogitoSpringbootApplication.class, args); - } -} diff --git a/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/kie/kogito/queries/LoanApplication.java b/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/kie/kogito/queries/LoanApplication.java deleted file mode 100644 index 70eec1c4e3..0000000000 --- a/kogito-springboot-examples/ruleunit-springboot-example/src/main/java/org/kie/kogito/queries/LoanApplication.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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.queries; - -public class LoanApplication { - - private String id; - - private Applicant applicant; - - private int amount; - - private int deposit; - - private boolean approved = false; - - public LoanApplication() { - } - - public LoanApplication(String id, Applicant applicant, int amount, int deposit) { - this.id = id; - this.applicant = applicant; - this.amount = amount; - this.deposit = deposit; - } - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public Applicant getApplicant() { - return applicant; - } - - public void setApplicant(Applicant applicant) { - this.applicant = applicant; - } - - public boolean isApproved() { - return approved; - } - - public void setApproved(boolean approved) { - this.approved = approved; - } - - public int getAmount() { - return amount; - } - - public void setAmount(int amount) { - this.amount = amount; - } - - public int getDeposit() { - return deposit; - } - - public void setDeposit(int deposit) { - this.deposit = deposit; - } - -} diff --git a/kogito-springboot-examples/ruleunit-springboot-example/src/main/resources/org/kie/kogito/queries/RuleUnitQuery.drl b/kogito-springboot-examples/ruleunit-springboot-example/src/main/resources/org/acme/queries/RuleUnitQuery.drl similarity index 95% rename from kogito-springboot-examples/ruleunit-springboot-example/src/main/resources/org/kie/kogito/queries/RuleUnitQuery.drl rename to kogito-springboot-examples/ruleunit-springboot-example/src/main/resources/org/acme/queries/RuleUnitQuery.drl index a75b91c804..89e5278c70 100644 --- a/kogito-springboot-examples/ruleunit-springboot-example/src/main/resources/org/kie/kogito/queries/RuleUnitQuery.drl +++ b/kogito-springboot-examples/ruleunit-springboot-example/src/main/resources/org/acme/queries/RuleUnitQuery.drl @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.queries; +package org.acme.queries; unit LoanUnit; -import org.kie.kogito.queries.LoanApplication +import org.acme.queries.LoanApplication rule SmallDepositApprove when $l: /loanApplications[ applicant.age >= 20, deposit < 1000, amount <= 2000 ] diff --git a/kogito-springboot-examples/ruleunit-springboot-example/src/test/java/org/kie/kogito/decisiontable/springboot/ruleunit/RestQueryTest.java b/kogito-springboot-examples/ruleunit-springboot-example/src/test/java/org/acme/decisiontable/springboot/ruleunit/RestQueryTest.java similarity index 96% rename from kogito-springboot-examples/ruleunit-springboot-example/src/test/java/org/kie/kogito/decisiontable/springboot/ruleunit/RestQueryTest.java rename to kogito-springboot-examples/ruleunit-springboot-example/src/test/java/org/acme/decisiontable/springboot/ruleunit/RestQueryTest.java index 8f54299cf6..803c98125b 100644 --- a/kogito-springboot-examples/ruleunit-springboot-example/src/test/java/org/kie/kogito/decisiontable/springboot/ruleunit/RestQueryTest.java +++ b/kogito-springboot-examples/ruleunit-springboot-example/src/test/java/org/acme/decisiontable/springboot/ruleunit/RestQueryTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.decisiontable.springboot.ruleunit; +package org.acme.decisiontable.springboot.ruleunit; +import org.acme.queries.KogitoSpringbootApplication; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.kie.kogito.queries.KogitoSpringbootApplication; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.web.server.LocalServerPort; import org.springframework.test.annotation.DirtiesContext; diff --git a/pom.xml b/pom.xml index e51bbf6983..b51c68477a 100755 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ 2.0.0-SNAPSHOT - org.kie.kogito.examples + org.acme.examples kogito-examples pom @@ -49,7 +49,6 @@ 1.4.0 4.5.3 - 3.3.1 diff --git a/serverless-workflow-examples/pom.xml b/serverless-workflow-examples/pom.xml index 1955a85d45..ae833d1dab 100644 --- a/serverless-workflow-examples/pom.xml +++ b/serverless-workflow-examples/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples kogito-examples 2.0.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-annotations-description/pom.xml b/serverless-workflow-examples/serverless-workflow-annotations-description/pom.xml index 13129a50ae..5e685e8e75 100644 --- a/serverless-workflow-examples/serverless-workflow-annotations-description/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-annotations-description/pom.xml @@ -4,7 +4,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-annotations-description 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/pom.xml b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/pom.xml index 4e46021483..7369fa1b14 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-callback-events-over-http-quarkus 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/kie/kogito/examples/CallbackResource.java b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/acme/examples/CallbackResource.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/kie/kogito/examples/CallbackResource.java rename to serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/acme/examples/CallbackResource.java index 91ad34b972..e695a3b635 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/kie/kogito/examples/CallbackResource.java +++ b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/acme/examples/CallbackResource.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.net.URI; import java.time.OffsetDateTime; diff --git a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/kie/kogito/examples/EventInput.java b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/acme/examples/EventInput.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/kie/kogito/examples/EventInput.java rename to serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/acme/examples/EventInput.java index ec0af553e9..62559751a5 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/kie/kogito/examples/EventInput.java +++ b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/acme/examples/EventInput.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; public class EventInput { diff --git a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/kie/kogito/examples/RegisterObjectMapper.java b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/acme/examples/RegisterObjectMapper.java similarity index 96% rename from serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/kie/kogito/examples/RegisterObjectMapper.java rename to serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/acme/examples/RegisterObjectMapper.java index e0477fba44..cf751680b2 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/kie/kogito/examples/RegisterObjectMapper.java +++ b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/acme/examples/RegisterObjectMapper.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import javax.enterprise.context.ApplicationScoped; diff --git a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-workflow/pom.xml b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-workflow/pom.xml index 76a5fd0180..61ae4f2ab1 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-workflow/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-workflow/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-callback-events-over-http-quarkus 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-workflow/src/test/java/org/kie/kogito/examples/CallbackRestIT.java b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-workflow/src/test/java/org/acme/examples/CallbackRestIT.java similarity index 99% rename from serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-workflow/src/test/java/org/kie/kogito/examples/CallbackRestIT.java rename to serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-workflow/src/test/java/org/acme/examples/CallbackRestIT.java index 92b381661e..4b4deb6465 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-workflow/src/test/java/org/kie/kogito/examples/CallbackRestIT.java +++ b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-workflow/src/test/java/org/acme/examples/CallbackRestIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; diff --git a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/pom.xml index a5e05ea8c3..7cfc6646ff 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-callback-events-over-http-quarkus 1.0-SNAPSHOT Kogito Example :: Serverless Workflow CallBack Over HTTP :: Quarkus diff --git a/serverless-workflow-examples/serverless-workflow-callback-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-callback-quarkus/pom.xml index 2f1c84d571..a88c72863a 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-callback-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-callback-quarkus 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/java/org/kie/kogito/examples/PrintService.java b/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/java/org/acme/examples/PrintService.java similarity index 99% rename from serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/java/org/kie/kogito/examples/PrintService.java rename to serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/java/org/acme/examples/PrintService.java index a1ee770e73..009af8927c 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/java/org/kie/kogito/examples/PrintService.java +++ b/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/java/org/acme/examples/PrintService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.net.URI; import java.time.OffsetDateTime; diff --git a/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/resources/callback.sw.json b/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/resources/callback.sw.json index b876f7ce79..4bf2371c15 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/resources/callback.sw.json +++ b/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/resources/callback.sw.json @@ -26,7 +26,7 @@ { "name": "printInstanceId", "type": "custom", - "operation": "service:java:org.kie.kogito.examples.PrintService::printKogitoProcessId" + "operation": "service:java:org.acme.examples.PrintService::printKogitoProcessId" } ], "states": [ diff --git a/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/test/java/org/kie/kogito/examples/CallbackRestIT.java b/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/test/java/org/acme/examples/CallbackRestIT.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-callback-quarkus/src/test/java/org/kie/kogito/examples/CallbackRestIT.java rename to serverless-workflow-examples/serverless-workflow-callback-quarkus/src/test/java/org/acme/examples/CallbackRestIT.java index 7730d4b92d..d195fbeb9b 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/test/java/org/kie/kogito/examples/CallbackRestIT.java +++ b/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/test/java/org/acme/examples/CallbackRestIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.junit.jupiter.api.Test; diff --git a/serverless-workflow-examples/serverless-workflow-compensation-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-compensation-quarkus/pom.xml index 4802066871..9c66bb55d5 100644 --- a/serverless-workflow-examples/serverless-workflow-compensation-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-compensation-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-compensation-quarkus 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-compensation-quarkus/src/test/java/org/kie/kogito/examples/CompensationRestIT.java b/serverless-workflow-examples/serverless-workflow-compensation-quarkus/src/test/java/org/acme/examples/CompensationRestIT.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-compensation-quarkus/src/test/java/org/kie/kogito/examples/CompensationRestIT.java rename to serverless-workflow-examples/serverless-workflow-compensation-quarkus/src/test/java/org/acme/examples/CompensationRestIT.java index fe63e1ada3..f0aac41879 100644 --- a/serverless-workflow-examples/serverless-workflow-compensation-quarkus/src/test/java/org/kie/kogito/examples/CompensationRestIT.java +++ b/serverless-workflow-examples/serverless-workflow-compensation-quarkus/src/test/java/org/acme/examples/CompensationRestIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.junit.jupiter.api.Test; diff --git a/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/pom.xml index 4cc5b957be..75f9a7eb38 100644 --- a/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-consuming-events-over-http-quarkus 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/src/test/java/org/kie/kogito/examples/ConsumingEventsOverHttpIT.java b/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/src/test/java/org/acme/examples/ConsumingEventsOverHttpIT.java similarity index 99% rename from serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/src/test/java/org/kie/kogito/examples/ConsumingEventsOverHttpIT.java rename to serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/src/test/java/org/acme/examples/ConsumingEventsOverHttpIT.java index 255feff2f7..213208ab1d 100644 --- a/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/src/test/java/org/kie/kogito/examples/ConsumingEventsOverHttpIT.java +++ b/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/src/test/java/org/acme/examples/ConsumingEventsOverHttpIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.net.URI; import java.time.OffsetDateTime; diff --git a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/README.md index 527c61b5f2..04db14bf8c 100644 --- a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/README.md @@ -32,9 +32,9 @@ In the example the event broker used to publish/receive the events is Kafka, and ] } ``` -For simplicity, the events are published and consumed in the same application running the workflow, but in a real use case they should come from different services interacting with the workflow, see [EventsService](src/main/java/org/kie/kogito/examples/EventsService.java). +For simplicity, the events are published and consumed in the same application running the workflow, but in a real use case they should come from different services interacting with the workflow, see [EventsService](src/main/java/org/acme/examples/EventsService.java). -To start the workflow as mentioned, it is required an event to be published which is going to be consumed by the workflow service starting a new instance. A helper REST endpoint was recreated to simplify this step, so once a POST request is received it publishes the start event to the broker see [WorkflowResource](src/main/java/org/kie/kogito/examples/WorkflowResource.java). +To start the workflow as mentioned, it is required an event to be published which is going to be consumed by the workflow service starting a new instance. A helper REST endpoint was recreated to simplify this step, so once a POST request is received it publishes the start event to the broker see [WorkflowResource](src/main/java/org/acme/examples/WorkflowResource.java). All eventing configuration and the broker parameters are in done in the [application.properties](src/main/resources/application.properties). diff --git a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/pom.xml index 4cb87747c5..9481ce905b 100644 --- a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-correlation-quarkus 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/kie/kogito/examples/Account.java b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/acme/examples/Account.java similarity index 96% rename from serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/kie/kogito/examples/Account.java rename to serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/acme/examples/Account.java index e0b09d9899..3404ce5a5c 100644 --- a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/kie/kogito/examples/Account.java +++ b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/acme/examples/Account.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; public class Account { diff --git a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/kie/kogito/examples/EventsService.java b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/acme/examples/EventsService.java similarity index 99% rename from serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/kie/kogito/examples/EventsService.java rename to serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/acme/examples/EventsService.java index ff08208ed8..53f69b9f63 100644 --- a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/kie/kogito/examples/EventsService.java +++ b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/acme/examples/EventsService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.net.URI; import java.time.OffsetDateTime; diff --git a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/kie/kogito/examples/WorkflowResource.java b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/acme/examples/WorkflowResource.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/kie/kogito/examples/WorkflowResource.java rename to serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/acme/examples/WorkflowResource.java index bb3edca5f7..a70854560e 100644 --- a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/kie/kogito/examples/WorkflowResource.java +++ b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/acme/examples/WorkflowResource.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.net.URI; import java.time.OffsetDateTime; diff --git a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/resources/correlation.sw.json b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/resources/correlation.sw.json index b6a44aeb13..b6acbabd81 100644 --- a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/resources/correlation.sw.json +++ b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/resources/correlation.sw.json @@ -50,7 +50,7 @@ { "name": "complete", "type": "custom", - "operation": "service:java:org.kie.kogito.examples.EventsService::complete" + "operation": "service:java:org.acme.examples.EventsService::complete" } ], "states": [ diff --git a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/test/java/org/kie/kogito/examples/CorrelationIT.java b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/test/java/org/acme/examples/CorrelationIT.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/test/java/org/kie/kogito/examples/CorrelationIT.java rename to serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/test/java/org/acme/examples/CorrelationIT.java index a5181364a4..c73ad877ba 100644 --- a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/test/java/org/kie/kogito/examples/CorrelationIT.java +++ b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/test/java/org/acme/examples/CorrelationIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.util.concurrent.atomic.AtomicReference; diff --git a/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/pom.xml b/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/pom.xml index bb232125fa..bf15ce4075 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-custom-function-knative 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/kie/kogito/examples/CloudEventFunction.java b/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/acme/examples/CloudEventFunction.java similarity index 96% rename from serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/kie/kogito/examples/CloudEventFunction.java rename to serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/acme/examples/CloudEventFunction.java index a9f09c4da4..77956f1f03 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/kie/kogito/examples/CloudEventFunction.java +++ b/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/acme/examples/CloudEventFunction.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import io.quarkus.funqy.Funq; import io.quarkus.funqy.knative.events.CloudEvent; diff --git a/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/kie/kogito/examples/Input.java b/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/acme/examples/Input.java similarity index 96% rename from serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/kie/kogito/examples/Input.java rename to serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/acme/examples/Input.java index 1302701ef3..adf8753a9a 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/kie/kogito/examples/Input.java +++ b/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/acme/examples/Input.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; public class Input { private String name; diff --git a/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/kie/kogito/examples/Output.java b/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/acme/examples/Output.java similarity index 96% rename from serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/kie/kogito/examples/Output.java rename to serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/acme/examples/Output.java index c478e6ac22..e0d007ec3b 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/kie/kogito/examples/Output.java +++ b/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/acme/examples/Output.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; public class Output { diff --git a/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/kie/kogito/examples/PlainJsonFunction.java b/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/acme/examples/PlainJsonFunction.java similarity index 96% rename from serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/kie/kogito/examples/PlainJsonFunction.java rename to serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/acme/examples/PlainJsonFunction.java index de843004f8..4fcb5d185d 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/kie/kogito/examples/PlainJsonFunction.java +++ b/serverless-workflow-examples/serverless-workflow-custom-function-knative/custom-function-knative-service/src/main/java/org/acme/examples/PlainJsonFunction.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import io.quarkus.funqy.Funq; diff --git a/serverless-workflow-examples/serverless-workflow-custom-function-knative/pom.xml b/serverless-workflow-examples/serverless-workflow-custom-function-knative/pom.xml index 58add14932..bdb5c2269e 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-function-knative/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-custom-function-knative/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-custom-function-knative 1.0-SNAPSHOT Kogito Example :: Serverless Workflow Custom Function :: Quarkus diff --git a/serverless-workflow-examples/serverless-workflow-custom-function-knative/workflow/pom.xml b/serverless-workflow-examples/serverless-workflow-custom-function-knative/workflow/pom.xml index a92ad9e896..b8258d74a0 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-function-knative/workflow/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-custom-function-knative/workflow/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-custom-function-knative 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-custom-type/pom.xml b/serverless-workflow-examples/serverless-workflow-custom-type/pom.xml index 519f3d2369..6f11c67af3 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-type/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-custom-type/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-custom-type 1.0-SNAPSHOT pom diff --git a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/pom.xml b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/pom.xml index 4dba82d554..b2e98af178 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> serverless-workflow-custom-type - org.kie.kogito.examples + org.acme.examples 1.0-SNAPSHOT 4.0.0 @@ -15,7 +15,7 @@ - org.kie.kogito.examples + org.acme.examples serverless-workflow-custom-rpc ${project.version} diff --git a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/java/org/kie/kogito/examples/sw/services/RPCCustomFunctionNamespace.java b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/java/org/acme/examples/sw/services/RPCCustomFunctionNamespace.java similarity index 85% rename from serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/java/org/kie/kogito/examples/sw/services/RPCCustomFunctionNamespace.java rename to serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/java/org/acme/examples/sw/services/RPCCustomFunctionNamespace.java index 5cbc1755d1..3ab6fefce2 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/java/org/kie/kogito/examples/sw/services/RPCCustomFunctionNamespace.java +++ b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/java/org/acme/examples/sw/services/RPCCustomFunctionNamespace.java @@ -13,8 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.sw.services; +package org.acme.examples.sw.services; +import org.acme.examples.sw.custom.RPCCustomWorkItemHandler; import org.jbpm.ruleflow.core.RuleFlowNodeContainerFactory; import org.jbpm.ruleflow.core.factory.WorkItemNodeFactory; import org.kie.kogito.serverless.workflow.functions.WorkItemFunctionNamespace; @@ -23,8 +24,6 @@ import io.serverlessworkflow.api.Workflow; import io.serverlessworkflow.api.functions.FunctionRef; -import static org.kie.kogito.examples.sw.custom.RPCCustomWorkItemHandler.NAME; -import static org.kie.kogito.examples.sw.custom.RPCCustomWorkItemHandler.OPERATION; import static org.kie.kogito.serverless.workflow.parser.FunctionNamespaceFactory.getFunctionName; public class RPCCustomFunctionNamespace extends WorkItemFunctionNamespace{ @@ -39,6 +38,6 @@ public String namespace() { ParserContext context, WorkItemNodeFactory node, FunctionRef functionRef) { - return node.workName(NAME).metaData(OPERATION, getFunctionName(functionRef)); + return node.workName(RPCCustomWorkItemHandler.NAME).metaData(RPCCustomWorkItemHandler.OPERATION, getFunctionName(functionRef)); } } diff --git a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/java/org/kie/kogito/examples/sw/services/RPCCustomTypeHandler.java b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/java/org/acme/examples/sw/services/RPCCustomTypeHandler.java similarity index 85% rename from serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/java/org/kie/kogito/examples/sw/services/RPCCustomTypeHandler.java rename to serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/java/org/acme/examples/sw/services/RPCCustomTypeHandler.java index c70b72126a..69c47675c0 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/java/org/kie/kogito/examples/sw/services/RPCCustomTypeHandler.java +++ b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/java/org/acme/examples/sw/services/RPCCustomTypeHandler.java @@ -13,8 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.sw.services; +package org.acme.examples.sw.services; +import org.acme.examples.sw.custom.RPCCustomWorkItemHandler; import org.jbpm.ruleflow.core.RuleFlowNodeContainerFactory; import org.jbpm.ruleflow.core.factory.WorkItemNodeFactory; import org.kie.kogito.serverless.workflow.parser.ParserContext; @@ -23,8 +24,6 @@ import io.serverlessworkflow.api.Workflow; import io.serverlessworkflow.api.functions.FunctionDefinition; -import static org.kie.kogito.examples.sw.custom.RPCCustomWorkItemHandler.NAME; -import static org.kie.kogito.examples.sw.custom.RPCCustomWorkItemHandler.OPERATION; import static org.kie.kogito.serverless.workflow.parser.FunctionTypeHandlerFactory.trimCustomOperation; public class RPCCustomTypeHandler extends WorkItemTypeHandler{ @@ -40,6 +39,6 @@ public String type() { ParserContext context, WorkItemNodeFactory node, FunctionDefinition functionDef) { - return node.workName(NAME).metaData(OPERATION, trimCustomOperation(functionDef)); + return node.workName(RPCCustomWorkItemHandler.NAME).metaData(RPCCustomWorkItemHandler.OPERATION, trimCustomOperation(functionDef)); } } diff --git a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/resources/META-INF/services/org.kie.kogito.serverless.workflow.parser.FunctionNamespace b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/resources/META-INF/services/org.kie.kogito.serverless.workflow.parser.FunctionNamespace index 839145aad9..a99adec993 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/resources/META-INF/services/org.kie.kogito.serverless.workflow.parser.FunctionNamespace +++ b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/resources/META-INF/services/org.kie.kogito.serverless.workflow.parser.FunctionNamespace @@ -1 +1 @@ -org.kie.kogito.examples.sw.services.RPCCustomFunctionNamespace \ No newline at end of file +org.acme.examples.sw.services.RPCCustomFunctionNamespace \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/resources/META-INF/services/org.kie.kogito.serverless.workflow.parser.FunctionTypeHandler b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/resources/META-INF/services/org.kie.kogito.serverless.workflow.parser.FunctionTypeHandler index 11dc74f422..dc813daefd 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/resources/META-INF/services/org.kie.kogito.serverless.workflow.parser.FunctionTypeHandler +++ b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-deployment/src/main/resources/META-INF/services/org.kie.kogito.serverless.workflow.parser.FunctionTypeHandler @@ -1 +1 @@ -org.kie.kogito.examples.sw.services.RPCCustomTypeHandler \ No newline at end of file +org.acme.examples.sw.services.RPCCustomTypeHandler \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/pom.xml b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/pom.xml index 3d329dba7d..fd202102ca 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-custom-type 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/main/java/org/kie/kogito/examples/sw/custom/CalculatorClient.java b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/main/java/org/acme/examples/sw/custom/CalculatorClient.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/main/java/org/kie/kogito/examples/sw/custom/CalculatorClient.java rename to serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/main/java/org/acme/examples/sw/custom/CalculatorClient.java index 059af976cb..02e0a15c0a 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/main/java/org/kie/kogito/examples/sw/custom/CalculatorClient.java +++ b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/main/java/org/acme/examples/sw/custom/CalculatorClient.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.sw.custom; +package org.acme.examples.sw.custom; import java.io.DataInputStream; import java.io.DataOutputStream; diff --git a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/main/java/org/kie/kogito/examples/sw/custom/CalculatorServer.java b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/main/java/org/acme/examples/sw/custom/CalculatorServer.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/main/java/org/kie/kogito/examples/sw/custom/CalculatorServer.java rename to serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/main/java/org/acme/examples/sw/custom/CalculatorServer.java index 0226ede044..534be76f80 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/main/java/org/kie/kogito/examples/sw/custom/CalculatorServer.java +++ b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/main/java/org/acme/examples/sw/custom/CalculatorServer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.sw.custom; +package org.acme.examples.sw.custom; import java.io.Closeable; import java.io.DataInputStream; diff --git a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/test/java/org/kie/kogito/examples/sw/custom/CalculatorClientTest.java b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/test/java/org/acme/examples/sw/custom/CalculatorClientTest.java similarity index 83% rename from serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/test/java/org/kie/kogito/examples/sw/custom/CalculatorClientTest.java rename to serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/test/java/org/acme/examples/sw/custom/CalculatorClientTest.java index 606540204d..dc6927c421 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/test/java/org/kie/kogito/examples/sw/custom/CalculatorClientTest.java +++ b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc-server/src/test/java/org/acme/examples/sw/custom/CalculatorClientTest.java @@ -13,14 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.sw.custom; +package org.acme.examples.sw.custom; import java.io.IOException; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import org.kie.kogito.examples.sw.custom.CalculatorClient.OperationId; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -42,10 +41,10 @@ static void init() throws IOException @Test void testCalculator() throws IOException { - assertEquals(7,CalculatorClient.invokeOperation("localhost", 8082, OperationId.ADD, 4, 3)); - assertEquals(1,CalculatorClient.invokeOperation("localhost", 8082, OperationId.SUBTRACTION, 4, 3)); - assertEquals(12,CalculatorClient.invokeOperation("localhost", 8082, OperationId.MULTIPLICATION, 4, 3)); - assertEquals(1,CalculatorClient.invokeOperation("localhost", 8082, OperationId.DIVISION, 4, 3)); + assertEquals(7,CalculatorClient.invokeOperation("localhost", 8082, CalculatorClient.OperationId.ADD, 4, 3)); + assertEquals(1,CalculatorClient.invokeOperation("localhost", 8082, CalculatorClient.OperationId.SUBTRACTION, 4, 3)); + assertEquals(12,CalculatorClient.invokeOperation("localhost", 8082, CalculatorClient.OperationId.MULTIPLICATION, 4, 3)); + assertEquals(1,CalculatorClient.invokeOperation("localhost", 8082, CalculatorClient.OperationId.DIVISION, 4, 3)); } } diff --git a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/pom.xml b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/pom.xml index 41b3e9ba68..b1968a3693 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> serverless-workflow-custom-type - org.kie.kogito.examples + org.acme.examples 1.0-SNAPSHOT 4.0.0 @@ -19,7 +19,7 @@ kogito-quarkus-serverless-workflow - org.kie.kogito.examples + org.acme.examples serverless-workflow-custom-rpc-server ${project.version} diff --git a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/src/main/java/org/kie/kogito/examples/sw/custom/RPCCustomWorkItemHandler.java b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/src/main/java/org/acme/examples/sw/custom/RPCCustomWorkItemHandler.java similarity index 94% rename from serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/src/main/java/org/kie/kogito/examples/sw/custom/RPCCustomWorkItemHandler.java rename to serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/src/main/java/org/acme/examples/sw/custom/RPCCustomWorkItemHandler.java index 309c561ef5..8662e95cfe 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/src/main/java/org/kie/kogito/examples/sw/custom/RPCCustomWorkItemHandler.java +++ b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/src/main/java/org/acme/examples/sw/custom/RPCCustomWorkItemHandler.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.sw.custom; +package org.acme.examples.sw.custom; import java.io.IOException; import java.io.UncheckedIOException; @@ -22,7 +22,7 @@ import javax.enterprise.context.ApplicationScoped; -import org.kie.kogito.examples.sw.custom.CalculatorClient.OperationId; +import org.acme.examples.sw.custom.CalculatorClient.OperationId; import org.kie.kogito.internal.process.runtime.KogitoWorkItem; import org.kie.kogito.serverless.workflow.WorkflowWorkItemHandler; diff --git a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/src/main/java/org/kie/kogito/examples/sw/custom/RPCCustomWorkItemHandlerConfig.java b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/src/main/java/org/acme/examples/sw/custom/RPCCustomWorkItemHandlerConfig.java similarity index 96% rename from serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/src/main/java/org/kie/kogito/examples/sw/custom/RPCCustomWorkItemHandlerConfig.java rename to serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/src/main/java/org/acme/examples/sw/custom/RPCCustomWorkItemHandlerConfig.java index e1bbe63aa2..b389acd1ff 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/src/main/java/org/kie/kogito/examples/sw/custom/RPCCustomWorkItemHandlerConfig.java +++ b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/src/main/java/org/acme/examples/sw/custom/RPCCustomWorkItemHandlerConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.sw.custom; +package org.acme.examples.sw.custom; import javax.annotation.PostConstruct; import javax.enterprise.context.ApplicationScoped; diff --git a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-type-example/pom.xml b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-type-example/pom.xml index 4ab12ace73..b53097fa7e 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-type-example/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-type-example/pom.xml @@ -5,7 +5,7 @@ serverless-workflow-custom-type - org.kie.kogito.examples + org.acme.examples 1.0-SNAPSHOT @@ -28,7 +28,7 @@ quarkus-resteasy-jackson - org.kie.kogito.examples + org.acme.examples serverless-workflow-custom-rpc ${project.version} diff --git a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-type-example/src/test/java/org/kie/kogito/examples/CustomRestIT.java b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-type-example/src/test/java/org/acme/examples/CustomRestIT.java similarity index 95% rename from serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-type-example/src/test/java/org/kie/kogito/examples/CustomRestIT.java rename to serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-type-example/src/test/java/org/acme/examples/CustomRestIT.java index 40d947f5dc..835f88e727 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-type-example/src/test/java/org/kie/kogito/examples/CustomRestIT.java +++ b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-type-example/src/test/java/org/acme/examples/CustomRestIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.io.IOException; import java.util.Map; @@ -21,7 +21,7 @@ import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import org.kie.kogito.examples.sw.custom.CalculatorServer; +import org.acme.examples.sw.custom.CalculatorServer; import org.kie.kogito.serverless.workflow.SWFConstants; import io.quarkus.test.junit.QuarkusIntegrationTest; diff --git a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/pom.xml index b7b0a4ada4..602c0f3cce 100644 --- a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-data-index-quarkus 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/java/org/kie/kogito/examples/PrintService.java b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/java/org/acme/examples/PrintService.java similarity index 99% rename from serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/java/org/kie/kogito/examples/PrintService.java rename to serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/java/org/acme/examples/PrintService.java index 80259f870f..1617358e37 100644 --- a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/java/org/kie/kogito/examples/PrintService.java +++ b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/java/org/acme/examples/PrintService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.net.URI; import java.time.OffsetDateTime; diff --git a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/resources/callback.sw.json b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/resources/callback.sw.json index b876f7ce79..4bf2371c15 100644 --- a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/resources/callback.sw.json +++ b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/resources/callback.sw.json @@ -26,7 +26,7 @@ { "name": "printInstanceId", "type": "custom", - "operation": "service:java:org.kie.kogito.examples.PrintService::printKogitoProcessId" + "operation": "service:java:org.acme.examples.PrintService::printKogitoProcessId" } ], "states": [ diff --git a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/test/java/org/kie/kogito/examples/DataIndexRestIT.java b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/test/java/org/acme/examples/DataIndexRestIT.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/test/java/org/kie/kogito/examples/DataIndexRestIT.java rename to serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/test/java/org/acme/examples/DataIndexRestIT.java index b09be166f9..96a40ece7f 100644 --- a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/test/java/org/kie/kogito/examples/DataIndexRestIT.java +++ b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/test/java/org/acme/examples/DataIndexRestIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.junit.jupiter.api.Test; diff --git a/serverless-workflow-examples/serverless-workflow-error-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-error-quarkus/pom.xml index f4f65c528b..223a95b5de 100644 --- a/serverless-workflow-examples/serverless-workflow-error-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-error-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-error-quarkus 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/java/org/kie/kogito/examples/EvenService.java b/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/java/org/acme/examples/EvenService.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/java/org/kie/kogito/examples/EvenService.java rename to serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/java/org/acme/examples/EvenService.java index 59c077d862..2bc79c1622 100644 --- a/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/java/org/kie/kogito/examples/EvenService.java +++ b/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/java/org/acme/examples/EvenService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import javax.enterprise.context.ApplicationScoped; diff --git a/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/resources/error.sw.json b/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/resources/error.sw.json index 08d18c80b4..af6d2c5550 100644 --- a/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/resources/error.sw.json +++ b/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/resources/error.sw.json @@ -15,12 +15,12 @@ { "name": "isEven", "type": "custom", - "operation": "service:java:org.kie.kogito.examples.EvenService::isEven" + "operation": "service:java:org.acme.examples.EvenService::isEven" }, { "name": "isSqr", "type": "custom", - "operation": "service:java:org.kie.kogito.examples.EvenService::isSquare" + "operation": "service:java:org.acme.examples.EvenService::isSquare" }, { "name": "printMessage", diff --git a/serverless-workflow-examples/serverless-workflow-error-quarkus/src/test/java/org/kie/kogito/examples/ErrorRestIT.java b/serverless-workflow-examples/serverless-workflow-error-quarkus/src/test/java/org/acme/examples/ErrorRestIT.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-error-quarkus/src/test/java/org/kie/kogito/examples/ErrorRestIT.java rename to serverless-workflow-examples/serverless-workflow-error-quarkus/src/test/java/org/acme/examples/ErrorRestIT.java index fc68c82b39..d251243370 100644 --- a/serverless-workflow-examples/serverless-workflow-error-quarkus/src/test/java/org/kie/kogito/examples/ErrorRestIT.java +++ b/serverless-workflow-examples/serverless-workflow-error-quarkus/src/test/java/org/acme/examples/ErrorRestIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.junit.jupiter.api.Test; diff --git a/serverless-workflow-examples/serverless-workflow-events-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-events-quarkus/pom.xml index 874e192c9d..9df19d8e04 100644 --- a/serverless-workflow-examples/serverless-workflow-events-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-events-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-events-quarkus 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/kogito/serverless/examples/ApplicantResource.java b/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/acme/serverless/examples/ApplicantResource.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/kogito/serverless/examples/ApplicantResource.java rename to serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/acme/serverless/examples/ApplicantResource.java index 50492d1e2f..e03c08a0a0 100644 --- a/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/kogito/serverless/examples/ApplicantResource.java +++ b/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/acme/serverless/examples/ApplicantResource.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.serverless.examples; +package org.acme.serverless.examples; import java.io.IOException; import java.net.URI; diff --git a/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/kogito/serverless/examples/AvroMarshallerProducer.java b/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/acme/serverless/examples/AvroMarshallerProducer.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/kogito/serverless/examples/AvroMarshallerProducer.java rename to serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/acme/serverless/examples/AvroMarshallerProducer.java index 287b775c63..e8769d7685 100644 --- a/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/kogito/serverless/examples/AvroMarshallerProducer.java +++ b/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/acme/serverless/examples/AvroMarshallerProducer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.serverless.examples; +package org.acme.serverless.examples; import java.io.IOException; diff --git a/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/kogito/serverless/examples/DecisionResource.java b/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/acme/serverless/examples/DecisionResource.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/kogito/serverless/examples/DecisionResource.java rename to serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/acme/serverless/examples/DecisionResource.java index a9615feff0..d8c92dbb81 100644 --- a/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/kogito/serverless/examples/DecisionResource.java +++ b/serverless-workflow-examples/serverless-workflow-events-quarkus/src/main/java/org/acme/serverless/examples/DecisionResource.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.serverless.examples; +package org.acme.serverless.examples; import javax.inject.Inject; import javax.ws.rs.GET; diff --git a/serverless-workflow-examples/serverless-workflow-events-quarkus/src/test/java/org/kogito/serverless/examples/ApplicantWorkflowIT.java b/serverless-workflow-examples/serverless-workflow-events-quarkus/src/test/java/org/acme/serverless/examples/ApplicantWorkflowIT.java similarity index 99% rename from serverless-workflow-examples/serverless-workflow-events-quarkus/src/test/java/org/kogito/serverless/examples/ApplicantWorkflowIT.java rename to serverless-workflow-examples/serverless-workflow-events-quarkus/src/test/java/org/acme/serverless/examples/ApplicantWorkflowIT.java index 22a64e6dbe..f30f9dba69 100644 --- a/serverless-workflow-examples/serverless-workflow-events-quarkus/src/test/java/org/kogito/serverless/examples/ApplicantWorkflowIT.java +++ b/serverless-workflow-examples/serverless-workflow-events-quarkus/src/test/java/org/acme/serverless/examples/ApplicantWorkflowIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.serverless.examples; +package org.acme.serverless.examples; import static io.restassured.RestAssured.given; import static java.util.concurrent.TimeUnit.MINUTES; diff --git a/serverless-workflow-examples/serverless-workflow-expression-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-expression-quarkus/pom.xml index d866929bf2..de212a2b36 100644 --- a/serverless-workflow-examples/serverless-workflow-expression-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-expression-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-expression-quarkus 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-expression-quarkus/src/test/java/org/kie/kogito/examples/ExpressionRestIT.java b/serverless-workflow-examples/serverless-workflow-expression-quarkus/src/test/java/org/acme/examples/ExpressionRestIT.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-expression-quarkus/src/test/java/org/kie/kogito/examples/ExpressionRestIT.java rename to serverless-workflow-examples/serverless-workflow-expression-quarkus/src/test/java/org/acme/examples/ExpressionRestIT.java index d3b228f94e..1d018fbdc2 100644 --- a/serverless-workflow-examples/serverless-workflow-expression-quarkus/src/test/java/org/kie/kogito/examples/ExpressionRestIT.java +++ b/serverless-workflow-examples/serverless-workflow-expression-quarkus/src/test/java/org/acme/examples/ExpressionRestIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.junit.jupiter.api.Test; diff --git a/serverless-workflow-examples/serverless-workflow-foreach-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-foreach-quarkus/pom.xml index 781162a984..4d35e8e4c6 100644 --- a/serverless-workflow-examples/serverless-workflow-foreach-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-foreach-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-foreach-quarkus 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/test/java/org/kie/kogito/examples/ForEachRestIT.java b/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/test/java/org/acme/examples/ForEachRestIT.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/test/java/org/kie/kogito/examples/ForEachRestIT.java rename to serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/test/java/org/acme/examples/ForEachRestIT.java index f2f91bbb69..e3febf54c7 100644 --- a/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/test/java/org/kie/kogito/examples/ForEachRestIT.java +++ b/serverless-workflow-examples/serverless-workflow-foreach-quarkus/src/test/java/org/acme/examples/ForEachRestIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.util.Arrays; diff --git a/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/pom.xml index 9424dc1b5e..b8eae9664d 100644 --- a/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns="http://maven.apache.org/POM/4.0.0"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-functions-events-quarkus 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-functions-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-functions-quarkus/pom.xml index 35c91d68b2..f813c1d95c 100644 --- a/serverless-workflow-examples/serverless-workflow-functions-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-functions-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-functions-quarkus 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-funqy/pom.xml b/serverless-workflow-examples/serverless-workflow-funqy/pom.xml index 512772bece..de59f902c5 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-funqy/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-funqy 1.0-SNAPSHOT Kogito Example :: Serverless Workflow :: Funqy diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/pom.xml b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/pom.xml index cda3b72964..47dd9c2653 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-funqy 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/ClassificationFunction.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/functions/ClassificationFunction.java similarity index 81% rename from serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/ClassificationFunction.java rename to serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/functions/ClassificationFunction.java index 6f90bae6d1..cbf45d827c 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/ClassificationFunction.java +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/functions/ClassificationFunction.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.serverless.examples.functions; +package org.acme.serverless.examples.functions; import javax.inject.Inject; -import org.kogito.serverless.examples.input.Country; -import org.kogito.serverless.examples.services.ClassificationService; -import org.kogito.serverless.examples.services.CountriesService; +import org.acme.serverless.examples.services.ClassificationService; +import org.acme.serverless.examples.services.CountriesService; +import org.acme.serverless.examples.input.Country; import io.quarkus.funqy.Funq; diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/CountriesFunction.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/functions/CountriesFunction.java similarity index 84% rename from serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/CountriesFunction.java rename to serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/functions/CountriesFunction.java index 7508235461..4ec0d266f4 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/CountriesFunction.java +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/functions/CountriesFunction.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.serverless.examples.functions; +package org.acme.serverless.examples.functions; import javax.inject.Inject; -import org.kogito.serverless.examples.input.Country; -import org.kogito.serverless.examples.services.CountriesService; +import org.acme.serverless.examples.services.CountriesService; +import org.acme.serverless.examples.input.Country; import io.quarkus.funqy.Funq; diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/PopulationFunction.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/functions/PopulationFunction.java similarity index 81% rename from serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/PopulationFunction.java rename to serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/functions/PopulationFunction.java index 69066c4ec4..764675ab8c 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/PopulationFunction.java +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/functions/PopulationFunction.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.serverless.examples.functions; +package org.acme.serverless.examples.functions; import javax.inject.Inject; -import org.kogito.serverless.examples.input.Country; -import org.kogito.serverless.examples.services.CountriesService; -import org.kogito.serverless.examples.services.PopulationService; +import org.acme.serverless.examples.services.PopulationService; +import org.acme.serverless.examples.input.Country; +import org.acme.serverless.examples.services.CountriesService; import io.quarkus.funqy.Funq; diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/input/Country.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/input/Country.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/input/Country.java rename to serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/input/Country.java index 730c31d164..2fe7242ce8 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/input/Country.java +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/input/Country.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.serverless.examples.input; +package org.acme.serverless.examples.input; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/ClassificationService.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/services/ClassificationService.java similarity index 92% rename from serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/ClassificationService.java rename to serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/services/ClassificationService.java index 3731e37073..a2bba2c7ae 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/ClassificationService.java +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/services/ClassificationService.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.serverless.examples.services; +package org.acme.serverless.examples.services; import java.util.HashMap; import java.util.Map; import javax.enterprise.context.ApplicationScoped; -import org.kogito.serverless.examples.input.Country; +import org.acme.serverless.examples.input.Country; @ApplicationScoped public class ClassificationService { diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/CountriesService.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/services/CountriesService.java similarity index 93% rename from serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/CountriesService.java rename to serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/services/CountriesService.java index acce334962..bc106a157c 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/CountriesService.java +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/services/CountriesService.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.serverless.examples.services; +package org.acme.serverless.examples.services; import java.util.ArrayList; import java.util.List; import javax.enterprise.context.ApplicationScoped; -import org.kogito.serverless.examples.input.Country; +import org.acme.serverless.examples.input.Country; @ApplicationScoped public class CountriesService { diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/PopulationService.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/services/PopulationService.java similarity index 92% rename from serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/PopulationService.java rename to serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/services/PopulationService.java index 8aa404d54b..c949f6bad5 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/services/PopulationService.java +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/acme/serverless/examples/services/PopulationService.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.serverless.examples.services; +package org.acme.serverless.examples.services; import java.util.HashMap; import java.util.Map; import javax.enterprise.context.ApplicationScoped; -import org.kogito.serverless.examples.input.Country; +import org.acme.serverless.examples.input.Country; @ApplicationScoped public class PopulationService { diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/test/java/org/kogito/serverless/examples/FunctionsIT.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/test/java/org/acme/serverless/examples/FunctionsIT.java similarity index 95% rename from serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/test/java/org/kogito/serverless/examples/FunctionsIT.java rename to serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/test/java/org/acme/serverless/examples/FunctionsIT.java index ffc38888b1..778105c295 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/test/java/org/kogito/serverless/examples/FunctionsIT.java +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/test/java/org/acme/serverless/examples/FunctionsIT.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.serverless.examples; +package org.acme.serverless.examples; import org.hamcrest.CoreMatchers; import org.junit.jupiter.api.Test; -import org.kogito.serverless.examples.input.Country; +import org.acme.serverless.examples.input.Country; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/pom.xml b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/pom.xml index f651b169dc..3e6b74cfe0 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-funqy 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/src/test/java/org/kogito/serverless/examples/RestServiceMockServer.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/src/test/java/org/acme/serverless/examples/RestServiceMockServer.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/src/test/java/org/kogito/serverless/examples/RestServiceMockServer.java rename to serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/src/test/java/org/acme/serverless/examples/RestServiceMockServer.java index e9d87f0fa2..6ae27b60e8 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/src/test/java/org/kogito/serverless/examples/RestServiceMockServer.java +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/src/test/java/org/acme/serverless/examples/RestServiceMockServer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.serverless.examples; +package org.acme.serverless.examples; import java.util.Collections; import java.util.Map; diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/src/test/java/org/kogito/serverless/examples/WorkflowIT.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/src/test/java/org/acme/serverless/examples/WorkflowIT.java similarity index 96% rename from serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/src/test/java/org/kogito/serverless/examples/WorkflowIT.java rename to serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/src/test/java/org/acme/serverless/examples/WorkflowIT.java index ca85dc7a55..4c81d760b1 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/src/test/java/org/kogito/serverless/examples/WorkflowIT.java +++ b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-workflow/src/test/java/org/acme/serverless/examples/WorkflowIT.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kogito.serverless.examples; +package org.acme.serverless.examples; import org.junit.jupiter.api.Test; diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/README.md b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/README.md index d091f9d89b..8d91aafb86 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/README.md +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/README.md @@ -58,9 +58,9 @@ Clone this repo if you haven't yet, edit the file [`src/main/resources/applicati and add the following data: ```properties -org.kogito.examples.sw.github.service.key= -org.kogito.examples.sw.github.service.installation_id= -org.kogito.examples.sw.github.service.app_id= +org.acme.examples.sw.github.service.key= +org.acme.examples.sw.github.service.installation_id= +org.acme.examples.sw.github.service.app_id= ``` Replace `` with the absolute path of the converted private key file (DER format). diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/kubernetes/application.properties b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/kubernetes/application.properties index 8276e150f4..9561e56274 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/kubernetes/application.properties +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/kubernetes/application.properties @@ -1,3 +1,3 @@ -org.kogito.examples.sw.github.service.key=/opt/data/github-app-key.der -org.kogito.examples.sw.github.service.installation_id=${INSTALLATION_ID} -org.kogito.examples.sw.github.service.app_id=${APP_ID} \ No newline at end of file +org.acme.examples.sw.github.service.key=/opt/data/github-app-key.der +org.acme.examples.sw.github.service.installation_id=${INSTALLATION_ID} +org.acme.examples.sw.github.service.app_id=${APP_ID} \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/pom.xml b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/pom.xml index f7ba06c583..18042b5543 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-github-showcase 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/kogito/examples/sw/github/service/GitHubResource.java b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/acme/examples/sw/github/service/GitHubResource.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/kogito/examples/sw/github/service/GitHubResource.java rename to serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/acme/examples/sw/github/service/GitHubResource.java index f230ea5949..d19abf03a7 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/kogito/examples/sw/github/service/GitHubResource.java +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/acme/examples/sw/github/service/GitHubResource.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.examples.sw.github.service; +package org.acme.examples.sw.github.service; import java.util.List; diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/kogito/examples/sw/github/service/GitHubWrapperService.java b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/acme/examples/sw/github/service/GitHubWrapperService.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/kogito/examples/sw/github/service/GitHubWrapperService.java rename to serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/acme/examples/sw/github/service/GitHubWrapperService.java index 6a03215f7a..cd7f928993 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/kogito/examples/sw/github/service/GitHubWrapperService.java +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/acme/examples/sw/github/service/GitHubWrapperService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.examples.sw.github.service; +package org.acme.examples.sw.github.service; import java.util.List; diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/kogito/examples/sw/github/service/GitHubWrapperServiceImpl.java b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/acme/examples/sw/github/service/GitHubWrapperServiceImpl.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/kogito/examples/sw/github/service/GitHubWrapperServiceImpl.java rename to serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/acme/examples/sw/github/service/GitHubWrapperServiceImpl.java index 31cfa2a505..8f4c31a27b 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/kogito/examples/sw/github/service/GitHubWrapperServiceImpl.java +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/acme/examples/sw/github/service/GitHubWrapperServiceImpl.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.examples.sw.github.service; +package org.acme.examples.sw.github.service; import java.io.IOException; import java.util.ArrayList; diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/kogito/examples/sw/github/service/TokenProvider.java b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/acme/examples/sw/github/service/TokenProvider.java similarity index 94% rename from serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/kogito/examples/sw/github/service/TokenProvider.java rename to serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/acme/examples/sw/github/service/TokenProvider.java index 70a4ca9ad3..a403136179 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/kogito/examples/sw/github/service/TokenProvider.java +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/main/java/org/acme/examples/sw/github/service/TokenProvider.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.examples.sw.github.service; +package org.acme.examples.sw.github.service; import java.io.File; import java.io.IOException; @@ -57,13 +57,13 @@ public class TokenProvider { private static final int expirationMillis = 600000; private static final int cacheExpirationMillis = 300000; - @ConfigProperty(name = "org.kogito.examples.sw.github.service.app_id") + @ConfigProperty(name = "org.acme.examples.sw.github.service.app_id") String appId; - @ConfigProperty(name = "org.kogito.examples.sw.github.service.key") + @ConfigProperty(name = "org.acme.examples.sw.github.service.key") String privateKeyPath; - @ConfigProperty(name = "org.kogito.examples.sw.github.service.installation_id") + @ConfigProperty(name = "org.acme.examples.sw.github.service.installation_id") Long installationId; public TokenProvider() { diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/kogito/examples/sw/github/service/GitHubResourceTest.java b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/acme/examples/sw/github/service/GitHubResourceTest.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/kogito/examples/sw/github/service/GitHubResourceTest.java rename to serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/acme/examples/sw/github/service/GitHubResourceTest.java index a777768ce6..56bdf88fed 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/kogito/examples/sw/github/service/GitHubResourceTest.java +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/acme/examples/sw/github/service/GitHubResourceTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.examples.sw.github.service; +package org.acme.examples.sw.github.service; import org.junit.jupiter.api.Test; diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/kogito/examples/sw/github/service/GitHubWrapperServiceIT.java b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/acme/examples/sw/github/service/GitHubWrapperServiceIT.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/kogito/examples/sw/github/service/GitHubWrapperServiceIT.java rename to serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/acme/examples/sw/github/service/GitHubWrapperServiceIT.java index 533d6d1ca3..97d59f696c 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/kogito/examples/sw/github/service/GitHubWrapperServiceIT.java +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/acme/examples/sw/github/service/GitHubWrapperServiceIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.examples.sw.github.service; +package org.acme.examples.sw.github.service; import java.util.Arrays; import java.util.Collections; diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/kogito/examples/sw/github/service/MockedGitHubWrapperService.java b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/acme/examples/sw/github/service/MockedGitHubWrapperService.java similarity index 96% rename from serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/kogito/examples/sw/github/service/MockedGitHubWrapperService.java rename to serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/acme/examples/sw/github/service/MockedGitHubWrapperService.java index 330bf1cb10..baeeeb0f89 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/kogito/examples/sw/github/service/MockedGitHubWrapperService.java +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/java/org/acme/examples/sw/github/service/MockedGitHubWrapperService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.examples.sw.github.service; +package org.acme.examples.sw.github.service; import java.util.Collections; import java.util.List; diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/resources/application.properties b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/resources/application.properties index 2c51352d9f..38fcf719ad 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/github-service/src/test/resources/application.properties @@ -1,6 +1,6 @@ # see: https://github-api.kohsuke.org/githubappjwtauth.html # if you wish, replace with your own data and enable the GitHubWrapperServiceIT test to verify if everything is working as expected in your environment -org.kogito.examples.sw.github.service.key=replace_with_your_key -org.kogito.examples.sw.github.service.installation_id=12345 -org.kogito.examples.sw.github.service.app_id=replace_with_app_id +org.acme.examples.sw.github.service.key=replace_with_your_key +org.acme.examples.sw.github.service.installation_id=12345 +org.acme.examples.sw.github.service.app_id=replace_with_app_id quarkus.http.test-port=0 diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/README.md b/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/README.md index abc92831e2..9054d26fde 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/README.md +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/README.md @@ -28,7 +28,7 @@ Copy the WebHook URL in the `src/main/resources/application.properties` file: ```properties # URL details not shown -org.kogito.examples.sw.notification.slack.incoming=https://hooks.slack.com/services/(...) +org.acme.examples.sw.notification.slack.incoming=https://hooks.slack.com/services/(...) ``` Run the application with: diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/kubernetes/application.properties b/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/kubernetes/application.properties index 1f770525cf..cbcdc09677 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/kubernetes/application.properties +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/kubernetes/application.properties @@ -1 +1 @@ -org.kogito.examples.sw.notification.slack.incoming=${SLACK_WEBHOOK} \ No newline at end of file +org.acme.examples.sw.notification.slack.incoming=${SLACK_WEBHOOK} \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/pom.xml b/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/pom.xml index db514c9073..10ac9acdfc 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-github-showcase 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/main/java/org/kogito/examples/sw/notification/service/NotificationResource.java b/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/main/java/org/acme/examples/sw/notification/service/NotificationResource.java similarity index 91% rename from serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/main/java/org/kogito/examples/sw/notification/service/NotificationResource.java rename to serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/main/java/org/acme/examples/sw/notification/service/NotificationResource.java index f4208fb976..ef99e33db1 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/main/java/org/kogito/examples/sw/notification/service/NotificationResource.java +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/main/java/org/acme/examples/sw/notification/service/NotificationResource.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.examples.sw.notification.service; +package org.acme.examples.sw.notification.service; import java.io.IOException; @@ -44,10 +44,10 @@ public class NotificationResource { @Inject ProducerTemplate producerTemplate; - @ConfigProperty(name = "org.kogito.examples.sw.notification.slack.channel") + @ConfigProperty(name = "org.acme.examples.sw.notification.slack.channel") String channel; - @ConfigProperty(name = "org.kogito.examples.sw.notification.slack.incoming") + @ConfigProperty(name = "org.acme.examples.sw.notification.slack.incoming") String webHookUrl; @POST diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/main/resources/application.properties index c3b1c6454b..269f5c7e99 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/main/resources/application.properties @@ -1,5 +1,5 @@ quarkus.swagger-ui.always-include=true -org.kogito.examples.sw.notification.slack.channel=github-showcase +org.acme.examples.sw.notification.slack.channel=github-showcase quarkus.index-dependency.cloudevents.group-id=io.cloudevents quarkus.index-dependency.cloudevents.artifact-id=cloudevents-http-restful-ws diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/test/java/org/kogito/examples/sw/notification/service/NotificationResourceIT.java b/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/test/java/org/acme/examples/sw/notification/service/NotificationResourceIT.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/test/java/org/kogito/examples/sw/notification/service/NotificationResourceIT.java rename to serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/test/java/org/acme/examples/sw/notification/service/NotificationResourceIT.java index 5d02077539..ec0601dab0 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/test/java/org/kogito/examples/sw/notification/service/NotificationResourceIT.java +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/notification-service/src/test/java/org/acme/examples/sw/notification/service/NotificationResourceIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.examples.sw.notification.service; +package org.acme.examples.sw.notification.service; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/pom.xml b/serverless-workflow-examples/serverless-workflow-github-showcase/pom.xml index 9ecf1a0cf9..778edbb8ae 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/pom.xml @@ -3,7 +3,7 @@ xmlns="http://maven.apache.org/POM/4.0.0"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-github-showcase 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/pom.xml b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/pom.xml index ad08b61a68..0c02fac9ee 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/pom.xml @@ -3,7 +3,7 @@ xmlns="http://maven.apache.org/POM/4.0.0"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-github-showcase 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/java/org/kogito/examples/sw/github/workflow/GitHubClient.java b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/java/org/acme/examples/sw/github/workflow/GitHubClient.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/java/org/kogito/examples/sw/github/workflow/GitHubClient.java rename to serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/java/org/acme/examples/sw/github/workflow/GitHubClient.java index 0f7adb3c3a..66246fd24d 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/java/org/kogito/examples/sw/github/workflow/GitHubClient.java +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/java/org/acme/examples/sw/github/workflow/GitHubClient.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.examples.sw.github.workflow; +package org.acme.examples.sw.github.workflow; import java.util.List; diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/java/org/kogito/examples/sw/github/workflow/GitHubService.java b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/java/org/acme/examples/sw/github/workflow/GitHubService.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/java/org/kogito/examples/sw/github/workflow/GitHubService.java rename to serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/java/org/acme/examples/sw/github/workflow/GitHubService.java index 8321b47090..0d363f7c21 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/java/org/kogito/examples/sw/github/workflow/GitHubService.java +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/java/org/acme/examples/sw/github/workflow/GitHubService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.examples.sw.github.workflow; +package org.acme.examples.sw.github.workflow; import java.util.Collections; import java.util.Objects; diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/application.properties index 0febd93dca..eb4fe8aff8 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/application.properties @@ -1,8 +1,8 @@ quarkus.log.level=INFO quarkus.swagger-ui.always-include=true -org.kogito.examples.sw.github.workflow.GitHubClient/mp-rest/url=${GITHUB_SERVICE_URI} -org.kogito.examples.sw.github.workflow.GitHubClient/mp-rest/scope=javax.inject.Singleton +org.acme.examples.sw.github.workflow.GitHubClient/mp-rest/url=${GITHUB_SERVICE_URI} +org.acme.examples.sw.github.workflow.GitHubClient/mp-rest/scope=javax.inject.Singleton mp.messaging.incoming.kogito_incoming_stream.connector=quarkus-http mp.messaging.incoming.kogito_incoming_stream.path=/ diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/handle-backend.sw.json b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/handle-backend.sw.json index 66486568a9..8d5702bb18 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/handle-backend.sw.json +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/handle-backend.sw.json @@ -8,12 +8,12 @@ { "name": "AddLabels", "type": "custom", - "operation": "service:java:org.kogito.examples.sw.github.workflow.GitHubService::addLabels" + "operation": "service:java:org.acme.examples.sw.github.workflow.GitHubService::addLabels" }, { "name": "AddReviewers", "type": "custom", - "operation": "service:java:org.kogito.examples.sw.github.workflow.GitHubService::addReviewers" + "operation": "service:java:org.acme.examples.sw.github.workflow.GitHubService::addReviewers" } ], "events": [ diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/handle-frontend.sw.json b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/handle-frontend.sw.json index 690e4baf94..cc100eb2ce 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/handle-frontend.sw.json +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/handle-frontend.sw.json @@ -8,12 +8,12 @@ { "name": "AddLabels", "type": "custom", - "operation": "service:org.kogito.examples.sw.github.workflow.GitHubService::addLabels" + "operation": "service:org.acme.examples.sw.github.workflow.GitHubService::addLabels" }, { "name": "AddReviewers", "type": "custom", - "operation": "service:org.kogito.examples.sw.github.workflow.GitHubService::addReviewers" + "operation": "service:org.acme.examples.sw.github.workflow.GitHubService::addReviewers" } ], "events": [ diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/pr-checker.sw.json b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/pr-checker.sw.json index e0b21c11c2..75b605c3f8 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/pr-checker.sw.json +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/main/resources/pr-checker.sw.json @@ -8,7 +8,7 @@ { "name": "FetchPRFiles", "type": "custom", - "operation": "service:java:org.kogito.examples.sw.github.workflow.GitHubService::fetchPRFiles" + "operation": "service:java:org.acme.examples.sw.github.workflow.GitHubService::fetchPRFiles" } ], "events": [ diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/kogito/examples/sw/github/workflow/GitHubServiceMockServer.java b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/acme/examples/sw/github/workflow/GitHubServiceMockServer.java similarity index 93% rename from serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/kogito/examples/sw/github/workflow/GitHubServiceMockServer.java rename to serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/acme/examples/sw/github/workflow/GitHubServiceMockServer.java index d9aa9f4253..61ba484ca6 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/kogito/examples/sw/github/workflow/GitHubServiceMockServer.java +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/acme/examples/sw/github/workflow/GitHubServiceMockServer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.examples.sw.github.workflow; +package org.acme.examples.sw.github.workflow; import java.util.Collections; import java.util.Map; @@ -51,7 +51,7 @@ public Map start() { .withHeader("Content-Type", "application/json") .withBody("[ \"src/main/java/Backend.java\", \"src/main/java/AnotherClass.java\" ]"))); - return Collections.singletonMap("org.kogito.examples.sw.github.workflow.GitHubClient/mp-rest/url", wireMockServer.baseUrl()); + return Collections.singletonMap("org.acme.examples.sw.github.workflow.GitHubClient/mp-rest/url", wireMockServer.baseUrl()); } @Override diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/kogito/examples/sw/github/workflow/GitHubServiceTest.java b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/acme/examples/sw/github/workflow/GitHubServiceTest.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/kogito/examples/sw/github/workflow/GitHubServiceTest.java rename to serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/acme/examples/sw/github/workflow/GitHubServiceTest.java index be509edc6e..a96cc72ac6 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/kogito/examples/sw/github/workflow/GitHubServiceTest.java +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/acme/examples/sw/github/workflow/GitHubServiceTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.examples.sw.github.workflow; +package org.acme.examples.sw.github.workflow; import java.io.IOException; diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/kogito/examples/sw/github/workflow/MessageSinkServer.java b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/acme/examples/sw/github/workflow/MessageSinkServer.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/kogito/examples/sw/github/workflow/MessageSinkServer.java rename to serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/acme/examples/sw/github/workflow/MessageSinkServer.java index 757a9b0f81..1939d7aae4 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/kogito/examples/sw/github/workflow/MessageSinkServer.java +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/acme/examples/sw/github/workflow/MessageSinkServer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.examples.sw.github.workflow; +package org.acme.examples.sw.github.workflow; import java.util.Map; diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/kogito/examples/sw/github/workflow/PRCheckerWorkflowTest.java b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/acme/examples/sw/github/workflow/PRCheckerWorkflowTest.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/kogito/examples/sw/github/workflow/PRCheckerWorkflowTest.java rename to serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/acme/examples/sw/github/workflow/PRCheckerWorkflowTest.java index f6e15d6b02..a007b056c8 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/kogito/examples/sw/github/workflow/PRCheckerWorkflowTest.java +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/java/org/acme/examples/sw/github/workflow/PRCheckerWorkflowTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.examples.sw.github.workflow; +package org.acme.examples.sw.github.workflow; import java.io.IOException; import java.nio.charset.Charset; diff --git a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/resources/application.properties b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/resources/application.properties index add3e03d94..d51afbe40f 100644 --- a/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-github-showcase/pr-checker-workflow/src/test/resources/application.properties @@ -1,10 +1,10 @@ -quarkus.log.category."org.kogito".level=INFO +quarkus.log.category."org.acme".level=INFO quarkus.log.category."org.kie.kogito.app".level=INFO -org.kogito.examples.sw.github.workflow.GitHubClient/mp-rest/url= +org.acme.examples.sw.github.workflow.GitHubClient/mp-rest/url= mp.messaging.outgoing.kogito_outgoing_stream.url=http://localhost:9090/ -# our sink server will sink these messages. See: org.kogito.examples.sw.github.workflow.MessageSinkServer +# our sink server will sink these messages. See: org.acme.examples.sw.github.workflow.MessageSinkServer mp.messaging.outgoing.pr_verified.connector=quarkus-http mp.messaging.outgoing.pr_verified.url=http://localhost:8181/ diff --git a/serverless-workflow-examples/serverless-workflow-greeting-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-greeting-quarkus/pom.xml index 7ac2e39db5..aa29807bfa 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-greeting-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-greeting-quarkus 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-greeting-quarkus/src/test/java/org/kie/kogito/examples/GreetRestIT.java b/serverless-workflow-examples/serverless-workflow-greeting-quarkus/src/test/java/org/acme/examples/GreetRestIT.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-greeting-quarkus/src/test/java/org/kie/kogito/examples/GreetRestIT.java rename to serverless-workflow-examples/serverless-workflow-greeting-quarkus/src/test/java/org/acme/examples/GreetRestIT.java index c3c25d3575..efa5f41d44 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-quarkus/src/test/java/org/kie/kogito/examples/GreetRestIT.java +++ b/serverless-workflow-examples/serverless-workflow-greeting-quarkus/src/test/java/org/acme/examples/GreetRestIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.junit.jupiter.api.Test; diff --git a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/pom.xml index 97c28bc222..bf5583007b 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-greeting-rpc-quarkus 1.0-SNAPSHOT pom diff --git a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/pom.xml index 8c65633396..a1b534be2f 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-greeting-rpc-quarkus 1.0-SNAPSHOT @@ -46,7 +46,7 @@ kogito-quarkus-serverless-workflow - org.kie.kogito.examples + org.acme.examples serverless-workflow-greeting-server-rpc-quarkus ${project.version} test diff --git a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/src/test/java/org/kie/kogito/examples/GreetRestIT.java b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/src/test/java/org/acme/examples/GreetRestIT.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/src/test/java/org/kie/kogito/examples/GreetRestIT.java rename to serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/src/test/java/org/acme/examples/GreetRestIT.java index 36b3595196..9411892d7e 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/src/test/java/org/kie/kogito/examples/GreetRestIT.java +++ b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/src/test/java/org/acme/examples/GreetRestIT.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.io.IOException; +import org.acme.examples.sw.greeting.GreeterService; import org.eclipse.microprofile.config.ConfigProvider; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import org.kie.kogito.examples.sw.greeting.GreeterService; import io.grpc.Server; import io.restassured.RestAssured; diff --git a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/README.md b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/README.md index 9fad0bb3c1..ded1f68589 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/README.md +++ b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/README.md @@ -16,6 +16,6 @@ You will need: ### Compile and Run ```sh -mvn compile exec:java -Dexec.mainClass="org.kie.kogito.examples.sw.greeting.GreeterService" +mvn compile exec:java -Dexec.mainClass="greeting.sw.org.acme.examples.GreeterService" ``` diff --git a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/pom.xml index c2ca6f9308..0c5e6755bc 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/pom.xml @@ -4,7 +4,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-greeting-rpc-quarkus 1.0-SNAPSHOT @@ -152,7 +152,7 @@ dev.local/${USER}/${project.artifactId}:${project.version} - org.kie.kogito.examples.sw.greeting.GreeterService + org.acme.examples.sw.greeting.GreeterService diff --git a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/src/main/java/org/kie/kogito/examples/sw/greeting/GreeterService.java b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/src/main/java/org/acme/examples/sw/greeting/GreeterService.java similarity index 96% rename from serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/src/main/java/org/kie/kogito/examples/sw/greeting/GreeterService.java rename to serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/src/main/java/org/acme/examples/sw/greeting/GreeterService.java index 8b708efc1c..5201d441b3 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/src/main/java/org/kie/kogito/examples/sw/greeting/GreeterService.java +++ b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/src/main/java/org/acme/examples/sw/greeting/GreeterService.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.sw.greeting; +package org.acme.examples.sw.greeting; import java.io.IOException; import java.util.ArrayList; import java.util.List; -import org.kie.kogito.examples.sw.greeting.Greeting.HelloReply; -import org.kie.kogito.examples.sw.greeting.Greeting.HelloRequest; +import org.acme.examples.sw.greeting.Greeting.HelloReply; +import org.acme.examples.sw.greeting.Greeting.HelloRequest; import io.grpc.Server; import io.grpc.ServerBuilder; diff --git a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/src/main/proto/greeting.proto b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/src/main/proto/greeting.proto index 2b47b91d7c..2a836f5fcf 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/src/main/proto/greeting.proto +++ b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/src/main/proto/greeting.proto @@ -1,8 +1,6 @@ syntax = "proto3"; -option java_package="org.kie.kogito.examples.sw.greeting"; - - +option java_package="org.acme.examples.sw.greeting"; // The greeter service definition. service Greeter { diff --git a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/src/test/java/org/kie/kogito/examples/sw/greeting/GreeterClientTest.java b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/src/test/java/org/acme/examples/sw/greeting/GreeterClientTest.java similarity index 96% rename from serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/src/test/java/org/kie/kogito/examples/sw/greeting/GreeterClientTest.java rename to serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/src/test/java/org/acme/examples/sw/greeting/GreeterClientTest.java index 279d1eaa4d..647ac571f5 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/src/test/java/org/kie/kogito/examples/sw/greeting/GreeterClientTest.java +++ b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/src/test/java/org/acme/examples/sw/greeting/GreeterClientTest.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples.sw.greeting; +package org.acme.examples.sw.greeting; import java.io.IOException; import java.util.ArrayList; @@ -27,9 +27,9 @@ import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import org.kie.kogito.examples.sw.greeting.Greeting.HelloReply; -import org.kie.kogito.examples.sw.greeting.Greeting.HelloRequest; -import org.kie.kogito.examples.sw.greeting.Greeting.HelloRequest.Builder; +import org.acme.examples.sw.greeting.Greeting.HelloReply; +import org.acme.examples.sw.greeting.Greeting.HelloRequest; +import org.acme.examples.sw.greeting.Greeting.HelloRequest.Builder; import io.grpc.ManagedChannel; import io.grpc.ManagedChannelBuilder; diff --git a/serverless-workflow-examples/serverless-workflow-hello-world/pom.xml b/serverless-workflow-examples/serverless-workflow-hello-world/pom.xml index 12e44987a6..419c093f87 100644 --- a/serverless-workflow-examples/serverless-workflow-hello-world/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-hello-world/pom.xml @@ -4,7 +4,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-hello-world 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-hello-world/src/test/java/org/kie/kogito/examples/HelloWorldTest.java b/serverless-workflow-examples/serverless-workflow-hello-world/src/test/java/org/acme/examples/HelloWorldTest.java similarity index 96% rename from serverless-workflow-examples/serverless-workflow-hello-world/src/test/java/org/kie/kogito/examples/HelloWorldTest.java rename to serverless-workflow-examples/serverless-workflow-hello-world/src/test/java/org/acme/examples/HelloWorldTest.java index 4ec97375b0..8759ab3710 100644 --- a/serverless-workflow-examples/serverless-workflow-hello-world/src/test/java/org/kie/kogito/examples/HelloWorldTest.java +++ b/serverless-workflow-examples/serverless-workflow-hello-world/src/test/java/org/acme/examples/HelloWorldTest.java @@ -1,4 +1,4 @@ -package org.kie.kogito.examples; +package org.acme.examples; import io.quarkus.test.junit.QuarkusTest; import io.restassured.RestAssured; diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/aggregator/pom.xml b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/aggregator/pom.xml index 7e0c115aa5..4986409df7 100644 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/aggregator/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/aggregator/pom.xml @@ -2,7 +2,7 @@ serverless-workflow-loanbroker-showcase - org.kie.kogito.examples + org.acme.examples 1.0-SNAPSHOT 4.0.0 diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/mvnw b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/mvnw deleted file mode 100755 index 8a8fb2282d..0000000000 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/mvnw +++ /dev/null @@ -1,316 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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 -# -# https://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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /usr/local/etc/mavenrc ] ; then - . /usr/local/etc/mavenrc - fi - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`\\unset -f command; \\command -v java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - $MAVEN_DEBUG_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" \ - "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/mvnw.cmd b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/mvnw.cmd deleted file mode 100644 index 1d8ab018ea..0000000000 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/mvnw.cmd +++ /dev/null @@ -1,188 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM https://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %* -if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %* -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - -FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% ^ - %JVM_CONFIG_MAVEN_PROPS% ^ - %MAVEN_OPTS% ^ - %MAVEN_DEBUG_OPTS% ^ - -classpath %WRAPPER_JAR% ^ - "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^ - %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat" -if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%"=="on" pause - -if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE% - -cmd /C exit /B %ERROR_CODE% diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/pom.xml b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/pom.xml index 570e34034b..1cd9d543b6 100644 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/pom.xml @@ -2,7 +2,7 @@ serverless-workflow-loanbroker-showcase - org.kie.kogito.examples + org.acme.examples 1.0-SNAPSHOT 4.0.0 diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/resources/application.properties index 191df5ed61..69e84b97f5 100644 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/resources/application.properties @@ -5,7 +5,7 @@ kogito.messaging.as-cloudevents=true quarkus.http.cors.origins=* quarkus.log.category."org.kie".level=DEBUG -quarkus.log.category."org.kogito".level=DEBUG +quarkus.log.category."org.acme".level=DEBUG quarkus.log.category."org.acme".level=DEBUG quarkus.swagger-ui.always-include=true quarkus.http.cors=true diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/resources/loanbroker.sw.json.svg b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/resources/loanbroker.sw.json.svg index 4538e04ef3..4e7f2f0e11 100644 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/resources/loanbroker.sw.json.svg +++ b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-flow/src/main/resources/loanbroker.sw.json.svg @@ -1 +1,283 @@ -StartStartEndEndGetCreditScoreGetCreditScoreRequestQuoteRequestQuoteFetchQuotesFetchQuotes \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + Start + + + Start + + + + + + + + + + + + + + + + End + + + End + + + + + + + + + + + + + + + + + + + + + + + + + + + + + GetCreditScore + + + GetCreditScore + + + + + + + + + + + + + + + + + + + + + + + + + + + + + RequestQuote + + + RequestQuote + + + + + + + + + + + + + + + + + + + + + + + + + + + + + FetchQuotes + + + FetchQuotes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/mvnw b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/mvnw deleted file mode 100755 index 8a8fb2282d..0000000000 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/mvnw +++ /dev/null @@ -1,316 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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 -# -# https://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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /usr/local/etc/mavenrc ] ; then - . /usr/local/etc/mavenrc - fi - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`\\unset -f command; \\command -v java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - $MAVEN_DEBUG_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" \ - "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/mvnw.cmd b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/mvnw.cmd deleted file mode 100644 index 1d8ab018ea..0000000000 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/mvnw.cmd +++ /dev/null @@ -1,188 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM https://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %* -if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %* -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - -FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% ^ - %JVM_CONFIG_MAVEN_PROPS% ^ - %MAVEN_OPTS% ^ - %MAVEN_DEBUG_OPTS% ^ - -classpath %WRAPPER_JAR% ^ - "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^ - %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat" -if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%"=="on" pause - -if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE% - -cmd /C exit /B %ERROR_CODE% diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/pom.xml b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/pom.xml index aa01856bbe..967164feeb 100644 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/loanbroker-ui/pom.xml @@ -5,7 +5,7 @@ serverless-workflow-loanbroker-showcase - org.kie.kogito.examples + org.acme.examples 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/pom.xml b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/pom.xml index efd654500d..593097bac5 100644 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples Kogito Example :: Serverless Workflow Loan Broker Showcase 1.0-SNAPSHOT Kogito Serverless Workflow example showcasing the Loan Broker use case diff --git a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/pom.xml b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/pom.xml index 2e08e9a86b..eff219c7a6 100644 --- a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples Kogito Example :: Serverless Workflow Newsletter Subscription Showcase 1.0-SNAPSHOT Kogito Serverless Workflow example showcasing the Newsletter Subscription use case diff --git a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/pom.xml b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/pom.xml index 362fae8051..820573c441 100644 --- a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> serverless-workflow-newsletter-subscription - org.kie.kogito.examples + org.acme.examples 1.0-SNAPSHOT 4.0.0 @@ -136,7 +136,7 @@ test - org.kie.kogito.examples + org.acme.examples serverless-workflow-newsletter-subscription-service test ${project.version} diff --git a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/src/main/java/org/kie/kogito/examples/VertxRouter.java b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/src/main/java/org/acme/examples/VertxRouter.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/src/main/java/org/kie/kogito/examples/VertxRouter.java rename to serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/src/main/java/org/acme/examples/VertxRouter.java index 67fb2aa54c..df05faffda 100644 --- a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/src/main/java/org/kie/kogito/examples/VertxRouter.java +++ b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/src/main/java/org/acme/examples/VertxRouter.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import javax.enterprise.context.ApplicationScoped; import javax.enterprise.event.Observes; diff --git a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-service/pom.xml b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-service/pom.xml index 7f75088eb1..0855149d4d 100644 --- a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-service/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> serverless-workflow-newsletter-subscription - org.kie.kogito.examples + org.acme.examples 1.0-SNAPSHOT 4.0.0 diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/mvnw b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/mvnw deleted file mode 100755 index 8a8fb2282d..0000000000 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/mvnw +++ /dev/null @@ -1,316 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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 -# -# https://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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /usr/local/etc/mavenrc ] ; then - . /usr/local/etc/mavenrc - fi - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`\\unset -f command; \\command -v java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - $MAVEN_DEBUG_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" \ - "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/mvnw.cmd b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/mvnw.cmd deleted file mode 100755 index 1d8ab018ea..0000000000 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/mvnw.cmd +++ /dev/null @@ -1,188 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM https://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %* -if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %* -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - -FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% ^ - %JVM_CONFIG_MAVEN_PROPS% ^ - %MAVEN_OPTS% ^ - %MAVEN_DEBUG_OPTS% ^ - -classpath %WRAPPER_JAR% ^ - "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^ - %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat" -if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%"=="on" pause - -if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE% - -cmd /C exit /B %ERROR_CODE% diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/pom.xml b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/pom.xml index cdda9bb4f1..fec4a19205 100644 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-oauth2-orchestration-quarkus 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/mvnw b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/mvnw deleted file mode 100755 index 8a8fb2282d..0000000000 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/mvnw +++ /dev/null @@ -1,316 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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 -# -# https://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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /usr/local/etc/mavenrc ] ; then - . /usr/local/etc/mavenrc - fi - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`\\unset -f command; \\command -v java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - $MAVEN_DEBUG_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" \ - "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/mvnw.cmd b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/mvnw.cmd deleted file mode 100755 index 1d8ab018ea..0000000000 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/mvnw.cmd +++ /dev/null @@ -1,188 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM https://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %* -if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %* -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - -FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% ^ - %JVM_CONFIG_MAVEN_PROPS% ^ - %MAVEN_OPTS% ^ - %MAVEN_DEBUG_OPTS% ^ - -classpath %WRAPPER_JAR% ^ - "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^ - %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat" -if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%"=="on" pause - -if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE% - -cmd /C exit /B %ERROR_CODE% diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/pom.xml b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/pom.xml index e0132a7d49..1b0bd8d2d6 100644 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-oauth2-orchestration-quarkus 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/java/org/kie/kogito/examples/ExchangeWorkflowHelper.java b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/java/org/acme/examples/ExchangeWorkflowHelper.java similarity index 99% rename from serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/java/org/kie/kogito/examples/ExchangeWorkflowHelper.java rename to serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/java/org/acme/examples/ExchangeWorkflowHelper.java index 335f6f86ab..3903f2701b 100644 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/java/org/kie/kogito/examples/ExchangeWorkflowHelper.java +++ b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/java/org/acme/examples/ExchangeWorkflowHelper.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.time.LocalDate; import java.time.format.DateTimeParseException; diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/java/org/kie/kogito/examples/ValidationResult.java b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/java/org/acme/examples/ValidationResult.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/java/org/kie/kogito/examples/ValidationResult.java rename to serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/java/org/acme/examples/ValidationResult.java index 353e47d727..856c1102f7 100644 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/java/org/kie/kogito/examples/ValidationResult.java +++ b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/java/org/acme/examples/ValidationResult.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; /** * Used to return the validation results to the Currency Exchange Workflow. diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/resources/application.properties b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/resources/application.properties index 8460c28559..ad33c757b1 100644 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/resources/application.properties +++ b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/resources/application.properties @@ -1,4 +1,4 @@ -quarkus.log.category."org.kie.kogito.examples".level=DEBUG +quarkus.log.category."org.acme.examples".level=DEBUG quarkus.swagger-ui.always-include=true diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/resources/currency-exchange-workflow.sw.json b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/resources/currency-exchange-workflow.sw.json index c5f58f0c6d..7f0ca5509e 100644 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/resources/currency-exchange-workflow.sw.json +++ b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/resources/currency-exchange-workflow.sw.json @@ -8,7 +8,7 @@ { "name": "validateInputs", "type": "custom", - "operation": "service:org.kie.kogito.examples.ExchangeWorkflowHelper::validateInputs" + "operation": "service:org.acme.examples.ExchangeWorkflowHelper::validateInputs" }, { "name": "getExchangeRate", diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/pom.xml index 6efc6bb754..cb0fcce0a4 100644 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-oauth2-orchestration-quarkus 1.0-SNAPSHOT pom diff --git a/serverless-workflow-examples/serverless-workflow-openvino-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-openvino-quarkus/pom.xml index f9f8962f07..9908df841e 100644 --- a/serverless-workflow-examples/serverless-workflow-openvino-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-openvino-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-openvino-quarkus 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-openvino-quarkus/src/test/java/org/kie/kogito/examples/OpenVinoRestIT.java b/serverless-workflow-examples/serverless-workflow-openvino-quarkus/src/test/java/org/acme/examples/OpenVinoRestIT.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-openvino-quarkus/src/test/java/org/kie/kogito/examples/OpenVinoRestIT.java rename to serverless-workflow-examples/serverless-workflow-openvino-quarkus/src/test/java/org/acme/examples/OpenVinoRestIT.java index 6c61c6f60c..de3b70d4a5 100644 --- a/serverless-workflow-examples/serverless-workflow-openvino-quarkus/src/test/java/org/kie/kogito/examples/OpenVinoRestIT.java +++ b/serverless-workflow-examples/serverless-workflow-openvino-quarkus/src/test/java/org/acme/examples/OpenVinoRestIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.junit.jupiter.api.Test; diff --git a/serverless-workflow-examples/serverless-workflow-order-processing/pom.xml b/serverless-workflow-examples/serverless-workflow-order-processing/pom.xml index 101b80b766..6b30621401 100644 --- a/serverless-workflow-examples/serverless-workflow-order-processing/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-order-processing/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-order-processing 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-order-processing/src/test/java/org/kie/kogito/examples/sw/orders/processing/Order.java b/serverless-workflow-examples/serverless-workflow-order-processing/src/test/java/org/acme/examples/sw/orders/processing/Order.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-order-processing/src/test/java/org/kie/kogito/examples/sw/orders/processing/Order.java rename to serverless-workflow-examples/serverless-workflow-order-processing/src/test/java/org/acme/examples/sw/orders/processing/Order.java index 4ca2a33f05..45691b4f13 100644 --- a/serverless-workflow-examples/serverless-workflow-order-processing/src/test/java/org/kie/kogito/examples/sw/orders/processing/Order.java +++ b/serverless-workflow-examples/serverless-workflow-order-processing/src/test/java/org/acme/examples/sw/orders/processing/Order.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.sw.orders.processing; +package org.acme.examples.sw.orders.processing; import java.util.Objects; diff --git a/serverless-workflow-examples/serverless-workflow-order-processing/src/test/java/org/kie/kogito/examples/sw/orders/processing/VerifyWorkflowExecutionIT.java b/serverless-workflow-examples/serverless-workflow-order-processing/src/test/java/org/acme/examples/sw/orders/processing/VerifyWorkflowExecutionIT.java similarity index 99% rename from serverless-workflow-examples/serverless-workflow-order-processing/src/test/java/org/kie/kogito/examples/sw/orders/processing/VerifyWorkflowExecutionIT.java rename to serverless-workflow-examples/serverless-workflow-order-processing/src/test/java/org/acme/examples/sw/orders/processing/VerifyWorkflowExecutionIT.java index 5426850f65..3e05ae20db 100644 --- a/serverless-workflow-examples/serverless-workflow-order-processing/src/test/java/org/kie/kogito/examples/sw/orders/processing/VerifyWorkflowExecutionIT.java +++ b/serverless-workflow-examples/serverless-workflow-order-processing/src/test/java/org/acme/examples/sw/orders/processing/VerifyWorkflowExecutionIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.sw.orders.processing; +package org.acme.examples.sw.orders.processing; import java.util.UUID; diff --git a/serverless-workflow-examples/serverless-workflow-parallel-execution/pom.xml b/serverless-workflow-examples/serverless-workflow-parallel-execution/pom.xml index f8d635e57d..383b81c1e8 100644 --- a/serverless-workflow-examples/serverless-workflow-parallel-execution/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-parallel-execution/pom.xml @@ -4,7 +4,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-parallel-execution 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-parallel-execution/src/test/java/org/kie/kogito/examples/ParallelStateTest.java b/serverless-workflow-examples/serverless-workflow-parallel-execution/src/test/java/org/acme/examples/ParallelStateTest.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-parallel-execution/src/test/java/org/kie/kogito/examples/ParallelStateTest.java rename to serverless-workflow-examples/serverless-workflow-parallel-execution/src/test/java/org/acme/examples/ParallelStateTest.java index 19fb55a4b5..025a2a6070 100644 --- a/serverless-workflow-examples/serverless-workflow-parallel-execution/src/test/java/org/kie/kogito/examples/ParallelStateTest.java +++ b/serverless-workflow-examples/serverless-workflow-parallel-execution/src/test/java/org/acme/examples/ParallelStateTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.junit.jupiter.api.Test; diff --git a/serverless-workflow-examples/serverless-workflow-python-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-python-quarkus/pom.xml index 850e11d5b8..39eccff726 100644 --- a/serverless-workflow-examples/serverless-workflow-python-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-python-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-python-quarkus 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-python-quarkus/src/test/java/org/kie/kogito/examples/PythonRestIT.java b/serverless-workflow-examples/serverless-workflow-python-quarkus/src/test/java/org/acme/examples/PythonRestIT.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-python-quarkus/src/test/java/org/kie/kogito/examples/PythonRestIT.java rename to serverless-workflow-examples/serverless-workflow-python-quarkus/src/test/java/org/acme/examples/PythonRestIT.java index 74897b88c8..b636f9684b 100644 --- a/serverless-workflow-examples/serverless-workflow-python-quarkus/src/test/java/org/kie/kogito/examples/PythonRestIT.java +++ b/serverless-workflow-examples/serverless-workflow-python-quarkus/src/test/java/org/acme/examples/PythonRestIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.junit.jupiter.api.Test; diff --git a/serverless-workflow-examples/serverless-workflow-qas-service-showcase/pom.xml b/serverless-workflow-examples/serverless-workflow-qas-service-showcase/pom.xml index 1849476fe9..b79f6a9a66 100644 --- a/serverless-workflow-examples/serverless-workflow-qas-service-showcase/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-qas-service-showcase/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-qas-service-showcase 1.0-SNAPSHOT pom diff --git a/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-answer-service/pom.xml b/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-answer-service/pom.xml index 1ec7e76292..eb2d9990e4 100644 --- a/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-answer-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-answer-service/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-qas-service-showcase 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-service/pom.xml b/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-service/pom.xml index 322691ea6c..19ce3443f3 100644 --- a/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-service/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-qas-service-showcase 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-saga-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-saga-quarkus/pom.xml index ddc08d91b4..80ef552585 100644 --- a/serverless-workflow-examples/serverless-workflow-saga-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-saga-quarkus/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples 1.0-SNAPSHOT serverless-workflow-saga-quarkus diff --git a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/MockService.java b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/MockService.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/MockService.java rename to serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/MockService.java index db3c576e3c..fda9ced1aa 100644 --- a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/MockService.java +++ b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/MockService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.util.Objects; import java.util.Optional; diff --git a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/OrderService.java b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/OrderService.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/OrderService.java rename to serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/OrderService.java index 111555e29d..1205fd38a6 100644 --- a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/OrderService.java +++ b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/OrderService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import javax.enterprise.context.ApplicationScoped; diff --git a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/PaymentService.java b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/PaymentService.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/PaymentService.java rename to serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/PaymentService.java index 350341fa01..44f7475f36 100644 --- a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/PaymentService.java +++ b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/PaymentService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; diff --git a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/Response.java b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/Response.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/Response.java rename to serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/Response.java index 618d78e21b..df6b326d48 100644 --- a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/Response.java +++ b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/Response.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/ServiceException.java b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/ServiceException.java similarity index 95% rename from serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/ServiceException.java rename to serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/ServiceException.java index 908552aa21..51d6a2cd5b 100644 --- a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/ServiceException.java +++ b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/ServiceException.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; public class ServiceException extends RuntimeException { diff --git a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/ShippingService.java b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/ShippingService.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/ShippingService.java rename to serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/ShippingService.java index d8c06baa84..969c0221bc 100644 --- a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/ShippingService.java +++ b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/ShippingService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; diff --git a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/StockService.java b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/StockService.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/StockService.java rename to serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/StockService.java index eb3f3d82c7..0d6bef08f4 100644 --- a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/kie/kogito/examples/StockService.java +++ b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/java/org/acme/examples/StockService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; diff --git a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/resources/order-saga-error-handling.sw.json b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/resources/order-saga-error-handling.sw.json index 78605f332f..436fcc3dbc 100644 --- a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/resources/order-saga-error-handling.sw.json +++ b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/main/resources/order-saga-error-handling.sw.json @@ -6,15 +6,15 @@ "errors" : [ { "name" : "reserve stock failed", - "code": "org.kie.kogito.examples.ServiceException" + "code": "org.acme.examples.ServiceException" }, { "name": "process payment failed", - "code": "org.kie.kogito.examples.ServiceException" + "code": "org.acme.examples.ServiceException" }, { "name": "shipping failed", - "code": "org.kie.kogito.examples.ServiceException" + "code": "org.acme.examples.ServiceException" } ], @@ -23,42 +23,42 @@ { "name": "reserveStock", "type": "custom", - "operation": "service:org.kie.kogito.examples.StockService::reserveStock" + "operation": "service:org.acme.examples.StockService::reserveStock" }, { "name": "cancelStock", "type": "custom", - "operation": "service:org.kie.kogito.examples.StockService::cancelStock" + "operation": "service:org.acme.examples.StockService::cancelStock" }, { "name": "processPayment", "type": "custom", - "operation": "service:org.kie.kogito.examples.PaymentService::processPayment" + "operation": "service:org.acme.examples.PaymentService::processPayment" }, { "name": "cancelPayment", "type": "custom", - "operation": "service:org.kie.kogito.examples.PaymentService::cancelPayment" + "operation": "service:org.acme.examples.PaymentService::cancelPayment" }, { "name": "scheduleShipping", "type": "custom", - "operation": "service:org.kie.kogito.examples.ShippingService::scheduleShipping" + "operation": "service:org.acme.examples.ShippingService::scheduleShipping" }, { "name": "cancelShipping", "type": "custom", - "operation": "service:org.kie.kogito.examples.ShippingService::cancelShipping" + "operation": "service:org.acme.examples.ShippingService::cancelShipping" }, { "name": "orderSuccess", "type": "custom", - "operation": "service:org.kie.kogito.examples.OrderService::success" + "operation": "service:org.acme.examples.OrderService::success" }, { "name": "orderFailure", "type": "custom", - "operation": "service:org.kie.kogito.examples.OrderService::failure" + "operation": "service:org.acme.examples.OrderService::failure" }, { "name": "log", diff --git a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/test/java/org/kie/kogito/examples/OrderSagaWorkflowIT.java b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/test/java/org/acme/examples/OrderSagaWorkflowIT.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-saga-quarkus/src/test/java/org/kie/kogito/examples/OrderSagaWorkflowIT.java rename to serverless-workflow-examples/serverless-workflow-saga-quarkus/src/test/java/org/acme/examples/OrderSagaWorkflowIT.java index 78ae825c93..37291e0eeb 100644 --- a/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/test/java/org/kie/kogito/examples/OrderSagaWorkflowIT.java +++ b/serverless-workflow-examples/serverless-workflow-saga-quarkus/src/test/java/org/acme/examples/OrderSagaWorkflowIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.junit.jupiter.api.Test; diff --git a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/pom.xml index d15fe8e640..737db22531 100644 --- a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-service-calls-quarkus 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/java/org/kogito/serverless/examples/CountriesClassifierResource.java b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/java/org/acme/serverless/examples/CountriesClassifierResource.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/java/org/kogito/serverless/examples/CountriesClassifierResource.java rename to serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/java/org/acme/serverless/examples/CountriesClassifierResource.java index 3917c23b4b..019f29ed45 100644 --- a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/java/org/kogito/serverless/examples/CountriesClassifierResource.java +++ b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/java/org/acme/serverless/examples/CountriesClassifierResource.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.serverless.examples; +package org.acme.serverless.examples; import java.util.Collections; import java.util.LinkedHashMap; diff --git a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/java/org/kogito/serverless/examples/Country.java b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/java/org/acme/serverless/examples/Country.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/java/org/kogito/serverless/examples/Country.java rename to serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/java/org/acme/serverless/examples/Country.java index 9266a5ffb6..3778440d94 100644 --- a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/java/org/kogito/serverless/examples/Country.java +++ b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/java/org/acme/serverless/examples/Country.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.serverless.examples; +package org.acme.serverless.examples; import java.util.List; diff --git a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/resources/countryservice.sw.json b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/resources/countryservice.sw.json index 9ce7a73519..31b3280f04 100644 --- a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/resources/countryservice.sw.json +++ b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/resources/countryservice.sw.json @@ -13,12 +13,12 @@ { "name": "classifySmallMediumFunction", "type": "custom", - "operation": "service:org.kogito.serverless.examples.CountriesClassifierResource::classifySmallMedium" + "operation": "service:org.acme.serverless.examples.CountriesClassifierResource::classifySmallMedium" }, { "name": "classifyLargeFunction", "type": "custom", - "operation": "service:org.kogito.serverless.examples.CountriesClassifierResource::classifyLarge" + "operation": "service:org.acme.serverless.examples.CountriesClassifierResource::classifyLarge" } ], "states": [ diff --git a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/test/java/org/kogito/serverless/examples/CountryServiceWorkflowTest.java b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/test/java/org/acme/serverless/examples/CountryServiceWorkflowTest.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/test/java/org/kogito/serverless/examples/CountryServiceWorkflowTest.java rename to serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/test/java/org/acme/serverless/examples/CountryServiceWorkflowTest.java index f49df157ed..3fbaa5a855 100644 --- a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/test/java/org/kogito/serverless/examples/CountryServiceWorkflowTest.java +++ b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/test/java/org/acme/serverless/examples/CountryServiceWorkflowTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.serverless.examples; +package org.acme.serverless.examples; import java.util.HashMap; import java.util.Map; diff --git a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/test/java/org/kogito/serverless/examples/RestCountriesMockServer.java b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/test/java/org/acme/serverless/examples/RestCountriesMockServer.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/test/java/org/kogito/serverless/examples/RestCountriesMockServer.java rename to serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/test/java/org/acme/serverless/examples/RestCountriesMockServer.java index 49632b85f3..b259053374 100644 --- a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/test/java/org/kogito/serverless/examples/RestCountriesMockServer.java +++ b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/test/java/org/acme/serverless/examples/RestCountriesMockServer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kogito.serverless.examples; +package org.acme.serverless.examples; import java.io.IOException; import java.util.HashMap; diff --git a/serverless-workflow-examples/serverless-workflow-stock-profit/fake-stock-service/pom.xml b/serverless-workflow-examples/serverless-workflow-stock-profit/fake-stock-service/pom.xml index 5db27a8abc..6721aeb7f9 100644 --- a/serverless-workflow-examples/serverless-workflow-stock-profit/fake-stock-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-stock-profit/fake-stock-service/pom.xml @@ -4,7 +4,7 @@ 4.0.0 serverless-workflow-stock-profit - org.kie.kogito.examples + org.acme.examples 1.0-SNAPSHOT fake-stock-service diff --git a/serverless-workflow-examples/serverless-workflow-stock-profit/pom.xml b/serverless-workflow-examples/serverless-workflow-stock-profit/pom.xml index 730e56f86c..af960f2f6e 100644 --- a/serverless-workflow-examples/serverless-workflow-stock-profit/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-stock-profit/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-stock-profit 1.0-SNAPSHOT Kogito Example :: Serverless Workflow Stock Profit diff --git a/serverless-workflow-examples/serverless-workflow-stock-profit/real-stock-service/pom.xml b/serverless-workflow-examples/serverless-workflow-stock-profit/real-stock-service/pom.xml index 506e535cb4..aedcf4c8ba 100644 --- a/serverless-workflow-examples/serverless-workflow-stock-profit/real-stock-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-stock-profit/real-stock-service/pom.xml @@ -4,7 +4,7 @@ 4.0.0 serverless-workflow-stock-profit - org.kie.kogito.examples + org.acme.examples 1.0-SNAPSHOT real-stock-service diff --git a/serverless-workflow-examples/serverless-workflow-stock-profit/stock-portfolio-service/pom.xml b/serverless-workflow-examples/serverless-workflow-stock-profit/stock-portfolio-service/pom.xml index 035a4a3e82..84fc6e86b3 100644 --- a/serverless-workflow-examples/serverless-workflow-stock-profit/stock-portfolio-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-stock-profit/stock-portfolio-service/pom.xml @@ -4,7 +4,7 @@ 4.0.0 serverless-workflow-stock-profit - org.kie.kogito.examples + org.acme.examples 1.0-SNAPSHOT stock-portfolio-service diff --git a/serverless-workflow-examples/serverless-workflow-stock-profit/stock-profit/pom.xml b/serverless-workflow-examples/serverless-workflow-stock-profit/stock-profit/pom.xml index 809f6c6527..7780b67e3c 100644 --- a/serverless-workflow-examples/serverless-workflow-stock-profit/stock-profit/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-stock-profit/stock-profit/pom.xml @@ -4,7 +4,7 @@ 4.0.0 serverless-workflow-stock-profit - org.kie.kogito.examples + org.acme.examples 1.0-SNAPSHOT stock-profit diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/pom.xml b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/pom.xml index f3ee8d2f98..2b74ed7c5c 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-temperature-conversion 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/src/test/java/org/kie/kogito/serverless/ConversationFlowIT.java b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/src/test/java/org/acme/serverless/ConversationFlowIT.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/src/test/java/org/kie/kogito/serverless/ConversationFlowIT.java rename to serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/src/test/java/org/acme/serverless/ConversationFlowIT.java index f7c75cf67e..c2797fc2af 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/src/test/java/org/kie/kogito/serverless/ConversationFlowIT.java +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/src/test/java/org/acme/serverless/ConversationFlowIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.serverless; +package org.acme.serverless; import java.util.Collections; diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/src/test/java/org/kie/kogito/serverless/OperationsMockService.java b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/src/test/java/org/acme/serverless/OperationsMockService.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/src/test/java/org/kie/kogito/serverless/OperationsMockService.java rename to serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/src/test/java/org/acme/serverless/OperationsMockService.java index 9a845abf90..aa649a0081 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/src/test/java/org/kie/kogito/serverless/OperationsMockService.java +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/src/test/java/org/acme/serverless/OperationsMockService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.serverless; +package org.acme.serverless; import java.util.Collections; import java.util.Map; diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/pom.xml b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/pom.xml index a0a03fe0bc..2c945bfa34 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-temperature-conversion 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/src/test/java/org/kie/kogito/serverless/ConversationFlowIT.java b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/src/test/java/org/acme/serverless/ConversationFlowIT.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/src/test/java/org/kie/kogito/serverless/ConversationFlowIT.java rename to serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/src/test/java/org/acme/serverless/ConversationFlowIT.java index f7c75cf67e..c2797fc2af 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/src/test/java/org/kie/kogito/serverless/ConversationFlowIT.java +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/src/test/java/org/acme/serverless/ConversationFlowIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.serverless; +package org.acme.serverless; import java.util.Collections; diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/src/test/java/org/kie/kogito/serverless/OperationsMockService.java b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/src/test/java/org/acme/serverless/OperationsMockService.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/src/test/java/org/kie/kogito/serverless/OperationsMockService.java rename to serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/src/test/java/org/acme/serverless/OperationsMockService.java index 9a845abf90..aa649a0081 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/src/test/java/org/kie/kogito/serverless/OperationsMockService.java +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/src/test/java/org/acme/serverless/OperationsMockService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.serverless; +package org.acme.serverless; import java.util.Collections; import java.util.Map; diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/pom.xml b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/pom.xml index 8db50c2716..69a838e445 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-temperature-conversion 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/src/test/java/org/kie/kogito/serverless/ConversationFlowIT.java b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/src/test/java/org/acme/serverless/ConversationFlowIT.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/src/test/java/org/kie/kogito/serverless/ConversationFlowIT.java rename to serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/src/test/java/org/acme/serverless/ConversationFlowIT.java index f7c75cf67e..c2797fc2af 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/src/test/java/org/kie/kogito/serverless/ConversationFlowIT.java +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/src/test/java/org/acme/serverless/ConversationFlowIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.serverless; +package org.acme.serverless; import java.util.Collections; diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/src/test/java/org/kie/kogito/serverless/OperationsMockService.java b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/src/test/java/org/acme/serverless/OperationsMockService.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/src/test/java/org/kie/kogito/serverless/OperationsMockService.java rename to serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/src/test/java/org/acme/serverless/OperationsMockService.java index 9a845abf90..aa649a0081 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/src/test/java/org/kie/kogito/serverless/OperationsMockService.java +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/src/test/java/org/acme/serverless/OperationsMockService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.serverless; +package org.acme.serverless; import java.util.Collections; import java.util.Map; diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/pom.xml b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/pom.xml index 29686f3cac..bd156d3a18 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-temperature-conversion 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/src/test/java/org/kie/kogito/serverless/ConversationFlowIT.java b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/src/test/java/org/acme/serverless/ConversationFlowIT.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/src/test/java/org/kie/kogito/serverless/ConversationFlowIT.java rename to serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/src/test/java/org/acme/serverless/ConversationFlowIT.java index f7c75cf67e..c2797fc2af 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/src/test/java/org/kie/kogito/serverless/ConversationFlowIT.java +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/src/test/java/org/acme/serverless/ConversationFlowIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.serverless; +package org.acme.serverless; import java.util.Collections; diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/src/test/java/org/kie/kogito/serverless/OperationsMockService.java b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/src/test/java/org/acme/serverless/OperationsMockService.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/src/test/java/org/kie/kogito/serverless/OperationsMockService.java rename to serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/src/test/java/org/acme/serverless/OperationsMockService.java index 9a845abf90..aa649a0081 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-full/src/test/java/org/kie/kogito/serverless/OperationsMockService.java +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/src/test/java/org/acme/serverless/OperationsMockService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.serverless; +package org.acme.serverless; import java.util.Collections; import java.util.Map; diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/pom.xml b/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/pom.xml index 5d9b652aff..ead8a59d69 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-temperature-conversion 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/java/org/kie/kogito/examples/sw/temp/multiplication/MultiplicationOperation.java b/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/java/org/acme/examples/sw/temp/multiplication/MultiplicationOperation.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/java/org/kie/kogito/examples/sw/temp/multiplication/MultiplicationOperation.java rename to serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/java/org/acme/examples/sw/temp/multiplication/MultiplicationOperation.java index c89c7bd35a..c969d282e1 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/java/org/kie/kogito/examples/sw/temp/multiplication/MultiplicationOperation.java +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/java/org/acme/examples/sw/temp/multiplication/MultiplicationOperation.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.sw.temp.multiplication; +package org.acme.examples.sw.temp.multiplication; import java.util.Objects; diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/java/org/kie/kogito/examples/sw/temp/multiplication/OperationResource.java b/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/java/org/acme/examples/sw/temp/multiplication/OperationResource.java similarity index 96% rename from serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/java/org/kie/kogito/examples/sw/temp/multiplication/OperationResource.java rename to serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/java/org/acme/examples/sw/temp/multiplication/OperationResource.java index b889930829..9e40ae3dac 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/java/org/kie/kogito/examples/sw/temp/multiplication/OperationResource.java +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/java/org/acme/examples/sw/temp/multiplication/OperationResource.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.sw.temp.multiplication; +package org.acme.examples.sw.temp.multiplication; import javax.validation.constraints.NotNull; import javax.ws.rs.Consumes; diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/test/java/org/kie/kogito/examples/sw/temp/multiplication/OperationResourceIT.java b/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/test/java/org/acme/examples/sw/temp/multiplication/OperationResourceIT.java similarity index 96% rename from serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/test/java/org/kie/kogito/examples/sw/temp/multiplication/OperationResourceIT.java rename to serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/test/java/org/acme/examples/sw/temp/multiplication/OperationResourceIT.java index d96b7c1bb1..c6665042f5 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/test/java/org/kie/kogito/examples/sw/temp/multiplication/OperationResourceIT.java +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/test/java/org/acme/examples/sw/temp/multiplication/OperationResourceIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.sw.temp.multiplication; +package org.acme.examples.sw.temp.multiplication; import org.junit.jupiter.api.Test; diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/pom.xml b/serverless-workflow-examples/serverless-workflow-temperature-conversion/pom.xml index c8d8269374..14806b61e8 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-temperature-conversion 1.0-SNAPSHOT pom diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/pom.xml b/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/pom.xml index 50157e0d95..9a77c2a672 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-temperature-conversion 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/java/org/kie/kogito/examples/sw/temp/subtraction/OperationResource.java b/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/java/org/acme/examples/sw/temp/subtraction/OperationResource.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/java/org/kie/kogito/examples/sw/temp/subtraction/OperationResource.java rename to serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/java/org/acme/examples/sw/temp/subtraction/OperationResource.java index fbddc22c5b..d4874d79db 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/java/org/kie/kogito/examples/sw/temp/subtraction/OperationResource.java +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/java/org/acme/examples/sw/temp/subtraction/OperationResource.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.sw.temp.subtraction; +package org.acme.examples.sw.temp.subtraction; import javax.validation.constraints.NotNull; import javax.ws.rs.Consumes; diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/java/org/kie/kogito/examples/sw/temp/subtraction/SubtractionOperation.java b/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/java/org/acme/examples/sw/temp/subtraction/SubtractionOperation.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/java/org/kie/kogito/examples/sw/temp/subtraction/SubtractionOperation.java rename to serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/java/org/acme/examples/sw/temp/subtraction/SubtractionOperation.java index 7bd7ab057d..066f349e10 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/java/org/kie/kogito/examples/sw/temp/subtraction/SubtractionOperation.java +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/java/org/acme/examples/sw/temp/subtraction/SubtractionOperation.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.sw.temp.subtraction; +package org.acme.examples.sw.temp.subtraction; import java.util.Objects; diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/test/java/org/kie/kogito/examples/sw/temp/subtraction/OperationResourceIT.java b/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/test/java/org/acme/examples/sw/temp/subtraction/OperationResourceIT.java similarity index 96% rename from serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/test/java/org/kie/kogito/examples/sw/temp/subtraction/OperationResourceIT.java rename to serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/test/java/org/acme/examples/sw/temp/subtraction/OperationResourceIT.java index b3bedd0b1e..8a88db18de 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/test/java/org/kie/kogito/examples/sw/temp/subtraction/OperationResourceIT.java +++ b/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/test/java/org/acme/examples/sw/temp/subtraction/OperationResourceIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples.sw.temp.subtraction; +package org.acme.examples.sw.temp.subtraction; import org.junit.jupiter.api.Test; diff --git a/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/pom.xml b/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/pom.xml index 29a3d7a38e..19183fd81b 100644 --- a/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/pom.xml @@ -4,7 +4,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-testing-with-rest-assured 1.0-SNAPSHOT diff --git a/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/src/test/java/org/kie/kogito/examples/HelloTest.java b/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/src/test/java/org/acme/examples/HelloTest.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/src/test/java/org/kie/kogito/examples/HelloTest.java rename to serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/src/test/java/org/acme/examples/HelloTest.java index 81cb0dd2d8..998b7a52e8 100644 --- a/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/src/test/java/org/kie/kogito/examples/HelloTest.java +++ b/serverless-workflow-examples/serverless-workflow-testing-with-rest-assured/src/test/java/org/acme/examples/HelloTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/pom.xml b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/pom.xml index 9ecc52d5a1..7e71926634 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-timeouts-showcase-embedded 1.0-SNAPSHOT Kogito Example :: Serverless Workflow Timeouts Showcase Embedded diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/java/org/kie/kogito/examples/EventsProducerResource.java b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/java/org/acme/examples/EventsProducerResource.java similarity index 99% rename from serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/java/org/kie/kogito/examples/EventsProducerResource.java rename to serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/java/org/acme/examples/EventsProducerResource.java index 85ecdad6e5..c942b8fd51 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/java/org/kie/kogito/examples/EventsProducerResource.java +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/java/org/acme/examples/EventsProducerResource.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.net.URI; import java.time.OffsetDateTime; diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/java/org/kie/kogito/examples/VertxRouter.java b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/java/org/acme/examples/VertxRouter.java similarity index 93% rename from serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/java/org/kie/kogito/examples/VertxRouter.java rename to serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/java/org/acme/examples/VertxRouter.java index b1f5f10265..9a7c4068d4 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/java/org/kie/kogito/examples/VertxRouter.java +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/java/org/acme/examples/VertxRouter.java @@ -1,4 +1,4 @@ -package org.kie.kogito.examples; +package org.acme.examples; import javax.enterprise.context.ApplicationScoped; import javax.enterprise.event.Observes; diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/test/java/org/kie/kogito/examples/TimeoutIT.java b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/test/java/org/acme/examples/TimeoutIT.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/test/java/org/kie/kogito/examples/TimeoutIT.java rename to serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/test/java/org/acme/examples/TimeoutIT.java index 5ae15d321a..60c0bf1211 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/test/java/org/kie/kogito/examples/TimeoutIT.java +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/test/java/org/acme/examples/TimeoutIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.util.concurrent.TimeUnit; diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/pom.xml b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/pom.xml index 1d26d223ff..7a98b0ea21 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-timeouts-showcase-extended 1.0-SNAPSHOT Kogito Example :: Serverless Workflow Timeouts Showcase Extended diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/java/org/kie/kogito/examples/EventsProducerResource.java b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/java/org/acme/examples/EventsProducerResource.java similarity index 99% rename from serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/java/org/kie/kogito/examples/EventsProducerResource.java rename to serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/java/org/acme/examples/EventsProducerResource.java index 3be5d15111..848e289b18 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/java/org/kie/kogito/examples/EventsProducerResource.java +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/java/org/acme/examples/EventsProducerResource.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.net.URI; import java.time.OffsetDateTime; diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/java/org/kie/kogito/examples/VertxRouter.java b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/java/org/acme/examples/VertxRouter.java similarity index 93% rename from serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/java/org/kie/kogito/examples/VertxRouter.java rename to serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/java/org/acme/examples/VertxRouter.java index b1f5f10265..9a7c4068d4 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/java/org/kie/kogito/examples/VertxRouter.java +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/java/org/acme/examples/VertxRouter.java @@ -1,4 +1,4 @@ -package org.kie.kogito.examples; +package org.acme.examples; import javax.enterprise.context.ApplicationScoped; import javax.enterprise.event.Observes; diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/test/java/org/kie/kogito/examples/TimeoutIT.java b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/test/java/org/acme/examples/TimeoutIT.java similarity index 98% rename from serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/test/java/org/kie/kogito/examples/TimeoutIT.java rename to serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/test/java/org/acme/examples/TimeoutIT.java index 5ae15d321a..60c0bf1211 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/test/java/org/kie/kogito/examples/TimeoutIT.java +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/test/java/org/acme/examples/TimeoutIT.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import java.util.concurrent.TimeUnit; diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/pom.xml b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/pom.xml index d4cc05f687..e3e4b0b603 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.kie.kogito.examples + org.acme.examples serverless-workflow-timeouts-showcase-operator-devprofile 1.0-SNAPSHOT Kogito Example :: Serverless Workflow Timeouts Showcase Operator Dev Profile diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/CallbackStateTimeoutsClient.java b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/CallbackStateTimeoutsClient.java similarity index 93% rename from serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/CallbackStateTimeoutsClient.java rename to serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/CallbackStateTimeoutsClient.java index 9b5f2cf6f2..62fb776b02 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/CallbackStateTimeoutsClient.java +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/CallbackStateTimeoutsClient.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; @@ -30,7 +30,7 @@ import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; -import static org.kie.kogito.examples.CallbackStateTimeoutsClient.CONFIG_KEY; +import static org.acme.examples.CallbackStateTimeoutsClient.CONFIG_KEY; @Path("/") @RegisterRestClient(configKey = CONFIG_KEY) diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/CloudEventsCustomizer.java b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/CloudEventsCustomizer.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/CloudEventsCustomizer.java rename to serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/CloudEventsCustomizer.java index a67f7efc06..bed880fd29 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/CloudEventsCustomizer.java +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/CloudEventsCustomizer.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import com.fasterxml.jackson.databind.ObjectMapper; import io.cloudevents.jackson.JsonFormat; diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/EventStateTimeoutsClient.java b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/EventStateTimeoutsClient.java similarity index 93% rename from serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/EventStateTimeoutsClient.java rename to serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/EventStateTimeoutsClient.java index 9e12d47b90..525cc5c5e6 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/EventStateTimeoutsClient.java +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/EventStateTimeoutsClient.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; @@ -30,7 +30,7 @@ import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; -import static org.kie.kogito.examples.EventStateTimeoutsClient.CONFIG_KEY; +import static org.acme.examples.EventStateTimeoutsClient.CONFIG_KEY; @Path("/") @RegisterRestClient(configKey = CONFIG_KEY) diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/EventsProducerResource.java b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/EventsProducerResource.java similarity index 99% rename from serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/EventsProducerResource.java rename to serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/EventsProducerResource.java index 01a195f51b..d59d0e9ad1 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/EventsProducerResource.java +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/EventsProducerResource.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/SwitchStateTimeoutsClient.java b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/SwitchStateTimeoutsClient.java similarity index 93% rename from serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/SwitchStateTimeoutsClient.java rename to serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/SwitchStateTimeoutsClient.java index 85a7e991ad..88f1c2ce0a 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/SwitchStateTimeoutsClient.java +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/SwitchStateTimeoutsClient.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; @@ -30,7 +30,7 @@ import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; -import static org.kie.kogito.examples.SwitchStateTimeoutsClient.CONFIG_KEY; +import static org.acme.examples.SwitchStateTimeoutsClient.CONFIG_KEY; @Path("/") @RegisterRestClient(configKey = CONFIG_KEY) diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/VertxRouter.java b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/VertxRouter.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/VertxRouter.java rename to serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/VertxRouter.java index 668f08bb78..ab83a7db1d 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/VertxRouter.java +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/VertxRouter.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import javax.enterprise.context.ApplicationScoped; import javax.enterprise.event.Observes; diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/WorkflowClient.java b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/WorkflowClient.java similarity index 97% rename from serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/WorkflowClient.java rename to serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/WorkflowClient.java index 5f900abda3..6b9e83c749 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/WorkflowClient.java +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/WorkflowClient.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.eclipse.microprofile.rest.client.annotation.ClientHeaderParam; diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/WorkflowTimeoutsClient.java b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/WorkflowTimeoutsClient.java similarity index 94% rename from serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/WorkflowTimeoutsClient.java rename to serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/WorkflowTimeoutsClient.java index 71bdf45d55..5474c2b3b2 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/WorkflowTimeoutsClient.java +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/WorkflowTimeoutsClient.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; @@ -30,7 +30,7 @@ import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; -import static org.kie.kogito.examples.WorkflowTimeoutsClient.CONFIG_KEY; +import static org.acme.examples.WorkflowTimeoutsClient.CONFIG_KEY; @Path("/") @RegisterRestClient(configKey = CONFIG_KEY) diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/WorkflowsProxyResource.java b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/WorkflowsProxyResource.java similarity index 99% rename from serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/WorkflowsProxyResource.java rename to serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/WorkflowsProxyResource.java index afee9f0622..ea96f7b687 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/WorkflowsProxyResource.java +++ b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/acme/examples/WorkflowsProxyResource.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.kie.kogito.examples; +package org.acme.examples; import org.eclipse.microprofile.rest.client.inject.RestClient; From 6a7b7367da58d9ef9c078a21c35b1704f46f282a Mon Sep 17 00:00:00 2001 From: spolti Date: Fri, 1 Sep 2023 12:19:13 -0300 Subject: [PATCH 2/3] update IT tests Signed-off-by: spolti --- .../dmn-drools-quarkus-metrics/docker-compose.yml | 4 ++-- .../src/main/resources/application.properties | 2 +- .../org/acme/examples/quarkus/GrafanaDockerComposeIT.java | 6 +++--- .../process-outbox-mongodb-quarkus/docker-compose.yml | 4 ++-- .../src/test/java/org/acme/quarkus/outbox/OutboxIT.java | 2 +- .../dmn-drools-springboot-metrics/docker-compose.yml | 4 ++-- .../acme/examples/springboot/GrafanaDockerComposeIT.java | 4 ++-- .../process-outbox-mongodb-springboot/docker-compose.yml | 4 ++-- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/docker-compose.yml b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/docker-compose.yml index 9743cfbd89..6113a6b60e 100644 --- a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/docker-compose.yml +++ b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/docker-compose.yml @@ -1,8 +1,8 @@ -version: '2' +version: '2.0' services: hello: - image: org.kie.kogito.examples/dmn-drools-quarkus-metrics:1.0 + image: org.acme.examples/dmn-drools-quarkus-metrics:1.0 ports: - 8080:8080 diff --git a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/application.properties b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/application.properties index 05db035d52..3cf704bf53 100644 --- a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/application.properties +++ b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/main/resources/application.properties @@ -3,7 +3,7 @@ # Container image quarkus.container-image.build=true -quarkus.container-image.group=org.kie.kogito.examples +quarkus.container-image.group=org.acme.examples quarkus.container-image.name=dmn-drools-quarkus-metrics quarkus.container-image.tag=1.0 kogito.grafana.disabled.operational.dashboards=Traffic Violation diff --git a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/acme/examples/quarkus/GrafanaDockerComposeIT.java b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/acme/examples/quarkus/GrafanaDockerComposeIT.java index e279dea574..2c098cac4a 100644 --- a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/acme/examples/quarkus/GrafanaDockerComposeIT.java +++ b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/src/test/java/org/acme/examples/quarkus/GrafanaDockerComposeIT.java @@ -66,9 +66,9 @@ public class GrafanaDockerComposeIT { .withStartupTimeout(STARTUP_MINUTES_TIMEOUT)) .withLogConsumer("prometheus_1", new Slf4jLogConsumer(LOGGER)) .withPull(false) - .withLocalCompose(true); - //See https://github.com/testcontainers/testcontainers-java/issues/4565 - // .withOptions("--compatibility"); + .withLocalCompose(true) + //See https://github.com/testcontainers/testcontainers-java/issues/4565 + .withOptions("--compatibility"); } catch (URISyntaxException e) { throw new RuntimeException(e); } diff --git a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/docker-compose.yml b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/docker-compose.yml index 38f5a11923..127f8b7b2d 100644 --- a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/docker-compose.yml +++ b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/docker-compose.yml @@ -1,4 +1,4 @@ -version: '2' +version: '2.0' services: kafka: image: vectorized/redpanda:v21.11.8 @@ -73,7 +73,7 @@ services: - KAFKA_HOST=kafka:29092 - CONNECT_HOST=connect:8083 kogito: - image: org.kie.kogito.examples/process-outbox-mongodb-quarkus:1.0 + image: org.acme.examples/process-outbox-mongodb-quarkus:1.0 ports: - "8080:8080" links: diff --git a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/test/java/org/acme/quarkus/outbox/OutboxIT.java b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/test/java/org/acme/quarkus/outbox/OutboxIT.java index 09c6472581..6aa8268014 100644 --- a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/test/java/org/acme/quarkus/outbox/OutboxIT.java +++ b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/src/test/java/org/acme/quarkus/outbox/OutboxIT.java @@ -88,7 +88,7 @@ public class OutboxIT { COMPOSE.waitingFor("kogito", Wait.forListeningPort()); COMPOSE.withLocalCompose(true); //See https://github.com/testcontainers/testcontainers-java/issues/4565 - // COMPOSE.withOptions("--compatibility"); + COMPOSE.withOptions("--compatibility"); } private static Consumer logger() { diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/docker-compose.yml b/kogito-springboot-examples/dmn-drools-springboot-metrics/docker-compose.yml index 2ec20caec3..38d8e87760 100644 --- a/kogito-springboot-examples/dmn-drools-springboot-metrics/docker-compose.yml +++ b/kogito-springboot-examples/dmn-drools-springboot-metrics/docker-compose.yml @@ -1,8 +1,8 @@ -version: '2' +version: '2.0' services: hello: - image: org.kie.kogito.examples/dmn-drools-springboot-metrics:1.0 + image: org.acme.examples/dmn-drools-springboot-metrics:1.0 ports: - 8080:8080 diff --git a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/acme/examples/springboot/GrafanaDockerComposeIT.java b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/acme/examples/springboot/GrafanaDockerComposeIT.java index d721838be3..1828a63349 100644 --- a/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/acme/examples/springboot/GrafanaDockerComposeIT.java +++ b/kogito-springboot-examples/dmn-drools-springboot-metrics/src/test/java/org/acme/examples/springboot/GrafanaDockerComposeIT.java @@ -66,9 +66,9 @@ public class GrafanaDockerComposeIT { .withStartupTimeout(STARTUP_MINUTES_TIMEOUT)) .withLogConsumer("prometheus_1", new Slf4jLogConsumer(LOGGER)) .withPull(false) - .withLocalCompose(true); + .withLocalCompose(true) //See https://github.com/testcontainers/testcontainers-java/issues/4565 - //.withOptions("--compatibility"); + .withOptions("--compatibility"); } catch (URISyntaxException e) { throw new RuntimeException(e); } diff --git a/kogito-springboot-examples/process-outbox-mongodb-springboot/docker-compose.yml b/kogito-springboot-examples/process-outbox-mongodb-springboot/docker-compose.yml index db1077beb4..71c207f95f 100644 --- a/kogito-springboot-examples/process-outbox-mongodb-springboot/docker-compose.yml +++ b/kogito-springboot-examples/process-outbox-mongodb-springboot/docker-compose.yml @@ -1,4 +1,4 @@ -version: '2' +version: '2.0' services: kafka: image: vectorized/redpanda:v21.11.8 @@ -73,7 +73,7 @@ services: - KAFKA_HOST=kafka:29092 - CONNECT_HOST=connect:8083 kogito: - image: org.kie.kogito.examples/process-outbox-mongodb-springboot:1.0 + image: org.acme.examples/process-outbox-mongodb-springboot:1.0 ports: - "8080:8080" links: From a42a3206d385004bf122d8c3f237ddc93249ecc2 Mon Sep 17 00:00:00 2001 From: spolti Date: Wed, 6 Sep 2023 15:01:51 -0300 Subject: [PATCH 3/3] remove parent poms Signed-off-by: spolti --- .../quarkus-3/patches/0001_before_sh.patch | 82 +- .../patches/0003_wiremock_update.patch | 2 +- .../0001_align-protobuf-and-grpc.patch | 2 +- .../decisiontable-quarkus-example/pom.xml | 78 +- .../dmn-drools-quarkus-metrics/pom.xml | 74 +- .../dmn-event-driven-quarkus/pom.xml | 65 +- .../src/main/resources/application.properties | 3 - .../evaluate_all/full_result/all/input.json | 30 +- .../dmn-incubation-api-quarkus/pom.xml | 65 +- .../dmn-knative-quickstart-quarkus/pom.xml | 69 +- .../dmn-listener-dtable/README.md | 3 +- .../dmn-listener-dtable/pom.xml | 70 +- .../src/main/resources/application.properties | 1 - .../dmn-listener-quarkus/README.md | 46 +- .../dmn-listener-quarkus/pom.xml | 70 +- .../src/main/resources/application.properties | 1 - .../dmn-pmml-quarkus-example/pom.xml | 67 +- .../dmn-quarkus-example/README.md | 76 +- .../dmn-quarkus-example/pom.xml | 69 +- .../src/main/resources/application.properties | 1 - .../dmn-tracing-quarkus/README.md | 57 +- .../dmn-tracing-quarkus/pom.xml | 69 +- .../src/main/resources/application.properties | 1 - .../flexible-process-quarkus/pom.xml | 68 +- .../kogito-travel-agency/README.md | 8 +- .../kogito-travel-agency/basic/README.md | 44 +- .../kogito-travel-agency/basic/mvnw | 310 - .../kogito-travel-agency/basic/mvnw.cmd | 182 - .../kogito-travel-agency/basic/pom.xml | 70 +- .../resources/META-INF/resources/index.html | 514 +- .../src/main/resources/application.properties | 1 - .../extended/docker-compose/README.md | 66 +- .../docker-compose/docker-compose.yml | 8 +- .../provisioning/dashboards/dashboard.yml | 16 +- .../provisioning/datasources/datasource.yml | 76 +- .../docker-compose/prometheus/prometheus.yml | 4 +- .../kogito-travel-agency/extended/pom.xml | 53 +- .../extended/travels/README.md | 102 +- .../extended/travels/mvnw | 310 - .../extended/travels/mvnw.cmd | 182 - .../extended/travels/pom.xml | 71 +- .../org/acme/travels/VisaApplication.java | 2 +- .../META-INF/processSVG/flightBooking.svg | 140 +- .../META-INF/processSVG/hotelBooking.svg | 140 +- .../resources/META-INF/processSVG/travels.svg | 1066 +- .../src/main/resources/application.properties | 12 - .../src/main/resources/templates/index.html | 516 +- .../src/test/resources/application.properties | 7 - .../extended/visas/README.md | 77 +- .../kogito-travel-agency/extended/visas/mvnw | 310 - .../extended/visas/mvnw.cmd | 182 - .../extended/visas/pom.xml | 72 +- ...icationPrometheusProcessEventListener.java | 14 +- .../org/acme/travels/VisaApplication.java | 2 +- .../META-INF/processSVG/visaApplications.svg | 507 +- .../src/main/resources/application.properties | 14 - .../src/main/resources/templates/index.html | 175 +- .../kogito-travel-agency/pom.xml | 38 +- kogito-quarkus-examples/ocp-tryout/README.md | 131 +- .../ocp-tryout/applicationImage.md | 8 +- .../ocp-tryout/installer.properties | 1 - .../ocp-tryout/kogito-shared/README.md | 17 +- .../kogito-shared/kogito-configs.yaml | 32 +- .../testapp/example/protobuf/travels.proto | 212 +- .../example/protobuf/visaApplications.proto | 62 +- .../testapp/example/svg/flightBooking.svg | 140 +- .../testapp/example/svg/hotelBooking.svg | 140 +- .../testapp/example/svg/travels.svg | 962 +- .../testapp/example/svg/visaApplications.svg | 423 +- .../templates/tests/test-connection.yaml | 4 +- .../ocp-tryout/tryout-kogito-app/values.yaml | 28 +- .../onboarding-example/hr/README.md | 3 +- .../onboarding-example/hr/pom.xml | 109 +- .../java/org/acme/examples/hr/Address.java | 2 +- .../java/org/acme/examples/hr/Employee.java | 4 +- .../src/main/resources/application.properties | 2 - .../onboarding-quarkus/README.md | 3 +- .../onboarding-quarkus/pom.xml | 109 +- .../org/acme/examples/onboarding/Address.java | 2 +- .../acme/examples/onboarding/Employee.java | 4 +- .../org/acme/examples/onboarding/Payroll.java | 2 +- .../src/main/resources/application.properties | 2 - .../onboarding-example/payroll/README.md | 3 +- .../onboarding-example/payroll/pom.xml | 91 +- .../org/acme/examples/payroll/Address.java | 2 +- .../org/acme/examples/payroll/Employee.java | 4 +- .../org/acme/examples/payroll/Payroll.java | 2 +- .../src/main/resources/application.properties | 2 - .../onboarding-example/pom.xml | 69 +- .../pmml-event-driven-quarkus/pom.xml | 71 +- .../pmml-incubation-api-quarkus/pom.xml | 69 +- .../pmml-quarkus-example/README.md | 41 +- .../pmml-quarkus-example/pom.xml | 70 +- .../src/main/resources/application.properties | 2 - .../pmml/quarkus/example/CommonTestUtils.java | 16 +- kogito-quarkus-examples/pom.xml | 98 +- .../process-business-rules-quarkus/pom.xml | 69 +- .../process-decisions-quarkus/pom.xml | 67 +- .../process-decisions-rest-quarkus/pom.xml | 68 +- .../process-decisions-rules-quarkus/pom.xml | 67 +- .../process-error-handling/README.md | 88 +- .../process-error-handling/pom.xml | 67 +- .../src/main/resources/application.properties | 2 - .../src/test/http/error-handling.http | 4 +- .../process-incubation-api-quarkus/pom.xml | 69 +- .../pom.xml | 69 +- .../process-kafka-avro-multi-quarkus/pom.xml | 71 +- .../process-kafka-multi-quarkus/pom.xml | 73 +- .../process-kafka-persistence-quarkus/pom.xml | 64 +- .../process-kafka-quickstart-quarkus/pom.xml | 71 +- .../pom.xml | 66 +- .../pom.xml | 68 +- .../process-monitoring-quarkus/pom.xml | 69 +- .../process-outbox-mongodb-quarkus/pom.xml | 60 +- .../process-performance-client/pom.xml | 74 +- .../process-performance-quarkus/pom.xml | 70 +- .../pom.xml | 60 +- .../process-quarkus-example/README.md | 80 +- .../operator/process-quarkus-example.yaml | 8 +- .../process-quarkus-example/pom.xml | 65 +- .../java/org/acme/examples/demo/Order.java | 2 +- .../src/main/resources/application.properties | 6 - .../src/test/resources/application.properties | 3 - .../process-rest-service-call-quarkus/pom.xml | 69 +- .../pom.xml | 72 +- .../process-rest-workitem-quarkus/pom.xml | 67 +- .../process-saga-quarkus/README.md | 86 +- .../docs/images/orders-saga-svg.svg | 5203 ++-- .../process-saga-quarkus/pom.xml | 61 +- .../src/main/resources/application.properties | 1 - .../java/org/acme/examples/ProcessSagaIT.java | 20 +- .../process-scripts-quarkus/README.md | 44 +- .../process-scripts-quarkus/pom.xml | 67 +- .../src/main/resources/application.properties | 1 - .../process-service-calls-quarkus/pom.xml | 67 +- .../process-timer-quarkus/README.md | 89 +- .../process-timer-quarkus/pom.xml | 63 +- .../src/main/resources/application.properties | 4 - .../pom.xml | 103 +- .../pom.xml | 64 +- .../process-usertasks-quarkus/pom.xml | 67 +- .../pom.xml | 62 +- .../pom.xml | 66 +- .../pom.xml | 73 +- .../pom.xml | 67 +- .../rules-incubation-api-quarkus/pom.xml | 67 +- .../rules-legacy-quarkus-example/pom.xml | 67 +- .../rules-quarkus-helloworld/pom.xml | 67 +- .../ruleunit-event-driven-quarkus/pom.xml | 63 +- .../ruleunit-quarkus-example/pom.xml | 67 +- .../trusty-demonstration/README.md | 11 +- .../docker-compose/README.md | 46 +- .../provisioning/dashboards/dashboard.yml | 18 +- .../provisioning/datasources/datasource.yml | 76 +- .../docker-compose/prometheus/prometheus.yml | 2 +- .../trusty-demonstration/kubernetes/README.md | 70 +- .../kubernetes/resources/kafka.yaml | 4 +- .../pom.xml | 65 +- .../decisiontable-springboot-example/pom.xml | 31 +- .../src/test/resources/logback-test.xml | 2 +- .../dmn-drools-springboot-metrics/pom.xml | 35 +- .../springboot/GrafanaDockerComposeIT.java | 2 +- .../dmn-event-driven-springboot/pom.xml | 31 +- .../dmn-listener-springboot/pom.xml | 35 +- .../dmn-pmml-springboot-example/pom.xml | 30 +- .../dmn-springboot-example/pom.xml | 30 +- .../dmn-tracing-springboot/pom.xml | 30 +- .../operator/flexible-process-springboot.yaml | 2 +- .../flexible-process-springboot/pom.xml | 33 +- .../onboarding-springboot/pom.xml | 51 +- .../pmml-event-driven-springboot/pom.xml | 30 +- .../example/KogitoSpringbootApplication.java | 2 +- .../pmml-springboot-example/pom.xml | 30 +- kogito-springboot-examples/pom.xml | 71 +- .../process-business-rules-springboot/pom.xml | 49 +- .../process-decisions-rest-springboot/pom.xml | 28 +- .../pom.xml | 28 +- .../process-decisions-springboot/pom.xml | 28 +- .../pom.xml | 46 +- .../process-kafka-multi-springboot/pom.xml | 30 +- .../pom.xml | 47 +- .../pom.xml | 47 +- .../process-monitoring-springboot/pom.xml | 36 +- .../process-outbox-mongodb-springboot/pom.xml | 22 +- .../src/test/resources/logback.xml | 16 +- .../process-performance-springboot/pom.xml | 37 +- .../pom.xml | 44 +- .../pom.xml | 47 +- .../process-scripts-springboot/pom.xml | 47 +- .../process-service-calls-springboot/pom.xml | 47 +- .../process-springboot-example/pom.xml | 37 +- .../process-timer-springboot/pom.xml | 47 +- .../pom.xml | 44 +- .../pom.xml | 43 +- .../process-usertasks-springboot/pom.xml | 47 +- .../pom.xml | 34 +- .../pom.xml | 31 +- .../pom.xml | 34 +- .../rules-legacy-springboot-example/pom.xml | 30 +- .../src/test/resources/logback-test.xml | 2 +- .../ruleunit-event-driven-springboot/pom.xml | 30 +- .../ruleunit-springboot-example/pom.xml | 30 +- .../src/test/resources/logback-test.xml | 2 +- pom.xml | 50 +- serverless-workflow-examples/pom.xml | 8 +- .../pom.xml | 250 +- .../callback-event-service/pom.xml | 236 +- .../callback-workflow/pom.xml | 289 +- .../pom.xml | 22 +- .../pom.xml | 7 +- .../serverless-workflow-camel-routes/pom.xml | 4 +- .../pom.xml | 7 +- .../pom.xml | 272 +- .../pom.xml | 9 +- .../custom-function-knative-service/pom.xml | 245 +- .../pom.xml | 23 +- .../workflow/pom.xml | 322 +- .../serverless-workflow-custom-type/pom.xml | 38 +- .../pom.xml | 33 +- .../pom.xml | 37 +- .../serverless-workflow-custom-rpc/pom.xml | 51 +- .../pom.xml | 52 +- .../pom.xml | 7 +- .../serverless-workflow-error-quarkus/pom.xml | 9 +- .../pom.xml | 7 +- .../pom.xml | 9 +- .../pom.xml | 11 +- .../pom.xml | 9 +- .../pom.xml | 9 +- .../serverless-workflow-funqy/pom.xml | 3 +- .../sw-funqy-services/pom.xml | 17 +- .../sw-funqy-workflow/pom.xml | 17 +- .../github-service/pom.xml | 23 +- .../notification-service/pom.xml | 23 +- .../pom.xml | 13 +- .../pr-checker-workflow/pom.xml | 20 +- .../pom.xml | 9 +- .../pom.xml | 5 +- .../pom.xml | 17 +- .../pom.xml | 309 +- .../serverless-workflow-hello-world/pom.xml | 324 +- .../aggregator/mvnw | 316 - .../aggregator/mvnw.cmd | 188 - .../aggregator/pom.xml | 34 +- .../loanbroker-flow/pom.xml | 35 +- .../loanbroker-ui/pom.xml | 27 +- .../pom.xml | 29 +- .../pom.xml | 22 +- .../subscription-flow/pom.xml | 34 +- .../subscription-service/pom.xml | 35 +- .../acme-financial-service/pom.xml | 20 +- .../currency-exchange-workflow/pom.xml | 18 +- .../pom.xml | 6 +- .../model/v3-small_224_1.0_float.xml | 19554 ++++++++-------- .../pom.xml | 38 +- .../pom.xml | 8 +- .../pom.xml | 300 +- .../pom.xml | 43 +- .../pom.xml | 14 +- .../query-answer-service/pom.xml | 23 +- .../query-service/pom.xml | 24 +- .../serverless-workflow-saga-quarkus/pom.xml | 9 +- .../pom.xml | 6 +- .../fake-stock-service/pom.xml | 33 +- .../serverless-workflow-stock-profit/pom.xml | 60 +- .../real-stock-service/pom.xml | 33 +- .../stock-portfolio-service/pom.xml | 34 +- .../stock-profit/pom.xml | 45 +- .../conversion-workflow-full/pom.xml | 18 +- .../conversion-workflow-function/pom.xml | 18 +- .../conversion-workflow-spec/pom.xml | 17 +- .../conversion-workflow/pom.xml | 18 +- .../multiplication-service/pom.xml | 17 +- .../pom.xml | 7 +- .../subtraction-service/pom.xml | 18 +- .../pom.xml | 310 +- .../pom.xml | 5 +- .../pom.xml | 9 +- .../pom.xml | 7 +- 279 files changed, 25505 insertions(+), 17999 deletions(-) delete mode 100755 kogito-quarkus-examples/kogito-travel-agency/basic/mvnw delete mode 100644 kogito-quarkus-examples/kogito-travel-agency/basic/mvnw.cmd delete mode 100755 kogito-quarkus-examples/kogito-travel-agency/extended/travels/mvnw delete mode 100644 kogito-quarkus-examples/kogito-travel-agency/extended/travels/mvnw.cmd delete mode 100755 kogito-quarkus-examples/kogito-travel-agency/extended/visas/mvnw delete mode 100644 kogito-quarkus-examples/kogito-travel-agency/extended/visas/mvnw.cmd delete mode 100755 serverless-workflow-examples/serverless-workflow-loanbroker-showcase/aggregator/mvnw delete mode 100644 serverless-workflow-examples/serverless-workflow-loanbroker-showcase/aggregator/mvnw.cmd diff --git a/.ci/environments/quarkus-3/patches/0001_before_sh.patch b/.ci/environments/quarkus-3/patches/0001_before_sh.patch index fb198bf8e4..7ca34e741f 100644 --- a/.ci/environments/quarkus-3/patches/0001_before_sh.patch +++ b/.ci/environments/quarkus-3/patches/0001_before_sh.patch @@ -3812,7 +3812,7 @@ index 13129a50a..a0b3ebde7 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/pom.xml b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/pom.xml index 4e4602148..6f4e3d857 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/pom.xml @@ -3833,7 +3833,7 @@ index 4e4602148..6f4e3d857 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/kie/kogito/examples/CallbackResource.java b/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/kie/kogito/examples/CallbackResource.java index 91ad34b97..a28d9f40e 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-events-over-http-quarkus/callback-event-service/src/main/java/org/kie/kogito/examples/CallbackResource.java @@ -3893,7 +3893,7 @@ index 76a5fd018..a20b704ed 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-callback-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-callback-quarkus/pom.xml index 2f1c84d57..4dbcc325b 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-quarkus/pom.xml @@ -3914,7 +3914,7 @@ index 2f1c84d57..4dbcc325b 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/java/org/kie/kogito/examples/PrintService.java b/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/java/org/kie/kogito/examples/PrintService.java index a1ee770e7..77b636420 100644 --- a/serverless-workflow-examples/serverless-workflow-callback-quarkus/src/main/java/org/kie/kogito/examples/PrintService.java @@ -3950,7 +3950,7 @@ index 519234897..05e2b0dd8 100644 + 3.0.0-SNAPSHOT 11 3.8.1 - 3.0.0-M7 + 3.1.2 3.5.4 @@ -3978,7 +3978,7 @@ index 480206687..015d82784 100644 - 2.0.0-SNAPSHOT + 3.0.0-SNAPSHOT 3.8.1 - 3.0.0-M7 + 3.1.2 11 diff --git a/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-consuming-events-over-http-quarkus/pom.xml index 4cc5b957b..15d303eec 100644 @@ -4000,7 +4000,7 @@ index 4cc5b957b..15d303eec 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/pom.xml index 4cb87747c..f67a88ec0 100644 --- a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/pom.xml @@ -4021,7 +4021,7 @@ index 4cb87747c..f67a88ec0 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/kie/kogito/examples/EventsService.java b/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/kie/kogito/examples/EventsService.java index ff08208ed..82e1404b2 100644 --- a/serverless-workflow-examples/serverless-workflow-correlation-quarkus/src/main/java/org/kie/kogito/examples/EventsService.java @@ -4080,7 +4080,7 @@ index bb232125f..ceedd0272 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-custom-function-knative/workflow/pom.xml b/serverless-workflow-examples/serverless-workflow-custom-function-knative/workflow/pom.xml index a92ad9e89..94b538fb1 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-function-knative/workflow/pom.xml @@ -4101,7 +4101,7 @@ index a92ad9e89..94b538fb1 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-custom-type/pom.xml b/serverless-workflow-examples/serverless-workflow-custom-type/pom.xml index 519f3d236..43270cc84 100644 --- a/serverless-workflow-examples/serverless-workflow-custom-type/pom.xml @@ -4120,7 +4120,7 @@ index 519f3d236..43270cc84 100644 kogito-bom - 2.0.0-SNAPSHOT + 3.0.0-SNAPSHOT - 3.0.0-M7 + 3.1.2 11 1.7.30 diff --git a/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/src/main/java/org/kie/kogito/examples/sw/custom/RPCCustomWorkItemHandler.java b/serverless-workflow-examples/serverless-workflow-custom-type/serverless-workflow-custom-rpc/src/main/java/org/kie/kogito/examples/sw/custom/RPCCustomWorkItemHandler.java @@ -4174,7 +4174,7 @@ index b7b0a4ada..2e0b986da 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/java/org/kie/kogito/examples/PrintService.java b/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/java/org/kie/kogito/examples/PrintService.java index 80259f870..14cb03297 100644 --- a/serverless-workflow-examples/serverless-workflow-data-index-quarkus/src/main/java/org/kie/kogito/examples/PrintService.java @@ -4210,7 +4210,7 @@ index f4f65c528..17baa4d8a 100644 + 3.0.0-SNAPSHOT 11 3.8.1 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/java/org/kie/kogito/examples/EvenService.java b/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/java/org/kie/kogito/examples/EvenService.java index 59c077d86..6468384d5 100644 --- a/serverless-workflow-examples/serverless-workflow-error-quarkus/src/main/java/org/kie/kogito/examples/EvenService.java @@ -4244,7 +4244,7 @@ index 874e192c9..7379a037a 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 - 2.0.0-SNAPSHOT + 3.0.0-SNAPSHOT @@ -4360,7 +4360,7 @@ index d866929bf..2144e8b6b 100644 + 3.0.0-SNAPSHOT 11 3.8.1 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-foreach-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-foreach-quarkus/pom.xml index 781162a98..dffac3171 100644 --- a/serverless-workflow-examples/serverless-workflow-foreach-quarkus/pom.xml @@ -4381,7 +4381,7 @@ index 781162a98..dffac3171 100644 + 3.0.0-SNAPSHOT 11 3.8.1 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/pom.xml index 9424dc1b5..1d43def93 100644 --- a/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/pom.xml @@ -4402,7 +4402,7 @@ index 9424dc1b5..1d43def93 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/src/main/java/org/acme/sw/onboarding/resources/AppointmentResource.java b/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/src/main/java/org/acme/sw/onboarding/resources/AppointmentResource.java index b5584de03..1f9a0bdb8 100644 --- a/serverless-workflow-examples/serverless-workflow-functions-events-quarkus/src/main/java/org/acme/sw/onboarding/resources/AppointmentResource.java @@ -4539,7 +4539,7 @@ index 35c91d68b..a4136e6f8 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-functions-quarkus/src/main/java/org/acme/numbers/NumbersResource.java b/serverless-workflow-examples/serverless-workflow-functions-quarkus/src/main/java/org/acme/numbers/NumbersResource.java index b9cbab2e8..6980366b7 100644 --- a/serverless-workflow-examples/serverless-workflow-functions-quarkus/src/main/java/org/acme/numbers/NumbersResource.java @@ -4593,7 +4593,7 @@ index cda3b7296..011e97147 100644 + 3.0.0.Final 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/ClassificationFunction.java b/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/ClassificationFunction.java index 6f90bae6d..56b1e20e5 100644 --- a/serverless-workflow-examples/serverless-workflow-funqy/sw-funqy-services/src/main/java/org/kogito/serverless/examples/functions/ClassificationFunction.java @@ -4692,7 +4692,7 @@ index f651b169d..f72762b0b 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-greeting-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-greeting-quarkus/pom.xml index 7ac2e39db..738e86c3f 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-quarkus/pom.xml @@ -4713,7 +4713,7 @@ index 7ac2e39db..738e86c3f 100644 + 3.0.0-SNAPSHOT 11 3.8.1 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/pom.xml index 8c6563339..707894ba9 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-client-rpc-quarkus/pom.xml @@ -4734,14 +4734,14 @@ index 8c6563339..707894ba9 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/pom.xml index c2ca6f930..d004b2cc1 100644 --- a/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/pom.xml +++ b/serverless-workflow-examples/serverless-workflow-greeting-rpc-quarkus/serverless-workflow-greeting-server-rpc-quarkus/pom.xml @@ -16,7 +16,7 @@ 11 - 3.0.0-M7 + 3.1.2 3.22.0 - 1.51.1 + 1.54.0 @@ -4779,7 +4779,7 @@ index 12e44987a..a2eeb214a 100644 + 3.0.0-SNAPSHOT 11 3.8.1 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/aggregator/src/main/java/org/acme/serverless/loanbroker/aggregator/CloudEventDataFormat.java b/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/aggregator/src/main/java/org/acme/serverless/loanbroker/aggregator/CloudEventDataFormat.java index 4a5671fe4..d3039a141 100644 --- a/serverless-workflow-examples/serverless-workflow-loanbroker-showcase/aggregator/src/main/java/org/acme/serverless/loanbroker/aggregator/CloudEventDataFormat.java @@ -5076,7 +5076,7 @@ index efd654500..368067c17 100644 - 2.14.0 + 3.0.0-M1 - 3.0.0-M7 + 3.1.2 3.8.1 diff --git a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/pom.xml b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/pom.xml index 2e08e9a86..d9f50f983 100644 @@ -5096,7 +5096,7 @@ index 2e08e9a86..d9f50f983 100644 kogito-bom - 2.0.0-SNAPSHOT + 3.0.0-SNAPSHOT - 3.0.0-M7 + 3.1.2 5.1.3 3.6.0 diff --git a/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/src/main/java/org/kie/kogito/examples/VertxRouter.java b/serverless-workflow-examples/serverless-workflow-newsletter-subscription/subscription-flow/src/main/java/org/kie/kogito/examples/VertxRouter.java @@ -5245,7 +5245,7 @@ index cdda9bb4f..dd69b0cc3 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/src/main/java/org/acme/AcmeFinancialApplication.java b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/src/main/java/org/acme/AcmeFinancialApplication.java index af5d49198..c77a16ba7 100644 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/acme-financial-service/src/main/java/org/acme/AcmeFinancialApplication.java @@ -5317,7 +5317,7 @@ index e0132a7d4..b7f310a7f 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/java/org/kie/kogito/examples/ExchangeWorkflowHelper.java b/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/java/org/kie/kogito/examples/ExchangeWorkflowHelper.java index 335f6f86a..903e39aef 100644 --- a/serverless-workflow-examples/serverless-workflow-oauth2-orchestration-quarkus/currency-exchange-workflow/src/main/java/org/kie/kogito/examples/ExchangeWorkflowHelper.java @@ -5408,7 +5408,7 @@ index f8d635e57..16804f95a 100644 + 3.0.0-SNAPSHOT 11 3.8.1 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-python-quarkus/pom.xml b/serverless-workflow-examples/serverless-workflow-python-quarkus/pom.xml index 850e11d5b..162da1ab5 100644 --- a/serverless-workflow-examples/serverless-workflow-python-quarkus/pom.xml @@ -5746,7 +5746,7 @@ index d15fe8e64..8b3f1d9d3 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/java/org/kogito/serverless/examples/CountriesClassifierResource.java b/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/java/org/kogito/serverless/examples/CountriesClassifierResource.java index 3917c23b4..2d64f52f3 100644 --- a/serverless-workflow-examples/serverless-workflow-service-calls-quarkus/src/main/java/org/kogito/serverless/examples/CountriesClassifierResource.java @@ -5820,7 +5820,7 @@ index 730e56f86..d7531a2f2 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-stock-profit/real-stock-service/src/main/java/org/acme/RealStockPriceResource.java b/serverless-workflow-examples/serverless-workflow-stock-profit/real-stock-service/src/main/java/org/acme/RealStockPriceResource.java index 219f20cd6..26b3a8c66 100644 --- a/serverless-workflow-examples/serverless-workflow-stock-profit/real-stock-service/src/main/java/org/acme/RealStockPriceResource.java @@ -5881,7 +5881,7 @@ index f3ee8d2f9..d1e45b1ff 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/pom.xml b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/pom.xml index a0a03fe0b..e7f5ac799 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-function/pom.xml @@ -5902,7 +5902,7 @@ index a0a03fe0b..e7f5ac799 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/pom.xml b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/pom.xml index 8db50c271..9e56146b4 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow-spec/pom.xml @@ -5923,7 +5923,7 @@ index 8db50c271..9e56146b4 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/pom.xml b/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/pom.xml index 29686f3ca..1a4352b34 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/conversion-workflow/pom.xml @@ -5944,7 +5944,7 @@ index 29686f3ca..1a4352b34 100644 + 3.0.0-SNAPSHOT 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/pom.xml b/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/pom.xml index 5d9b652af..7f0331124 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/pom.xml @@ -5961,7 +5961,7 @@ index 5d9b652af..7f0331124 100644 + 3.0.0.Final 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/java/org/kie/kogito/examples/sw/temp/multiplication/OperationResource.java b/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/java/org/kie/kogito/examples/sw/temp/multiplication/OperationResource.java index b88993082..2cd120fc4 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/multiplication-service/src/main/java/org/kie/kogito/examples/sw/temp/multiplication/OperationResource.java @@ -6003,7 +6003,7 @@ index 50157e0d9..33bb58bbc 100644 + 3.0.0.Final 3.8.1 11 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/java/org/kie/kogito/examples/sw/temp/subtraction/OperationResource.java b/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/java/org/kie/kogito/examples/sw/temp/subtraction/OperationResource.java index fbddc22c5..671a17c91 100644 --- a/serverless-workflow-examples/serverless-workflow-temperature-conversion/subtraction-service/src/main/java/org/kie/kogito/examples/sw/temp/subtraction/OperationResource.java @@ -6049,7 +6049,7 @@ index 29a3d7a38..57f37d0a2 100644 + 3.0.0-SNAPSHOT 11 3.8.1 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/pom.xml b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/pom.xml index 9ecc52d5a..d8a9582be 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/pom.xml @@ -6066,7 +6066,7 @@ index 9ecc52d5a..d8a9582be 100644 + 3.0.0-SNAPSHOT 11 3.8.1 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/java/org/kie/kogito/examples/EventsProducerResource.java b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/java/org/kie/kogito/examples/EventsProducerResource.java index 85ecdad6e..8a3b7a2cf 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-embedded/src/main/java/org/kie/kogito/examples/EventsProducerResource.java @@ -6126,7 +6126,7 @@ index 1d26d223f..bb27a5aa8 100644 + 3.0.0-SNAPSHOT 11 3.8.1 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/java/org/kie/kogito/examples/EventsProducerResource.java b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/java/org/kie/kogito/examples/EventsProducerResource.java index 3be5d1511..546c55c33 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-extended/src/main/java/org/kie/kogito/examples/EventsProducerResource.java @@ -6188,7 +6188,7 @@ index d4cc05f68..600c3e642 100644 + 3.0.0-SNAPSHOT 11 3.8.1 - 3.0.0-M7 + 3.1.2 diff --git a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/CallbackStateTimeoutsClient.java b/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/CallbackStateTimeoutsClient.java index 9b5f2cf6f..5ed665c99 100644 --- a/serverless-workflow-examples/serverless-workflow-timeouts-showcase-operator-devprofile/src/main/java/org/kie/kogito/examples/CallbackStateTimeoutsClient.java diff --git a/.ci/environments/quarkus-3/patches/0003_wiremock_update.patch b/.ci/environments/quarkus-3/patches/0003_wiremock_update.patch index b04922bfe7..2e20d9c064 100644 --- a/.ci/environments/quarkus-3/patches/0003_wiremock_update.patch +++ b/.ci/environments/quarkus-3/patches/0003_wiremock_update.patch @@ -4,7 +4,7 @@ index 130b10318..b4cb6502e 100644 +++ b/serverless-workflow-examples/serverless-workflow-stock-profit/pom.xml @@ -25,7 +25,7 @@ 11 - 3.0.0-M7 + 3.1.2 ${version.surefire.plugin} - 2.33.2 + 3.0.0-beta-8 diff --git a/.ci/environments/quarkus-lts/patches/0001_align-protobuf-and-grpc.patch b/.ci/environments/quarkus-lts/patches/0001_align-protobuf-and-grpc.patch index 88e78df996..d57c2e8422 100644 --- a/.ci/environments/quarkus-lts/patches/0001_align-protobuf-and-grpc.patch +++ b/.ci/environments/quarkus-lts/patches/0001_align-protobuf-and-grpc.patch @@ -5,7 +5,7 @@ index c2ca6f930..a50429305 100644 @@ -15,8 +15,9 @@ 3.8.1 11 - 3.0.0-M7 + 3.1.2 - 3.22.0 - 1.51.1 + diff --git a/kogito-quarkus-examples/decisiontable-quarkus-example/pom.xml b/kogito-quarkus-examples/decisiontable-quarkus-example/pom.xml index 6a7c0bdcc5..1075f9f21d 100644 --- a/kogito-quarkus-examples/decisiontable-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/decisiontable-quarkus-example/pom.xml @@ -1,14 +1,15 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + decisiontable-quarkus-example + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Decision Table - Quarkus + 2.16.10.Final quarkus-bom @@ -19,7 +20,19 @@ 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT 8.45.0-SNAPSHOT + 3.1.2 + ${version.surefire.plugin} + 3.8.1 + + 0 + + fast-jar + 11 + 11 + UTF-8 + UTF-8 + @@ -90,20 +103,49 @@ - ${project.artifactId} - ${quarkus.platform.group-id} - quarkus-maven-plugin - ${quarkus-plugin.version} - - - - build - - - + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + ${project.build.directory}/${project.build.finalName}-runner + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + + diff --git a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/pom.xml b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/pom.xml index 9d20b646d7..76352af0e6 100755 --- a/kogito-quarkus-examples/dmn-drools-quarkus-metrics/pom.xml +++ b/kogito-quarkus-examples/dmn-drools-quarkus-metrics/pom.xml @@ -1,14 +1,15 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + dmn-drools-quarkus-metrics + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: DMN Metrics Quarkus + 2.16.10.Final quarkus-bom @@ -18,7 +19,21 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + 1.17.3 + 3.1.2 + ${version.surefire.plugin} + + 0 + + fast-jar + 3.1.0 + 3.1.0 + 11 + 11 + UTF-8 + UTF-8 + @@ -37,6 +52,7 @@ + org.kie.kogito @@ -83,6 +99,7 @@ org.kie.kogito kogito-test-utils + ${version.org.kie.kogito} test @@ -96,6 +113,7 @@ quarkus-smallrye-health + ${project.artifactId} @@ -122,6 +140,7 @@ maven-clean-plugin + ${version.clean.plugin} @@ -137,6 +156,7 @@ maven-resources-plugin + ${version.resources.plugin} copy-filtered-resources @@ -194,6 +214,46 @@ + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/dmn-event-driven-quarkus/pom.xml b/kogito-quarkus-examples/dmn-event-driven-quarkus/pom.xml index d574fdb19f..b28095d7d7 100644 --- a/kogito-quarkus-examples/dmn-event-driven-quarkus/pom.xml +++ b/kogito-quarkus-examples/dmn-event-driven-quarkus/pom.xml @@ -4,13 +4,12 @@ 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - dmn-event-driven-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: DMN Event-Driven :: Quarkus + 2.16.10.Final quarkus-bom @@ -20,7 +19,19 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + 1.5.0 + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -39,6 +50,7 @@ + org.kie.kogito @@ -97,6 +109,7 @@ org.skyscreamer jsonassert + ${version.org.skyscreamer} test @@ -116,6 +129,48 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + ${project.build.directory}/${project.build.finalName}-runner + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/dmn-event-driven-quarkus/src/main/resources/application.properties b/kogito-quarkus-examples/dmn-event-driven-quarkus/src/main/resources/application.properties index 8873403099..9565ef47a4 100644 --- a/kogito-quarkus-examples/dmn-event-driven-quarkus/src/main/resources/application.properties +++ b/kogito-quarkus-examples/dmn-event-driven-quarkus/src/main/resources/application.properties @@ -1,13 +1,10 @@ # Packaging # quarkus.package.type=fast-jar - quarkus.swagger-ui.always-include=true - mp.messaging.incoming.kogito_incoming_stream.group.id=dmn-event-driven-example mp.messaging.incoming.kogito_incoming_stream.connector=smallrye-kafka mp.messaging.incoming.kogito_incoming_stream.topic=dmn-event-driven-requests mp.messaging.incoming.kogito_incoming_stream.value.deserializer=org.apache.kafka.common.serialization.StringDeserializer - mp.messaging.outgoing.kogito_outgoing_stream.group.id=dmn-event-driven-example mp.messaging.outgoing.kogito_outgoing_stream.connector=smallrye-kafka mp.messaging.outgoing.kogito_outgoing_stream.topic=dmn-event-driven-responses diff --git a/kogito-quarkus-examples/dmn-event-driven-quarkus/src/test/resources/events/evaluate_all/full_result/all/input.json b/kogito-quarkus-examples/dmn-event-driven-quarkus/src/test/resources/events/evaluate_all/full_result/all/input.json index 9094c1609a..7841fc0530 100644 --- a/kogito-quarkus-examples/dmn-event-driven-quarkus/src/test/resources/events/evaluate_all/full_result/all/input.json +++ b/kogito-quarkus-examples/dmn-event-driven-quarkus/src/test/resources/events/evaluate_all/full_result/all/input.json @@ -1,21 +1,21 @@ { - "specversion" : "1.0", - "id" : "a89b61a2-5644-487a-8a86-144855c5dce8", - "source" : "SomeEventSource", - "type" : "DecisionRequest", - "subject" : "TheSubject", - "kogitodmnmodelname" : "Traffic Violation", - "kogitodmnmodelnamespace" : "https://github.com/kiegroup/drools/kie-dmn/_A4BCA8B8-CF08-433F-93B2-A2598F19ECFF", + "specversion": "1.0", + "id": "a89b61a2-5644-487a-8a86-144855c5dce8", + "source": "SomeEventSource", + "type": "DecisionRequest", + "subject": "TheSubject", + "kogitodmnmodelname": "Traffic Violation", + "kogitodmnmodelnamespace": "https://github.com/kiegroup/drools/kie-dmn/_A4BCA8B8-CF08-433F-93B2-A2598F19ECFF", "kogitodmnfullresult": true, - "data" : { - "Driver" : { - "Age" : 25, - "Points" : 13 + "data": { + "Driver": { + "Age": 25, + "Points": 13 }, - "Violation" : { - "Type" : "speed", - "Actual Speed" : 115, - "Speed Limit" : 100 + "Violation": { + "Type": "speed", + "Actual Speed": 115, + "Speed Limit": 100 } } } diff --git a/kogito-quarkus-examples/dmn-incubation-api-quarkus/pom.xml b/kogito-quarkus-examples/dmn-incubation-api-quarkus/pom.xml index 433b27dde2..fa174527fe 100644 --- a/kogito-quarkus-examples/dmn-incubation-api-quarkus/pom.xml +++ b/kogito-quarkus-examples/dmn-incubation-api-quarkus/pom.xml @@ -1,14 +1,15 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + dmn-incubation-api-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: DMN Incubation API With Quarkus + 2.16.10.Final quarkus-bom @@ -18,7 +19,14 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -37,6 +45,7 @@ + io.quarkus @@ -85,6 +94,48 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/pom.xml b/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/pom.xml index a91f0cb15a..74a087c56d 100644 --- a/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/pom.xml +++ b/kogito-quarkus-examples/dmn-knative-quickstart-quarkus/pom.xml @@ -1,19 +1,17 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - dmn-knative-quickstart-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: DMN with Knative Eventing and Quarkus Kogito with DMN Knative Eventing - Quarkus - 2.33.2 2.16.10.Final quarkus-bom io.quarkus @@ -22,7 +20,19 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + 2.33.2 + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -89,6 +99,7 @@ org.kie.kogito kogito-test-utils + ${version.org.kie.kogito} test @@ -98,6 +109,7 @@ com.github.tomakehurst wiremock-jre8 + ${version.com.github.tomakehurst.wiremock} test @@ -117,7 +129,48 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/dmn-listener-dtable/README.md b/kogito-quarkus-examples/dmn-listener-dtable/README.md index 0178849ac0..e30dc0af25 100644 --- a/kogito-quarkus-examples/dmn-listener-dtable/README.md +++ b/kogito-quarkus-examples/dmn-listener-dtable/README.md @@ -1,3 +1,4 @@ # Decision Table Listener, with Kogito and Quarkus -An extension of the example `dmn-quarkus-listener`, focusing on semantic asynchronous evaluation of `AfterEvaluateDecisionTableEvent`(s) using Quarkus capabilities. +An extension of the example `dmn-quarkus-listener`, focusing on semantic asynchronous evaluation +of `AfterEvaluateDecisionTableEvent`(s) using Quarkus capabilities. diff --git a/kogito-quarkus-examples/dmn-listener-dtable/pom.xml b/kogito-quarkus-examples/dmn-listener-dtable/pom.xml index bf53b0c0dc..b60a5bca58 100644 --- a/kogito-quarkus-examples/dmn-listener-dtable/pom.xml +++ b/kogito-quarkus-examples/dmn-listener-dtable/pom.xml @@ -1,14 +1,15 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + dmn-listener-dtable + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: DMN Decision Table listener - Quarkus + 2.16.10.Final quarkus-bom @@ -18,7 +19,19 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + 3.22.0 + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -37,6 +50,7 @@ + org.kie.kogito @@ -75,6 +89,7 @@ org.assertj assertj-core + ${version.org.assertj} test @@ -102,6 +117,47 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/dmn-listener-dtable/src/main/resources/application.properties b/kogito-quarkus-examples/dmn-listener-dtable/src/main/resources/application.properties index 35b7e32bea..30f8116375 100644 --- a/kogito-quarkus-examples/dmn-listener-dtable/src/main/resources/application.properties +++ b/kogito-quarkus-examples/dmn-listener-dtable/src/main/resources/application.properties @@ -1,4 +1,3 @@ # Packaging # quarkus.package.type=fast-jar - quarkus.swagger-ui.always-include=true \ No newline at end of file diff --git a/kogito-quarkus-examples/dmn-listener-quarkus/README.md b/kogito-quarkus-examples/dmn-listener-quarkus/README.md index 7b901b328a..457b6282a8 100644 --- a/kogito-quarkus-examples/dmn-listener-quarkus/README.md +++ b/kogito-quarkus-examples/dmn-listener-quarkus/README.md @@ -4,7 +4,8 @@ A simple DMN service to evaluate a traffic violation, with the addition of some DMN listeners. -Demonstrates Kogito capability to automatically inject custom listeners in the DMN runtime without the need of writing a single line of Java code for the wiring itself. +Demonstrates Kogito capability to automatically inject custom listeners in the DMN runtime without the need of writing a +single line of Java code for the wiring itself. Listener injection is _optional_. If you don't need it, just ignore it. @@ -13,14 +14,19 @@ Listener injection is _optional_. If you don't need it, just ignore it. ### Prerequisites You will need: - - Java 11+ installed - - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + +- Java 11+ installed +- Environment variable JAVA_HOME set accordingly +- Maven 3.8.6+ installed When using native image compilation, you will also need: - - [GraalVM 19.3.1](https://github.com/oracle/graal/releases/tag/vm-19.3.1) installed - - Environment variable GRAALVM_HOME set accordingly - - Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be installed too. You also need 'native-image' installed in GraalVM (using 'gu install native-image'). Please refer to [GraalVM installation documentation](https://www.graalvm.org/docs/reference-manual/aot-compilation/#prerequisites) for more details. + +- [GraalVM 19.3.1](https://github.com/oracle/graal/releases/tag/vm-19.3.1) installed +- Environment variable GRAALVM_HOME set accordingly +- Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be + installed too. You also need 'native-image' installed in GraalVM (using 'gu install native-image'). Please refer + to [GraalVM installation documentation](https://www.graalvm.org/docs/reference-manual/aot-compilation/#prerequisites) + for more details. ### Compile and Run in Local Dev Mode @@ -43,6 +49,7 @@ java -jar target\quarkus-app\quarkus-run.jar ``` ### Package and Run using Local Native Image + Note that this requires GRAALVM_HOME to point to a valid GraalVM installation ``` @@ -58,21 +65,32 @@ To run the generated native executable, generated in `target/`, execute Note: This does not yet work on Windows, GraalVM and Quarkus should be rolling out support for Windows soon. ## 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/openapi?format=json) - 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). +You can take a look at the [OpenAPI definition](http://localhost:8080/openapi?format=json) - 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. -When running in either Quarkus Development or Native mode, we also leverage the [Quarkus OpenAPI extension](https://quarkus.io/guides/openapi-swaggerui#use-swagger-ui-for-development) that exposes [Swagger UI](http://localhost:8080/swagger-ui/) that you can use to look at available REST endpoints and send test requests. +When running in either Quarkus Development or Native mode, we also leverage +the [Quarkus OpenAPI extension](https://quarkus.io/guides/openapi-swaggerui#use-swagger-ui-for-development) that +exposes [Swagger UI](http://localhost:8080/swagger-ui/) that you can use to look at available REST endpoints and send +test requests. ## Listener injection -Kogito allows you to inject custom instances of `DMNRuntimeEventListener` if you need to attach custom logic to every DMN model evaluation. +Kogito allows you to inject custom instances of `DMNRuntimeEventListener` if you need to attach custom logic to every +DMN model evaluation. There are two ways to do this: -* Create one or more standard listener classes and annotate them with `ApplicationScoped` (the quickest way to inject a single listener). Demonstrated in `ExampleDMNRuntimeEventListener` class. -* Create one or more instances of `DecisionEventListenerConfig` (returning a list of listeners each) and annotate them with `ApplicationScoped`. Demonstrated in `ExampleDecisionEventListenerConfig` class. + +* Create one or more standard listener classes and annotate them with `ApplicationScoped` (the quickest way to inject a + single listener). Demonstrated in `ExampleDMNRuntimeEventListener` class. +* Create one or more instances of `DecisionEventListenerConfig` (returning a list of listeners each) and annotate them + with `ApplicationScoped`. Demonstrated in `ExampleDecisionEventListenerConfig` class. All the listeners instantiated with both methods will be injected during the application startup phase. @@ -102,6 +120,7 @@ Curl command (using the JSON object above): ```sh curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"Driver":{"Points":2},"Violation":{"Type":"speed","Actual Speed":120,"Speed Limit":100}}' http://localhost:8080/Traffic%20Violation ``` + or on Windows: ```sh @@ -132,4 +151,5 @@ Example response: ## Deploying with Kogito Operator -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). +In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with +the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/dmn-listener-quarkus/pom.xml b/kogito-quarkus-examples/dmn-listener-quarkus/pom.xml index 5beb0e3754..cf84772328 100644 --- a/kogito-quarkus-examples/dmn-listener-quarkus/pom.xml +++ b/kogito-quarkus-examples/dmn-listener-quarkus/pom.xml @@ -1,14 +1,15 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + dmn-listener-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: DMN with listeners - Quarkus + 2.16.10.Final quarkus-bom @@ -18,7 +19,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -37,6 +49,7 @@ + org.kie.kogito @@ -88,6 +101,49 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + ${project.build.directory}/${project.build.finalName}-runner + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/dmn-listener-quarkus/src/main/resources/application.properties b/kogito-quarkus-examples/dmn-listener-quarkus/src/main/resources/application.properties index 35b7e32bea..30f8116375 100644 --- a/kogito-quarkus-examples/dmn-listener-quarkus/src/main/resources/application.properties +++ b/kogito-quarkus-examples/dmn-listener-quarkus/src/main/resources/application.properties @@ -1,4 +1,3 @@ # Packaging # quarkus.package.type=fast-jar - quarkus.swagger-ui.always-include=true \ No newline at end of file diff --git a/kogito-quarkus-examples/dmn-pmml-quarkus-example/pom.xml b/kogito-quarkus-examples/dmn-pmml-quarkus-example/pom.xml index 5d436855c4..40a765570d 100644 --- a/kogito-quarkus-examples/dmn-pmml-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/dmn-pmml-quarkus-example/pom.xml @@ -1,13 +1,13 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + dmn-pmml-quarkus-example + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: DMN :: PMML - QUARKUS 2.16.10.Final @@ -18,6 +18,16 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 @@ -114,6 +124,49 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + ${project.build.directory}/${project.build.finalName}-runner + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/dmn-quarkus-example/README.md b/kogito-quarkus-examples/dmn-quarkus-example/README.md index ee5d4bdfb3..f2cb5a8c00 100644 --- a/kogito-quarkus-examples/dmn-quarkus-example/README.md +++ b/kogito-quarkus-examples/dmn-quarkus-example/README.md @@ -11,14 +11,19 @@ Demonstrates DMN on Kogito capabilities, including REST interface code generatio ### Prerequisites You will need: - - Java 11+ installed - - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + +- Java 11+ installed +- Environment variable JAVA_HOME set accordingly +- Maven 3.8.6+ installed When using native image compilation, you will also need: - - [GraalVM 19.3.1](https://github.com/oracle/graal/releases/tag/vm-19.3.1) installed - - Environment variable GRAALVM_HOME set accordingly - - Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be installed too. You also need 'native-image' installed in GraalVM (using 'gu install native-image'). Please refer to [GraalVM installation documentation](https://www.graalvm.org/docs/reference-manual/aot-compilation/#prerequisites) for more details. + +- [GraalVM 19.3.1](https://github.com/oracle/graal/releases/tag/vm-19.3.1) installed +- Environment variable GRAALVM_HOME set accordingly +- Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be + installed too. You also need 'native-image' installed in GraalVM (using 'gu install native-image'). Please refer + to [GraalVM installation documentation](https://www.graalvm.org/docs/reference-manual/aot-compilation/#prerequisites) + for more details. ### Compile and Run in Local Dev Mode @@ -41,6 +46,7 @@ java -jar target\quarkus-app\quarkus-run.jar ``` ### Package and Run using Local Native Image + Note that this requires GRAALVM_HOME to point to a valid GraalVM installation ``` @@ -56,24 +62,34 @@ To run the generated native executable, generated in `target/`, execute Note: This does not yet work on Windows, GraalVM and Quarkus should be rolling out support for Windows soon. ## 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/openapi?format=json) - 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). +You can take a look at the [OpenAPI definition](http://localhost:8080/openapi?format=json) - 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. -When running in either Quarkus Development or Native mode, we also leverage the [Quarkus OpenAPI extension](https://quarkus.io/guides/openapi-swaggerui#use-swagger-ui-for-development) that exposes [Swagger UI](http://localhost:8080/swagger-ui/) that you can use to look at available REST endpoints and send test requests. +When running in either Quarkus Development or Native mode, we also leverage +the [Quarkus OpenAPI extension](https://quarkus.io/guides/openapi-swaggerui#use-swagger-ui-for-development) that +exposes [Swagger UI](http://localhost:8080/swagger-ui/) that you can use to look at available REST endpoints and send +test requests. ## Test DMN Model using Maven -Validate the functionality of DMN models before deploying them into a production environment by defining test scenarios in Test Scenario Editor. +Validate the functionality of DMN models before deploying them into a production environment by defining test scenarios +in Test Scenario Editor. -To define test scenarios you need to create a .scesim file inside your project and link it to the DMN model you want to be tested. Run all Test Scenarios, executing: +To define test scenarios you need to create a .scesim file inside your project and link it to the DMN model you want to +be tested. Run all Test Scenarios, executing: ```sh mvn clean test ``` -See results in surefire test report `target/surefire-reports` + +See results in surefire test report `target/surefire-reports` ## Example Usage @@ -87,12 +103,14 @@ Given inputs: ```json { - "Driver":{"Points":2}, - "Violation":{ - "Type":"speed", - "Actual Speed":120, - "Speed Limit":100 - } + "Driver": { + "Points": 2 + }, + "Violation": { + "Type": "speed", + "Actual Speed": 120, + "Speed Limit": 100 + } } ``` @@ -101,6 +119,7 @@ Curl command (using the JSON object above): ```sh curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"Driver":{"Points":2},"Violation":{"Type":"speed","Actual Speed":120,"Speed Limit":100}}' http://localhost:8080/Traffic%20Violation ``` + or on Windows: ```sh @@ -113,22 +132,23 @@ Example response: ```json { - "Violation":{ - "Type":"speed", - "Speed Limit":100, - "Actual Speed":120 + "Violation": { + "Type": "speed", + "Speed Limit": 100, + "Actual Speed": 120 }, - "Driver":{ - "Points":2 + "Driver": { + "Points": 2 }, - "Fine":{ - "Points":3, - "Amount":500 + "Fine": { + "Points": 3, + "Amount": 500 }, - "Should the driver be suspended?":"No" + "Should the driver be suspended?": "No" } ``` ## Deploying with Kogito Operator -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). +In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with +the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/dmn-quarkus-example/pom.xml b/kogito-quarkus-examples/dmn-quarkus-example/pom.xml index c5bf7e88ca..0033b44c2f 100644 --- a/kogito-quarkus-examples/dmn-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/dmn-quarkus-example/pom.xml @@ -1,13 +1,13 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + dmn-quarkus-example + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: DMN 2.16.10.Final @@ -18,7 +18,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -37,6 +48,7 @@ + org.kie.kogito @@ -93,6 +105,49 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + ${project.build.directory}/${project.build.finalName}-runner + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/dmn-quarkus-example/src/main/resources/application.properties b/kogito-quarkus-examples/dmn-quarkus-example/src/main/resources/application.properties index c94efbb4d2..432d9d39b2 100644 --- a/kogito-quarkus-examples/dmn-quarkus-example/src/main/resources/application.properties +++ b/kogito-quarkus-examples/dmn-quarkus-example/src/main/resources/application.properties @@ -1,3 +1,2 @@ # Packaging - quarkus.swagger-ui.always-include=true diff --git a/kogito-quarkus-examples/dmn-tracing-quarkus/README.md b/kogito-quarkus-examples/dmn-tracing-quarkus/README.md index f401157604..6915e80356 100644 --- a/kogito-quarkus-examples/dmn-tracing-quarkus/README.md +++ b/kogito-quarkus-examples/dmn-tracing-quarkus/README.md @@ -2,27 +2,38 @@ ## Description -A simple DMN service to evaluate a loan approval and generate tracing events that might be consumed by the Trusty service. +A simple DMN service to evaluate a loan approval and generate tracing events that might be consumed by the Trusty +service. ## Installing and Running ### Prerequisites You will need: - - Java 11+ installed - - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + +- Java 11+ installed +- Environment variable JAVA_HOME set accordingly +- Maven 3.8.6+ installed When using native image compilation, you will also need: - - [GraalVM 19.3.1](https://github.com/oracle/graal/releases/tag/vm-19.3.1) installed - - Environment variable GRAALVM_HOME set accordingly - - Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be installed too. You also need 'native-image' installed in GraalVM (using 'gu install native-image'). Please refer to [GraalVM installation documentation](https://www.graalvm.org/docs/reference-manual/aot-compilation/#prerequisites) for more details. + +- [GraalVM 19.3.1](https://github.com/oracle/graal/releases/tag/vm-19.3.1) installed +- Environment variable GRAALVM_HOME set accordingly +- Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be + installed too. You also need 'native-image' installed in GraalVM (using 'gu install native-image'). Please refer + to [GraalVM installation documentation](https://www.graalvm.org/docs/reference-manual/aot-compilation/#prerequisites) + for more details. ### Configuration of the tracing addon -The default configuration pushes the decision tracing events to the kafka topic `kogito-tracing-decision` and the DMN models used by the kogito application to `kogito-tracing-model` under the group-id `kogito-runtimes`. -The configuration can be customized according to [https://quarkus.io/guides/kafka](https://quarkus.io/guides/kafka) and [https://kafka.apache.org/documentation/#producerconfigs](https://kafka.apache.org/documentation/#producerconfigs) using the prefix `mp.messaging.outgoing.kogito-tracing-decision.`. -For example, in order to change the topic name for the decision tracing events, add the following line to the `application.properties` file: +The default configuration pushes the decision tracing events to the kafka topic `kogito-tracing-decision` and the DMN +models used by the kogito application to `kogito-tracing-model` under the group-id `kogito-runtimes`. +The configuration can be customized according to [https://quarkus.io/guides/kafka](https://quarkus.io/guides/kafka) +and [https://kafka.apache.org/documentation/#producerconfigs](https://kafka.apache.org/documentation/#producerconfigs) +using the prefix `mp.messaging.outgoing.kogito-tracing-decision.`. +For example, in order to change the topic name for the decision tracing events, add the following line to +the `application.properties` file: + ``` mp.messaging.outgoing.kogito-tracing-decision.topic=my-kogito-tracing-decision ``` @@ -48,6 +59,7 @@ java -jar target\quarkus-app\quarkus-run.jar ``` ### Package and Run using Local Native Image + Note that this requires GRAALVM_HOME to point to a valid GraalVM installation ``` @@ -63,13 +75,20 @@ To run the generated native executable, generated in `target/`, execute Note: This does not yet work on Windows, GraalVM and Quarkus should be rolling out support for Windows soon. ## 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/openapi?format=json) - 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). +You can take a look at the [OpenAPI definition](http://localhost:8080/openapi?format=json) - 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. -When running in either Quarkus Development or Native mode, we also leverage the [Quarkus OpenAPI extension](https://quarkus.io/guides/openapi-swaggerui#use-swagger-ui-for-development) that exposes [Swagger UI](http://localhost:8080/swagger-ui/) that you can use to look at available REST endpoints and send test requests. +When running in either Quarkus Development or Native mode, we also leverage +the [Quarkus OpenAPI extension](https://quarkus.io/guides/openapi-swaggerui#use-swagger-ui-for-development) that +exposes [Swagger UI](http://localhost:8080/swagger-ui/) that you can use to look at available REST endpoints and send +test requests. ## Example Usage @@ -102,6 +121,7 @@ Curl command (using the JSON object above): ```sh curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"Bribe": 0,"Client": {"age": 0,"existing payments": 0,"salary": 0},"Loan": {"duration": 0,"installment": 0},"SupremeDirector": "yes"}' http://localhost:8080/LoanEligibility ``` + or on Windows: ```sh @@ -134,10 +154,15 @@ Example response: ## Integration example with Trusty Service -When the tracing addon is enabled, the tracing events are emitted and pushed to a Kafka broker. The [Trusty Service](https://github.com/kiegroup/kogito-apps/tree/main/trusty) can consume such events and store them on a storage. The Trusty Service exposes then some api to consume the information that has been collected. -A `docker-compose` example is provided in the current folder. In particular, when `docker-compose up` is run, a Kafka broker, an Infinispan container and the latest build of the trusty service configured to use Infinispan are deployed. -Once the services are up and running, after a decision has been evaluated, you can access the trusty service API to list the evaluations at `localhost:8081/executions` for example. +When the tracing addon is enabled, the tracing events are emitted and pushed to a Kafka broker. +The [Trusty Service](https://github.com/kiegroup/kogito-apps/tree/main/trusty) can consume such events and store them on +a storage. The Trusty Service exposes then some api to consume the information that has been collected. +A `docker-compose` example is provided in the current folder. In particular, when `docker-compose up` is run, a Kafka +broker, an Infinispan container and the latest build of the trusty service configured to use Infinispan are deployed. +Once the services are up and running, after a decision has been evaluated, you can access the trusty service API to list +the evaluations at `localhost:8081/executions` for example. ## Deploying with Kogito Operator -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). +In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with +the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/dmn-tracing-quarkus/pom.xml b/kogito-quarkus-examples/dmn-tracing-quarkus/pom.xml index d0c440240a..1cf36b9d4f 100644 --- a/kogito-quarkus-examples/dmn-tracing-quarkus/pom.xml +++ b/kogito-quarkus-examples/dmn-tracing-quarkus/pom.xml @@ -1,13 +1,13 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + dmn-tracing-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: DMN Tracing - Quarkus 2.16.10.Final @@ -18,7 +18,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -37,6 +48,7 @@ + org.kie.kogito @@ -107,6 +119,49 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + ${project.build.directory}/${project.build.finalName}-runner + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/dmn-tracing-quarkus/src/main/resources/application.properties b/kogito-quarkus-examples/dmn-tracing-quarkus/src/main/resources/application.properties index 35b7e32bea..30f8116375 100644 --- a/kogito-quarkus-examples/dmn-tracing-quarkus/src/main/resources/application.properties +++ b/kogito-quarkus-examples/dmn-tracing-quarkus/src/main/resources/application.properties @@ -1,4 +1,3 @@ # Packaging # quarkus.package.type=fast-jar - quarkus.swagger-ui.always-include=true \ No newline at end of file diff --git a/kogito-quarkus-examples/flexible-process-quarkus/pom.xml b/kogito-quarkus-examples/flexible-process-quarkus/pom.xml index ee8085a983..f85edbc57d 100644 --- a/kogito-quarkus-examples/flexible-process-quarkus/pom.xml +++ b/kogito-quarkus-examples/flexible-process-quarkus/pom.xml @@ -1,13 +1,13 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + flexible-process-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Flexible Process - Quarkus 2.16.10.Final @@ -18,7 +18,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -37,6 +48,7 @@ + org.kie.kogito @@ -87,6 +99,48 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/kogito-travel-agency/README.md b/kogito-quarkus-examples/kogito-travel-agency/README.md index acebb5995d..bd9394cafb 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/README.md +++ b/kogito-quarkus-examples/kogito-travel-agency/README.md @@ -15,10 +15,11 @@ Each version is based on previous one so it allows people perform the implementa and to start any any place. [Base travel agency service](basic) - deals with all the basic steps to book flight and hotel. -Consists of single service that has both business logic and decision logic included. +Consists of single service that has both business logic and decision logic included. [Travel agency and visa services with persistence](extended) - deals with all the basic steps to book flight and hotel. -Consists of two services that have both business logic and decision logic included. Preserves data between service restarts and requires Infinispan server to be available. +Consists of two services that have both business logic and decision logic included. Preserves data between service +restarts and requires Infinispan server to be available. ## Contribution @@ -31,4 +32,5 @@ Everyone is encouraged to contribute to this tutorial by ## Deploying with Kogito Operator -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). +In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with +the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/kogito-travel-agency/basic/README.md b/kogito-quarkus-examples/kogito-travel-agency/basic/README.md index 47fdcc54af..9f3edd0ecb 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/basic/README.md +++ b/kogito-quarkus-examples/kogito-travel-agency/basic/README.md @@ -2,29 +2,31 @@ ## Description -During this workshop we will create a software system for a startup travel agency called Kogito Travel Agency. The first iteration of the system will consist of a set of services that are able to deal with travel requests and the booking of hotels and flights. +During this workshop we will create a software system for a startup travel agency called Kogito Travel Agency. The first +iteration of the system will consist of a set of services that are able to deal with travel requests and the booking of +hotels and flights. ## Activities to perform * Create project using Quarkus Maven plugin with following extensions - * Kogito - * OpenApi + * Kogito + * OpenApi * Import project into Eclipse IDE - requires BPMN modeller plugin installed * Create data model - * Traveller - * Hotel - * Flight - * Address - * Trip -* Create service classes - * HotelBookingService - * FlightBookingService + * Traveller + * Hotel + * Flight + * Address + * Trip +* Create service classes + * HotelBookingService + * FlightBookingService * Create decision logic - * Visa check + * Visa check * Create business logic - * Public business process to deal with complete travel request - * Private business process to deal with hotel booking - * Private business process to deal with flight booking + * Public business process to deal with complete travel request + * Private business process to deal with hotel booking + * Private business process to deal with flight booking * Create a test case that makes use of processes and decisions * Create or import UI components * Add metrics support for processes and decisions @@ -58,7 +60,8 @@ Location that is associated with either traveller or hotel ## Decision logic -The decision logic will be implemented as a decision table. The logic will be responsible for verifying whether a given traveller requires a visa to enter a given country or not. The decision logic reason over the following data/facts +The decision logic will be implemented as a decision table. The logic will be responsible for verifying whether a given +traveller requires a visa to enter a given country or not. The decision logic reason over the following data/facts * Destination that the traveller wants to go - country * Nationality of the traveller @@ -86,7 +89,8 @@ Private process that will be responsible for booking a flight. ## Services -There will be services implemented to carry on the hotel and flight booking. Implementation will be a CDI beans that will have hard coded logic to return a booked flight or hotel. +There will be services implemented to carry on the hotel and flight booking. Implementation will be a CDI beans that +will have hard coded logic to return a booked flight or hotel. * org.acme.travels.service.HotelBookingService * org.acme.travels.service.FlightBookingService @@ -107,7 +111,8 @@ When using native image compilation, you will also need: * GraalVM 20 installed * Environment variable GRAALVM_HOME set accordingly -* Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be installed too, please refer to GraalVM installation documentation for more details. +* Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be + installed too, please refer to GraalVM installation documentation for more details. #### Compile and Run in Local Dev Mode @@ -115,7 +120,8 @@ When using native image compilation, you will also need: mvn clean package quarkus:dev ``` -NOTE: With dev mode of Quarkus you can take advantage of hot reload for business assets like processes, rules and decision +NOTE: With dev mode of Quarkus you can take advantage of hot reload for business assets like processes, rules and +decision tables and java code. No need to redeploy or restart your running application. #### Compile and Run using Local Native Image diff --git a/kogito-quarkus-examples/kogito-travel-agency/basic/mvnw b/kogito-quarkus-examples/kogito-travel-agency/basic/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-quarkus-examples/kogito-travel-agency/basic/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-quarkus-examples/kogito-travel-agency/basic/mvnw.cmd b/kogito-quarkus-examples/kogito-travel-agency/basic/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-quarkus-examples/kogito-travel-agency/basic/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-quarkus-examples/kogito-travel-agency/basic/pom.xml b/kogito-quarkus-examples/kogito-travel-agency/basic/pom.xml index 0822ada8ff..fd82ed85d8 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/basic/pom.xml +++ b/kogito-quarkus-examples/kogito-travel-agency/basic/pom.xml @@ -1,13 +1,13 @@ - 4.0.0 - - org.acme.examples - kogito-travel-agency-example - 2.0.0-SNAPSHOT - + kogito-travel-agency-example-basic + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Travel Agency :: Basic UTF-8 @@ -21,7 +21,18 @@ 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT 8.45.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -47,6 +58,7 @@ + org.kie.kogito @@ -64,6 +76,10 @@ io.quarkus quarkus-resteasy-jackson + + io.quarkus + quarkus-smallrye-health + org.kie.kogito kogito-addons-quarkus-monitoring-prometheus @@ -98,6 +114,48 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/kogito-travel-agency/basic/src/main/resources/META-INF/resources/index.html b/kogito-quarkus-examples/kogito-travel-agency/basic/src/main/resources/META-INF/resources/index.html index e03c03053f..9ad7cf36d9 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/basic/src/main/resources/META-INF/resources/index.html +++ b/kogito-quarkus-examples/kogito-travel-agency/basic/src/main/resources/META-INF/resources/index.html @@ -5,8 +5,8 @@ Kogito Travel Agency - - + + @@ -53,14 +53,14 @@

Travels

'Accept': 'application/json' } }); - $( function() { - $( "#tripBegin" ).datepicker({ + $(function () { + $("#tripBegin").datepicker({ dateFormat: "yy-mm-dd" }); - $( "#tripEnd" ).datepicker({ + $("#tripEnd").datepicker({ dateFormat: "yy-mm-dd" }); - } ); + }); load(); initModal(); }); @@ -97,56 +97,56 @@

Travels

$.getJSON("/travels", function (data) { $.each(data, function (key, val) { $("" + val.traveller.lastName + ", " + val.traveller.firstName + "" + - "" + val.trip.country + ", " + val.trip.city + "" + - "" + new Date(val.trip.begin).toLocaleDateString() + " - " + new Date(val.trip.end).toLocaleDateString() + "" + - "" + (val.trip.visaRequired ? 'Yes' : 'No') + "" + - "" + (val.hotel != null ? val.hotel.name : '') + "" + - "" + (val.flight != null ? val.flight.flightNumber : '') + "" + - "" + - " " + - " " + - "" + - "" + - "").appendTo("#content"); + "" + val.trip.country + ", " + val.trip.city + "" + + "" + new Date(val.trip.begin).toLocaleDateString() + " - " + new Date(val.trip.end).toLocaleDateString() + "" + + "" + (val.trip.visaRequired ? 'Yes' : 'No') + "" + + "" + (val.hotel != null ? val.hotel.name : '') + "" + + "" + (val.flight != null ? val.flight.flightNumber : '') + "" + + "" + + " " + + " " + + "" + + "" + + "").appendTo("#content"); }); initCallbacks(); }); } function initCallbacks() { - $(".product-delete").unbind().click(function() { - var id = $(this).data("id"); - remove(id); + $(".product-delete").unbind().click(function () { + var id = $(this).data("id"); + remove(id); }); } @@ -177,9 +177,25 @@

Travels

productAction.click(function () { - var address = {street: $("#street").val(), city: $("#city").val(), zipCode: $("#zipCode").val(), country: $("#country").val()}; - var traveller = {firstName: $("#firstName").val(), lastName: $("#lastName").val(), email: $("#email").val(), nationality: $("#nationality").val(), address: address}; - var trip = {country: $("#destinationCountry").val(), city: $("#destinationCity").val(), begin: $("#tripBegin").val() + 'T00:00:00.000+02:00', end: $("#tripEnd").val() + 'T00:00:00.000+02:00'}; + var address = { + street: $("#street").val(), + city: $("#city").val(), + zipCode: $("#zipCode").val(), + country: $("#country").val() + }; + var traveller = { + firstName: $("#firstName").val(), + lastName: $("#lastName").val(), + email: $("#email").val(), + nationality: $("#nationality").val(), + address: address + }; + var trip = { + country: $("#destinationCountry").val(), + city: $("#destinationCity").val(), + begin: $("#tripBegin").val() + 'T00:00:00.000+02:00', + end: $("#tripEnd").val() + 'T00:00:00.000+02:00' + }; var travelRequest = JSON.stringify({traveller: traveller, trip: trip}); create(travelRequest); @@ -198,7 +214,7 @@

Travels

modal.find('#lastName').val(button.data("lastname")); modal.find('#email').val(button.data("email")); modal.find('#nationality').val(button.data("nationality")); - if(button.data("visa-application") !== null && button.data("visa-application") !== '') { + if (button.data("visa-application") !== null && button.data("visa-application") !== '') { $('#visa-application-group').show(); modal.find('#visaApplication').attr('href', button.data("visa-application")); } else { @@ -228,26 +244,26 @@

Travels

modal.find('.modal-title').text("Tasks for " + button.data("lastname") + ", " + button.data("firstname")); $("#taskscontent").children().remove(); - $.getJSON("/travels/"+ travelId + "/tasks", function (data) { + $.getJSON("/travels/" + travelId + "/tasks", function (data) { $.each(data, function (index, task) { let taskId = task.id; let taskName = task.name; let element = "" + taskName + ""; if (taskName === 'VisaApplication') { element += "
" + - ""; + ""; } else { element += ""; + " Complete" + + ""; } - element += ""; + element += ""; $(element).appendTo("#taskscontent"); }); + }) }) - }) }
+ class="form-control" + id="visa_firstName" + name="visa_firstName" readonly>
+ class="form-control" + id="visa_lastName" + name="visa_lastName" readonly>
+ class="form-control" id="visa_email" + name="visa_email" readonly>
+ type="text" class="form-control" id="visa_nationality" + name="visa_nationality" readonly>
@@ -700,20 +751,28 @@

Trip

+ class="form-control" + id="visa_destinationCountry" + name="visa_destinationCountry" + readonly>
+ class="form-control" + id="visa_destinationCity" + name="visa_destinationCity" + readonly>
+ class="form-control" + id="visa_tripBegin" + name="visa_tripBegin" readonly>
+ type="text" class="form-control" id="visa_tripEnd" + name="visa_tripEnd" readonly>
@@ -724,17 +783,24 @@

Visa details

+ class="form-control" + id="visa_passportNumber" + name="visa_passportNumber" + readonly>
+ class="form-control" + id="visa_duration" + name="visa_duration" readonly>
diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/travels/src/test/resources/application.properties b/kogito-quarkus-examples/kogito-travel-agency/extended/travels/src/test/resources/application.properties index a3684a9aa3..5df8de4868 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/travels/src/test/resources/application.properties +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/travels/src/test/resources/application.properties @@ -2,34 +2,27 @@ quarkus.http.test-port=0 quarkus.http.cors=true quarkus.swagger-ui.always-include=true - kogito.service.url=http://localhost:8080 kogito.dataindex.http.url=http://localhost:8180 kogito.dataindex.ws.url=ws://localhost:8180 - #Kafka kafka.bootstrap.servers=localhost:9092 - #mp.messaging.incoming.kogito_incoming_stream.bootstrap.servers=localhost:9092 mp.messaging.incoming.kogito_incoming_stream.connector=smallrye-kafka mp.messaging.incoming.kogito_incoming_stream.topic=visasresponses mp.messaging.incoming.kogito_incoming_stream.value.deserializer=org.apache.kafka.common.serialization.StringDeserializer - #mp.messaging.outgoing.kogito_outgoing_stream.bootstrap.servers=localhost:9092 mp.messaging.outgoing.kogito_outgoing_stream.connector=smallrye-kafka mp.messaging.outgoing.kogito_outgoing_stream.topic=visaapplications mp.messaging.outgoing.kogito_outgoing_stream.value.serializer=org.apache.kafka.common.serialization.StringSerializer - #mp.messaging.outgoing.kogito-processinstances-events.bootstrap.servers=localhost:9092 mp.messaging.outgoing.kogito-processinstances-events.connector=smallrye-kafka mp.messaging.outgoing.kogito-processinstances-events.topic=kogito-processinstances-events mp.messaging.outgoing.kogito-processinstances-events.value.serializer=org.apache.kafka.common.serialization.StringSerializer - #mp.messaging.outgoing.kogito-usertaskinstances-events.bootstrap.servers=localhost:9092 mp.messaging.outgoing.kogito-usertaskinstances-events.connector=smallrye-kafka mp.messaging.outgoing.kogito-usertaskinstances-events.topic=kogito-usertaskinstances-events mp.messaging.outgoing.kogito-usertaskinstances-events.value.serializer=org.apache.kafka.common.serialization.StringSerializer - #mp.messaging.outgoing.kogito-variables-events.bootstrap.servers=localhost:9092 mp.messaging.outgoing.kogito-variables-events.connector=smallrye-kafka mp.messaging.outgoing.kogito-variables-events.topic=kogito-variables-events diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/README.md b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/README.md index 7f5cdb9195..52c7720feb 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/README.md +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/README.md @@ -3,7 +3,7 @@ ## Description This is another service of the Kogito Travel Agency application. It's responsible for processing visa applications -that are sent during travel requests. +that are sent during travel requests. In its current state it simply accepts incoming visa applications from Kafka topic and process them @@ -16,15 +16,15 @@ will add additional handling to the approved or rejected visa applications _(by ## Activities to perform * Create project using Quarkus Maven plugin with following extensions - * Kogito - * OpenApi + * Kogito + * OpenApi * Import project into Eclipse IDE - requires BPMN modeller plugin installed -* Create data model - * VisaApplication +* Create data model + * VisaApplication * Create decision logic - * Visa approvals + * Visa approvals * Create business logic - * Public business process to deal with visa applications + * Public business process to deal with visa applications * Configure messaging and events * Create or import UI components * Add custom metrics based on the approved and rejected visa applications @@ -38,11 +38,10 @@ Kogito Travel Agency booking system will be based on following data model A basic visa application information required to process - ## Decision logic -The decision logic will be implemented as a set of rules in DRL format. These rules will be responsible for automatic visa application approval - +The decision logic will be implemented as a set of rules in DRL format. These rules will be responsible for automatic +visa application approval ## Business logic @@ -52,7 +51,6 @@ Public process that will be responsible for processing visa application

- # Try out the complete service ## Installing and Running @@ -60,18 +58,22 @@ Public process that will be responsible for processing visa application ### Prerequisites You will need: - - Java 11+ installed - - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + +- Java 11+ installed +- Environment variable JAVA_HOME set accordingly +- Maven 3.8.6+ installed When using native image compilation, you will also need: - - GraalVM 19.3.1+ installed - - Environment variable GRAALVM_HOME set accordingly - - Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be installed too, please refer to GraalVM installation documentation for more details. + +- GraalVM 19.3.1+ installed +- Environment variable GRAALVM_HOME set accordingly +- Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be + installed too, please refer to GraalVM installation documentation for more details. ### Starting the Kogito and Infrastructure Services -This quickstart provides a docker compose template that starts all the required services. This setup ensures that all services are connected with a default configuration. +This quickstart provides a docker compose template that starts all the required services. This setup ensures that all +services are connected with a default configuration. You should start all the services before you execute any of the **Hiring** example, to do that please execute: @@ -98,7 +100,9 @@ Once all services bootstrap, the following ports will be assigned on your local - Keycloak server: 8480 - Management Console: 8280 -> **_NOTE:_** This step requires the project to be compiled, please consider running a ```mvn clean install``` command on the project root before running the ```startServices.sh``` script for the first time or any time you modify the project. +> **_NOTE:_** This step requires the project to be compiled, please consider running a ```mvn clean install``` command +> on the project root before running the ```startServices.sh``` script for the first time or any time you modify the +> project. Once started you can simply stop all services by executing the ```docker-compose stop```. @@ -106,16 +110,19 @@ All created containers can be removed by executing the ```docker-compose rm```. ### Using Keycloak as Authentication Server -In this Quickstart we'll be using [Keycloak](https://www.keycloak.org/) as *Authentication Server*. It will be started as a part of the project *Infrastructure Services*, you can check the configuration on the project [docker-compose.yml](docker-compose/docker-compose.yml) in [docker-compose](docker-compose) folder. +In this Quickstart we'll be using [Keycloak](https://www.keycloak.org/) as *Authentication Server*. It will be started +as a part of the project *Infrastructure Services*, you can check the configuration on the +project [docker-compose.yml](docker-compose/docker-compose.yml) in [docker-compose](docker-compose) folder. It will install the *Kogito Realm* that comes with a predefined set of users: -| Login | Password | Roles | +| Login | Password | Roles | | ------------- | ---------- | ------------------- | -| admin | admin | *admin*, *managers* | -| alice | alice | *user* | -| jdoe | jdoe | *managers* | +| admin | admin | *admin*, *managers* | +| alice | alice | *user* | +| jdoe | jdoe | *managers* | -Once Keycloak is started, you should be able to access your *Keycloak Server* at [localhost:8480/auth](http://localhost:8480/auth) with *admin* user. +Once Keycloak is started, you should be able to access your *Keycloak Server* +at [localhost:8480/auth](http://localhost:8480/auth) with *admin* user. ### Compile and Run in Local Dev Mode @@ -123,11 +130,14 @@ Once Keycloak is started, you should be able to access your *Keycloak Server* at mvn clean package quarkus:dev ``` -NOTE: With dev mode of Quarkus you can take advantage of hot reload for business assets like processes, rules and decision -tables and java code. No need to redeploy or restart your running application.During this workshop we will create a software system for a startup travel agency called Kogito Travel Agency. The first iteration of the system will consist of a set of services that are able to deal with travel requests and the booking of hotels and flights. - +NOTE: With dev mode of Quarkus you can take advantage of hot reload for business assets like processes, rules and +decision +tables and java code. No need to redeploy or restart your running application.During this workshop we will create a +software system for a startup travel agency called Kogito Travel Agency. The first iteration of the system will consist +of a set of services that are able to deal with travel requests and the booking of hotels and flights. ### Compile and Run using Local Native Image + Note that this requires GRAALVM_HOME to point to a valid GraalVM installation ``` @@ -140,20 +150,16 @@ To run the generated native executable, generated in `target/`, execute ./target/visas-{version}-runner ``` - ## Known issues - ## User interface Kogito Visas comes with basic UI that allows to - ### list currently opened visa applications

- ### approve/reject selected visa application

@@ -164,7 +170,6 @@ To start Kogito Travel Agency UI just point your browser to [http://localhost:80 Once the service is up and running, you can use the following examples to interact with the service. - ### GET /visaApplications Returns list of visa application requests currently active: @@ -226,5 +231,7 @@ EOF ### Querying the technical cache -When running **Kogito Data Index Service** on dev mode, the GraphiQL UI is available at [http://localhost:8180](http://localhost:8180/) and allow to -perform different queries on the model as is explained at [wiki/Data-Index-service](https://github.com/kiegroup/kogito-runtimes/wiki/Data-Index-Service) +When running **Kogito Data Index Service** on dev mode, the GraphiQL UI is available +at [http://localhost:8180](http://localhost:8180/) and allow to +perform different queries on the model as is explained +at [wiki/Data-Index-service](https://github.com/kiegroup/kogito-runtimes/wiki/Data-Index-Service) diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/mvnw b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/mvnw deleted file mode 100755 index d2f0ea3808..0000000000 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/bin/sh -# ---------------------------------------------------------------------------- -# 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. -# ---------------------------------------------------------------------------- - -# ---------------------------------------------------------------------------- -# Maven2 Start Up Batch script -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir -# -# Optional ENV vars -# ----------------- -# M2_HOME - location of maven2's installed home dir -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files -# ---------------------------------------------------------------------------- - -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi - -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false -case "`uname`" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" - else - export JAVA_HOME="/Library/Java/Home" - fi - fi - ;; -esac - -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` - fi -fi - -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then - if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" - else - javaExecutable="`readlink -f \"$javaExecutable\"`" - fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - else - JAVACMD="`which java`" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi - -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 - fi - - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` - fi - # end of workaround - done - echo "${basedir}" -} - -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" - fi -} - -BASE_DIR=`find_maven_basedir "$(pwd)"` -if [ -z "$BASE_DIR" ]; then - exit 1; -fi - -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi -else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi - if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; - esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" - if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` - fi - - if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" - else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f - else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f - fi - - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` - fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") - fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") - fi - fi - fi -fi -########################################################################################## -# End of extension -########################################################################################## - -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR -fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` - [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` - [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` -fi - -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -exec "$JAVACMD" \ - $MAVEN_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/mvnw.cmd b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/mvnw.cmd deleted file mode 100644 index b26ab24f03..0000000000 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven2 Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/pom.xml b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/pom.xml index 92018856e5..c3b31f89fb 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/pom.xml +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/pom.xml @@ -1,13 +1,13 @@ - + 4.0.0 - - org.acme.examples - kogito-travel-agency-example-extended - 2.0.0-SNAPSHOT - + visas + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Travel Agency :: Visas 2.16.10.Final @@ -18,7 +18,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -37,6 +48,7 @@ + org.kie.kogito @@ -62,6 +74,10 @@ io.quarkus quarkus-resteasy-jackson + + io.quarkus + quarkus-smallrye-health + io.quarkus quarkus-junit5 @@ -120,6 +136,48 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/acme/app/VisaApplicationPrometheusProcessEventListener.java b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/acme/app/VisaApplicationPrometheusProcessEventListener.java index 7a500426e8..7d1958d482 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/acme/app/VisaApplicationPrometheusProcessEventListener.java +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/acme/app/VisaApplicationPrometheusProcessEventListener.java @@ -36,8 +36,8 @@ public class VisaApplicationPrometheusProcessEventListener extends MetricsProces private static final String NUMBER_OF_VISA_REJECTED_COUNTER_NAME = "acme_travels_visas_rejected_total"; private static Counter getNumberOfVisaApplicationsApprovedCounter(String appId, String country, String duration, - String nationality, - CompositeMeterRegistry compositeMeterRegistry) { + String nationality, + CompositeMeterRegistry compositeMeterRegistry) { return Counter .builder(NUMBER_OF_VISA_APPROVED_COUNTER_NAME) .description("Approved visa applications") @@ -46,8 +46,8 @@ private static Counter getNumberOfVisaApplicationsApprovedCounter(String appId, } private static Counter getNumberOfVisaApplicationsRejected(String appId, String country, String duration, - String nationality, - CompositeMeterRegistry compositeMeterRegistry) { + String nationality, + CompositeMeterRegistry compositeMeterRegistry) { return Counter .builder(NUMBER_OF_VISA_REJECTED_COUNTER_NAME) .description("Rejected visa applications") @@ -59,7 +59,7 @@ private static Counter getNumberOfVisaApplicationsRejected(String appId, String private final PrometheusMeterRegistry prometheusMeterRegistry; public VisaApplicationPrometheusProcessEventListener(String identifier, KogitoGAV kogitoGAV, - PrometheusMeterRegistry prometheusMeterRegistry) { + PrometheusMeterRegistry prometheusMeterRegistry) { super(identifier, kogitoGAV, Metrics.globalRegistry); this.identifier = identifier; this.prometheusMeterRegistry = prometheusMeterRegistry; @@ -89,11 +89,11 @@ public void afterProcessCompleted(ProcessCompletedEvent event) { getNumberOfVisaApplicationsApprovedCounter(identifier, safeValue(application.getCountry()), String.valueOf(application.getDuration()), safeValue(application.getNationality()), Metrics.globalRegistry) - .increment(); + .increment(); } else { getNumberOfVisaApplicationsRejected(identifier, safeValue(application.getCountry()), String.valueOf(application.getDuration()), safeValue(application.getNationality()), Metrics.globalRegistry) - .increment(); + .increment(); } } } diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/acme/travels/VisaApplication.java b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/acme/travels/VisaApplication.java index 9209973a71..c594d598f5 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/acme/travels/VisaApplication.java +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/java/org/acme/travels/VisaApplication.java @@ -30,7 +30,7 @@ public VisaApplication() { } public VisaApplication(String firstName, String lastName, String city, String country, int duration, - String passportNumber) { + String passportNumber) { this.firstName = firstName; this.lastName = lastName; this.city = city; diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/resources/META-INF/processSVG/visaApplications.svg b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/resources/META-INF/processSVG/visaApplications.svg index 082063bfc3..f6e4644645 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/resources/META-INF/processSVG/visaApplications.svg +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/resources/META-INF/processSVG/visaApplications.svg @@ -1 +1,506 @@ -Visa rejectedManually approved?Manual visa approval Visa approvedVisa approved?Automatic visa approvals StartProcessInitialize variable No Yes No Yes \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Visa rejected + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Manually approved? + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Manual visa + + approval + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Visa approved + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Visa approved? + + + + + + + + + + + + + + + + + + + + + + + Automatic visa + + approvals + + + + + + + + + + + + + + + + + + + + + + + + + + + + + StartProcess + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Initialize + + variable + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No + + + + + + + + + + + + + + + + + + + + + + + Yes + + + + + + + + + + + + + + + + + + + + + + + No + + + + + + + + + + + + + Yes + + + + + + \ No newline at end of file diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/resources/application.properties b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/resources/application.properties index d3e554b334..eaf3857184 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/resources/application.properties +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/resources/application.properties @@ -1,53 +1,39 @@ # Packaging # quarkus.package.type=fast-jar - quarkus.http.port=8090 quarkus.http.cors=true quarkus.http.cors.origins=/.*/ - kogito.service.url=http://localhost:8090 kogito.dataindex.http.url=http://localhost:8180 kogito.dataindex.ws.url=ws://localhost:8180 - quarkus.oidc.auth-server-url=http://localhost:8281/auth/realms/kogito quarkus.oidc.client-id=kogito-app quarkus.oidc.credentials.secret=secret - - quarkus.infinispan-client.hosts=localhost:11222 quarkus.infinispan-client.use-auth=false #quarkus.infinispan-client.hosts=kogito-infinispan:11222 - kafka.bootstrap.servers=localhost:9092 - ## main transport - #mp.messaging.incoming.kogito_incoming_stream.bootstrap.servers=localhost:9092 mp.messaging.incoming.kogito_incoming_stream.connector=smallrye-kafka mp.messaging.incoming.kogito_incoming_stream.topic=visaapplications mp.messaging.incoming.kogito_incoming_stream.value.deserializer=org.apache.kafka.common.serialization.StringDeserializer #mp.messaging.incoming.kogito_incoming_stream.auto.offset.reset=earliest - #mp.messaging.outgoing.kogito_outgoing_stream.bootstrap.servers=localhost:9092 mp.messaging.outgoing.kogito_outgoing_stream.connector=smallrye-kafka mp.messaging.outgoing.kogito_outgoing_stream.topic=visasresponses mp.messaging.outgoing.kogito_outgoing_stream.value.serializer=org.apache.kafka.common.serialization.StringSerializer - ## metadata - #mp.messaging.outgoing.kogito-processinstances-events.bootstrap.servers=localhost:9092 mp.messaging.outgoing.kogito-processinstances-events.connector=smallrye-kafka mp.messaging.outgoing.kogito-processinstances-events.topic=kogito-processinstances-events mp.messaging.outgoing.kogito-processinstances-events.value.serializer=org.apache.kafka.common.serialization.StringSerializer - #mp.messaging.outgoing.kogito-usertaskinstances-events.bootstrap.servers=localhost:9092 mp.messaging.outgoing.kogito-usertaskinstances-events.connector=smallrye-kafka mp.messaging.outgoing.kogito-usertaskinstances-events.topic=kogito-usertaskinstances-events mp.messaging.outgoing.kogito-usertaskinstances-events.value.serializer=org.apache.kafka.common.serialization.StringSerializer - #mp.messaging.outgoing.kogito-variables-events.bootstrap.servers=localhost:9092 mp.messaging.outgoing.kogito-variables-events.connector=smallrye-kafka mp.messaging.outgoing.kogito-variables-events.topic=kogito-variables-events mp.messaging.outgoing.kogito-variables-events.value.serializer=org.apache.kafka.common.serialization.StringSerializer - kogito.monitoring.process.useDefault=false diff --git a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/resources/templates/index.html b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/resources/templates/index.html index e9ec5f6cf6..ac6bab345d 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/resources/templates/index.html +++ b/kogito-quarkus-examples/kogito-travel-agency/extended/visas/src/main/resources/templates/index.html @@ -79,48 +79,48 @@

Visa applications

if ("WebSocket" in window) { - // Let us open a web socket - var ws = new WebSocket('{config:property('kogito.dataindex.ws.url') or 'ws://localhost:8180'}/graphql'); - - ws.onopen = function() { - // Web Socket is connected, send data using send() - ws.send('{"id" : "1", "type" : "connection_init"}'); - }; - - ws.onmessage = function (evt) { - var received_msg = evt.data; - let jsonObject = JSON.parse(received_msg); - if(jsonObject.type === 'connection_ack'){ - ws.send('{"id" : "2", "type" : "start", "payload" : { "query" : "subscription { VisaApplicationsUpdated { id, visaApplication { lastName, firstName, country, city, nationality, duration, passportNumber }, visaResolution { approved }, metadata { processInstances { state } } } }"}}'); - } else if(jsonObject.type === 'data') { - var val = jsonObject.payload.data.VisaApplicationsUpdated; - - var existing = document.getElementById(val.id); - if (existing != null) { - existing.remove(); - } - - appendDataRow(null, val); - } - }; - - ws.onclose = function() { - - // websocket is closed. - }; + // Let us open a web socket + var ws = new WebSocket('{config:property('kogito.dataindex.ws.url') or 'ws://localhost:8180'}/graphql'); + + ws.onopen = function () { + // Web Socket is connected, send data using send() + ws.send('{"id" : "1", "type" : "connection_init"}'); + }; + + ws.onmessage = function (evt) { + var received_msg = evt.data; + let jsonObject = JSON.parse(received_msg); + if (jsonObject.type === 'connection_ack') { + ws.send('{"id" : "2", "type" : "start", "payload" : { "query" : "subscription { VisaApplicationsUpdated { id, visaApplication { lastName, firstName, country, city, nationality, duration, passportNumber }, visaResolution { approved }, metadata { processInstances { state } } } }"}}'); + } else if (jsonObject.type === 'data') { + var val = jsonObject.payload.data.VisaApplicationsUpdated; + + var existing = document.getElementById(val.id); + if (existing != null) { + existing.remove(); + } + + appendDataRow(null, val); + } + }; + + ws.onclose = function () { + + // websocket is closed. + }; } }); function load() { $("#content").children().remove(); var query = "{ \"query\": \"" + - "{ VisaApplications { " + - "id " + - "visaApplication { lastName, firstName, country, city, nationality, duration, passportNumber } " + - "visaResolution { approved } " + - "metadata { processInstances { state } } " + - "}}\"" + - "}"; + "{ VisaApplications { " + + "id " + + "visaApplication { lastName, firstName, country, city, nationality, duration, passportNumber } " + + "visaResolution { approved } " + + "metadata { processInstances { state } } " + + "}}\"" + + "}"; $.ajax({ type: 'POST', @@ -136,35 +136,35 @@

Visa applications

} function appendDataRow(key, val) { - var active = $.grep(val.metadata.processInstances, function (pi) { - return pi.state == "ACTIVE" - }).length > 0; - var html = - "" + val.visaApplication.lastName + ", " + val.visaApplication.firstName + "" + - "" + val.visaApplication.country + ", " + val.visaApplication.city + "" + - "" + val.visaApplication.duration + " days" + - "" + val.visaApplication.passportNumber + "" + - "" + val.visaApplication.nationality + "" + - "" + (val.visaResolution.approved ? 'Yes' : 'No') + "" + - ""; - if (active) { - html += - " "; - } - html += ""; - $(html).appendTo("#content"); + var active = $.grep(val.metadata.processInstances, function (pi) { + return pi.state == "ACTIVE" + }).length > 0; + var html = + "" + val.visaApplication.lastName + ", " + val.visaApplication.firstName + "" + + "" + val.visaApplication.country + ", " + val.visaApplication.city + "" + + "" + val.visaApplication.duration + " days" + + "" + val.visaApplication.passportNumber + "" + + "" + val.visaApplication.nationality + "" + + "" + (val.visaResolution.approved ? 'Yes' : 'No') + "" + + ""; + if (active) { + html += + " "; + } + html += ""; + $(html).appendTo("#content"); } function initCallbacks() { @@ -186,11 +186,15 @@

Visa applications

approved: Boolean(decision), reason: "Manual approval" }; - var visaApplicationRequest = JSON.stringify(\{application: vapplication, resolution: vResolution\}); + var visaApplicationRequest = JSON.stringify(\{application: vapplication, resolution: vResolution\ + } + + ) + ; - $.post("/visaApplications/" + $("#visa_p_id").val() + "/ApplicationApproval/" + $("#visa_t_id").val() + userFilter, visaApplicationRequest, function () { + $.post("/visaApplications/" + $("#visa_p_id").val() + "/ApplicationApproval/" + $("#visa_t_id").val() + userFilter, visaApplicationRequest, function () { - }, "json"); + }, "json"); } function initModal() { @@ -201,7 +205,7 @@

Visa applications

var id = button.data('id'); var modal = $(this); - $.getJSON("/visaApplications/" + id + "/tasks"+userFilter, function (data) { + $.getJSON("/visaApplications/" + id + "/tasks" + userFilter, function (data) { $.each(data, function (key, val) { if ("ApplicationApproval" == val.name) { modal.find('.modal-title').text("Visa application for " + button.data("lastname") + ", " + button.data("firstname")); @@ -243,15 +247,19 @@

Traveller

+ class="form-control" id="firstName" + name="firstName" readonly>
+ class="form-control" id="lastName" + name="lastName" readonly>
+ class="form-control" + id="nationality" name="nationality" + readonly>
@@ -261,11 +269,14 @@

Trip

+ class="form-control" id="country" + name="destinationCountry" + readonly>
+ class="form-control" id="city" + name="destinationCity" readonly>
@@ -277,7 +288,8 @@

Stay information

+ class="form-control" id="duration" + name="duration" readonly>
@@ -288,14 +300,21 @@

Documents

+ class="form-control" + id="passportNumber" + name="passportNumber" + readonly>
diff --git a/kogito-quarkus-examples/kogito-travel-agency/pom.xml b/kogito-quarkus-examples/kogito-travel-agency/pom.xml index ee635a998a..e1e87e9cd9 100644 --- a/kogito-quarkus-examples/kogito-travel-agency/pom.xml +++ b/kogito-quarkus-examples/kogito-travel-agency/pom.xml @@ -1,40 +1,18 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + kogito-travel-agency-example + org.acme.examples + 2.0.0-SNAPSHOT pom + Kogito Example :: Travel Agency + basic extended - - 2.16.10.Final - quarkus-bom - io.quarkus - 2.16.10.Final - - - - - ${quarkus.platform.group-id} - ${quarkus.platform.artifact-id} - ${quarkus.platform.version} - pom - import - - - - - - io.quarkus - quarkus-smallrye-health - - diff --git a/kogito-quarkus-examples/ocp-tryout/README.md b/kogito-quarkus-examples/ocp-tryout/README.md index 9bf8422d17..92d933f01b 100644 --- a/kogito-quarkus-examples/ocp-tryout/README.md +++ b/kogito-quarkus-examples/ocp-tryout/README.md @@ -3,115 +3,150 @@ The goal of this procedure is to simplify the deployment of a Kogito application on the Openshift platform. This deployment includes both the required infrastructure and the Kogito application. -The deployment is targeting examples based on the BPM model which may require additional resources like protobuf and svg files. +The deployment is targeting examples based on the BPM model which may require additional resources like protobuf and svg +files. Make sure you meet the [prerequisites](#prerequisites) and then start [here](#installation). ## Prerequisites + - [Developer sandbox ](https://developers.redhat.com/developer-sandbox/get-started) or other Openshift cluster - oc cli installed - helm 3 cli installed -- a Kogito application image - find [here](applicationImage.md) example how to create an application image and upload to an image repository +- a Kogito application image - find [here](applicationImage.md) example how to create an application image and upload to + an image repository ### Available Infrastructure + - Persistence: - - infinispan/server:14.0.4.Final via helm chart + - infinispan/server:14.0.4.Final via helm chart - Messaging: - - bitnami/kafka:2.8.1-debian-10-r31 via helm chart + - bitnami/kafka:2.8.1-debian-10-r31 via helm chart - Authorization/Authentication: - - jboss/keycloak:15.0.2 image preconfigured using realm import - ephemeral installation - + - jboss/keycloak:15.0.2 image preconfigured using realm import - ephemeral installation + ### Available Kogito services + Installation from pre-build images + - [Data Index](https://docs.jboss.org/kogito/release/1.15.0/html_single/#con-data-index-service_kogito-configuring) -- [Management console](https://docs.jboss.org/kogito/release/1.15.0/html_single/#con-management-console_kogito-developing-process-services) +- [Management console](https://docs.jboss.org/kogito/release/1.15.0/html_single/#con-management-console_kogito-developing-process-services) - [Jobs service](https://docs.jboss.org/kogito/release/latest/html_single/#con-jobs-service_kogito-configuring) - [Task console](https://docs.jboss.org/kogito/release/latest/html_single/#con-task-console_kogito-developing-process-services) -## Architecture +## Architecture + ![](./architecture.png) ## Installation + - login to OCP cluster: `oc login ...` - update `./installer.properties` **mandatory** properties are: - - `KOGITO_VERSION`: the version of Kogito your application is based upon - **default**: latest - - `OCP_PROJECT`: the project/namespace for the deployment which must exist + - `KOGITO_VERSION`: the version of Kogito your application is based upon - **default**: latest + - `OCP_PROJECT`: the project/namespace for the deployment which must exist - update folders - - **Note**: you can use the example files from `./testapp/example` - which allow you to run the Kogito Travel Agency extended example. Just copy the folders to under `./testapp` - The KOGITO_VERSION in `installer.properties` should be 1.16.0. - - **When not using the example files, do:** - - `./testapp/apps`: For each Kogito application to be installed define a `.yaml` file under the `apps` folder. - The file name will be used as the chart release name. Only use lowercase alphanumeric characters. - - The minimum configuration for each `.yaml` is: - ``` - # example - image: - repository: quay.io/kiegroup/examples-travels - tag: 1.16.0.final - applicationPort: 8080 - ``` - - `./testapp/protobuf`: For each Kogito application to be installed add its protobuf files under the `protobuf` folder. Protobuf files for the Kogito examples can be found under folder `target/classes/META-INF/resources/persistence/protobuf`. - - `./testapp/svg`: For each Kogito application to be installed add its svg files under the `svg` folder. svg files for the Kogito examples can be found under `target/classes/META-INF/processSVG`. + - **Note**: you can use the example files from `./testapp/example` + which allow you to run the Kogito Travel Agency extended example. Just copy the folders to under `./testapp` + The KOGITO_VERSION in `installer.properties` should be 1.16.0. + - **When not using the example files, do:** + - `./testapp/apps`: For each Kogito application to be installed define a `.yaml` file under the `apps` + folder. + The file name will be used as the chart release name. Only use lowercase alphanumeric characters. + + The minimum configuration for each `.yaml` is: + ``` + # example + image: + repository: quay.io/kiegroup/examples-travels + tag: 1.16.0.final + applicationPort: 8080 + ``` + - `./testapp/protobuf`: For each Kogito application to be installed add its protobuf files under the `protobuf` + folder. Protobuf files for the Kogito examples can be found under + folder `target/classes/META-INF/resources/persistence/protobuf`. + - `./testapp/svg`: For each Kogito application to be installed add its svg files under the `svg` folder. svg + files for the Kogito examples can be found under `target/classes/META-INF/processSVG`. - run `./installer.sh` Installation logs are written to the console and `./ocp-tryout/installLogs.txt` ## Removal of installation + - login to OCP cluster: `oc login ...` -- use the same `./installer.properties` you installed with to remove the installation completely or cherry-pick the parts to uninstall +- use the same `./installer.properties` you installed with to remove the installation completely or cherry-pick the + parts to uninstall - run `./uninstaller.sh` ## Component Interconnection/Initialization -Not just the Kogito application but also Kogito services need to interface with other Kogito services or infrastructures. -All configuration required to make those connections as well as initializations are defined in one config map called `kogito-configs`. +Not just the Kogito application but also Kogito services need to interface with other Kogito services or +infrastructures. +All configuration required to make those connections as well as initializations are defined in one config map +called `kogito-configs`. ### Keycloak Configurations + - `keycloak.admin.user` - the username used to connect to Keycloak administration console - `keycloak.admin.password` - the administration consoles' users' password -- `keycloak.realm.json` - Keycloak initialization file for the Kogito realm creating clients, users, etc. used in Kogito examples +- `keycloak.realm.json` - Keycloak initialization file for the Kogito realm creating clients, users, etc. used in Kogito + examples - `keycloak.db.vendor` - Keycloak persistence + ### Infinispan Configurations + - `quarkus.infinispan.client.hosts` - the infinispan url used by the Kogito application; can be internal service url - `quarkus.infinispan.client.username` - the user used by the Kogito application to access the infinispan service + ### Kafka Configurations + - `kafka.bootstrap.servers` - the kafka url used by the Kogito application; can be internal service url + ### Kogito Dataindex Configurations + - `kogito.dataindex.props` - command line properties for the data index - `kogito.dataindex.httpurl` - the dataindex url, protocol: http - `kogito.dataindex.httpurl.with.graphql` - the dataindex graphql url - `kogito.dataindex.wsurl` - the dataindex url, protocol: ws + ### Kogito Management Console Configurations + - `kogito.managementconsole.props` - command line properties for the management console + ### Kogito Task Console Configurations + - `kogito.taskconsole.props` - command line properties for the task console + ### Kogito Job Service Configurations + - `kogito.jobsservice.props` - command line properties for the job service ## Constraints -- Developer Sandbox does not allow to install additional operators - (https://www.youtube.com/watch?v=oDqw8aBGDD8 from 18.02.2021 - time: 9:09) + +- Developer Sandbox does not allow to install additional operators - (https://www.youtube.com/watch?v=oDqw8aBGDD8 from + 18.02.2021 - time: 9:09) => cannot use Kogito Operator install -- Developer Sandbox sets [resource quotas](https://github.com/codeready-toolchain/host-operator/blob/master/deploy/templates/nstemplatetiers/base/cluster.yaml) per user name +- Developer Sandbox + sets [resource quotas](https://github.com/codeready-toolchain/host-operator/blob/master/deploy/templates/nstemplatetiers/base/cluster.yaml) + per user name ### Memory and cpu requests and limits + if marked `-` then namespace defaults are applied -|deployment|request cpu|request mem|limit cpu|limit mem| -|---|---|---|---|---| -|**namespace default per deployment/statefulSet**|10m|64Mi|1|750Mi| -|keycloak|-|-|-|-| -|kogito-data-index-infinispan|-|-|-|500Mi| -|kogito-management-console|-|-|-|500Mi| -|kogito-task-console|-|-|-|500Mi| -|kogito-jobs-service|-|-|-|500Mi| -|kogito-travel-agency-travels-jvm|-|-|-|500Mi| -|kogito-travel-agency-visas-jvm|-|-|-|500Mi| -|infinispan|500m|512Mi|500m|512Mi| -|kafka|-|-|-|-| -|kafka-zookeeper|250m|256Mi|-|-| -|**sum**|-|-|-|6512Mi| -|**sandbox max. aggregate values per user name (both namespaces)**|1750m|7Gi|20000m|7Gi| +| deployment | request cpu | request mem | limit cpu | limit mem | +|-------------------------------------------------------------------|-------------|-------------|-----------|-----------| +| **namespace default per deployment/statefulSet** | 10m | 64Mi | 1 | 750Mi | +| keycloak | - | - | - | - | +| kogito-data-index-infinispan | - | - | - | 500Mi | +| kogito-management-console | - | - | - | 500Mi | +| kogito-task-console | - | - | - | 500Mi | +| kogito-jobs-service | - | - | - | 500Mi | +| kogito-travel-agency-travels-jvm | - | - | - | 500Mi | +| kogito-travel-agency-visas-jvm | - | - | - | 500Mi | +| infinispan | 500m | 512Mi | 500m | 512Mi | +| kafka | - | - | - | - | +| kafka-zookeeper | 250m | 256Mi | - | - | +| **sum** | - | - | - | 6512Mi | +| **sandbox max. aggregate values per user name (both namespaces)** | 1750m | 7Gi | 20000m | 7Gi | diff --git a/kogito-quarkus-examples/ocp-tryout/applicationImage.md b/kogito-quarkus-examples/ocp-tryout/applicationImage.md index 89e8e0c79c..58782bae68 100644 --- a/kogito-quarkus-examples/ocp-tryout/applicationImage.md +++ b/kogito-quarkus-examples/ocp-tryout/applicationImage.md @@ -1,7 +1,11 @@ ## Prepare Kogito application image -The Tryout process installs a container image, which must be accessible from an image repository. If such an image exists, this step can be skipped. -Below steps show the process of building and uploading an image using the example of the [extended Kogito Travel Agency](https://github.com/kiegroup/kogito-examples/tree/stable/kogito-quarkus-examples/kogito-travel-agency/extended/travels/) application: +The Tryout process installs a container image, which must be accessible from an image repository. If such an image +exists, this step can be skipped. +Below steps show the process of building and uploading an image using the example of +the [extended Kogito Travel Agency](https://github.com/kiegroup/kogito-examples/tree/stable/kogito-quarkus-examples/kogito-travel-agency/extended/travels/) +application: + - cd into `kogito-examples/kogito-quarkus-examples/kogito-travel-agency/extended/travels` - build the application: `mvn clean package` - build the image: `docker build -f src/main/docker/Dockerfile.jvm -t quarkus/kogito-travel-agency-travels-jvm .` diff --git a/kogito-quarkus-examples/ocp-tryout/installer.properties b/kogito-quarkus-examples/ocp-tryout/installer.properties index 378f1904e8..198565525f 100644 --- a/kogito-quarkus-examples/ocp-tryout/installer.properties +++ b/kogito-quarkus-examples/ocp-tryout/installer.properties @@ -2,7 +2,6 @@ KOGITO_VERSION=latest DRY_RUN=N # the project under which to install the tryout OCP_PROJECT= - # Services and Infrastructure to install - if to install all components, set INSTALL_ALL=Y, # otherwise leave INSTALL_ALL empty or set to N and set each component entry to Y for installation # or to N or leave empty, if does not need to be installed diff --git a/kogito-quarkus-examples/ocp-tryout/kogito-shared/README.md b/kogito-quarkus-examples/ocp-tryout/kogito-shared/README.md index 736c0c368b..5e308f8f88 100644 --- a/kogito-quarkus-examples/ocp-tryout/kogito-shared/README.md +++ b/kogito-quarkus-examples/ocp-tryout/kogito-shared/README.md @@ -6,24 +6,39 @@ any of the available infrastructure applications and services. There is one config map per infrastructure component. ### Config Map per infrastructure + #### Keycloak Config + - `keycloak.admin.user` - the username used to connect to Keycloak administration console - `keycloak.admin.password` - the administration consoles' users' password -- `keycloak.realm.json` - Keycloak initialization file for the Kogito realm creating clients, users, etc. used in Kogito examples +- `keycloak.realm.json` - Keycloak initialization file for the Kogito realm creating clients, users, etc. used in Kogito + examples - `keycloak.db.vendor` - Keycloak persistence + #### Infinispan Config + - `quarkus.infinispan.client.hosts` - the infinispan url used by the Kogito application; can be internal service url - `quarkus.infinispan.client.username` - the user used by the Kogito application to access the infinispan service + #### Kafka Config + - `kafka.bootstrap.servers` - the kafka url used by the Kogito application; can be internal service url + #### Kogito Dataindex Config + - `kogito.dataindex.props` - command line properties for the data index - `kogito.dataindex.httpurl` - the dataindex url, protocol: http - `kogito.dataindex.httpurl.with.graphql` - the dataindex graphql url - `kogito.dataindex.wsurl` - the dataindex url, protocol: ws + #### Kogito Management Console Config + - `kogito.managementconsole.props` - command line properties for the management console + #### Kogito Task Console Config + - `kogito.taskconsole.props` - command line properties for the task console + #### Kogito Job Service Config + - `kogito.jobsservice.props` - command line properties for the job service \ No newline at end of file diff --git a/kogito-quarkus-examples/ocp-tryout/kogito-shared/kogito-configs.yaml b/kogito-quarkus-examples/ocp-tryout/kogito-shared/kogito-configs.yaml index 3b3d63a3c1..1fb429a695 100644 --- a/kogito-quarkus-examples/ocp-tryout/kogito-shared/kogito-configs.yaml +++ b/kogito-quarkus-examples/ocp-tryout/kogito-shared/kogito-configs.yaml @@ -3,19 +3,19 @@ kind: ConfigMap metadata: name: kogito-configs data: - general.namespace: "${project_name}" - general.appsclusterhost: "${apps_cluster_host}" - keycloak.admin.user: 'admin' - keycloak.admin.password: 'admin' - keycloak.realm.json: '/tmp/kogito-realm.json' - keycloak.db.vendor: 'h2' - quarkus.infinispan.client.username: 'developer' - quarkus.infinispan.client.hosts: 'infinispan.${project_name}.svc.cluster.local:11222' - kafka.bootstrap.servers: 'kafka.${project_name}.svc.cluster.local:9092' - kogito.dataindex.props: '-Dkogito.protobuf.folder=/home/kogito/data/protobufs' - kogito.dataindex.httpurl: 'http://kogito-data-index-infinispan-${project_name}.${apps_cluster_host}' - kogito.dataindex.httpurl.with.graphql: 'http://kogito-data-index-infinispan-${project_name}.${apps_cluster_host}/graphql' - kogito.dataindex.wsurl: 'ws://kogito-data-index-infinispan-${project_name}.${apps_cluster_host}' - kogito.managementconsole.props: '-Dkogito.svg.folder.path=/home/kogito/data/svg -Dkogito.consoles.keycloak.config.url=http://keycloak-${project_name}.${apps_cluster_host}/auth/ -Dkogito.consoles.keycloak.config.health-check-url=http://keycloak-${project_name}.${apps_cluster_host}/auth/realms/kogito/.well-known/openid-configuration' - kogito.taskconsole.props: '-Dkogito.test.user-system.enabled=true -Dkogito.consoles.keycloak.config.url=http://keycloak-${project_name}.${apps_cluster_host}/auth/ -Dkogito.consoles.keycloak.config.health-check-url=http://keycloak-${project_name}.${apps_cluster_host}/auth/realms/kogito/.well-known/openid-configuration' - kogito.jobsservice.props: '-Dquarkus-profile=events-support -D%events-support.kafka.bootstrap.servers=kafka.${project_name}.svc.cluster.local:9092 -D%events-support.mp.messaging.outgoing.kogito-job-service-job-status-events.bootstrap.servers=kafka.${project_name}.svc.cluster.local:9092' \ No newline at end of file + general.namespace: "${project_name}" + general.appsclusterhost: "${apps_cluster_host}" + keycloak.admin.user: 'admin' + keycloak.admin.password: 'admin' + keycloak.realm.json: '/tmp/kogito-realm.json' + keycloak.db.vendor: 'h2' + quarkus.infinispan.client.username: 'developer' + quarkus.infinispan.client.hosts: 'infinispan.${project_name}.svc.cluster.local:11222' + kafka.bootstrap.servers: 'kafka.${project_name}.svc.cluster.local:9092' + kogito.dataindex.props: '-Dkogito.protobuf.folder=/home/kogito/data/protobufs' + kogito.dataindex.httpurl: 'http://kogito-data-index-infinispan-${project_name}.${apps_cluster_host}' + kogito.dataindex.httpurl.with.graphql: 'http://kogito-data-index-infinispan-${project_name}.${apps_cluster_host}/graphql' + kogito.dataindex.wsurl: 'ws://kogito-data-index-infinispan-${project_name}.${apps_cluster_host}' + kogito.managementconsole.props: '-Dkogito.svg.folder.path=/home/kogito/data/svg -Dkogito.consoles.keycloak.config.url=http://keycloak-${project_name}.${apps_cluster_host}/auth/ -Dkogito.consoles.keycloak.config.health-check-url=http://keycloak-${project_name}.${apps_cluster_host}/auth/realms/kogito/.well-known/openid-configuration' + kogito.taskconsole.props: '-Dkogito.test.user-system.enabled=true -Dkogito.consoles.keycloak.config.url=http://keycloak-${project_name}.${apps_cluster_host}/auth/ -Dkogito.consoles.keycloak.config.health-check-url=http://keycloak-${project_name}.${apps_cluster_host}/auth/realms/kogito/.well-known/openid-configuration' + kogito.jobsservice.props: '-Dquarkus-profile=events-support -D%events-support.kafka.bootstrap.servers=kafka.${project_name}.svc.cluster.local:9092 -D%events-support.mp.messaging.outgoing.kogito-job-service-job-status-events.bootstrap.servers=kafka.${project_name}.svc.cluster.local:9092' \ No newline at end of file diff --git a/kogito-quarkus-examples/ocp-tryout/testapp/example/protobuf/travels.proto b/kogito-quarkus-examples/ocp-tryout/testapp/example/protobuf/travels.proto index 115f72dc46..b7b35afc6e 100644 --- a/kogito-quarkus-examples/ocp-tryout/testapp/example/protobuf/travels.proto +++ b/kogito-quarkus-examples/ocp-tryout/testapp/example/protobuf/travels.proto @@ -1,118 +1,118 @@ -syntax = "proto2"; -package org.acme.travels.travels; +syntax = "proto2"; +package org.acme.travels.travels; import "kogito-index.proto"; import "kogito-types.proto"; option kogito_model = "Travels"; option kogito_id = "travels"; -/* @Indexed */ -message Address { - option java_package = "org.acme.travels"; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string city = 1; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string country = 2; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string street = 3; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string zipCode = 4; +/* @Indexed */ +message Address { + option java_package = "org.acme.travels"; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string city = 1; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string country = 2; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string street = 3; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string zipCode = 4; } -/* @Indexed */ -message Flight { - option java_package = "org.acme.travels"; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional kogito.Date arrival = 1; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional kogito.Date departure = 2; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string flightNumber = 3; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string gate = 4; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string seat = 5; +/* @Indexed */ +message Flight { + option java_package = "org.acme.travels"; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional kogito.Date arrival = 1; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional kogito.Date departure = 2; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string flightNumber = 3; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string gate = 4; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string seat = 5; } -/* @Indexed */ -message Hotel { - option java_package = "org.acme.travels"; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional Address address = 1; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string bookingNumber = 2; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string name = 3; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string phone = 4; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string room = 5; +/* @Indexed */ +message Hotel { + option java_package = "org.acme.travels"; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional Address address = 1; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string bookingNumber = 2; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string name = 3; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string phone = 4; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string room = 5; } -/* @Indexed */ -message Traveller { - option java_package = "org.acme.travels"; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional Address address = 1; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string email = 2; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string firstName = 3; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string lastName = 4; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string nationality = 5; +/* @Indexed */ +message Traveller { + option java_package = "org.acme.travels"; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional Address address = 1; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string email = 2; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string firstName = 3; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string lastName = 4; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string nationality = 5; } -/* @Indexed */ -message Travels { - option java_package = "org.acme.travels"; - /* @Field(index = Index.NO, store = Store.YES) @SortableField - @VariableInfo(tags="output") */ - optional Flight flight = 1; - /* @Field(index = Index.NO, store = Store.YES) @SortableField - @VariableInfo(tags="output") */ - optional Hotel hotel = 2; - /* @Field(index = Index.YES, store = Store.YES) @SortableField */ - optional string id = 3; - /* @Field(index = Index.NO, store = Store.YES) @SortableField - @VariableInfo(tags="") */ - optional Traveller traveller = 4; - /* @Field(index = Index.NO, store = Store.YES) @SortableField - @VariableInfo(tags="") */ - optional Trip trip = 5; - /* @Field(index = Index.NO, store = Store.YES) @SortableField - @VariableInfo(tags="output,tracked") */ - optional VisaApplication visaApplication = 6; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional org.kie.kogito.index.model.KogitoMetadata metadata = 7; +/* @Indexed */ +message Travels { + option java_package = "org.acme.travels"; + /* @Field(index = Index.NO, store = Store.YES) @SortableField + @VariableInfo(tags="output") */ + optional Flight flight = 1; + /* @Field(index = Index.NO, store = Store.YES) @SortableField + @VariableInfo(tags="output") */ + optional Hotel hotel = 2; + /* @Field(index = Index.YES, store = Store.YES) @SortableField */ + optional string id = 3; + /* @Field(index = Index.NO, store = Store.YES) @SortableField + @VariableInfo(tags="") */ + optional Traveller traveller = 4; + /* @Field(index = Index.NO, store = Store.YES) @SortableField + @VariableInfo(tags="") */ + optional Trip trip = 5; + /* @Field(index = Index.NO, store = Store.YES) @SortableField + @VariableInfo(tags="output,tracked") */ + optional VisaApplication visaApplication = 6; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional org.kie.kogito.index.model.KogitoMetadata metadata = 7; } -/* @Indexed */ -message Trip { - option java_package = "org.acme.travels"; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional kogito.Date begin = 1; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string city = 2; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string country = 3; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional kogito.Date end = 4; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional bool visaRequired = 5; +/* @Indexed */ +message Trip { + option java_package = "org.acme.travels"; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional kogito.Date begin = 1; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string city = 2; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string country = 3; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional kogito.Date end = 4; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional bool visaRequired = 5; } -/* @Indexed */ -message VisaApplication { - option java_package = "org.acme.travels"; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional bool approved = 1; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string city = 2; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string country = 3; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional int32 duration = 4; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string firstName = 5; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string lastName = 6; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string nationality = 7; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string passportNumber = 8; +/* @Indexed */ +message VisaApplication { + option java_package = "org.acme.travels"; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional bool approved = 1; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string city = 2; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string country = 3; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional int32 duration = 4; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string firstName = 5; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string lastName = 6; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string nationality = 7; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string passportNumber = 8; } diff --git a/kogito-quarkus-examples/ocp-tryout/testapp/example/protobuf/visaApplications.proto b/kogito-quarkus-examples/ocp-tryout/testapp/example/protobuf/visaApplications.proto index 32f92e35d4..f646bbab9a 100644 --- a/kogito-quarkus-examples/ocp-tryout/testapp/example/protobuf/visaApplications.proto +++ b/kogito-quarkus-examples/ocp-tryout/testapp/example/protobuf/visaApplications.proto @@ -1,38 +1,38 @@ -syntax = "proto2"; -package org.acme.travels.visaApplications; +syntax = "proto2"; +package org.acme.travels.visaApplications; import "kogito-index.proto"; import "kogito-types.proto"; option kogito_model = "VisaApplications"; option kogito_id = "visaApplications"; -/* @Indexed */ -message VisaApplication { - option java_package = "org.acme.travels"; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional bool approved = 1; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string city = 2; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string country = 3; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional int32 duration = 4; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string firstName = 5; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string lastName = 6; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string nationality = 7; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional string passportNumber = 8; +/* @Indexed */ +message VisaApplication { + option java_package = "org.acme.travels"; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional bool approved = 1; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string city = 2; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string country = 3; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional int32 duration = 4; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string firstName = 5; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string lastName = 6; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string nationality = 7; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional string passportNumber = 8; } -/* @Indexed */ -message VisaApplications { - option java_package = "org.acme.travels"; - /* @Field(index = Index.YES, store = Store.YES) @SortableField */ - optional string id = 1; - /* @Field(index = Index.NO, store = Store.YES) @SortableField - @VariableInfo(tags="") */ - optional VisaApplication visaApplication = 2; - /* @Field(index = Index.NO, store = Store.YES) @SortableField */ - optional org.kie.kogito.index.model.KogitoMetadata metadata = 3; +/* @Indexed */ +message VisaApplications { + option java_package = "org.acme.travels"; + /* @Field(index = Index.YES, store = Store.YES) @SortableField */ + optional string id = 1; + /* @Field(index = Index.NO, store = Store.YES) @SortableField + @VariableInfo(tags="") */ + optional VisaApplication visaApplication = 2; + /* @Field(index = Index.NO, store = Store.YES) @SortableField */ + optional org.kie.kogito.index.model.KogitoMetadata metadata = 3; } diff --git a/kogito-quarkus-examples/ocp-tryout/testapp/example/svg/flightBooking.svg b/kogito-quarkus-examples/ocp-tryout/testapp/example/svg/flightBooking.svg index adb9ad15e8..d13e04aa76 100644 --- a/kogito-quarkus-examples/ocp-tryout/testapp/example/svg/flightBooking.svg +++ b/kogito-quarkus-examples/ocp-tryout/testapp/example/svg/flightBooking.svg @@ -1 +1,139 @@ -Flight BookedBook flight StartProcess \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Flight Booked + + + + + + + + + + + + + + + + + + + + + + + + + + + + Book + + flight + + + + + + + + + + + + + + + + + + + + + StartProcess + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kogito-quarkus-examples/ocp-tryout/testapp/example/svg/hotelBooking.svg b/kogito-quarkus-examples/ocp-tryout/testapp/example/svg/hotelBooking.svg index 358a115213..b9d64892c0 100644 --- a/kogito-quarkus-examples/ocp-tryout/testapp/example/svg/hotelBooking.svg +++ b/kogito-quarkus-examples/ocp-tryout/testapp/example/svg/hotelBooking.svg @@ -1 +1,139 @@ -Hotel BookedBook hotel StartProcess \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hotel Booked + + + + + + + + + + + + + + + + + + + + + + + + + + + + Book + + hotel + + + + + + + + + + + + + + + + + + + + + StartProcess + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kogito-quarkus-examples/ocp-tryout/testapp/example/svg/travels.svg b/kogito-quarkus-examples/ocp-tryout/testapp/example/svg/travels.svg index a9960d7212..e2320da059 100644 --- a/kogito-quarkus-examples/ocp-tryout/testapp/example/svg/travels.svg +++ b/kogito-quarkus-examples/ocp-tryout/testapp/example/svg/travels.svg @@ -1 +1,961 @@ -Book HotelStartProcessis visa requiredwait for visa decisionTravel ConfirmedVisa RejectedBook Flight Email rejection notice Confirm travel Apply for visa Visa checkvisasapprovedvisasrejectedBookSend visa applicationno need for visa visa required \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Book Hotel + + + + + + + + + + + + + + + + + + + + + StartProcess + + + + + + + + + + + + + + + + + + + + + + + + + + + + is visa required + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + wait for visa decision + + + + + + + + + + + + + + + + + + + + + Travel Confirmed + + + + + + + + + + + + + + + + + + + + + + + + + + + + Visa Rejected + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Book Flight + + + + + + + + + + + + + + + + + + + + + + + + + + + + Email + + rejection + + notice + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Confirm + + travel + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Apply + + for visa + + + + + + + + + + + + + + + + + + + + + + Visa + + check + + + + + + + + + + + + + + + + + + + + + + + + + + + + visasapproved + + + + + + + + + + + + + + + + + + + + + + + + + + + + visasrejected + + + + + + + + + + + + + + + + + + + + + + + + + + + + Book + + + + + + + + + + + + + + + + + + + + + + + + + + + + Send visa application + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + no need for visa + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + visa + + required + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kogito-quarkus-examples/ocp-tryout/testapp/example/svg/visaApplications.svg b/kogito-quarkus-examples/ocp-tryout/testapp/example/svg/visaApplications.svg index dd89ded115..57772fce42 100644 --- a/kogito-quarkus-examples/ocp-tryout/testapp/example/svg/visaApplications.svg +++ b/kogito-quarkus-examples/ocp-tryout/testapp/example/svg/visaApplications.svg @@ -1 +1,422 @@ -Visa rejectedManually approved?Manual visa approval Visa approvedVisa approved?Automatic visa approvals StartProcessNo Yes No Yes \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Visa rejected + + + + + + + + + + + + + + + + + + + + + + + + + + + + Manually approved? + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Manual visa + + approval + + + + + + + + + + + + + + + + + + + + + + + + + + + + Visa approved + + + + + + + + + + + + + + + + + + + + + + + + + + + + Visa approved? + + + + + + + + + + + + + + + + + + + + + + Automatic visa + + approvals + + + + + + + + + + + + + + + + + + + + + + + + + + + + StartProcess + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No + + + + + + + + + + + + + + + + + + + + + + + Yes + + + + + + + + + + + + + + + + + + + + + + + No + + + + + + + + + + + + + Yes + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kogito-quarkus-examples/ocp-tryout/tryout-kogito-app/templates/tests/test-connection.yaml b/kogito-quarkus-examples/ocp-tryout/tryout-kogito-app/templates/tests/test-connection.yaml index 607251bef9..1692fa1911 100644 --- a/kogito-quarkus-examples/ocp-tryout/tryout-kogito-app/templates/tests/test-connection.yaml +++ b/kogito-quarkus-examples/ocp-tryout/tryout-kogito-app/templates/tests/test-connection.yaml @@ -10,6 +10,6 @@ spec: containers: - name: wget image: busybox - command: ['wget'] - args: ['{{ include "tryout-kogito-app.fullname" . }}:{{ .Values.service.port }}'] + command: [ 'wget' ] + args: [ '{{ include "tryout-kogito-app.fullname" . }}:{{ .Values.service.port }}' ] restartPolicy: Never diff --git a/kogito-quarkus-examples/ocp-tryout/tryout-kogito-app/values.yaml b/kogito-quarkus-examples/ocp-tryout/tryout-kogito-app/values.yaml index 68a12e585c..3d6fcf8c34 100644 --- a/kogito-quarkus-examples/ocp-tryout/tryout-kogito-app/values.yaml +++ b/kogito-quarkus-examples/ocp-tryout/tryout-kogito-app/values.yaml @@ -10,7 +10,7 @@ image: # Overrides the image tag whose default is the chart appVersion. tag: "" -imagePullSecrets: [] +imagePullSecrets: [ ] nameOverride: "" fullnameOverride: "" @@ -18,23 +18,23 @@ serviceAccount: # Specifies whether a service account should be created create: true # Annotations to add to the service account - annotations: {} + annotations: { } # The name of the service account to use. # If not set and create is true, a name is generated using the fullname template name: "" -podAnnotations: {} +podAnnotations: { } -podSecurityContext: {} - # fsGroup: 2000 +podSecurityContext: { } +# fsGroup: 2000 -securityContext: {} +securityContext: { } # capabilities: # drop: # - ALL # readOnlyRootFilesystem: true # runAsNonRoot: true - # runAsUser: 1000 +# runAsUser: 1000 service: type: ClusterIP @@ -44,15 +44,15 @@ service: ingress: enabled: false className: "" - annotations: {} + annotations: { } # kubernetes.io/ingress.class: nginx - # kubernetes.io/tls-acme: "true" + # kubernetes.io/tls-acme: "true" hosts: - host: chart-example.local paths: - path: / pathType: ImplementationSpecific - tls: [] + tls: [ ] # - secretName: chart-example-tls # hosts: # - chart-example.local @@ -76,15 +76,15 @@ autoscaling: targetCPUUtilizationPercentage: 80 # targetMemoryUtilizationPercentage: 80 -nodeSelector: {} +nodeSelector: { } -tolerations: [] +tolerations: [ ] -affinity: {} +affinity: { } route: enabled: true - annotations: {} + annotations: { } applicationPort: 8080 diff --git a/kogito-quarkus-examples/onboarding-example/hr/README.md b/kogito-quarkus-examples/onboarding-example/hr/README.md index 0717963e15..ed8904f575 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/README.md +++ b/kogito-quarkus-examples/onboarding-example/hr/README.md @@ -137,7 +137,8 @@ $ mvn clean install -Pminikube # For Kubernetes or Knative just change the given profile to the respective platform (lower case). ``` -> NOTE: If you're targeting a Kubernetes or OpenShift cluster, consider the resources created on `target/kubernetes` directory. +> NOTE: If you're targeting a Kubernetes or OpenShift cluster, consider the resources created on `target/kubernetes` +> directory. Please see the official [Quarkus Guide](https://quarkus.io/guides/deploying-to-kubernetes) for more information. diff --git a/kogito-quarkus-examples/onboarding-example/hr/pom.xml b/kogito-quarkus-examples/onboarding-example/hr/pom.xml index 2d54e38960..13bd575a4e 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/pom.xml +++ b/kogito-quarkus-examples/onboarding-example/hr/pom.xml @@ -1,15 +1,56 @@ - 4.0.0 - - org.acme.examples - onboarding-example - 2.0.0-SNAPSHOT - + hr + org.acme.examples + 2.0.0-SNAPSHOT Kogito Example :: Onboarding Example :: HR with Drools + HR related rules for onboarding + + + 2.16.10.Final + quarkus-bom + io.quarkus + 2.16.10.Final + org.kie.kogito + kogito-bom + 2.0.0-SNAPSHOT + 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + + + + + + ${quarkus.platform.group-id} + ${quarkus.platform.artifact-id} + ${quarkus.platform.version} + pom + import + + + ${kogito.bom.group-id} + ${kogito.bom.artifact-id} + ${kogito.bom.version} + pom + import + + + + org.kie.kogito @@ -59,6 +100,7 @@ quarkus-smallrye-health + ${project.artifactId} @@ -77,9 +119,46 @@ false + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + default + + true + + + + native + + + native + + + minikube @@ -101,5 +180,23 @@ knative + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/Address.java b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/Address.java index 4bb3f6a879..db39c78887 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/Address.java +++ b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/Address.java @@ -64,7 +64,7 @@ public void setCountry(java.lang.String country) { } public Address(java.lang.String street, java.lang.String city, - java.lang.String zipCode, java.lang.String country) { + java.lang.String zipCode, java.lang.String country) { this.street = street; this.city = city; this.zipCode = zipCode; diff --git a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/Employee.java b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/Employee.java index deebc384d0..71a9408ae9 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/Employee.java +++ b/kogito-quarkus-examples/onboarding-example/hr/src/main/java/org/acme/examples/hr/Employee.java @@ -90,8 +90,8 @@ public void setDepartment(java.lang.String department) { } public Employee(java.lang.String firstName, java.lang.String lastName, - java.lang.String personalId, java.util.Date birthDate, - Address address) { + java.lang.String personalId, java.util.Date birthDate, + Address address) { this.firstName = firstName; this.lastName = lastName; this.personalId = personalId; diff --git a/kogito-quarkus-examples/onboarding-example/hr/src/main/resources/application.properties b/kogito-quarkus-examples/onboarding-example/hr/src/main/resources/application.properties index 29a61e6272..6d934c4c45 100644 --- a/kogito-quarkus-examples/onboarding-example/hr/src/main/resources/application.properties +++ b/kogito-quarkus-examples/onboarding-example/hr/src/main/resources/application.properties @@ -3,7 +3,6 @@ # Packaging # quarkus.package.type=fast-jar quarkus.http.port=8081 - # Kubernetes related properties %minikube.quarkus.kubernetes.deployment-target=minikube %kubernetes.quarkus.kubernetes.deployment-target=kubernetes @@ -13,7 +12,6 @@ quarkus.container-image.tag=latest quarkus.kubernetes.labels.department/first=process quarkus.kubernetes.labels.id=process quarkus.kubernetes.labels.employee-validation/first=process - %knative.quarkus.kubernetes.deployment-target=kubernetes %knative.quarkus.knative.labels.department/first=process %knative.quarkus.knative.labels.id=process diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/README.md b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/README.md index 6d91a79e2b..aefbee3c55 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/README.md +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/README.md @@ -106,7 +106,8 @@ $ mvn clean install -Pminikube # For Kubernetes or Knative just change the given profile to the respective platform (lower case). ``` -> NOTE: If you're targeting a Kubernetes or OpenShift cluster, consider the resources created on `target/kubernetes` directory. +> NOTE: If you're targeting a Kubernetes or OpenShift cluster, consider the resources created on `target/kubernetes` +> directory. Please see the official [Quarkus Guide](https://quarkus.io/guides/deploying-to-kubernetes) for more information. diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/pom.xml b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/pom.xml index 4801153dce..d295fabe5f 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/pom.xml +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/pom.xml @@ -1,16 +1,56 @@ - 4.0.0 - - org.acme.examples - onboarding-example - 2.0.0-SNAPSHOT - + onboarding-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Onboarding Example :: Onboarding with Business Process Quarkus Onboarding function and service orchestration - + + + 2.16.10.Final + quarkus-bom + io.quarkus + 2.16.10.Final + org.kie.kogito + kogito-bom + 2.0.0-SNAPSHOT + 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + + + + + + ${quarkus.platform.group-id} + ${quarkus.platform.artifact-id} + ${quarkus.platform.version} + pom + import + + + ${kogito.bom.group-id} + ${kogito.bom.artifact-id} + ${kogito.bom.version} + pom + import + + + + org.kie.kogito @@ -77,6 +117,7 @@ quarkus-smallrye-health + ${project.artifactId} @@ -96,9 +137,46 @@ -Dlocal=true + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + default + + true + + + + native + + + native + + + persistence @@ -137,5 +215,22 @@ knative + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Address.java b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Address.java index b834e1b17c..dd4ba442ca 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Address.java +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Address.java @@ -64,7 +64,7 @@ public void setCountry(java.lang.String country) { } public Address(java.lang.String street, java.lang.String city, - java.lang.String zipCode, java.lang.String country) { + java.lang.String zipCode, java.lang.String country) { this.street = street; this.city = city; this.zipCode = zipCode; diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Employee.java b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Employee.java index 44e6c2b905..de960d4514 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Employee.java +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Employee.java @@ -74,8 +74,8 @@ public void setAddress(Address address) { } public Employee(java.lang.String firstName, java.lang.String lastName, - java.lang.String personalId, java.util.Date birthDate, - Address address) { + java.lang.String personalId, java.util.Date birthDate, + Address address) { this.firstName = firstName; this.lastName = lastName; this.personalId = personalId; diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Payroll.java b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Payroll.java index 60655f3fa8..ebbb4b58e8 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Payroll.java +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/java/org/acme/examples/onboarding/Payroll.java @@ -59,7 +59,7 @@ public void setPaymentDate(java.util.Date paymentDate) { } public Payroll(java.lang.Integer vacationDays, java.lang.Double taxRate, - java.util.Date paymentDate) { + java.util.Date paymentDate) { this.vacationDays = vacationDays; this.taxRate = taxRate; this.paymentDate = paymentDate; diff --git a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/application.properties b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/application.properties index a33273764b..f18ba6fa2d 100644 --- a/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/application.properties +++ b/kogito-quarkus-examples/onboarding-example/onboarding-quarkus/src/main/resources/application.properties @@ -5,7 +5,6 @@ quarkus.http.port=8080 quarkus.infinispan-client.hosts=localhost:11222 quarkus.infinispan-client.use-auth=false - # Kubernetes related properties %minikube.quarkus.kubernetes.deployment-target=minikube %kubernetes.quarkus.kubernetes.deployment-target=kubernetes @@ -13,6 +12,5 @@ quarkus.container-image.group=kogito quarkus.container-image.name=onboarding-service quarkus.container-image.tag=latest quarkus.kubernetes.labels.onboarding=process - %knative.quarkus.kubernetes.deployment-target=kubernetes %knative.quarkus.knative.labels.onboarding=process \ No newline at end of file diff --git a/kogito-quarkus-examples/onboarding-example/payroll/README.md b/kogito-quarkus-examples/onboarding-example/payroll/README.md index cbacbce33f..530cf94099 100644 --- a/kogito-quarkus-examples/onboarding-example/payroll/README.md +++ b/kogito-quarkus-examples/onboarding-example/payroll/README.md @@ -97,7 +97,8 @@ $ mvn clean install -Pminikube # For Kubernetes or Knative just change the given profile to the respective platform (lower case). ``` -> NOTE: If you're targeting a Kubernetes or OpenShift cluster, consider the resources created on `target/kubernetes` directory. +> NOTE: If you're targeting a Kubernetes or OpenShift cluster, consider the resources created on `target/kubernetes` +> directory. Please see the official [Quarkus Guide](https://quarkus.io/guides/deploying-to-kubernetes) for more information. diff --git a/kogito-quarkus-examples/onboarding-example/payroll/pom.xml b/kogito-quarkus-examples/onboarding-example/payroll/pom.xml index ac1383c13b..85ab0a9f83 100644 --- a/kogito-quarkus-examples/onboarding-example/payroll/pom.xml +++ b/kogito-quarkus-examples/onboarding-example/payroll/pom.xml @@ -1,21 +1,37 @@ - 4.0.0 - - org.acme.examples - onboarding-example - 2.0.0-SNAPSHOT - + payroll + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Onboarding Example :: Payroll with DMN Payroll related decisions for onboarding + 2.16.10.Final quarkus-bom io.quarkus 2.16.10.Final + org.kie.kogito + kogito-bom + 2.0.0-SNAPSHOT + 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -25,6 +41,13 @@ pom import + + ${kogito.bom.group-id} + ${kogito.bom.artifact-id} + ${kogito.bom.version} + pom + import + @@ -81,6 +104,7 @@ quarkus-smallrye-health
+ ${project.artifactId} @@ -99,9 +123,47 @@ false + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + default + + true + + + + native + + + native + + + minikube @@ -123,5 +185,22 @@ knative + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + +
diff --git a/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Address.java b/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Address.java index dff65fe766..e591cbc3e2 100644 --- a/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Address.java +++ b/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Address.java @@ -64,7 +64,7 @@ public void setCountry(java.lang.String country) { } public Address(java.lang.String street, java.lang.String city, - java.lang.String zipCode, java.lang.String country) { + java.lang.String zipCode, java.lang.String country) { this.street = street; this.city = city; this.zipCode = zipCode; diff --git a/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Employee.java b/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Employee.java index 86f887ab64..fdb1d2995b 100644 --- a/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Employee.java +++ b/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Employee.java @@ -74,8 +74,8 @@ public void setAddress(Address address) { } public Employee(java.lang.String firstName, java.lang.String lastName, - java.lang.String personalId, java.util.Date birthDate, - Address address) { + java.lang.String personalId, java.util.Date birthDate, + Address address) { this.firstName = firstName; this.lastName = lastName; this.personalId = personalId; diff --git a/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Payroll.java b/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Payroll.java index 32ebb3fae7..f84802909b 100644 --- a/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Payroll.java +++ b/kogito-quarkus-examples/onboarding-example/payroll/src/main/java/org/acme/examples/payroll/Payroll.java @@ -65,7 +65,7 @@ public void setPaymentDate(String paymentDate) { } public Payroll(java.math.BigDecimal vacationDays, java.math.BigDecimal taxRate, - String paymentDate) { + String paymentDate) { this.vacationDays = vacationDays; this.taxRate = taxRate; this.paymentDate = paymentDate; diff --git a/kogito-quarkus-examples/onboarding-example/payroll/src/main/resources/application.properties b/kogito-quarkus-examples/onboarding-example/payroll/src/main/resources/application.properties index ccf4fb79f4..084a5e7d8a 100644 --- a/kogito-quarkus-examples/onboarding-example/payroll/src/main/resources/application.properties +++ b/kogito-quarkus-examples/onboarding-example/payroll/src/main/resources/application.properties @@ -3,7 +3,6 @@ # Packaging # quarkus.package.type=fast-jar quarkus.http.port=8082 - # Kubernetes related properties %minikube.quarkus.kubernetes.deployment-target=minikube %kubernetes.quarkus.kubernetes.deployment-target=kubernetes @@ -14,7 +13,6 @@ quarkus.container-image.tag=latest quarkus.kubernetes.labels.taxes/rate=process quarkus.kubernetes.labels.vacations/days=process quarkus.kubernetes.labels.payments/date=process - %knative.quarkus.kubernetes.deployment-target=kubernetes %knative.quarkus.knative.labels.taxes/rate=process %knative.quarkus.knative.labels.vacations/days=process diff --git a/kogito-quarkus-examples/onboarding-example/pom.xml b/kogito-quarkus-examples/onboarding-example/pom.xml index f7b83ded9c..71c19a75a9 100644 --- a/kogito-quarkus-examples/onboarding-example/pom.xml +++ b/kogito-quarkus-examples/onboarding-example/pom.xml @@ -1,74 +1,21 @@ - 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + onboarding-example + org.acme.examples + 2.0.0-SNAPSHOT pom + Kogito Example :: Onboarding Example onboarding example service (onboarding, hr, payroll) + hr payroll onboarding-quarkus - - 2.16.10.Final - quarkus-bom - io.quarkus - 2.16.10.Final - org.kie.kogito - kogito-bom - 2.0.0-SNAPSHOT - 2.0.0-SNAPSHOT - - - - - ${quarkus.platform.group-id} - ${quarkus.platform.artifact-id} - ${quarkus.platform.version} - pom - import - - - ${kogito.bom.group-id} - ${kogito.bom.artifact-id} - ${kogito.bom.version} - pom - import - - - - - - - - ${quarkus.platform.group-id} - quarkus-maven-plugin - ${quarkus-plugin.version} - - - - - - - default - - true - - - - native - - - native - - - - + diff --git a/kogito-quarkus-examples/pmml-event-driven-quarkus/pom.xml b/kogito-quarkus-examples/pmml-event-driven-quarkus/pom.xml index 0be0a6e420..2d2efc77c6 100644 --- a/kogito-quarkus-examples/pmml-event-driven-quarkus/pom.xml +++ b/kogito-quarkus-examples/pmml-event-driven-quarkus/pom.xml @@ -1,14 +1,15 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + pmml-event-driven-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: PMML Event-Driven - Quarkus + 2.16.10.Final quarkus-bom @@ -18,6 +19,17 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + 1.5.0 + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 @@ -87,6 +99,7 @@ org.skyscreamer jsonassert + ${version.org.skyscreamer} test @@ -111,10 +124,52 @@ maven-failsafe-plugin - ${build.directory}/test-run + ${project.build.directory}/test-run + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/pmml-incubation-api-quarkus/pom.xml b/kogito-quarkus-examples/pmml-incubation-api-quarkus/pom.xml index 5b89ec39dc..1a94cf09ec 100644 --- a/kogito-quarkus-examples/pmml-incubation-api-quarkus/pom.xml +++ b/kogito-quarkus-examples/pmml-incubation-api-quarkus/pom.xml @@ -1,14 +1,15 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + pmml-incubation-api-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: PMML Incubation API With Quarkus + 2.16.10.Final quarkus-bom @@ -18,7 +19,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -37,6 +49,7 @@ + io.quarkus @@ -95,6 +108,48 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/pmml-quarkus-example/README.md b/kogito-quarkus-examples/pmml-quarkus-example/README.md index a458891eab..7b1f445edb 100644 --- a/kogito-quarkus-examples/pmml-quarkus-example/README.md +++ b/kogito-quarkus-examples/pmml-quarkus-example/README.md @@ -11,15 +11,19 @@ Demonstrates PMML on Kogito capabilities, including REST interface code generati ### Prerequisites You will need: - - Java 11+ installed - - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed - + +- Java 11+ installed +- Environment variable JAVA_HOME set accordingly +- Maven 3.8.6+ installed + When using native image compilation, you will also need: - - [GraalVM 19.3.1](https://github.com/oracle/graal/releases/tag/vm-19.3.1) installed - - Environment variable GRAALVM_HOME set accordingly - - Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be installed too. You also need 'native-image' installed in GraalVM (using 'gu install native-image'). Please refer to [GraalVM installation documentation](https://www.graalvm.org/docs/reference-manual/aot-compilation/#prerequisites) for more details. - + +- [GraalVM 19.3.1](https://github.com/oracle/graal/releases/tag/vm-19.3.1) installed +- Environment variable GRAALVM_HOME set accordingly +- Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be + installed too. You also need 'native-image' installed in GraalVM (using 'gu install native-image'). Please refer + to [GraalVM installation documentation](https://www.graalvm.org/docs/reference-manual/aot-compilation/#prerequisites) + for more details. ### Compile and Run in Local Dev Mode @@ -42,6 +46,7 @@ java -jar target\quarkus-app\quarkus-run.jar ``` ### Package and Run using Local Native Image + Note that this requires GRAALVM_HOME to point to a valid GraalVM installation ``` @@ -57,15 +62,20 @@ To run the generated native executable, generated in `target/`, execute Note: This does not yet work on Windows, GraalVM and Quarkus should be rolling out support for Windows soon. ## 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/openapi?format=json) - 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). +You can take a look at the [OpenAPI definition](http://localhost:8080/openapi?format=json) - 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. -When running in either Quarkus Development or Native mode, we also leverage the [Quarkus OpenAPI extension](https://quarkus.io/guides/openapi-swaggerui#use-swagger-ui-for-development) that exposes [Swagger UI](http://localhost:8080/swagger-ui/) that you can use to look at available REST endpoints and send test requests. - - +When running in either Quarkus Development or Native mode, we also leverage +the [Quarkus OpenAPI extension](https://quarkus.io/guides/openapi-swaggerui#use-swagger-ui-for-development) that +exposes [Swagger UI](http://localhost:8080/swagger-ui/) that you can use to look at available REST endpoints and send +test requests. ## Example Usage @@ -88,6 +98,7 @@ Curl command (using the JSON object above): ```sh curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"fld1":3.0, "fld2":2.0, "fld3":"y"}' http://localhost:8080/Testregression/LinReg ``` + or on Windows: ```sh @@ -118,6 +129,7 @@ Curl command (using the JSON object above): ```sh curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"temperature":30.0, "humidity":10.0}' http://localhost:8080/Testtree/SampleMine ``` + or on Windows: ```sh @@ -148,6 +160,7 @@ Curl command (using the JSON object above): ```sh curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"input1":5.0, "input2":-10.0}' http://localhost:8080/Testscorecard/SimpleScorecard ``` + or on Windows: ```sh @@ -182,6 +195,7 @@ Curl command (using the JSON object above): ```sh curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"residenceState":"AP", "validLicense":true, "occupation":"ASTRONAUT", "categoricalY":"classA", "categoricalX":"red", "variable":6.6, "age":25.0}' http://localhost:8080/Testminingmodel/PredicatesMining ``` + or on Windows: ```sh @@ -198,4 +212,5 @@ Example response: ## Deploying with Kogito Operator -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). +In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with +the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/pmml-quarkus-example/pom.xml b/kogito-quarkus-examples/pmml-quarkus-example/pom.xml index 924e7fd985..54b7aa44ef 100644 --- a/kogito-quarkus-examples/pmml-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/pmml-quarkus-example/pom.xml @@ -1,14 +1,15 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + pmml-quarkus-example + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: PMML - Quarkus + 2.16.10.Final quarkus-bom @@ -18,7 +19,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -37,6 +49,7 @@ + org.kie.kogito @@ -104,6 +117,49 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + ${project.build.directory}/${project.build.finalName}-runner + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/pmml-quarkus-example/src/main/resources/application.properties b/kogito-quarkus-examples/pmml-quarkus-example/src/main/resources/application.properties index 80bf3f8b49..98e06779a2 100644 --- a/kogito-quarkus-examples/pmml-quarkus-example/src/main/resources/application.properties +++ b/kogito-quarkus-examples/pmml-quarkus-example/src/main/resources/application.properties @@ -1,6 +1,4 @@ # Packaging # quarkus.package.type=fast-jar - quarkus.swagger-ui.always-include=true - quarkus.log.level=INFO diff --git a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/CommonTestUtils.java b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/CommonTestUtils.java index 60ba888800..318c728419 100644 --- a/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/CommonTestUtils.java +++ b/kogito-quarkus-examples/pmml-quarkus-example/src/test/java/org/acme/pmml/quarkus/example/CommonTestUtils.java @@ -31,9 +31,9 @@ public class CommonTestUtils { public static void testResult(final String inputData, - final String path, - final String targetField, - final Object expectedResult) { + final String path, + final String targetField, + final Object expectedResult) { given() .contentType(ContentType.JSON) .body(inputData) @@ -45,7 +45,7 @@ public static void testResult(final String inputData, } public static void testResultWrongData(final String inputData, - final String path) { + final String path) { given() .contentType(ContentType.JSON) .body(inputData) @@ -57,9 +57,9 @@ public static void testResultWrongData(final String inputData, } public static void testDescriptive(final String inputData, - final String basePath, - final String targetField, - final Map expectedResultMap) { + final String basePath, + final String targetField, + final Map expectedResultMap) { String path = basePath + "/descriptive"; Object resultVariables = given() .contentType(ContentType.JSON) @@ -87,7 +87,7 @@ public static void testDescriptive(final String inputData, } public static void testDescriptiveWrongData(final String inputData, - final String basePath) { + final String basePath) { String path = basePath + "/descriptive"; given() .contentType(ContentType.JSON) diff --git a/kogito-quarkus-examples/pom.xml b/kogito-quarkus-examples/pom.xml index e448ced4ce..4ee194c4e1 100644 --- a/kogito-quarkus-examples/pom.xml +++ b/kogito-quarkus-examples/pom.xml @@ -4,13 +4,9 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 - - org.acme.examples - kogito-examples - 2.0.0-SNAPSHOT - - kogito-quarkus-examples + org.acme.examples + 2.0.0-SNAPSHOT pom Kogito Example :: Quarkus @@ -19,6 +15,10 @@ 0 fast-jar + 3.1.2 + ${version.surefire.plugin} + UTF-8 + UTF-8 @@ -171,50 +171,50 @@ - - kogito-apps-downstream-native - - - kogito-apps-native - - - - **/Native*IT.java - - native - 8g - - 8080 - - + + + + + + + + + + + + + + + + - - - - - org.apache.maven.plugins - maven-surefire-plugin - ${version.surefire.plugin} - - - org.jboss.logmanager.LogManager - - - - - org.apache.maven.plugins - maven-failsafe-plugin - ${version.surefire.plugin} - - - org.jboss.logmanager.LogManager - ${tests.quarkus.http.port} - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/kogito-quarkus-examples/process-business-rules-quarkus/pom.xml b/kogito-quarkus-examples/process-business-rules-quarkus/pom.xml index 8fd4165073..2ed10d3cbe 100644 --- a/kogito-quarkus-examples/process-business-rules-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-business-rules-quarkus/pom.xml @@ -1,15 +1,16 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + process-business-rules-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Process Business Rules Quarkus Kogito business rules invocation - Quarkus + 2.16.10.Final quarkus-bom @@ -19,7 +20,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -38,6 +50,7 @@ + io.quarkus @@ -86,6 +99,48 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/process-decisions-quarkus/pom.xml b/kogito-quarkus-examples/process-decisions-quarkus/pom.xml index de7aa9c017..989b016927 100644 --- a/kogito-quarkus-examples/process-decisions-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-decisions-quarkus/pom.xml @@ -1,15 +1,15 @@ - 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + process-decisions-quarkus + org.acme.examples + 2.0.0-SNAPSHOT Kogito Example :: Process :: Decisions :: Quarkus Process with DMN and DRL integration - Quarkus + 2.16.10.Final quarkus-bom @@ -19,7 +19,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -38,6 +49,7 @@ + io.quarkus @@ -83,6 +95,49 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + ${project.build.directory}/${project.build.finalName}-runner + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + \ No newline at end of file diff --git a/kogito-quarkus-examples/process-decisions-rest-quarkus/pom.xml b/kogito-quarkus-examples/process-decisions-rest-quarkus/pom.xml index 07264021a2..bfc4880a69 100644 --- a/kogito-quarkus-examples/process-decisions-rest-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-decisions-rest-quarkus/pom.xml @@ -1,15 +1,16 @@ - 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + process-decisions-rest-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Process :: Decisions :: REST Quarkus Process with DMN and DRL integration through REST - Quarkus + 8080 2.16.10.Final @@ -20,7 +21,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -39,6 +51,7 @@ + io.quarkus @@ -104,6 +117,49 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + ${project.build.directory}/${project.build.finalName}-runner + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + \ No newline at end of file diff --git a/kogito-quarkus-examples/process-decisions-rules-quarkus/pom.xml b/kogito-quarkus-examples/process-decisions-rules-quarkus/pom.xml index 1e08a9f15f..90b2240e4f 100644 --- a/kogito-quarkus-examples/process-decisions-rules-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-decisions-rules-quarkus/pom.xml @@ -1,13 +1,13 @@ - 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + process-decisions-rules-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Process :: Decisions :: Rules :: Quarkus Process with DRL, DMN and DRL integration - Quarkus @@ -19,7 +19,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -38,6 +49,7 @@ + io.quarkus @@ -83,6 +95,49 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + ${project.build.directory}/${project.build.finalName}-runner + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + \ No newline at end of file diff --git a/kogito-quarkus-examples/process-error-handling/README.md b/kogito-quarkus-examples/process-error-handling/README.md index 862062c7bd..117cc066f8 100644 --- a/kogito-quarkus-examples/process-error-handling/README.md +++ b/kogito-quarkus-examples/process-error-handling/README.md @@ -4,7 +4,7 @@ A simple usage scenario of the Error Handling Strategy -The main process is +The main process is ![hello error](docs/images/hello-error-process.png) @@ -12,22 +12,29 @@ Here the logic: - `Custom Task` is a custom WorkItemHandler, the simple implementation is - - Read the `Input` parameter - - Return the `Result` string with the concatenation of `Hello ` and the value of the `Input` - - Whether `Input` matches one of the following values `RETRY`, `COMPLETE`, `ABORT` or `RETHROW`; it throws a `ProcessWorkItemHandlerException` initialized with the corresponding strategy + - Read the `Input` parameter + - Return the `Result` string with the concatenation of `Hello ` and the value of the `Input` + - Whether `Input` matches one of the following values `RETRY`, `COMPLETE`, `ABORT` or `RETHROW`; it throws + a `ProcessWorkItemHandlerException` initialized with the corresponding strategy - `Print Message` is script which print out the outcome of the previous Task (stored in `message` variable). -- Finally, an event sub-process is defined to catch all exceptions that reach the main process instance and to print out `Catch all` in the console. +- Finally, an event sub-process is defined to catch all exceptions that reach the main process instance and to print + out `Catch all` in the console. In short, it is a sophisticated version of a **Hello World** process! -In order to probe the _Error Handling_ capabilities, you have to trigger the process with the **name** of the error handling strategy. -Regardless the strategy, the sub-process `error-handling` will be executed, then the main process execution is influenced by the strategy: - -- `RETRY`: the `Custom Task` is executed again, the `Input` parameter of the task is refreshed using the outcome of the `error-handling` process. -- `COMPLETE`: the `Custom Task` is skipped, the `Result` parameter of the task is set with the corresponding outcome of the `error-handling` process. -- `ABORT`: the `Custom Task` is aborted and the process instance continues the execution. Pay attention: if the outcome of the task is essential for the following tasks the process is going to fail later). +In order to probe the _Error Handling_ capabilities, you have to trigger the process with the **name** of the error +handling strategy. +Regardless the strategy, the sub-process `error-handling` will be executed, then the main process execution is +influenced by the strategy: + +- `RETRY`: the `Custom Task` is executed again, the `Input` parameter of the task is refreshed using the outcome of + the `error-handling` process. +- `COMPLETE`: the `Custom Task` is skipped, the `Result` parameter of the task is set with the corresponding outcome of + the `error-handling` process. +- `ABORT`: the `Custom Task` is aborted and the process instance continues the execution. Pay attention: if the outcome + of the task is essential for the following tasks the process is going to fail later). - `RETHROW`: the `Custom Task` is aborted and the exception is thrown back at the task scope. The `error-handling` sub-process initiates a user task which goal is to repair the situation. @@ -37,7 +44,8 @@ The process design leaves the user in full control: - Analyze the error message to understand the root cause of the problem - Override the default _error handling strategy_ - In case of `RETRY`, they can provide a different **input** parameter for the task -- In case of `COMPLETE`, they can set the output parameter **result** for the task, in other words, the user replaces the implementation of the task by simulating a response +- In case of `COMPLETE`, they can set the output parameter **result** for the task, in other words, the user replaces + the implementation of the task by simulating a response Here the process model: @@ -46,9 +54,10 @@ Here the process model: The `Init` script calls the corresponding method of the class `ErrorHandlingScript` and there it performs the following: - Logs the process variables -- Store the _error handling strategy_ in the `strategy` process variable +- Store the _error handling strategy_ in the `strategy` process variable -The `Apply` script calls the corresponding method of the class `ErrorHandlingScript` and there it performs the following: +The `Apply` script calls the corresponding method of the class `ErrorHandlingScript` and there it performs the +following: - Read the `strategy` variable - Override the `Error` variable with a new `ProcessWorkItemHandlerException` initialized with the new strategy @@ -58,15 +67,18 @@ The `Apply` script calls the corresponding method of the class `ErrorHandlingScr ### Prerequisites You will need: - - Java 11+ installed - - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + +- Java 11+ installed +- Environment variable JAVA_HOME set accordingly +- Maven 3.8.6+ installed When using native image compilation, you will also need: - - GraalVM 19.3+ installed - - Environment variable GRAALVM_HOME set accordingly - - GraalVM native image needs as well native-image extension: https://www.graalvm.org/reference-manual/native-image/ - - Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be installed too, please refer to GraalVM installation documentation for more details. + +- GraalVM 19.3+ installed +- Environment variable GRAALVM_HOME set accordingly +- GraalVM native image needs as well native-image extension: https://www.graalvm.org/reference-manual/native-image/ +- Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be + installed too, please refer to GraalVM installation documentation for more details. ### Compile and Run in Local Dev Mode @@ -74,7 +86,8 @@ When using native image compilation, you will also need: mvn clean compile quarkus:dev ``` -NOTE: With dev mode of Quarkus you can take advantage of hot reload for business assets like processes, rules, decision tables and java code. No need to redeploy or restart your running application. +NOTE: With dev mode of Quarkus you can take advantage of hot reload for business assets like processes, rules, decision +tables and java code. No need to redeploy or restart your running application. ### Package and Run in JVM mode @@ -91,6 +104,7 @@ java -jar target\quarkus-app\quarkus-run.jar ``` ### Package and Run using Local Native Image + Note that this requires GRAALVM_HOME to point to a valid GraalVM installation ```sh @@ -102,18 +116,27 @@ To run the generated native executable, generated in `target/`, execute ```sh ./target/process-error-handling-runner ``` + ### 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/openapi?format=json) - 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). +You can take a look at the [OpenAPI definition](http://localhost:8080/openapi?format=json) - 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. -When running in either Quarkus Development or Native mode, we also leverage the [Quarkus OpenAPI extension](https://quarkus.io/guides/openapi-swaggerui#use-swagger-ui-for-development) that exposes [Swagger UI](http://localhost:8080/swagger-ui/) that you can use to look at available REST endpoints and send test requests. +When running in either Quarkus Development or Native mode, we also leverage +the [Quarkus OpenAPI extension](https://quarkus.io/guides/openapi-swaggerui#use-swagger-ui-for-development) that +exposes [Swagger UI](http://localhost:8080/swagger-ui/) that you can use to look at available REST endpoints and send +test requests. ### Submit a request -To make use of this application it is as simple as putting a sending request to `http://localhost:8080/hello_error` with following content +To make use of this application it is as simple as putting a sending request to `http://localhost:8080/hello_error` +with following content ```json { @@ -142,7 +165,9 @@ Response should resemble: ### Probe the RETRY strategy -> **TIP:** In the following example, we are going to show the `curl` command line. Although, a more comfortable way is using the following [REST client](https://https://marketplace.visualstudio.com/items?itemName=humao.rest-client), you can find in the project the file with all the requests: `src/test/http/error-handling.http`. +> **TIP:** In the following example, we are going to show the `curl` command line. Although, a more comfortable way is +> using the following [REST client](https://https://marketplace.visualstudio.com/items?itemName=humao.rest-client), you +> can find in the project the file with all the requests: `src/test/http/error-handling.http`. Trigger the process with any error handling strategy: @@ -200,7 +225,8 @@ In the console you should spot an output the resemble the following: Follow all the step in the previous paragraph, but complete the `Repair` task providing a different payload. -- **Complete strategy** The WIH logic is skipped but the task is marked completed, the main process proceeds picking the result provided by the `error-handling` process +- **Complete strategy** The WIH logic is skipped but the task is marked completed, the main process proceeds picking the + result provided by the `error-handling` process ```sh curl --request POST \ @@ -215,7 +241,8 @@ Follow all the step in the previous paragraph, but complete the `Repair` task pr ``` >>> message: Hello Jimmy ``` -- **Abort strategy** The WIH logic is skipped and the task is marked aborted, the main process proceeds but the `Custom Task` result is **null**. +- **Abort strategy** The WIH logic is skipped and the task is marked aborted, the main process proceeds but + the `Custom Task` result is **null**. ```sh curl --request POST \ @@ -231,7 +258,7 @@ Follow all the step in the previous paragraph, but complete the `Repair` task pr >>> message: null ``` -- **Rethrow strategy** The WIH logic is skipped and the main process get an exception +- **Rethrow strategy** The WIH logic is skipped and the main process get an exception ```sh curl --request POST \ @@ -249,4 +276,5 @@ Follow all the step in the previous paragraph, but complete the `Repair` task pr ## Deploying with Kogito Operator -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). +In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with +the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/process-error-handling/pom.xml b/kogito-quarkus-examples/process-error-handling/pom.xml index 16f49055e4..f76e51c09a 100644 --- a/kogito-quarkus-examples/process-error-handling/pom.xml +++ b/kogito-quarkus-examples/process-error-handling/pom.xml @@ -1,14 +1,15 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + process-error-handling + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Process Scripts With Quarkus Kogito scripts invocation - Quarkus + 2.16.10.Final quarkus-bom @@ -18,7 +19,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -37,6 +49,7 @@ + io.quarkus @@ -89,6 +102,48 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/process-error-handling/src/main/resources/application.properties b/kogito-quarkus-examples/process-error-handling/src/main/resources/application.properties index c7872ed3a8..9a7e670110 100644 --- a/kogito-quarkus-examples/process-error-handling/src/main/resources/application.properties +++ b/kogito-quarkus-examples/process-error-handling/src/main/resources/application.properties @@ -1,8 +1,6 @@ # Packaging # quarkus.package.type=fast-jar - quarkus.swagger-ui.always-include=true - quarkus.log.console.enable=true quarkus.log.level=INFO quarkus.log.category."org.acme".level=ALL \ No newline at end of file diff --git a/kogito-quarkus-examples/process-error-handling/src/test/http/error-handling.http b/kogito-quarkus-examples/process-error-handling/src/test/http/error-handling.http index 2a6380880f..a897ec4172 100644 --- a/kogito-quarkus-examples/process-error-handling/src/test/http/error-handling.http +++ b/kogito-quarkus-examples/process-error-handling/src/test/http/error-handling.http @@ -45,6 +45,6 @@ Accept: application/json Content-Type: application/json { - "input" : "Jimmy", - "strategy" : "RETRY" + "input": "Jimmy", + "strategy": "RETRY" } diff --git a/kogito-quarkus-examples/process-incubation-api-quarkus/pom.xml b/kogito-quarkus-examples/process-incubation-api-quarkus/pom.xml index bc7f52fe59..777dd5050b 100644 --- a/kogito-quarkus-examples/process-incubation-api-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-incubation-api-quarkus/pom.xml @@ -1,14 +1,15 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + process-incubation-api-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Process Incubation API With Quarkus + 2.16.10.Final quarkus-bom @@ -18,7 +19,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -37,6 +49,7 @@ + io.quarkus @@ -85,6 +98,48 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/process-infinispan-persistence-quarkus/pom.xml b/kogito-quarkus-examples/process-infinispan-persistence-quarkus/pom.xml index 55f27aa816..2889bf914a 100644 --- a/kogito-quarkus-examples/process-infinispan-persistence-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-infinispan-persistence-quarkus/pom.xml @@ -1,13 +1,13 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + process-infinispan-persistence-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Process Infinispan Persistence Quarkus Process with Infinispan persistence - Quarkus @@ -19,7 +19,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -38,6 +49,7 @@ + io.quarkus @@ -96,6 +108,49 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + ${project.build.directory}/${project.build.finalName}-runner + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/pom.xml b/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/pom.xml index 822b413e8b..a01eed51be 100644 --- a/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-kafka-avro-multi-quarkus/pom.xml @@ -1,15 +1,16 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + process-kafka-avro-multi-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Process with Kafka and Quarkus, multiple channels, avro serialization Kogito with Kafka - Quarkus, using one channel per message name + 2.16.10.Final quarkus-bom @@ -19,7 +20,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -38,6 +50,7 @@ + org.kie.kogito @@ -82,7 +95,7 @@ io.quarkus quarkus-smallrye-health - + ${project.artifactId} @@ -99,6 +112,48 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/process-kafka-multi-quarkus/pom.xml b/kogito-quarkus-examples/process-kafka-multi-quarkus/pom.xml index 2873039d86..d594ae6c4f 100644 --- a/kogito-quarkus-examples/process-kafka-multi-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-kafka-multi-quarkus/pom.xml @@ -1,15 +1,16 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + process-kafka-multi-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Process with Kafka and Quarkus, multiple channels Kogito with Kafka - Quarkus, using one channel per message name + 2.16.10.Final quarkus-bom @@ -19,7 +20,19 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + 2.3.0 + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -38,8 +51,9 @@ + - + org.kie.kogito kogito-addons-quarkus-events-process @@ -84,6 +98,7 @@ io.cloudevents cloudevents-json-jackson + ${version.io.cloudevents} test @@ -106,6 +121,48 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/process-kafka-persistence-quarkus/pom.xml b/kogito-quarkus-examples/process-kafka-persistence-quarkus/pom.xml index 8b6db76e1d..34e01954e2 100644 --- a/kogito-quarkus-examples/process-kafka-persistence-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-kafka-persistence-quarkus/pom.xml @@ -18,16 +18,16 @@ - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + 4.0.0 process-kafka-persistence-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Process Kafka Persistence Quarkus Process with Kafka persistence - Quarkus + 2.16.10.Final quarkus-bom @@ -37,7 +37,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -56,6 +67,7 @@ + org.kie.kogito @@ -109,6 +121,48 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/process-kafka-quickstart-quarkus/pom.xml b/kogito-quarkus-examples/process-kafka-quickstart-quarkus/pom.xml index de316a1b80..6539eedc9b 100644 --- a/kogito-quarkus-examples/process-kafka-quickstart-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-kafka-quickstart-quarkus/pom.xml @@ -1,15 +1,16 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + process-kafka-quickstart-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Process with Kafka and Quarkus Kogito with Kafka - Quarkus + 2.16.10.Final quarkus-bom @@ -19,7 +20,19 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + 2.3.0 + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -38,6 +51,7 @@ + io.quarkus @@ -79,6 +93,7 @@ io.cloudevents cloudevents-json-jackson + ${version.io.cloudevents} test @@ -101,6 +116,48 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/process-knative-quickstart-quarkus/pom.xml b/kogito-quarkus-examples/process-knative-quickstart-quarkus/pom.xml index d9eda52294..b1afdfb9c8 100644 --- a/kogito-quarkus-examples/process-knative-quickstart-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-knative-quickstart-quarkus/pom.xml @@ -1,15 +1,16 @@ - 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + process-knative-quickstart-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Process with Knative Eventing and Quarkus Kogito with Knative Eventing - Quarkus + 2.33.2 2.16.10.Final @@ -20,7 +21,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -39,6 +51,7 @@ + io.quarkus @@ -87,6 +100,7 @@ org.kie.kogito kogito-test-utils + ${version.org.kie.kogito} test @@ -119,7 +133,30 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + @@ -145,5 +182,22 @@ + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + diff --git a/kogito-quarkus-examples/process-mongodb-persistence-quarkus/pom.xml b/kogito-quarkus-examples/process-mongodb-persistence-quarkus/pom.xml index 1e85b1c861..648584cd22 100644 --- a/kogito-quarkus-examples/process-mongodb-persistence-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-mongodb-persistence-quarkus/pom.xml @@ -1,13 +1,13 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + process-mongodb-persistence-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Process MongoDB Persistence Quarkus Process with MongoDB persistence - Quarkus @@ -19,7 +19,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -38,6 +49,7 @@ + io.quarkus @@ -95,7 +107,31 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + ${project.build.directory}/${project.build.finalName}-runner + + + + @@ -131,5 +167,23 @@ + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + UTF-8 + UTF-8 + + diff --git a/kogito-quarkus-examples/process-monitoring-quarkus/pom.xml b/kogito-quarkus-examples/process-monitoring-quarkus/pom.xml index 0febe54847..2ab53bc2b1 100755 --- a/kogito-quarkus-examples/process-monitoring-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-monitoring-quarkus/pom.xml @@ -1,13 +1,13 @@ - 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + process-monitoring-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Process Monitoring :: Quarkus @@ -19,7 +19,19 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 3.1.0 + 11 + 11 + UTF-8 + UTF-8 + @@ -74,6 +86,7 @@ org.kie.kogito kogito-test-utils + ${version.org.kie.kogito} test @@ -104,6 +117,7 @@ maven-resources-plugin + ${version.resources.plugin} copy-resources @@ -126,6 +140,49 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + ${project.build.directory}/${project.build.finalName}-runner + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/pom.xml b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/pom.xml index 55faa2caef..b8024321b0 100644 --- a/kogito-quarkus-examples/process-outbox-mongodb-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-outbox-mongodb-quarkus/pom.xml @@ -3,13 +3,11 @@ 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"> 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - process-outbox-mongodb-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Process Transactional Outbox :: MongoDB and Quarkus Process with Transactional Outbox - MongoDB and Quarkus @@ -23,6 +21,14 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + 1.7.36 + 2.8.0 + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 @@ -74,6 +80,7 @@ org.slf4j slf4j-simple + ${version.org.slf4j} test @@ -95,6 +102,7 @@ com.jayway.jsonpath json-path + ${version.com.jayway.jsonpath} test @@ -114,7 +122,49 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/process-performance-client/pom.xml b/kogito-quarkus-examples/process-performance-client/pom.xml index 2d605de453..0b277a2908 100755 --- a/kogito-quarkus-examples/process-performance-client/pom.xml +++ b/kogito-quarkus-examples/process-performance-client/pom.xml @@ -1,17 +1,17 @@ + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" + xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + process-performance-client + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Client Performance test Client Performance test + 2.16.10.Final quarkus-bom @@ -21,7 +21,15 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + 1.7.36 + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -40,6 +48,7 @@ + io.smallrye.reactive @@ -52,6 +61,7 @@ org.slf4j slf4j-simple + ${version.org.slf4j} com.fasterxml.jackson.core @@ -66,4 +76,52 @@ kogito-services + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/process-performance-quarkus/pom.xml b/kogito-quarkus-examples/process-performance-quarkus/pom.xml index c83f60f962..0bc5c8e2ca 100755 --- a/kogito-quarkus-examples/process-performance-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-performance-quarkus/pom.xml @@ -1,17 +1,17 @@ + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" + xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + process-performance-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Quarkus Performance test Quarkus Performance test + 2.16.10.Final quarkus-bom @@ -21,7 +21,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -40,6 +51,7 @@ + io.quarkus @@ -77,6 +89,48 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/process-postgresql-persistence-quarkus/pom.xml b/kogito-quarkus-examples/process-postgresql-persistence-quarkus/pom.xml index 740a899bd1..446e9d96d8 100644 --- a/kogito-quarkus-examples/process-postgresql-persistence-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-postgresql-persistence-quarkus/pom.xml @@ -5,16 +5,13 @@ xmlns="http://maven.apache.org/POM/4.0.0"> 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - - process-postgresql-persistence-quarkus + org.acme.examples + 2.0.0-SNAPSHOT Kogito Example :: Process PostgreSQL Persistence Quarkus Process with PostgreSQL persistence - Quarkus + 2.16.10.Final quarkus-bom @@ -24,7 +21,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -43,6 +51,7 @@ + io.quarkus @@ -102,7 +111,30 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + @@ -123,5 +155,21 @@ + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + diff --git a/kogito-quarkus-examples/process-quarkus-example/README.md b/kogito-quarkus-examples/process-quarkus-example/README.md index 44c0e70b67..fbe98856ac 100644 --- a/kogito-quarkus-examples/process-quarkus-example/README.md +++ b/kogito-quarkus-examples/process-quarkus-example/README.md @@ -2,25 +2,34 @@ ## Description -A simple process service for ordering items, as a sequence of a script task (writing out some debug info) and a call activity invoking a sub-process, using a custom `Order` data element. +A simple process service for ordering items, as a sequence of a script task (writing out some debug info) and a call +activity invoking a sub-process, using a custom `Order` data element. -The sub-process invokes a custom Java service `CalculationService.calculateTotal`, followed by a user task to verify the order. +The sub-process invokes a custom Java service `CalculationService.calculateTotal`, followed by a user task to verify the +order. -Based on these two processes (defined using BPMN 2.0 format), the custom data object and custom Java service, a new service is generated that exposes REST operations to create new orders (following the steps as defined in the main and sub-process), or to list and delete active orders. +Based on these two processes (defined using BPMN 2.0 format), the custom data object and custom Java service, a new +service is generated that exposes REST operations to create new orders (following the steps as defined in the main and +sub-process), or to list and delete active orders. ## Installing and Running ### Prerequisites You will need: - - Java 11+ installed - - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + +- Java 11+ installed +- Environment variable JAVA_HOME set accordingly +- Maven 3.8.6+ installed When using native image compilation, you will also need: - - [GraalVM 19.1.1](https://github.com/oracle/graal/releases/tag/vm-19.1.1) installed - - Environment variable GRAALVM_HOME set accordingly - - Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be installed too. You also need 'native-image' installed in GraalVM (using 'gu install native-image'). Please refer to [GraalVM installation documentation](https://www.graalvm.org/docs/reference-manual/aot-compilation/#prerequisites) for more details. + +- [GraalVM 19.1.1](https://github.com/oracle/graal/releases/tag/vm-19.1.1) installed +- Environment variable GRAALVM_HOME set accordingly +- Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be + installed too. You also need 'native-image' installed in GraalVM (using 'gu install native-image'). Please refer + to [GraalVM installation documentation](https://www.graalvm.org/docs/reference-manual/aot-compilation/#prerequisites) + for more details. ### Compile and Run in Local Dev Mode @@ -43,6 +52,7 @@ java -jar target\quarkus-app\quarkus-run.jar ``` ### Package and Run using Local Native Image + Note that this requires GRAALVM_HOME to point to a valid GraalVM installation ``` @@ -60,43 +70,62 @@ Note: This does not yet work on Windows, GraalVM and Quarkus should be rolling o ### Running with persistence enabled Kogito runtime supports multiple persistence types, including Infinispan. -In order to use the Infinispan based persistence, you need to have a Infinispan server installed and available over the network. +In order to use the Infinispan based persistence, you need to have a Infinispan server installed and available over the +network. The default configuration, expects the server to be running on: + ``` quarkus.infinispan-client.hosts=localhost:11222 ``` + If you need to change it, you can do so by updating the application.properties file located in src/main/resources. -You can install Infinispan server by downloading version 12.x from the [official website](https://infinispan.org/download/). +You can install Infinispan server by downloading version 12.x from +the [official website](https://infinispan.org/download/). -Once Infinispan is up and running you can build this project with `-Ppersistence` to enable additional processing during the build. Next you start it in exact same way as without persistence. +Once Infinispan is up and running you can build this project with `-Ppersistence` to enable additional processing during +the build. Next you start it in exact same way as without persistence. -This extra profile in maven configuration adds additional dependencies needed to work with Infinispan as persistent store. +This extra profile in maven configuration adds additional dependencies needed to work with Infinispan as persistent +store. ### Running with events enabled Kogito supports cloud events using Kafka as message broker. So to be able to enable this you need to have -Kafka cluster installed and available over the network. Refer to [Kafka Apache site](https://kafka.apache.org/quickstart) to more information about how to install. +Kafka cluster installed and available over the network. Refer +to [Kafka Apache site](https://kafka.apache.org/quickstart) to more information about how to install. Kogito will use the following Kafka topics to listen for cloud events: -* `kogito-processinstances-events` - used to emit events by Kogito that can be consumed by data index service and other services -* `kogito-usertaskinstances-events` - used to emit events by Kogito that can be consumed by data index service and other services +* `kogito-processinstances-events` - used to emit events by Kogito that can be consumed by data index service and other + services +* `kogito-usertaskinstances-events` - used to emit events by Kogito that can be consumed by data index service and other + services -Once Kafka is up and running you can build this project with `-Pevents` to enable additional processing during the build. This extra profile in maven configuration adds additional dependencies needed to work with Cloud Events. +Once Kafka is up and running you can build this project with `-Pevents` to enable additional processing during the +build. This extra profile in maven configuration adds additional dependencies needed to work with Cloud Events. ## 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/openapi?format=json) - 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). +You can take a look at the [OpenAPI definition](http://localhost:8080/openapi?format=json) - 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. -When running in either Quarkus Development or Native mode, we also leverage the [Quarkus OpenAPI extension](https://quarkus.io/guides/openapi-swaggerui#use-swagger-ui-for-development) that exposes [Swagger UI](http://localhost:8080/swagger-ui/) that you can use to look at available REST endpoints and send test requests. +When running in either Quarkus Development or Native mode, we also leverage +the [Quarkus OpenAPI extension](https://quarkus.io/guides/openapi-swaggerui#use-swagger-ui-for-development) that +exposes [Swagger UI](http://localhost:8080/swagger-ui/) that you can use to look at available REST endpoints and send +test requests. ## Example Usage -Once the service is up and running, you can use the following examples to interact with the service. Note that rather than using the curl commands below, you can also use the [Swagger UI](http://localhost:8080/swagger-ui/) to send requests. +Once the service is up and running, you can use the following examples to interact with the service. Note that rather +than using the curl commands below, you can also use the [Swagger UI](http://localhost:8080/swagger-ui/) to send +requests. ### POST /orders @@ -119,6 +148,7 @@ Curl command (using the JSON object above): ```sh curl -d '{"approver" : "john", "order" : {"orderNumber" : "12345", "shipped" : false}}' -H "Content-Type: application/json" -X POST http://localhost:8080/orders ``` + or on windows ```sh @@ -148,6 +178,7 @@ Returns list of orders currently active: ```sh curl -X GET http://localhost:8080/orders ``` + Example response: ```json @@ -171,6 +202,7 @@ Returns order with given id (if active): ```sh curl -X GET http://localhost:8080/orders/b5225020-4cf4-4e91-8f86-dc840589cc22 ``` + Example response: ```json @@ -194,6 +226,7 @@ Cancels order with given id ```sh curl -X DELETE http://localhost:8080/orders/b5225020-4cf4-4e91-8f86-dc840589cc22 ``` + Example response: ```json @@ -215,6 +248,7 @@ Getting order items sub processes ```sh curl -X GET http://localhost:8080/orderItems ``` + Example response: ```json @@ -238,6 +272,7 @@ Getting user tasks awaiting user action ```sh curl -X GET http://localhost:8080/orderItems/66c11e3e-c211-4cee-9a07-848b5e861bc5/tasks?user=john ``` + Example response: ```json @@ -253,6 +288,7 @@ Getting user task details ```sh curl -X GET http://localhost:8080/orderItems/66c11e3e-c211-4cee-9a07-848b5e861bc5/Verify_order/62f1c985-d31c-4ead-9906-2fe8d05937f0?user=john ``` + Example response: ```json @@ -276,7 +312,6 @@ Complete user task curl -d '{}' -H "Content-Type: application/json" -X POST http://localhost:8080/orderItems/66c11e3e-c211-4cee-9a07-848b5e861bc5/Verify_order/62f1c985-d31c-4ead-9906-2fe8d05937f0?user=john ``` - As response the updated order is returned. Example response: @@ -295,4 +330,5 @@ Example response: ## Deploying with Kogito Operator -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). +In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with +the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). diff --git a/kogito-quarkus-examples/process-quarkus-example/operator/process-quarkus-example.yaml b/kogito-quarkus-examples/process-quarkus-example/operator/process-quarkus-example.yaml index fb08685d5c..ef1960e5db 100644 --- a/kogito-quarkus-examples/process-quarkus-example/operator/process-quarkus-example.yaml +++ b/kogito-quarkus-examples/process-quarkus-example/operator/process-quarkus-example.yaml @@ -25,10 +25,10 @@ apiVersion: app.kiegroup.org/v1beta1 kind: KogitoRuntime metadata: name: process-quarkus-example -# uncomment to enable persistence -#spec: -# infra: -# - kogito-infinispan-infra + # uncomment to enable persistence + #spec: + # infra: + # - kogito-infinispan-infra #env: # - name: MAVEN_ARGS_APPEND # value: "-Ppersistence" \ No newline at end of file diff --git a/kogito-quarkus-examples/process-quarkus-example/pom.xml b/kogito-quarkus-examples/process-quarkus-example/pom.xml index b5d4894bbb..20ab710c41 100755 --- a/kogito-quarkus-examples/process-quarkus-example/pom.xml +++ b/kogito-quarkus-examples/process-quarkus-example/pom.xml @@ -1,13 +1,13 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + process-quarkus-example + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Process and Quarkus Order management service @@ -19,7 +19,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -38,6 +49,7 @@ + org.kie.kogito @@ -99,7 +111,30 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + @@ -152,5 +187,21 @@ + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + diff --git a/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/acme/examples/demo/Order.java b/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/acme/examples/demo/Order.java index ad88b5f75b..af662bf441 100755 --- a/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/acme/examples/demo/Order.java +++ b/kogito-quarkus-examples/process-quarkus-example/src/main/java/org/acme/examples/demo/Order.java @@ -51,7 +51,7 @@ public void setTotal(java.lang.Double total) { } public Order(java.lang.String orderNumber, java.lang.Boolean shipped, - java.lang.Double total) { + java.lang.Double total) { this.orderNumber = orderNumber; this.shipped = shipped; this.total = total; diff --git a/kogito-quarkus-examples/process-quarkus-example/src/main/resources/application.properties b/kogito-quarkus-examples/process-quarkus-example/src/main/resources/application.properties index 899e5a43b4..ab92000211 100644 --- a/kogito-quarkus-examples/process-quarkus-example/src/main/resources/application.properties +++ b/kogito-quarkus-examples/process-quarkus-example/src/main/resources/application.properties @@ -1,21 +1,15 @@ # Packaging # quarkus.package.type=fast-jar - quarkus.swagger-ui.always-include=true - quarkus.infinispan-client.hosts=localhost:11222 quarkus.http.cors=true - kafka.bootstrap.servers=localhost:9092 - mp.messaging.outgoing.kogito-processinstances-events.connector=smallrye-kafka mp.messaging.outgoing.kogito-processinstances-events.topic=kogito-processinstances-events mp.messaging.outgoing.kogito-processinstances-events.value.serializer=org.apache.kafka.common.serialization.StringSerializer - mp.messaging.outgoing.kogito-usertaskinstances-events.connector=smallrye-kafka mp.messaging.outgoing.kogito-usertaskinstances-events.topic=kogito-usertaskinstances-events mp.messaging.outgoing.kogito-usertaskinstances-events.value.serializer=org.apache.kafka.common.serialization.StringSerializer - mp.messaging.outgoing.kogito-variables-events.connector=smallrye-kafka mp.messaging.outgoing.kogito-variables-events.topic=kogito-variables-events mp.messaging.outgoing.kogito-variables-events.value.serializer=org.apache.kafka.common.serialization.StringSerializer \ No newline at end of file diff --git a/kogito-quarkus-examples/process-quarkus-example/src/test/resources/application.properties b/kogito-quarkus-examples/process-quarkus-example/src/test/resources/application.properties index 21d13b3df3..4223627923 100644 --- a/kogito-quarkus-examples/process-quarkus-example/src/test/resources/application.properties +++ b/kogito-quarkus-examples/process-quarkus-example/src/test/resources/application.properties @@ -1,14 +1,11 @@ # Quarkus quarkus.http.test-port=0 - mp.messaging.outgoing.kogito-processinstances-events.connector=smallrye-kafka mp.messaging.outgoing.kogito-processinstances-events.topic=kogito-processinstances-events mp.messaging.outgoing.kogito-processinstances-events.value.serializer=org.apache.kafka.common.serialization.StringSerializer - mp.messaging.outgoing.kogito-usertaskinstances-events.connector=smallrye-kafka mp.messaging.outgoing.kogito-usertaskinstances-events.topic=kogito-usertaskinstances-events mp.messaging.outgoing.kogito-usertaskinstances-events.value.serializer=org.apache.kafka.common.serialization.StringSerializer - mp.messaging.outgoing.kogito-variables-events.connector=smallrye-kafka mp.messaging.outgoing.kogito-variables-events.topic=kogito-variables-events mp.messaging.outgoing.kogito-variables-events.value.serializer=org.apache.kafka.common.serialization.StringSerializer \ No newline at end of file diff --git a/kogito-quarkus-examples/process-rest-service-call-quarkus/pom.xml b/kogito-quarkus-examples/process-rest-service-call-quarkus/pom.xml index 7737faeeeb..145ea3340d 100644 --- a/kogito-quarkus-examples/process-rest-service-call-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-rest-service-call-quarkus/pom.xml @@ -1,15 +1,16 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + process-rest-service-call-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Process Service Rest Cal with Quarkus Kogito service invocation using REST - Quarkus + 2.16.10.Final quarkus-bom @@ -19,7 +20,18 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -38,6 +50,7 @@ + io.quarkus @@ -98,6 +111,48 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/pom.xml b/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/pom.xml index 179a7c2d4a..57a3f52d7c 100644 --- a/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/pom.xml @@ -1,15 +1,16 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + process-rest-workitem-multi-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Process Rest :: Quarkus Invoking multiple Rest WS using RestWorkItemHandler + 2.16.10.Final quarkus-bom @@ -19,7 +20,19 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + 2.33.2 + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + UTF-8 + UTF-8 + @@ -38,6 +51,7 @@ + org.kie.kogito @@ -86,6 +100,7 @@ com.github.tomakehurst wiremock-jre8 + ${version.com.github.tomakehurst.wiremock} test @@ -108,6 +123,49 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + ${project.build.directory}/${project.build.finalName}-runner + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/process-rest-workitem-quarkus/pom.xml b/kogito-quarkus-examples/process-rest-workitem-quarkus/pom.xml index 860b1329c3..6121d62368 100644 --- a/kogito-quarkus-examples/process-rest-workitem-quarkus/pom.xml +++ b/kogito-quarkus-examples/process-rest-workitem-quarkus/pom.xml @@ -1,15 +1,16 @@ - + 4.0.0 - - org.acme.examples - kogito-quarkus-examples - 2.0.0-SNAPSHOT - + process-rest-workitem-quarkus + org.acme.examples + 2.0.0-SNAPSHOT + Kogito Example :: Process Service Rest WorkItem call with Quarkus Kogito service invocation using REST work item and Quarkus + 2.16.10.Final quarkus-bom @@ -19,7 +20,16 @@ kogito-bom 2.0.0-SNAPSHOT 2.0.0-SNAPSHOT + + 0 + + fast-jar + 3.1.2 + ${version.surefire.plugin} + 11 + 11 + @@ -38,6 +48,7 @@ + io.quarkus @@ -97,6 +108,48 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + + org.jboss.logmanager.LogManager + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + org.jboss.logmanager.LogManager + ${tests.quarkus.http.port} + + + + + + + + kogito-apps-downstream-native + + + kogito-apps-native + + + + **/Native*IT.java + + native + 8g + + 8080 + + + diff --git a/kogito-quarkus-examples/process-saga-quarkus/README.md b/kogito-quarkus-examples/process-saga-quarkus/README.md index ef863044a7..6432771ba4 100644 --- a/kogito-quarkus-examples/process-saga-quarkus/README.md +++ b/kogito-quarkus-examples/process-saga-quarkus/README.md @@ -3,38 +3,38 @@ ## Description Service to demonstrate how to implement Saga pattern based on BPMN process with Kogito. The proposed example is based - on an Order Fulfillment process which consists in a sequence of steps, that could represent calls to external - services, microservices, serverless functions, etc. - - All steps `stock`, `payment` and `shipping` should be executed to confirm an Order, if any of the - steps fail, then a compensation for each completed step should be executed to undo the operation or to keep the - process on a consistent state. For instance, reserve stock step, should cancel the stock reservation. The - compensations for the steps are represented in the process using a boundary `Intermediate Catching Compensation -Event` attached to the respective step to be compensated. +on an Order Fulfillment process which consists in a sequence of steps, that could represent calls to external +services, microservices, serverless functions, etc. + +All steps `stock`, `payment` and `shipping` should be executed to confirm an Order, if any of the +steps fail, then a compensation for each completed step should be executed to undo the operation or to keep the +process on a consistent state. For instance, reserve stock step, should cancel the stock reservation. The +compensations for the steps are represented in the process using a boundary `Intermediate Catching Compensation +Event` attached to the respective step to be compensated. The catching compensation events can be triggered by an `Intermediate Throwing Compensation Event` or the - ` Compensation End Event` in any point of the process that represents an error or inconsistent state, like a response - from a service. - +` Compensation End Event` in any point of the process that represents an error or inconsistent state, like a response +from a service. + The steps and compensations actions in the process example are implemented as service tasks using a Java class under - the `src` of the project, and for this example they are just mocking responses, but in a real use case they - could be executing calls to external services through REST, or any other mechanism depending on the architecture. - - The start point of Saga process is to submit a request to create a new Order with a given `orderId`, this could be - any other payload that represents an `Order`, but for the sake of simplicity, in this example it will be - based on the `id` that could be used as a correlation to client starting the Saga. - The output of each step, is represented by a `Response` that contains a type, indicating success or error - and the id of the resource that was invoked in the service, but this could be any kind of response depending on - the requirement of each service. +the `src` of the project, and for this example they are just mocking responses, but in a real use case they +could be executing calls to external services through REST, or any other mechanism depending on the architecture. + +The start point of Saga process is to submit a request to create a new Order with a given `orderId`, this could be +any other payload that represents an `Order`, but for the sake of simplicity, in this example it will be +based on the `id` that could be used as a correlation to client starting the Saga. +The output of each step, is represented by a `Response` that contains a type, indicating success or error + and the id of the resource that was invoked in the service, but this could be any kind of response depending on +the requirement of each service. ## Order Saga process This is the BPMN process that represents the Order Saga, and it is the one being used in the project to be built using - kogito. +kogito. @@ -43,14 +43,19 @@ This is the BPMN process that represents the Order Saga, and it is the one being ### Prerequisites You will need: - - Java 11+ installed - - Environment variable JAVA_HOME set accordingly - - Maven 3.8.6+ installed + +- Java 11+ installed +- Environment variable JAVA_HOME set accordingly +- Maven 3.8.6+ installed When using native image compilation, you will also need: - - [GraalVM 19.1.1](https://github.com/oracle/graal/releases/tag/vm-19.1.1) installed - - Environment variable GRAALVM_HOME set accordingly - - Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be installed too. You also need 'native-image' installed in GraalVM (using 'gu install native-image'). Please refer to [GraalVM installation documentation](https://www.graalvm.org/docs/reference-manual/aot-compilation/#prerequisites) for more details. + +- [GraalVM 19.1.1](https://github.com/oracle/graal/releases/tag/vm-19.1.1) installed +- Environment variable GRAALVM_HOME set accordingly +- Note that GraalVM native image compilation typically requires other packages (glibc-devel, zlib-devel and gcc) to be + installed too. You also need 'native-image' installed in GraalVM (using 'gu install native-image'). Please refer + to [GraalVM installation documentation](https://www.graalvm.org/docs/reference-manual/aot-compilation/#prerequisites) + for more details. ### Compile and Run in Local Dev Mode @@ -66,6 +71,7 @@ java -jar target/process-saga-quarkus-runner.jar ``` ### Package and Run using Local Native Image + Note that this requires GRAALVM_HOME to point to a valid GraalVM installation ``` @@ -81,17 +87,26 @@ To run the generated native executable, generated in `target/`, execute Note: Native builds does not yet work on Windows, GraalVM and Quarkus should be rolling out support for Windows soon. ## 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/openapi?format=json) - 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). +You can take a look at the [OpenAPI definition](http://localhost:8080/openapi?format=json) - 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. -When running in either Quarkus Development or Native mode, we also leverage the [Quarkus OpenAPI extension](https://quarkus.io/guides/openapi-swaggerui#use-swagger-ui-for-development) that exposes [Swagger UI](http://localhost:8080/swagger-ui/) that you can use to look at available REST endpoints and send test requests. +When running in either Quarkus Development or Native mode, we also leverage +the [Quarkus OpenAPI extension](https://quarkus.io/guides/openapi-swaggerui#use-swagger-ui-for-development) that +exposes [Swagger UI](http://localhost:8080/swagger-ui/) that you can use to look at available REST endpoints and send +test requests. ## Usage -Once the service is up and running, you can use the following examples to interact with the service. Note that rather than using the curl commands below, you can also use the [Swagger UI](http://localhost:8080/swagger-ui/) to send requests. +Once the service is up and running, you can use the following examples to interact with the service. Note that rather +than using the curl commands below, you can also use the [Swagger UI](http://localhost:8080/swagger-ui/) to send +requests. ### Starting the Order Saga @@ -113,9 +128,10 @@ Curl command (using the JSON object above): ```sh curl -H "Content-Type: application/json" -X POST http://localhost:8080/orders -d '{"orderId" : "03e6cf79-3301-434b-b5e1-d6899b5639aa"}' ``` + The response for the request is returned with attributes representing the response of each step, either - success or failure. The `orderResponse` attribute indicates if the order can be confirmed in case of success or - canceled in case of error. +success or failure. The `orderResponse` attribute indicates if the order can be confirmed in case of success or +canceled in case of error. Response example: @@ -155,7 +171,7 @@ In the console executing the application you can check the log it with the execu #### Simulating errors to activate the compensation flows To make testing the process easier it was introduced an optional attribute `failService` that indicates which service - should respond with an error. The attribute is basically the simple class name of the service. +should respond with an error. The attribute is basically the simple class name of the service. Example: @@ -165,6 +181,7 @@ Example: "failService" : "PaymentService" } ``` + Curl command (using the JSON object above): ```sh @@ -211,4 +228,5 @@ In the console executing the application you can check the log it with the execu ## Deploying with Kogito Operator -In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). \ No newline at end of file +In the [`operator`](operator) directory you'll find the custom resources needed to deploy this example on OpenShift with +the [Kogito Operator](https://docs.jboss.org/kogito/release/latest/html_single/#chap_kogito-deploying-on-openshift). \ No newline at end of file diff --git a/kogito-quarkus-examples/process-saga-quarkus/docs/images/orders-saga-svg.svg b/kogito-quarkus-examples/process-saga-quarkus/docs/images/orders-saga-svg.svg index fc594e8e1a..36cdb11d89 100644 --- a/kogito-quarkus-examples/process-saga-quarkus/docs/images/orders-saga-svg.svg +++ b/kogito-quarkus-examples/process-saga-quarkus/docs/images/orders-saga-svg.svg @@ -1,2567 +1,3516 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - saga-examples/orders-saga-svg.svg at main · tiagodolphine/saga-examples - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + saga-examples/orders-saga-svg.svg at main · tiagodolphine/saga-examples + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - + - + + + + - + - - + - - - - - - - + + + - + + + + + - - - + + + - - - - + - + - - - + + + - + - - - - - + + + + - - - + + + + + + + + + - + - + - + - + - - - + + + - - + + - + - - -
- Skip to content - - - - - - - - -
-
- + +
- -
- -
+
+ +
- @tiagodolphine - + @tiagodolphine + - - -

- - Loading - - - - - -

-

- - Sorry, something went wrong. -

-
+ + +

+ + Loading + + + + + + +

+

+ + Sorry, something went wrong. +

+
-
- - - -
- -
+ + + +
+
-
+ -
- - - - + - -
- - - - - - - - + + - - + - + - + - + - + - + - + - + - - - - - tiagodolphine - /saga-examples - - - - - - Type # for issues and pull requests, > for commands, and ? for help - - - Type # for issues, pull requests, and projects, > for commands, and ? for help - - - Type # for issues, pull requests, and projects, / for files, and > for commands - - -
- -
-
- We’ve encountered an error and some results aren't available at this time. Type a new search or try again later. -
-
- - No results matched your search - + data-scope-types="["owner"]" + data-placeholder="Search or jump to..." + > + + + + + tiagodolphine + + /saga-examples + + + + + + + Type # for issues and pull requests, > + for commands, and ? for help + + + Type # for issues, pull requests, and projects, > + for commands, and ? for help + + + Type # for issues, pull requests, and projects, / + for files, and > for commands + + +
+ +
+
+ We’ve encountered an error and some results aren't available at this time. Type a new search or try again later. +
+
+ + No results matched your search + - - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - -
+ > + +
+ + - - - - - + + - Search for issues and pull requests - - # - - - + Search for issues and + pull requests + + + # + + + - Search for issues, pull requests, discussions, and projects - - # - - - + Search for issues, pull requests, discussions, + and + projects + + + # + + + - Search for organizations, repositories, and users - - @ - - - + Search for organizations, repositories, and + users + + + @ + + + - Search for projects - - ! - - - + Search for + projects + + + ! + + + - Search for files - - / - - - + Search for + files + + + / + + + - Activate command mode - - > - - - + Activate + command mode + + + > + + + - Search your issues, pull requests, and discussions - - # author:@me - - - + Search your issues, pull requests, and discussions + + # author:@me + + + - Search your issues, pull requests, and discussions - - # author:@me - - - + Search your issues, pull requests, and discussions + + # author:@me + + + - Filter to pull requests - - # is:pr - - - + Filter to pull requests + + # is:pr + + + - Filter to issues - - # is:issue - - - + Filter to issues + + # is:issue + + + - Filter to discussions - - # is:discussion - - - + Filter to discussions + + # is:discussion + + + - Filter to projects - - # is:project - - - + Filter to projects + + # is:project + + + - Filter to open issues, pull requests, and discussions - - # is:open - - - - - - - - - - - - - - - - - - - - - - - -
-
-
+ data-prefix="# is:open" + > + Filter to open issues, pull requests, and discussions + + # is:open + + + + + + + + + + + + + + + + + + + + + + + + + +
- + - + - + - + - +
- -
-
-
- - - - - - - +
+
+
+ + +
+ +
+ +
+

+ + + / + + saga-examples + + + Public +

-
+
-
+
    -
    -

    - - - / - - saga-examples - +
  • + +
    - Public -
  • + -
    -
      - -
    • - -
      - - - - - - - - Unwatch - - - - - + + - -
      -
      -

      Notifications

      - -
      - -
      -
      - - - - - - - - -
      - +
      -
      -
- +
-
  • -
    -
    - - -
    -
    - - -
    -
    +
  • + +
  • +
    +
    + + + + Fork + + + + +
    + +

    Fork saga-examples

    +
    -
  • +
    + + + Loading + + + + + + +

    If this dialog fails to load, you can visit the fork page + directly. +

    +
    +
    -
  • -
    -
    - - - - Fork + +
    +
    - + - - -
    - -

    Fork saga-examples

    -
    - -
    - - - Loading - - - - - -

    If this dialog fails to load, you can visit the fork page directly.

    -
    -
    +
  • - - -
    - +
  • -
  • + + -
  • - +
  • - - +
    +
    -
    -
    -
    + + +
    + +
    +
    - -
    -
    +
    +
    Open in github.dev - - - - - -
    - +
    - Permalink + + Permalink + -
    - -
    -
    - - - main - - - - -
    -
    -
    - Switch branches/tags - -
    - - - -
    - -
    +
    + +
    +
    + + + main + + + + +
    +
    +
    + Switch branches/tags + +
    + + + +
    + +
    -
    - - -
    +
    + + +
    -
    - + - - - - - - - - - - + query-endpoint="/tiagodolphine/saga-examples/refs" + can-create + cache-key="v0:1616324018.551733" + current-committish="bWFpbg==" + default-branch="bWFpbg==" + name-with-owner="dGlhZ29kb2xwaGluZS9zYWdhLWV4YW1wbGVz" + prefetch-on-mouseover + > + + + + + + + - - + + + + + -
    +
    - + + +
    - - -
    -
    -
    + -
    +
    - - - Go to file - + + + Go to file + + +
    + + + + + + + + +
    + -
    -
    + Copy path + + +
  • + + + Copy permalink + + +
  • + +
    + +
    -
    - -
    -
    -
     
    -
    -
    -
     
    - Cannot retrieve contributors at this time -
    -
    +
    + +
    +
    +
     
    +
    +
    +
     
    + Cannot retrieve contributors at this time +
    +
    +
    +
    - +
    +
    + 1 lines (1 sloc) + + 212 KB +
    +
    +
    + + - -
    - -
    + + + -
    + +
    - 1 lines (1 sloc) - - 212 KB -
    - -
    +
    - + - - + + + + + + + + + + + + + + + +
    + + +
    + + + +
    + + +
    +
    +
    + +
    +
    -
    -
    - -
    + +
  • + Edit file + +
  • +
  • + Delete + file + +
  • + +
    +
    + +
    + +
    +
    + + Loading + + + + + - -
    - -
    -
    - - Loading - - - - - -
    Sorry, something went wrong. Reload?
    -
    Sorry, we cannot display this file.
    -
    Sorry, this file is invalid so it cannot be displayed.
    - +
    Sorry, something went wrong. + + Reload? +
    +
    Sorry, we cannot display this file.
    +
    Sorry, this file is invalid so it cannot be displayed.
    +
    - -
    +
    -
    +
    + +
    - +
    + + + +
    + +
    -
    + -
    +
    +
    +
    -
    -
    + + - - + - - - - + +You can’t perform that action at this time. + - -