From 753a2abf1a927d65beb5971a937c93006f82e101 Mon Sep 17 00:00:00 2001 From: Jenkins CI Date: Wed, 30 Aug 2023 22:34:13 -0400 Subject: [PATCH] Update for quarkus-3 environment --- bom/drools-bom/pom.xml | 2 +- bom/kie-core-bom/pom.xml | 2 +- bom/kie-dmn-bom/pom.xml | 2 +- bom/kie-efesto-bom/pom.xml | 2 +- bom/kie-pmml-bom/pom.xml | 2 +- bom/pom.xml | 2 +- build-parent/pom.xml | 125 ++++++++---------- drools-alphanetwork-compiler/pom.xml | 2 +- drools-base/pom.xml | 7 +- drools-beliefs/pom.xml | 2 +- drools-commands/pom.xml | 2 +- .../drools/commands/GetVariableCommand.java | 10 +- .../drools/commands/jaxb/JaxbListAdapter.java | 2 +- .../drools/commands/jaxb/JaxbListWrapper.java | 10 +- .../drools/commands/jaxb/JaxbMapAdapter.java | 2 +- .../commands/jaxb/JaxbObjectObjectPair.java | 10 +- .../commands/jaxb/JaxbStringObjectPair.java | 12 +- .../commands/jaxb/JaxbUnknownAdapter.java | 2 +- .../drools/commands/jaxb/ObjectFactory.java | 2 +- .../runtime/AdvanceSessionTimeCommand.java | 8 +- .../runtime/BatchExecutionCommandImpl.java | 14 +- .../commands/runtime/DisposeCommand.java | 6 +- .../commands/runtime/ExecutionResultImpl.java | 10 +- .../commands/runtime/ExecutionResultsMap.java | 2 +- .../commands/runtime/FlatQueryResults.java | 14 +- .../commands/runtime/GetFactCountCommand.java | 8 +- .../commands/runtime/GetGlobalCommand.java | 8 +- .../drools/commands/runtime/GetIdCommand.java | 8 +- .../runtime/GetSessionTimeCommand.java | 8 +- .../commands/runtime/ObjectFactory.java | 2 +- .../runtime/QueryResultsJaxbAdapter.java | 2 +- .../commands/runtime/SetGlobalCommand.java | 12 +- .../runtime/pmml/ApplyPmmlModelCommand.java | 12 +- .../process/AbortProcessInstanceCommand.java | 8 +- .../runtime/process/AbortWorkItemCommand.java | 8 +- .../process/CompleteWorkItemCommand.java | 12 +- ...reateCorrelatedProcessInstanceCommand.java | 12 +- .../process/CreateProcessInstanceCommand.java | 12 +- .../GetProcessEventListenersCommand.java | 6 +- .../runtime/process/GetProcessIdsCommand.java | 8 +- ...rocessInstanceByCorrelationKeyCommand.java | 12 +- .../process/GetProcessInstanceCommand.java | 8 +- .../process/GetProcessInstancesCommand.java | 8 +- .../runtime/process/GetWorkItemCommand.java | 8 +- .../process/GetWorkItemIdsCommand.java | 8 +- .../runtime/process/ObjectFactory.java | 2 +- .../runtime/process/ReTryWorkItemCommand.java | 10 +- .../RegisterWorkItemHandlerCommand.java | 8 +- .../SetProcessInstanceVariablesCommand.java | 12 +- .../runtime/process/SignalEventCommand.java | 12 +- .../StartCorrelatedProcessCommand.java | 14 +- .../runtime/process/StartProcessCommand.java | 16 +-- .../StartProcessFromNodeIdsCommand.java | 12 +- .../process/StartProcessInstanceCommand.java | 6 +- .../rule/AgendaGroupSetFocusCommand.java | 8 +- .../rule/ClearActivationGroupCommand.java | 8 +- .../runtime/rule/ClearAgendaCommand.java | 6 +- .../runtime/rule/ClearAgendaGroupCommand.java | 8 +- .../rule/ClearRuleFlowGroupCommand.java | 8 +- .../commands/runtime/rule/DeleteCommand.java | 8 +- .../rule/DeleteFromEntryPointCommand.java | 8 +- .../runtime/rule/DeleteObjectCommand.java | 8 +- .../runtime/rule/EnableAuditLogCommand.java | 8 +- .../runtime/rule/FireAllRulesCommand.java | 12 +- .../runtime/rule/FireUntilHaltCommand.java | 10 +- .../rule/GetAgendaEventListenersCommand.java | 2 +- .../runtime/rule/GetEntryPointCommand.java | 2 +- .../runtime/rule/GetEntryPointsCommand.java | 2 +- .../runtime/rule/GetFactHandleCommand.java | 2 +- .../GetFactHandleInEntryPointCommand.java | 2 +- .../runtime/rule/GetFactHandlesCommand.java | 6 +- .../runtime/rule/GetObjectCommand.java | 12 +- .../rule/GetObjectInEntryPointCommand.java | 8 +- .../runtime/rule/GetObjectsCommand.java | 8 +- .../rule/GetObjectsInEntryPointCommand.java | 6 +- .../runtime/rule/InsertElementsCommand.java | 10 +- .../runtime/rule/InsertObjectCommand.java | 12 +- .../rule/InsertObjectInEntryPointCommand.java | 8 +- .../commands/runtime/rule/ModifyCommand.java | 10 +- .../commands/runtime/rule/ObjectFactory.java | 2 +- .../commands/runtime/rule/QueryCommand.java | 8 +- .../commands/runtime/rule/UpdateCommand.java | 12 +- .../rule/UpdateInEntryPointCommand.java | 4 +- drools-compiler/pom.xml | 7 +- .../kproject/models/KieBaseModelImpl.java | 2 +- .../impl/DroolsJaxbHelperProviderImpl.java | 4 +- drools-core/pom.xml | 7 +- .../core/ClassObjectSerializationFilter.java | 8 +- .../org/drools/core/base/ArrayElements.java | 8 +- .../base/RuleNameEndsWithAgendaFilter.java | 8 +- .../core/base/RuleNameEqualsAgendaFilter.java | 8 +- .../base/RuleNameMatchesAgendaFilter.java | 8 +- .../base/RuleNameStartsWithAgendaFilter.java | 8 +- .../drools/core/common/DefaultFactHandle.java | 8 +- .../core/common/DisconnectedFactHandle.java | 14 +- .../org/drools/core/common/ObjectFactory.java | 2 +- .../core/common/QueryElementFactHandle.java | 6 +- .../core/util/AbstractBaseLinkedListNode.java | 6 +- drools-decisiontables/pom.xml | 2 +- drools-distribution/pom.xml | 2 +- drools-docs/pom.xml | 2 +- ...ogito-migrate-drl-implement-ruleunits.adoc | 2 +- drools-drl-ast/pom.xml | 2 +- drools-drl-extensions/pom.xml | 2 +- drools-drl-parser/pom.xml | 2 +- .../drools-drl-quarkus-deployment/pom.xml | 2 +- .../deployment/DroolsAssetsProcessor.java | 2 +- .../pom.xml | 2 +- .../examples/multiunit/RuntimeTest.java | 2 +- .../pom.xml | 2 +- .../ruleunit/examples/reactive/Adaptor.java | 6 +- .../KafkaTestResourceLifecycleManager.java | 2 +- .../examples/reactive/RuntimeTest.java | 8 +- .../drools-drl-quarkus-examples/pom.xml | 2 +- .../pom.xml | 2 +- .../test/hotreload/FindAdultEndpoint.java | 12 +- .../pom.xml | 2 +- .../drools/quarkus/test/TestableResource.java | 8 +- .../org/drools/quarkus/test/RuntimeTest.java | 2 +- .../pom.xml | 2 +- .../quickstart/test/HomeAlertsBean.java | 4 +- .../quarkus/quickstart/test/BeanTest.java | 2 +- .../quarkus/quickstart/test/RuntimeIT.java | 2 +- .../pom.xml | 2 +- .../ruleunit/test/TestableResource.java | 8 +- .../ruleunit/test/RuntimeDslRuleUnitTest.java | 2 +- .../quarkus/ruleunit/test/RuntimeTest.java | 2 +- .../pom.xml | 2 +- .../DroolsQuarkusResourceUtils.java | 4 +- .../drools-drl-quarkus/pom.xml | 4 +- drools-drl-quarkus-extension/pom.xml | 2 +- .../drools-drlonyaml-cli-tests/pom.xml | 2 +- .../drools-drlonyaml-cli/pom.xml | 2 +- .../drools-drlonyaml-model/pom.xml | 2 +- .../drools-drlonyaml-schemagen/pom.xml | 2 +- .../drools-drlonyaml-todrl/pom.xml | 2 +- drools-drlonyaml-parent/pom.xml | 2 +- drools-ecj/pom.xml | 2 +- drools-engine-classic/pom.xml | 2 +- drools-engine/pom.xml | 2 +- .../default-kiesession-from-file/pom.xml | 2 +- .../default-kiesession/pom.xml | 2 +- .../kie-module-from-multiple-files/pom.xml | 2 +- drools-examples-api/kiebase-inclusion/pom.xml | 2 +- .../kiecontainer-from-kierepo/pom.xml | 2 +- .../kiefilesystem-example/pom.xml | 2 +- .../kiemodulemodel-example/pom.xml | 2 +- drools-examples-api/multiple-kbases/pom.xml | 2 +- .../named-kiesession-from-file/pom.xml | 2 +- drools-examples-api/named-kiesession/pom.xml | 2 +- drools-examples-api/pom.xml | 2 +- .../reactive-kiesession/pom.xml | 2 +- drools-examples/pom.xml | 2 +- drools-fastutil/pom.xml | 2 +- .../pom.xml | 2 +- .../pom.xml | 2 +- .../drools-impact-analysis-graph/pom.xml | 2 +- .../drools-impact-analysis-itests/pom.xml | 2 +- .../drools-impact-analysis-model/pom.xml | 2 +- .../drools-impact-analysis-parser/pom.xml | 2 +- drools-impact-analysis/pom.xml | 2 +- drools-io/pom.xml | 2 +- drools-kiesession/pom.xml | 2 +- drools-legacy-test-util/pom.xml | 2 +- .../java/org/drools/mvel/compiler/Person.java | 4 +- .../src/test/resources/META-INF/kmodule.xml | 2 +- drools-metric/pom.xml | 2 +- drools-model/drools-canonical-model/pom.xml | 2 +- drools-model/drools-codegen-common/pom.xml | 2 +- .../QuarkusDroolsModelBuildContext.java | 4 +- drools-model/drools-model-codegen/pom.xml | 2 +- .../config/RuleConfigQuarkusTemplate.java | 6 +- .../rules/ProjectRuntimeQuarkusTemplate.java | 2 +- .../ruleunits/RuleUnitQuarkusTemplate.java | 6 +- drools-model/drools-model-compiler/pom.xml | 2 +- drools-model/drools-mvel-compiler/pom.xml | 2 +- drools-model/drools-mvel-parser/pom.xml | 2 +- .../org/drools/mvel/parser/MvelParser.java | 6 +- .../src/main/javacc/mvel.jj | 29 +++- drools-model/pom.xml | 2 +- drools-mvel/pom.xml | 7 +- .../java/org/drools/mvel/compiler/Person.java | 4 +- .../drools-persistence-api/pom.xml | 7 +- .../api/PersistenceContextManager.java | 2 +- ...nsactionSynchronizationRegistryHelper.java | 2 +- .../jta/JtaTransactionManager.java | 30 ++--- .../jta/JtaTransactionManagerFactory.java | 4 +- .../JtaTransactionSynchronizationAdapter.java | 4 +- .../jta/TransactionLockInterceptor.java | 2 +- .../drools-persistence-jpa/pom.xml | 16 +-- ...iggerUpdateTransactionSynchronization.java | 2 +- .../drools/persistence/info/SessionInfo.java | 18 +-- .../drools/persistence/info/WorkItemInfo.java | 18 +-- .../AbstractPersistenceContextManager.java | 4 +- .../jpa/JpaPersistenceContext.java | 4 +- .../jpa/JpaPersistenceContextManager.java | 2 +- .../jpa/OptimisticLockRetryInterceptor.java | 2 +- .../jpa/marshaller/EntityPersister.java | 2 +- .../JPAPlaceholderResolverStrategy.java | 10 +- .../jpa/marshaller/MappedVariable.java | 14 +- .../jpa/marshaller/VariableEntity.java | 10 +- .../META-INF/persistence.xml | 6 +- .../jta/JtaTransactionManagerFactoryTest.java | 14 +- .../jta/JtaTransactionManagerTest.java | 8 +- .../jta/TransactionTestCommand.java | 4 +- .../jta/TransactionTestObject.java | 14 +- .../JpaPersistentStatefulSessionTest.java | 2 +- .../map/impl/JpaBasedPersistenceTest.java | 2 +- .../JpaPersistentStatefulSessionTest.java | 2 +- .../session/ReloadSessionTest.java | 4 +- .../util/DroolsPersistenceUtil.java | 2 +- drools-persistence/pom.xml | 2 +- .../drools-reliability-core/pom.xml | 2 +- .../drools-reliability-h2mvstore/pom.xml | 2 +- .../drools-reliability-infinispan/pom.xml | 6 +- .../drools-reliability-tests/pom.xml | 2 +- drools-reliability/pom.xml | 2 +- drools-retediagram/pom.xml | 2 +- drools-ruleunits/drools-ruleunits-api/pom.xml | 2 +- drools-ruleunits/drools-ruleunits-dsl/pom.xml | 2 +- .../drools-ruleunits-engine/pom.xml | 2 +- .../drools-ruleunits-impl/pom.xml | 2 +- drools-ruleunits/pom.xml | 2 +- .../drools-scenario-simulation-api/pom.xml | 2 +- .../pom.xml | 2 +- .../pom.xml | 2 +- drools-scenario-simulation/pom.xml | 2 +- drools-serialization-protobuf/pom.xml | 2 +- drools-templates/pom.xml | 2 +- drools-test-coverage/pom.xml | 2 +- .../standalone/kie-ci-with-domain/pom.xml | 2 +- .../kie-ci-with-domain/test-domain/pom.xml | 2 +- .../kie-ci-with-domain/test-kjar/pom.xml | 2 +- .../kie-ci-with-domain/tests/pom.xml | 2 +- .../standalone/kie-ci-without-domain/pom.xml | 2 +- .../kie-ci-without-domain/test-domain/pom.xml | 2 +- .../kie-ci-without-domain/test-kjar/pom.xml | 2 +- .../kie-ci-without-domain/tests/pom.xml | 2 +- drools-test-coverage/standalone/pom.xml | 2 +- .../test-compiler-integration/pom.xml | 2 +- .../java/org/drools/mvel/compiler/Person.java | 4 +- .../mvel/integrationtests/KieBuilderTest.java | 4 +- .../mvel/integrationtests/QueryTest.java | 2 +- .../src/test/resources/META-INF/kmodule.xml | 2 +- .../test-integration-nomvel/pom.xml | 7 +- .../test-integration-notms/pom.xml | 2 +- .../test-integration-noxml/pom.xml | 2 +- .../test-integration-ruleunits/pom.xml | 2 +- .../test-integration-ruleunits-jar/pom.xml | 2 +- .../test-integration-ruleunits-tests/pom.xml | 2 +- drools-test-coverage/test-suite/pom.xml | 2 +- drools-tms/pom.xml | 2 +- drools-traits/pom.xml | 11 +- .../META-INF/persistence.xml | 6 +- .../persistence/DroolsPersistenceUtil.java | 2 +- drools-util/pom.xml | 2 +- drools-verifier/drools-verifier-api/pom.xml | 2 +- drools-verifier/drools-verifier-core/pom.xml | 2 +- drools-verifier/drools-verifier-drl/pom.xml | 2 +- drools-verifier/pom.xml | 2 +- drools-wiring/drools-wiring-api/pom.xml | 2 +- drools-wiring/drools-wiring-dynamic/pom.xml | 7 +- drools-wiring/drools-wiring-static/pom.xml | 2 +- drools-wiring/pom.xml | 2 +- drools-xml-support/pom.xml | 2 +- .../xml/support/CommandSerializationTest.java | 6 +- efesto/efesto-common-utils/pom.xml | 2 +- efesto/efesto-core/efesto-common-api/pom.xml | 2 +- efesto/efesto-core/efesto-common-core/pom.xml | 2 +- .../efesto-compilation-manager-api/pom.xml | 2 +- .../efesto-compilation-manager-core/pom.xml | 2 +- .../efesto-compilation-manager/pom.xml | 2 +- .../efesto-runtime-manager-api/pom.xml | 2 +- .../efesto-runtime-manager-core/pom.xml | 2 +- .../efesto-runtime-manager/pom.xml | 2 +- efesto/efesto-core/pom.xml | 2 +- efesto/efesto-dependencies/pom.xml | 2 +- efesto/pom.xml | 2 +- jpmml-migration-recipe/pom.xml | 2 +- kie-api/pom.xml | 2 +- .../kie/api/builder/model/KieBaseModel.java | 2 +- .../api/builder/model/KieSessionModel.java | 2 +- .../java/org/kie/api/pmml/AbstractOutput.java | 10 +- .../org/kie/api/pmml/DoubleFieldOutput.java | 6 +- .../org/kie/api/pmml/IntegerFieldOutput.java | 6 +- .../java/org/kie/api/pmml/PMML4DataField.java | 8 +- .../org/kie/api/pmml/PMML4OutputField.java | 10 +- .../java/org/kie/api/pmml/PMML4Result.java | 14 +- .../org/kie/api/pmml/PMMLRequestData.java | 12 +- .../java/org/kie/api/pmml/ParameterInfo.java | 12 +- .../org/kie/api/pmml/StringFieldOutput.java | 6 +- .../kie/api/runtime/query/QueryContext.java | 10 +- .../java/org/kie/api/task/model/Status.java | 2 +- .../src/test/resources/org/kie/api/kmod1.xml | 6 +- .../kie-drools-dmn-archetype/pom.xml | 2 +- .../kie-drools-exec-model-archetype/pom.xml | 2 +- .../pom.xml | 2 +- kie-archetypes/pom.xml | 2 +- kie-ci/pom.xml | 2 +- kie-dmn/kie-dmn-api/pom.xml | 2 +- kie-dmn/kie-dmn-backend/pom.xml | 2 +- kie-dmn/kie-dmn-core-jsr223-jq/pom.xml | 2 +- kie-dmn/kie-dmn-core-jsr223/pom.xml | 2 +- kie-dmn/kie-dmn-core/pom.xml | 2 +- .../kie/dmn/core/pmml/DMNImportPMMLInfo.java | 4 +- .../java/org/kie/dmn/core/pmml/PMMLInfo.java | 8 +- kie-dmn/kie-dmn-feel/pom.xml | 2 +- .../java/org/kie/dmn/feel/util/Generated.java | 2 +- .../dmn/feel/jandex/AbstractJandexTest.java | 6 +- kie-dmn/kie-dmn-legacy-tests/pom.xml | 7 +- kie-dmn/kie-dmn-model/pom.xml | 2 +- .../kie/dmn/model/v1_2/dmndi/DMNDiagram.java | 2 +- .../dmn/model/v1_2/dmndi/DiagramElement.java | 2 +- .../kie/dmn/model/v1_3/dmndi/DMNDiagram.java | 2 +- .../dmn/model/v1_3/dmndi/DiagramElement.java | 2 +- .../model/jandex/KieDMNModelJandexTest.java | 6 +- kie-dmn/kie-dmn-openapi/pom.xml | 7 +- .../kie-dmn-pmml-tests-trusty/pom.xml | 2 +- .../kie-dmn-pmml-tests/pom.xml | 7 +- kie-dmn/kie-dmn-pmml-tests-parent/pom.xml | 2 +- .../kie-dmn-ruleset2dmn-cli/pom.xml | 2 +- .../kie-dmn-ruleset2dmn/pom.xml | 2 +- .../org/kie/dmn/ruleset2dmn/Converter.java | 9 +- .../kie/dmn/ruleset2dmn/SimpleRuleRow.java | 4 +- kie-dmn/kie-dmn-ruleset2dmn-parent/pom.xml | 2 +- kie-dmn/kie-dmn-signavio/pom.xml | 2 +- kie-dmn/kie-dmn-tck/pom.xml | 2 +- kie-dmn/kie-dmn-trisotech/pom.xml | 2 +- kie-dmn/kie-dmn-validation-bootstrap/pom.xml | 2 +- kie-dmn/kie-dmn-validation/pom.xml | 2 +- .../dtanalysis/mcdc/MCDC2TCKGenerator.java | 8 +- .../dtanalysis/mcdc/dmntck/ObjectFactory.java | 6 +- .../dtanalysis/mcdc/dmntck/TestCaseType.java | 6 +- .../dtanalysis/mcdc/dmntck/TestCases.java | 20 +-- .../dtanalysis/mcdc/dmntck/ValueType.java | 22 +-- .../dtanalysis/mcdc/dmntck/package-info.java | 6 +- kie-dmn/kie-dmn-xls2dmn-cli/pom.xml | 2 +- kie-dmn/pom.xml | 2 +- kie-drl/kie-drl-api/pom.xml | 2 +- kie-drl/kie-drl-compilation-common/pom.xml | 2 +- .../kie-drl-kiesession-local-runtime/pom.xml | 2 +- .../kie-drl-kiesession-local/pom.xml | 2 +- .../kie-drl-map-input-runtime/pom.xml | 2 +- .../kie-drl-map-input/pom.xml | 2 +- kie-drl/kie-drl-implementations/pom.xml | 2 +- kie-drl/kie-drl-runtime-common/pom.xml | 2 +- .../kie-drl-tests-without-index-file/pom.xml | 2 +- kie-drl/kie-drl-tests/pom.xml | 2 +- kie-drl/pom.xml | 2 +- kie-internal/pom.xml | 14 +- .../help/DroolsJaxbHelperProvider.java | 4 +- .../builder/help/KnowledgeBuilderHelper.java | 4 +- .../jaxb/CorrelationKeyXmlAdapter.java | 2 +- .../jaxb/LocalDateTimeXmlAdapter.java | 2 +- .../internal/jaxb/LocalDateXmlAdapter.java | 2 +- .../internal/jaxb/LocalTimeXmlAdapter.java | 2 +- .../jaxb/OffsetDateTimeXmlAdapter.java | 2 +- .../jaxb/StringKeyObjectValueEntry.java | 12 +- .../jaxb/StringKeyObjectValueMap.java | 8 +- .../StringKeyObjectValueMapXmlAdapter.java | 2 +- .../jaxb/StringKeyStringValueEntry.java | 8 +- .../jaxb/StringKeyStringValueMap.java | 8 +- .../StringKeyStringValueMapXmlAdapter.java | 2 +- .../org/kie/internal/query/QueryContext.java | 6 +- .../org/kie/internal/query/QueryFilter.java | 6 +- .../kie/internal/query/data/QueryData.java | 8 +- .../internal/query/data/QueryParameters.java | 12 +- .../runtime/conf/DeploymentDescriptor.java | 4 +- .../kie/internal/runtime/conf/MergeMode.java | 2 +- .../runtime/conf/NamedObjectModel.java | 10 +- .../internal/runtime/conf/ObjectModel.java | 12 +- .../runtime/conf/RuntimeStrategy.java | 2 +- .../deploy/DeploymentDescriptorIO.java | 8 +- .../deploy/DeploymentDescriptorImpl.java | 14 +- .../manager/deploy/TransientObjectModel.java | 2 +- .../internal/task/api/model/AccessType.java | 2 +- .../task/api/model/SubTasksStrategy.java | 2 +- .../manager/deploy/JaxbMarshalingTest.java | 6 +- kie-maven-plugin/pom.xml | 2 +- kie-memory-compiler/pom.xml | 2 +- kie-pmml-trusty/kie-pmml-api/pom.xml | 2 +- kie-pmml-trusty/kie-pmml-commons/pom.xml | 2 +- .../kie-pmml-compiler-api/pom.xml | 2 +- .../api/dto/CommonCompilationDTO.java | 2 +- .../pmml/compiler/api/utils/ModelUtils.java | 30 ++--- .../pmml/compiler/api/mocks/TestModel.java | 10 ++ .../api/testutils/PMMLModelTestUtils.java | 66 ++++----- .../compiler/api/utils/ModelUtilsTest.java | 61 ++++----- .../kie-pmml-compiler-commons/pom.xml | 2 +- .../KiePMMLDerivedFieldFactory.java | 2 +- .../KiePMMLDiscretizeFactory.java | 2 +- .../KiePMMLFieldColumnPairFactory.java | 2 +- .../KiePMMLFieldRefFactory.java | 2 +- .../KiePMMLMiningFieldFactory.java | 8 +- .../KiePMMLModelFactoryUtils.java | 4 +- .../KiePMMLNormContinuousFactory.java | 2 +- .../KiePMMLNormDiscreteFactory.java | 2 +- .../KiePMMLOutputFieldFactory.java | 4 +- .../KiePMMLParameterFieldFactory.java | 2 +- .../KiePMMLSimplePredicateFactory.java | 4 +- .../KiePMMLSimpleSetPredicateFactory.java | 2 +- .../KiePMMLTextIndexFactory.java | 2 +- .../KiePMMLDerivedFieldInstanceFactory.java | 5 +- .../KiePMMLDiscretizeInstanceFactory.java | 2 +- ...KiePMMLFieldColumnPairInstanceFactory.java | 2 +- .../KiePMMLFieldRefInstanceFactory.java | 2 +- .../KiePMMLMiningFieldInstanceFactory.java | 2 +- .../KiePMMLNormContinuousInstanceFactory.java | 2 +- .../KiePMMLNormDiscreteInstanceFactory.java | 2 +- .../KiePMMLOutputFieldInstanceFactory.java | 4 +- .../KiePMMLParameterFieldInstanceFactory.java | 2 +- ...KiePMMLSimplePredicateInstanceFactory.java | 4 +- ...PMMLSimpleSetPredicateInstanceFactory.java | 2 +- .../KiePMMLTargetInstanceFactory.java | 2 +- .../KiePMMLTextIndexInstanceFactory.java | 2 +- .../compiler/commons/utils/KiePMMLUtil.java | 9 +- .../KiePMMLApplyFactoryTest.java | 9 +- .../KiePMMLDefineFunctionFactoryTest.java | 16 +-- .../KiePMMLDerivedFieldFactoryTest.java | 25 ++-- .../KiePMMLDiscretizeFactoryTest.java | 3 +- .../KiePMMLFieldColumnPairFactoryTest.java | 3 +- .../KiePMMLFieldRefFactoryTest.java | 3 +- .../KiePMMLInlineTableFactoryTest.java | 2 +- ...iePMMLLocalTransformationsFactoryTest.java | 3 +- .../KiePMMLMapValuesFactoryTest.java | 2 +- .../KiePMMLMiningFieldFactoryTest.java | 9 +- .../KiePMMLNormContinuousFactoryTest.java | 3 +- .../KiePMMLNormDiscreteFactoryTest.java | 3 +- .../KiePMMLParameterFieldFactoryTest.java | 3 +- .../KiePMMLRowFactoryTest.java | 4 +- .../KiePMMLSimplePredicateFactoryTest.java | 6 +- .../KiePMMLSimpleSetPredicateFactoryTest.java | 6 +- .../KiePMMLTextIndexFactoryTest.java | 3 +- ...MLTransformationDictionaryFactoryTest.java | 9 +- .../InstanceFactoriesTestCommon.java | 32 ++--- ...calTransformationsInstanceFactoryTest.java | 2 +- ...ormationDictionaryInstanceFactoryTest.java | 2 +- .../commons/utils/JavaParserUtilsTest.java | 3 +- .../commons/utils/KiePMMLUtilTest.java | 35 +++-- .../kie-pmml-compiler-core/pom.xml | 2 +- .../compiler/testingutils/TestingModel.java | 10 ++ kie-pmml-trusty/kie-pmml-compiler/pom.xml | 2 +- kie-pmml-trusty/kie-pmml-dependencies/pom.xml | 2 +- .../kie-pmml-evaluator-api/pom.xml | 2 +- .../kie-pmml-evaluator-core/pom.xml | 2 +- .../kie-pmml-evaluator-utils/pom.xml | 2 +- kie-pmml-trusty/kie-pmml-evaluator/pom.xml | 2 +- .../pom.xml | 2 +- .../KiePMMLClusteringModelFactory.java | 4 +- .../KiePMMLClusteringModelFactoryTest.java | 9 +- .../pom.xml | 2 +- .../kie-pmml-models-clustering-model/pom.xml | 2 +- .../kie-pmml-models-clustering-tests/pom.xml | 2 +- .../kie-pmml-models-clustering/pom.xml | 2 +- .../kie-pmml-models-drools-common/pom.xml | 2 +- .../KiePMMLDataDictionaryASTFactory.java | 4 +- .../KiePMMLDerivedFieldASTFactory.java | 4 +- .../KiePMMLSimplePredicateASTFactory.java | 6 +- .../KiePMMLSimpleSetPredicateASTFactory.java | 4 +- .../drools/utils/KiePMMLASTFactoryUtils.java | 6 +- ...iePMMLCompoundPredicateASTFactoryTest.java | 4 +- .../KiePMMLDataDictionaryASTFactoryTest.java | 8 +- .../KiePMMLDerivedFieldASTFactoryTest.java | 5 +- .../KiePMMLSimplePredicateASTFactoryTest.java | 4 +- .../factories/KiePMMLDescrRhsFactoryTest.java | 5 +- .../provider/DroolsModelProviderTest.java | 6 +- .../utils/KiePMMLASTFactoryUtilsTest.java | 6 +- .../drools/utils/KiePMMLASTTestUtils.java | 5 +- .../KiePMMLDroolsModelFactoryUtilsTest.java | 3 +- .../pom.xml | 2 +- ...cardModelCharacteristicASTFactoryTest.java | 2 +- .../pom.xml | 2 +- .../pom.xml | 2 +- .../pom.xml | 2 +- .../kie-pmml-models-drools-scorecard/pom.xml | 2 +- .../pom.xml | 2 +- .../KiePMMLTreeModelFactoryTest.java | 2 +- .../pom.xml | 2 +- .../kie-pmml-models-drools-tree-model/pom.xml | 2 +- .../kie-pmml-models-drools-tree-tests/pom.xml | 2 +- .../kie-pmml-models-drools-tree/pom.xml | 2 +- .../kie-pmml-models-drools/pom.xml | 2 +- .../kie-pmml-models-mining-compiler/pom.xml | 2 +- .../factories/AbstractKiePMMLFactoryTest.java | 2 +- .../KiePMMLMiningModelFactoryTest.java | 2 +- .../factories/KiePMMLSegmentFactoryTest.java | 2 +- .../KiePMMLSegmentationFactoryTest.java | 2 +- .../kie-pmml-models-mining-evaluator/pom.xml | 2 +- .../kie-pmml-models-mining-model/pom.xml | 2 +- .../kie-pmml-models-mining-tests/pom.xml | 2 +- .../kie-pmml-models-mining/pom.xml | 2 +- .../pom.xml | 2 +- ...RegressionModelImplementationProvider.java | 6 +- .../KiePMMLRegressionTableFactory.java | 16 +-- ...LRegressionTableRegressionFactoryTest.java | 3 +- ...KiePMMLClassificationTableFactoryTest.java | 15 +-- .../KiePMMLRegressionModelFactoryTest.java | 10 +- .../KiePMMLRegressionTableFactoryTest.java | 25 ++-- .../pom.xml | 2 +- .../kie-pmml-models-regression-model/pom.xml | 2 +- .../kie-pmml-models-regression-tests/pom.xml | 2 +- .../kie-pmml-models-regression/pom.xml | 2 +- .../pom.xml | 2 +- ...KiePMMLComplexPartialScoreFactoryTest.java | 10 +- .../pom.xml | 2 +- .../kie-pmml-models-scorecard-model/pom.xml | 2 +- .../kie-pmml-models-scorecard-tests/pom.xml | 2 +- .../kie-pmml-models-scorecard/pom.xml | 2 +- .../kie-pmml-models-tests/pom.xml | 2 +- .../kie-pmml-models-tree-compiler/pom.xml | 2 +- .../kie-pmml-models-tree-evaluator/pom.xml | 2 +- .../kie-pmml-models-tree-model/pom.xml | 2 +- .../kie-pmml-models-tree-tests/pom.xml | 2 +- .../kie-pmml-models-tree/pom.xml | 2 +- kie-pmml-trusty/kie-pmml-models/pom.xml | 2 +- kie-pmml-trusty/pom.xml | 2 +- kie-test-util/pom.xml | 2 +- .../org/kie/test/util/db/PersistenceUtil.java | 4 +- .../db/internal/PoolingDataSourceFactory.java | 4 +- .../PoolingDataSourceWrapperImpl.java | 4 +- kie-util/kie-util-maven-integration/pom.xml | 2 +- kie-util/kie-util-maven-support/pom.xml | 2 +- kie-util/kie-util-xml/pom.xml | 2 +- kie-util/pom.xml | 2 +- pom.xml | 2 +- 525 files changed, 1341 insertions(+), 1362 deletions(-) diff --git a/bom/drools-bom/pom.xml b/bom/drools-bom/pom.xml index fb34a9edaed..d7ccbe1aed8 100644 --- a/bom/drools-bom/pom.xml +++ b/bom/drools-bom/pom.xml @@ -6,7 +6,7 @@ org.kie kie-core-bom - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../kie-core-bom/pom.xml diff --git a/bom/kie-core-bom/pom.xml b/bom/kie-core-bom/pom.xml index f1481d246db..88ea540ad56 100644 --- a/bom/kie-core-bom/pom.xml +++ b/bom/kie-core-bom/pom.xml @@ -6,7 +6,7 @@ org.kie drools-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../../pom.xml diff --git a/bom/kie-dmn-bom/pom.xml b/bom/kie-dmn-bom/pom.xml index f984b12b430..920f175386b 100644 --- a/bom/kie-dmn-bom/pom.xml +++ b/bom/kie-dmn-bom/pom.xml @@ -6,7 +6,7 @@ org.kie kie-core-bom - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../kie-core-bom/pom.xml diff --git a/bom/kie-efesto-bom/pom.xml b/bom/kie-efesto-bom/pom.xml index fac262287ae..c87f5a210eb 100644 --- a/bom/kie-efesto-bom/pom.xml +++ b/bom/kie-efesto-bom/pom.xml @@ -6,7 +6,7 @@ org.kie kie-core-bom - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../kie-core-bom/pom.xml diff --git a/bom/kie-pmml-bom/pom.xml b/bom/kie-pmml-bom/pom.xml index b1424b159c4..80759149ea4 100644 --- a/bom/kie-pmml-bom/pom.xml +++ b/bom/kie-pmml-bom/pom.xml @@ -6,7 +6,7 @@ org.kie kie-core-bom - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../kie-core-bom/pom.xml diff --git a/bom/pom.xml b/bom/pom.xml index 4edadeb8daa..d957df92e80 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -5,7 +5,7 @@ drools-parent org.kie - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/build-parent/pom.xml b/build-parent/pom.xml index 0bb2e447efe..1249c0b50a3 100644 --- a/build-parent/pom.xml +++ b/build-parent/pom.xml @@ -5,7 +5,7 @@ drools-parent org.kie - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 @@ -40,22 +40,22 @@ 1.1.1 2.11.0 1.10.0 - 2.15.2 - 2.15.2 - 2.15.2 + 2.14.2 + 2.14.2 + 2.14.2 4.31.0 3.7.4 1.0.1 3.22.0 - 2.2.220 + 2.1.214 1.0.86 2.3.0 1.4.20 0.18.0 4.7.1 - 1.10.2 - 2.16.10.Final - 3.1.1 + 1.10.5 + 3.0.0.Final + 3.3.2 8.5.11 4.13.1 1.8.0 @@ -68,42 +68,42 @@ 4.4.15 3.8.6 1.7.3 - 3.5.1 + 3.5.3 2.0.28 5.1.0 - 9.0.21 + 10.1.7 3.23.1 3.33.0 2.3.32 - 2.3.6 + 4.0.3 1.3 - 5.6.12.Final + 6.2.0.Final 2.3.0 14.0.13.Final 3.26.0-GA - 5.13.1.Final + 6.0.0.Final 7.6.1.Final 3.1.6.Final - 2.0.1 - 2.0.2 - 1.2.1 - 1.2.1 - 1.0 - 1.3.5 + 3.0.2 + 4.0.1 + 2.0.0 + 2.1.1 + 2.0.1 + 2.1.1 3.2.6 2.3.6 2.0.0 - 1.3.3 - 2.1.6 - 2.3.3 - 2.2.3 - 4.0.3 - 2.3.3 - 1.0.2 - 1.1.6 - 1.1.6 - 1.5.1 + 2.0.1 + 3.1.0 + 4.0.0 + 3.1.0 + 6.0.0 + 4.0.0 + 3.0.0 + 1.1.1 + 2.1.1 + 1.6.4 5.9.2 2.5.0.Final 2.0.7 @@ -132,7 +132,7 @@ 2.2.0 1.5.0 2.3.0-jaxb-1.0.6 - 4.11.0 + 5.2.0 1.21 @@ -151,10 +151,10 @@ 2.22.1 3.6.4 - 3.6.0 + 3.7.1 0.9.1 3.3.4 - 1.22 + 1.23.0 1.3 @@ -182,16 +182,16 @@ 1.12.18 - 42.5.4 + 42.6.0 2.0.1 3.0.5 ${version.io.smallrye.jandex} - 1.0.11 + 3.0.2 - 3.24.2 + 3.25.1 - 32.0.1-jre + 31.1-jre @@ -267,7 +267,7 @@ com.fasterxml.jackson.module - jackson-module-jaxb-annotations + jackson-module-jakarta-xmlbind-annotations ${version.com.fasterxml.jackson.annotations} @@ -276,8 +276,8 @@ ${version.com.fasterxml.jackson} - com.fasterxml.jackson.jaxrs - jackson-jaxrs-json-provider + com.fasterxml.jackson.jakarta.rs + jackson-jakarta-rs-json-provider ${version.com.fasterxml.jackson} @@ -351,9 +351,9 @@ ${version.com.sun.xml.bind} - com.sun.xml.bind - jaxb-impl - ${version.com.sun.xml.bind} + org.glassfish.jaxb + jaxb-runtime + 4.0.2 com.sun.xml.bind @@ -403,8 +403,8 @@ - org.glassfish - jakarta.json + org.eclipse.parsson + parsson ${version.jakarta.json} @@ -439,8 +439,8 @@ - com.sun.activation - jakarta.activation + org.eclipse.angus + angus-activation ${version.jakarta.activation} @@ -775,12 +775,12 @@ - org.hibernate + org.hibernate.orm hibernate-envers ${version.org.hibernate} - org.hibernate + org.hibernate.orm hibernate-jpamodelgen ${version.org.hibernate} @@ -1099,7 +1099,7 @@ - org.hibernate + org.hibernate.orm hibernate-core ${version.org.hibernate} @@ -1121,31 +1121,16 @@ - - org.hibernate - hibernate-entitymanager - ${version.org.hibernate} - - - javax.persistence - javax.persistence-api - - - org.jboss.spec.javax.transaction - jboss-transaction-api_1.2_spec - - - - javax.validation - validation-api - ${version.javax.validation} + jakarta.validation + jakarta.validation-api + 3.0.2 - javax.validation - validation-api - ${version.javax.validation} + jakarta.validation + jakarta.validation-api + 3.0.2 sources diff --git a/drools-alphanetwork-compiler/pom.xml b/drools-alphanetwork-compiler/pom.xml index 847b17b7d5c..9c87cdfa398 100644 --- a/drools-alphanetwork-compiler/pom.xml +++ b/drools-alphanetwork-compiler/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-base/pom.xml b/drools-base/pom.xml index b63b4abb182..96040dc6be4 100644 --- a/drools-base/pom.xml +++ b/drools-base/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml @@ -63,9 +63,10 @@ provided - com.sun.xml.bind - jaxb-impl + org.glassfish.jaxb + jaxb-runtime provided + 4.0.3 jakarta.xml.bind diff --git a/drools-beliefs/pom.xml b/drools-beliefs/pom.xml index 201eefd463a..a8db476b9ab 100644 --- a/drools-beliefs/pom.xml +++ b/drools-beliefs/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-commands/pom.xml b/drools-commands/pom.xml index 051fd403142..90d343f412d 100644 --- a/drools-commands/pom.xml +++ b/drools-commands/pom.xml @@ -7,7 +7,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-commands/src/main/java/org/drools/commands/GetVariableCommand.java b/drools-commands/src/main/java/org/drools/commands/GetVariableCommand.java index 281582bfd3b..800ec105c30 100644 --- a/drools-commands/src/main/java/org/drools/commands/GetVariableCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/GetVariableCommand.java @@ -16,11 +16,11 @@ package org.drools.commands; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlSchemaType; import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListAdapter.java b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListAdapter.java index 90fbda1b37f..0578da73131 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListAdapter.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListAdapter.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Set; -import javax.xml.bind.annotation.adapters.XmlAdapter; +import jakarta.xml.bind.annotation.adapters.XmlAdapter; import org.drools.commands.jaxb.JaxbListWrapper.JaxbWrapperType; import org.slf4j.Logger; diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListWrapper.java b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListWrapper.java index 92d5dd68112..5e89a69b7fe 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListWrapper.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListWrapper.java @@ -16,11 +16,11 @@ package org.drools.commands.jaxb; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; /** * This is actually a wrapper for the following collections: diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbMapAdapter.java b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbMapAdapter.java index 544431b3509..5fb0c9edd50 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbMapAdapter.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbMapAdapter.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; -import javax.xml.bind.annotation.adapters.XmlAdapter; +import jakarta.xml.bind.annotation.adapters.XmlAdapter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbObjectObjectPair.java b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbObjectObjectPair.java index 292a2dfd925..b0ad67a8889 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbObjectObjectPair.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbObjectObjectPair.java @@ -16,11 +16,11 @@ package org.drools.commands.jaxb; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; @XmlAccessorType(XmlAccessType.NONE) public class JaxbObjectObjectPair { diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbStringObjectPair.java b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbStringObjectPair.java index 97c1d42a5e9..6f4eb3df3d0 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbStringObjectPair.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbStringObjectPair.java @@ -16,12 +16,12 @@ package org.drools.commands.jaxb; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSeeAlso; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlSeeAlso; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; @XmlAccessorType(XmlAccessType.NONE) @XmlSeeAlso({JaxbListWrapper.class}) diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbUnknownAdapter.java b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbUnknownAdapter.java index 79b902ab82c..f9c59dac373 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbUnknownAdapter.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbUnknownAdapter.java @@ -29,7 +29,7 @@ import java.util.Map.Entry; import java.util.Set; -import javax.xml.bind.annotation.adapters.XmlAdapter; +import jakarta.xml.bind.annotation.adapters.XmlAdapter; import org.drools.core.QueryResultsImpl; import org.drools.core.common.DisconnectedFactHandle; diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/ObjectFactory.java b/drools-commands/src/main/java/org/drools/commands/jaxb/ObjectFactory.java index b76eb0770fe..12a3ee104ba 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/ObjectFactory.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/ObjectFactory.java @@ -16,7 +16,7 @@ package org.drools.commands.jaxb; -import javax.xml.bind.annotation.XmlRegistry; +import jakarta.xml.bind.annotation.XmlRegistry; @XmlRegistry public class ObjectFactory { diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/AdvanceSessionTimeCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/AdvanceSessionTimeCommand.java index c757b616b89..c61788017d2 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/AdvanceSessionTimeCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/AdvanceSessionTimeCommand.java @@ -17,10 +17,10 @@ package org.drools.commands.runtime; import java.util.concurrent.TimeUnit; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.drools.commands.IdentifiableResult; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/BatchExecutionCommandImpl.java b/drools-commands/src/main/java/org/drools/commands/runtime/BatchExecutionCommandImpl.java index d40c2188773..5ed7409a8bc 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/BatchExecutionCommandImpl.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/BatchExecutionCommandImpl.java @@ -18,13 +18,13 @@ import java.util.ArrayList; import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElements; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlElements; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlType; import org.drools.commands.fluent.Batch; import org.drools.commands.runtime.pmml.ApplyPmmlModelCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/DisposeCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/DisposeCommand.java index b8e8c073656..a0fdcf64d9e 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/DisposeCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/DisposeCommand.java @@ -16,9 +16,9 @@ package org.drools.commands.runtime; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlRootElement; import org.drools.commands.impl.NotTransactionalCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultImpl.java b/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultImpl.java index 0a0b17d9fab..86868a62e29 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultImpl.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultImpl.java @@ -20,11 +20,11 @@ import java.util.Collection; import java.util.HashMap; import java.util.Map; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.drools.commands.jaxb.JaxbMapAdapter; import org.kie.api.runtime.ExecutionResults; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultsMap.java b/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultsMap.java index d0295f1f1cf..1c8cd6376a6 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultsMap.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultsMap.java @@ -19,7 +19,7 @@ import java.util.Collection; import java.util.HashMap; import java.util.Map; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.drools.commands.jaxb.JaxbMapAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/FlatQueryResults.java b/drools-commands/src/main/java/org/drools/commands/runtime/FlatQueryResults.java index d7ce35d78fc..6c5f5a82b84 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/FlatQueryResults.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/FlatQueryResults.java @@ -23,13 +23,13 @@ import java.util.Iterator; import java.util.Map; import java.util.Set; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlSeeAlso; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlSeeAlso; +import jakarta.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.drools.commands.jaxb.JaxbListAdapter; import org.drools.commands.jaxb.JaxbListWrapper; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/GetFactCountCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/GetFactCountCommand.java index 71053ae9aa6..3fb3666d0f5 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/GetFactCountCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/GetFactCountCommand.java @@ -16,10 +16,10 @@ package org.drools.commands.runtime; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/GetGlobalCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/GetGlobalCommand.java index cba80658f74..1602e121b7d 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/GetGlobalCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/GetGlobalCommand.java @@ -16,10 +16,10 @@ package org.drools.commands.runtime; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.drools.commands.IdentifiableResult; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/GetIdCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/GetIdCommand.java index 5ac74b60bff..5e1942717e4 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/GetIdCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/GetIdCommand.java @@ -16,10 +16,10 @@ package org.drools.commands.runtime; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/GetSessionTimeCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/GetSessionTimeCommand.java index fd4f9744a89..539d98af9dd 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/GetSessionTimeCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/GetSessionTimeCommand.java @@ -16,10 +16,10 @@ package org.drools.commands.runtime; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.drools.commands.IdentifiableResult; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/ObjectFactory.java b/drools-commands/src/main/java/org/drools/commands/runtime/ObjectFactory.java index 39592aabb1a..00a069a6909 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/ObjectFactory.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/ObjectFactory.java @@ -16,7 +16,7 @@ package org.drools.commands.runtime; -import javax.xml.bind.annotation.XmlRegistry; +import jakarta.xml.bind.annotation.XmlRegistry; @XmlRegistry diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/QueryResultsJaxbAdapter.java b/drools-commands/src/main/java/org/drools/commands/runtime/QueryResultsJaxbAdapter.java index d0ef1d951c9..8fcfb4074bc 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/QueryResultsJaxbAdapter.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/QueryResultsJaxbAdapter.java @@ -16,7 +16,7 @@ package org.drools.commands.runtime; -import javax.xml.bind.annotation.adapters.XmlAdapter; +import jakarta.xml.bind.annotation.adapters.XmlAdapter; import org.drools.core.QueryResultsImpl; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/SetGlobalCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/SetGlobalCommand.java index 08e5d4a98c6..267164b8ff8 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/SetGlobalCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/SetGlobalCommand.java @@ -16,12 +16,12 @@ package org.drools.commands.runtime; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.drools.commands.IdentifiableResult; import org.drools.commands.jaxb.JaxbUnknownAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/pmml/ApplyPmmlModelCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/pmml/ApplyPmmlModelCommand.java index 1e91f79151b..660a4886dad 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/pmml/ApplyPmmlModelCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/pmml/ApplyPmmlModelCommand.java @@ -18,12 +18,12 @@ import java.util.ArrayList; import java.util.List; import java.util.Optional; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElements; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlElements; +import jakarta.xml.bind.annotation.XmlRootElement; import org.drools.commands.IdentifiableResult; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortProcessInstanceCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortProcessInstanceCommand.java index 6b40c5f256e..d94d08f7191 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortProcessInstanceCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortProcessInstanceCommand.java @@ -16,10 +16,10 @@ package org.drools.commands.runtime.process; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortWorkItemCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortWorkItemCommand.java index 5b4bcfa3d8f..ee4edad76b7 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortWorkItemCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortWorkItemCommand.java @@ -16,10 +16,10 @@ package org.drools.commands.runtime.process; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/CompleteWorkItemCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/CompleteWorkItemCommand.java index 833fb1bb0ed..e5d289f5d71 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/CompleteWorkItemCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/CompleteWorkItemCommand.java @@ -19,12 +19,12 @@ import java.util.HashMap; import java.util.Map; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.drools.commands.jaxb.JaxbMapAdapter; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateCorrelatedProcessInstanceCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateCorrelatedProcessInstanceCommand.java index c71fb3bf366..e42439fd6e7 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateCorrelatedProcessInstanceCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateCorrelatedProcessInstanceCommand.java @@ -19,12 +19,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElementWrapper; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlElementWrapper; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.drools.commands.IdentifiableResult; import org.drools.commands.jaxb.JaxbMapAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateProcessInstanceCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateProcessInstanceCommand.java index 6757e315f7e..12618cd571a 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateProcessInstanceCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateProcessInstanceCommand.java @@ -19,12 +19,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElementWrapper; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlElementWrapper; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.drools.commands.IdentifiableResult; import org.drools.commands.jaxb.JaxbMapAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessEventListenersCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessEventListenersCommand.java index 47f0b5ea64d..b643f04f334 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessEventListenersCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessEventListenersCommand.java @@ -17,9 +17,9 @@ package org.drools.commands.runtime.process; import java.util.Collection; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; import org.kie.api.command.ExecutableCommand; import org.kie.api.event.process.ProcessEventListener; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessIdsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessIdsCommand.java index 893fec0e559..321e751f681 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessIdsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessIdsCommand.java @@ -18,10 +18,10 @@ import java.util.ArrayList; import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.kie.api.command.ExecutableCommand; import org.kie.api.definition.process.Process; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceByCorrelationKeyCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceByCorrelationKeyCommand.java index f04f897b551..1db39272e83 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceByCorrelationKeyCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceByCorrelationKeyCommand.java @@ -16,12 +16,12 @@ package org.drools.commands.runtime.process; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceCommand.java index 5884fb86a5b..e897b05d4cc 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceCommand.java @@ -16,10 +16,10 @@ package org.drools.commands.runtime.process; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstancesCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstancesCommand.java index ea9550c78fb..b0a3b876e8f 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstancesCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstancesCommand.java @@ -18,10 +18,10 @@ import java.util.ArrayList; import java.util.Collection; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemCommand.java index 2aef697a603..a699cbc342b 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemCommand.java @@ -16,10 +16,10 @@ package org.drools.commands.runtime.process; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.drools.core.process.WorkItem; import org.drools.core.process.WorkItemManager; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemIdsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemIdsCommand.java index 08d5b3dc8cd..8b767ffd06e 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemIdsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemIdsCommand.java @@ -19,10 +19,10 @@ import java.util.ArrayList; import java.util.List; import java.util.Set; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.drools.core.process.WorkItem; import org.drools.core.process.WorkItemManager; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/ObjectFactory.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/ObjectFactory.java index 930a531761b..d32ce592e7d 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/ObjectFactory.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/ObjectFactory.java @@ -17,7 +17,7 @@ package org.drools.commands.runtime.process; -import javax.xml.bind.annotation.XmlRegistry; +import jakarta.xml.bind.annotation.XmlRegistry; @XmlRegistry diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/ReTryWorkItemCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/ReTryWorkItemCommand.java index aaf8c067f71..5e95c7456b5 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/ReTryWorkItemCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/ReTryWorkItemCommand.java @@ -19,11 +19,11 @@ import java.util.HashMap; import java.util.Map; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.drools.core.process.WorkItemManager; import org.drools.commands.jaxb.JaxbMapAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/RegisterWorkItemHandlerCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/RegisterWorkItemHandlerCommand.java index c82fbefe244..c143e422e74 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/RegisterWorkItemHandlerCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/RegisterWorkItemHandlerCommand.java @@ -16,10 +16,10 @@ package org.drools.commands.runtime.process; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.drools.commands.jaxb.JaxbUnknownAdapter; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/SetProcessInstanceVariablesCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/SetProcessInstanceVariablesCommand.java index 7e56dd5259b..68624da6349 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/SetProcessInstanceVariablesCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/SetProcessInstanceVariablesCommand.java @@ -19,12 +19,12 @@ import java.util.HashMap; import java.util.Map; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.drools.commands.jaxb.JaxbMapAdapter; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/SignalEventCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/SignalEventCommand.java index 3da07dc90d3..f7c0e8f44cf 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/SignalEventCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/SignalEventCommand.java @@ -16,12 +16,12 @@ package org.drools.commands.runtime.process; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.drools.commands.jaxb.JaxbUnknownAdapter; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartCorrelatedProcessCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartCorrelatedProcessCommand.java index 105e02086be..baba637fb51 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartCorrelatedProcessCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartCorrelatedProcessCommand.java @@ -19,13 +19,13 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElementWrapper; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlElementWrapper; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.drools.commands.IdentifiableResult; import org.drools.commands.jaxb.JaxbMapAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessCommand.java index c4c40115ee1..ec4136106ae 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessCommand.java @@ -19,14 +19,14 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAnyElement; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElementWrapper; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAnyElement; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlElementWrapper; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.drools.commands.IdentifiableResult; import org.drools.commands.jaxb.JaxbMapAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessFromNodeIdsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessFromNodeIdsCommand.java index 76fb6823511..bac224ebf71 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessFromNodeIdsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessFromNodeIdsCommand.java @@ -18,12 +18,12 @@ import java.util.List; import java.util.Map; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElementWrapper; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlElementWrapper; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.kie.api.runtime.Context; import org.kie.api.runtime.ExecutionResults; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessInstanceCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessInstanceCommand.java index 447c57795b9..b6ecbb32ddb 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessInstanceCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessInstanceCommand.java @@ -16,9 +16,9 @@ package org.drools.commands.runtime.process; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/AgendaGroupSetFocusCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/AgendaGroupSetFocusCommand.java index d511668f891..7d213ad9b06 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/AgendaGroupSetFocusCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/AgendaGroupSetFocusCommand.java @@ -16,10 +16,10 @@ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearActivationGroupCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearActivationGroupCommand.java index 7c034b26a1a..7d6b75348c7 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearActivationGroupCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearActivationGroupCommand.java @@ -16,10 +16,10 @@ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaCommand.java index 0f09bf1434a..1ca4445886d 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaCommand.java @@ -16,9 +16,9 @@ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlRootElement; import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaGroupCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaGroupCommand.java index 86b7f492c0d..edeb786eb53 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaGroupCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaGroupCommand.java @@ -16,10 +16,10 @@ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearRuleFlowGroupCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearRuleFlowGroupCommand.java index 70dec44eb70..f68322ccfec 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearRuleFlowGroupCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearRuleFlowGroupCommand.java @@ -16,10 +16,10 @@ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.drools.core.common.ReteEvaluator; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteCommand.java index 7523dcf5171..ea80c2578b0 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteCommand.java @@ -16,10 +16,10 @@ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; import org.drools.core.common.DisconnectedFactHandle; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteFromEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteFromEntryPointCommand.java index a19f4abb70f..4f96b0b3bc9 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteFromEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteFromEntryPointCommand.java @@ -16,10 +16,10 @@ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; import org.drools.core.common.DisconnectedFactHandle; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteObjectCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteObjectCommand.java index 63ebc428b52..caf18188c48 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteObjectCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteObjectCommand.java @@ -16,10 +16,10 @@ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.drools.util.StringUtils; import org.drools.commands.jaxb.JaxbUnknownAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/EnableAuditLogCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/EnableAuditLogCommand.java index 1c1918de851..664049dd87d 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/EnableAuditLogCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/EnableAuditLogCommand.java @@ -1,9 +1,9 @@ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.kie.api.KieServices; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireAllRulesCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireAllRulesCommand.java index 9fcd43364fa..422697929a3 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireAllRulesCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireAllRulesCommand.java @@ -16,12 +16,12 @@ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAnyElement; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAnyElement; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.drools.commands.IdentifiableResult; import org.drools.commands.jaxb.JaxbUnknownAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireUntilHaltCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireUntilHaltCommand.java index ba9c3be15a4..64dfba8874b 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireUntilHaltCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireUntilHaltCommand.java @@ -16,11 +16,11 @@ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAnyElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAnyElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.drools.core.common.InternalWorkingMemory; import org.drools.commands.jaxb.JaxbUnknownAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetAgendaEventListenersCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetAgendaEventListenersCommand.java index 64c41a7e9f2..2c471a3fd4a 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetAgendaEventListenersCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetAgendaEventListenersCommand.java @@ -17,7 +17,7 @@ package org.drools.commands.runtime.rule; import java.util.Collection; -import javax.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlAttribute; import org.kie.api.command.ExecutableCommand; import org.kie.api.event.rule.AgendaEventListener; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointCommand.java index 81e14c3bacf..60c3d799642 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointCommand.java @@ -16,7 +16,7 @@ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlAttribute; import org.drools.commands.EntryPointCreator; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointsCommand.java index 7351059accd..ae0dd5500a1 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointsCommand.java @@ -18,7 +18,7 @@ import java.util.ArrayList; import java.util.Collection; -import javax.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlAttribute; import org.drools.commands.EntryPointCreator; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleCommand.java index 279c6266714..1d44d1568e6 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleCommand.java @@ -16,7 +16,7 @@ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlAttribute; import org.drools.core.common.InternalFactHandle; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleInEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleInEntryPointCommand.java index 7ac7c370637..bd699452ddf 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleInEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleInEntryPointCommand.java @@ -16,7 +16,7 @@ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlAttribute; import org.drools.core.common.InternalFactHandle; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandlesCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandlesCommand.java index cf6b2e55768..bac17fecc9e 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandlesCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandlesCommand.java @@ -18,9 +18,9 @@ import java.util.ArrayList; import java.util.Collection; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; import org.drools.core.common.InternalFactHandle; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectCommand.java index 9bd16c9616a..bc075adb162 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectCommand.java @@ -16,12 +16,12 @@ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlSchemaType; import org.drools.commands.IdentifiableResult; import org.drools.core.common.DefaultFactHandle; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectInEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectInEntryPointCommand.java index c48f435a01c..6f14ac93bb2 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectInEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectInEntryPointCommand.java @@ -16,10 +16,10 @@ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; import org.drools.commands.IdentifiableResult; import org.drools.core.common.DefaultFactHandle; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsCommand.java index 282b1dbb745..2f907120a24 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsCommand.java @@ -19,10 +19,10 @@ import java.util.ArrayList; import java.util.Collection; import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; import org.drools.commands.IdentifiableResult; import org.drools.core.ClassObjectSerializationFilter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsInEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsInEntryPointCommand.java index 81de706c881..68a5f8ed292 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsInEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsInEntryPointCommand.java @@ -19,9 +19,9 @@ import java.util.ArrayList; import java.util.Collection; import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; import org.drools.commands.IdentifiableResult; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertElementsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertElementsCommand.java index db23b368272..574f4efa2c3 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertElementsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertElementsCommand.java @@ -19,11 +19,11 @@ import java.util.ArrayList; import java.util.Collection; import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.drools.commands.IdentifiableResult; import org.drools.commands.runtime.ExecutionResultImpl; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectCommand.java index c23a0d5cfec..12e737d408e 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectCommand.java @@ -16,12 +16,12 @@ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.drools.commands.IdentifiableResult; import org.drools.core.common.DefaultFactHandle; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectInEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectInEntryPointCommand.java index 461a05f632a..44131cfe6f3 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectInEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectInEntryPointCommand.java @@ -16,10 +16,10 @@ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; import org.drools.commands.IdentifiableResult; import org.drools.core.common.DefaultFactHandle; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ModifyCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ModifyCommand.java index 7acbe35e9f1..02caedc595f 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ModifyCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ModifyCommand.java @@ -19,11 +19,11 @@ import java.util.ArrayList; import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; import org.drools.base.base.CoreComponentsBuilder; import org.drools.core.common.DisconnectedFactHandle; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ObjectFactory.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ObjectFactory.java index 44a4e47881a..097d1def2cf 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ObjectFactory.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ObjectFactory.java @@ -16,7 +16,7 @@ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlRegistry; +import jakarta.xml.bind.annotation.XmlRegistry; import org.drools.commands.runtime.rule.ModifyCommand.SetterImpl; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/QueryCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/QueryCommand.java index fed6d919b9f..054191425e8 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/QueryCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/QueryCommand.java @@ -19,10 +19,10 @@ import java.util.Arrays; import java.util.Collections; import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; import org.drools.commands.IdentifiableResult; import org.drools.commands.runtime.FlatQueryResults; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateCommand.java index c427ffc2702..5e0f2ab414a 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateCommand.java @@ -18,12 +18,12 @@ import java.util.Arrays; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.drools.core.common.DisconnectedFactHandle; import org.drools.commands.jaxb.JaxbUnknownAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateInEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateInEntryPointCommand.java index 19c566794f9..984f218d5fb 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateInEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateInEntryPointCommand.java @@ -18,8 +18,8 @@ import java.util.Arrays; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; import org.drools.core.common.DisconnectedFactHandle; import org.kie.api.command.ExecutableCommand; diff --git a/drools-compiler/pom.xml b/drools-compiler/pom.xml index 16180607520..dead492c19b 100644 --- a/drools-compiler/pom.xml +++ b/drools-compiler/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml @@ -108,9 +108,10 @@ provided - com.sun.xml.bind - jaxb-impl + org.glassfish.jaxb + jaxb-runtime provided + 4.0.3 jakarta.xml.bind diff --git a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieBaseModelImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieBaseModelImpl.java index fd61b0366ee..9761ba6fbce 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieBaseModelImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieBaseModelImpl.java @@ -70,7 +70,7 @@ public class KieBaseModelImpl private KieModuleModel kModule; - private String scope = "javax.enterprise.context.ApplicationScoped"; + private String scope = "jakarta.enterprise.context.ApplicationScoped"; private List ruleTemplates = new ArrayList<>(); diff --git a/drools-compiler/src/main/java/org/drools/compiler/runtime/pipeline/impl/DroolsJaxbHelperProviderImpl.java b/drools-compiler/src/main/java/org/drools/compiler/runtime/pipeline/impl/DroolsJaxbHelperProviderImpl.java index 1fcab7e603d..a61c6ac6ef8 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/runtime/pipeline/impl/DroolsJaxbHelperProviderImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/runtime/pipeline/impl/DroolsJaxbHelperProviderImpl.java @@ -28,8 +28,8 @@ import java.util.List; import java.util.Map; import java.util.Map.Entry; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; +import jakarta.xml.bind.JAXBContext; +import jakarta.xml.bind.JAXBException; import com.sun.codemodel.CodeWriter; import com.sun.codemodel.JCodeModel; diff --git a/drools-core/pom.xml b/drools-core/pom.xml index 1cbad97ab4d..53887388466 100644 --- a/drools-core/pom.xml +++ b/drools-core/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml @@ -76,9 +76,10 @@ provided - com.sun.xml.bind - jaxb-impl + org.glassfish.jaxb + jaxb-runtime provided + 4.0.3 jakarta.xml.bind diff --git a/drools-core/src/main/java/org/drools/core/ClassObjectSerializationFilter.java b/drools-core/src/main/java/org/drools/core/ClassObjectSerializationFilter.java index 9f0e1fadf94..136270b9f87 100644 --- a/drools-core/src/main/java/org/drools/core/ClassObjectSerializationFilter.java +++ b/drools-core/src/main/java/org/drools/core/ClassObjectSerializationFilter.java @@ -1,9 +1,9 @@ package org.drools.core; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.kie.api.runtime.ClassObjectFilter; import org.kie.api.runtime.ObjectFilter; diff --git a/drools-core/src/main/java/org/drools/core/base/ArrayElements.java b/drools-core/src/main/java/org/drools/core/base/ArrayElements.java index 2318d25e54f..aa3e359f76e 100644 --- a/drools-core/src/main/java/org/drools/core/base/ArrayElements.java +++ b/drools-core/src/main/java/org/drools/core/base/ArrayElements.java @@ -17,10 +17,10 @@ package org.drools.core.base; import java.util.Arrays; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlType; @XmlType(name="array-elements") @XmlAccessorType(XmlAccessType.NONE) diff --git a/drools-core/src/main/java/org/drools/core/base/RuleNameEndsWithAgendaFilter.java b/drools-core/src/main/java/org/drools/core/base/RuleNameEndsWithAgendaFilter.java index cb579b95304..a3288d92b53 100644 --- a/drools-core/src/main/java/org/drools/core/base/RuleNameEndsWithAgendaFilter.java +++ b/drools-core/src/main/java/org/drools/core/base/RuleNameEndsWithAgendaFilter.java @@ -18,10 +18,10 @@ import java.io.Serializable; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.kie.api.runtime.rule.AgendaFilter; import org.kie.api.runtime.rule.Match; diff --git a/drools-core/src/main/java/org/drools/core/base/RuleNameEqualsAgendaFilter.java b/drools-core/src/main/java/org/drools/core/base/RuleNameEqualsAgendaFilter.java index 74e86b8f30a..1457cfc0d06 100644 --- a/drools-core/src/main/java/org/drools/core/base/RuleNameEqualsAgendaFilter.java +++ b/drools-core/src/main/java/org/drools/core/base/RuleNameEqualsAgendaFilter.java @@ -18,10 +18,10 @@ import java.io.Serializable; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.kie.api.runtime.rule.AgendaFilter; import org.kie.api.runtime.rule.Match; diff --git a/drools-core/src/main/java/org/drools/core/base/RuleNameMatchesAgendaFilter.java b/drools-core/src/main/java/org/drools/core/base/RuleNameMatchesAgendaFilter.java index 6003fb3fbf8..b52dd7053d4 100644 --- a/drools-core/src/main/java/org/drools/core/base/RuleNameMatchesAgendaFilter.java +++ b/drools-core/src/main/java/org/drools/core/base/RuleNameMatchesAgendaFilter.java @@ -20,10 +20,10 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.kie.api.runtime.rule.AgendaFilter; import org.kie.api.runtime.rule.Match; diff --git a/drools-core/src/main/java/org/drools/core/base/RuleNameStartsWithAgendaFilter.java b/drools-core/src/main/java/org/drools/core/base/RuleNameStartsWithAgendaFilter.java index c5f6384f43a..fea26fb7bc4 100644 --- a/drools-core/src/main/java/org/drools/core/base/RuleNameStartsWithAgendaFilter.java +++ b/drools-core/src/main/java/org/drools/core/base/RuleNameStartsWithAgendaFilter.java @@ -18,10 +18,10 @@ import java.io.Serializable; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import org.kie.api.runtime.rule.AgendaFilter; import org.kie.api.runtime.rule.Match; diff --git a/drools-core/src/main/java/org/drools/core/common/DefaultFactHandle.java b/drools-core/src/main/java/org/drools/core/common/DefaultFactHandle.java index e4c1626da66..695fef7405c 100644 --- a/drools-core/src/main/java/org/drools/core/common/DefaultFactHandle.java +++ b/drools-core/src/main/java/org/drools/core/common/DefaultFactHandle.java @@ -28,10 +28,10 @@ import org.drools.util.StringUtils; import org.kie.api.runtime.rule.FactHandle; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; import java.util.Objects; import java.util.function.Consumer; import java.util.function.Predicate; diff --git a/drools-core/src/main/java/org/drools/core/common/DisconnectedFactHandle.java b/drools-core/src/main/java/org/drools/core/common/DisconnectedFactHandle.java index 66b3b705fe3..2d3f55905d4 100644 --- a/drools-core/src/main/java/org/drools/core/common/DisconnectedFactHandle.java +++ b/drools-core/src/main/java/org/drools/core/common/DisconnectedFactHandle.java @@ -25,13 +25,13 @@ import org.drools.core.reteoo.Tuple; import org.kie.api.runtime.rule.FactHandle; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlSeeAlso; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.XmlSeeAlso; import java.io.Externalizable; import java.io.IOException; import java.io.ObjectInput; diff --git a/drools-core/src/main/java/org/drools/core/common/ObjectFactory.java b/drools-core/src/main/java/org/drools/core/common/ObjectFactory.java index 236d78023e1..cb378ad0823 100644 --- a/drools-core/src/main/java/org/drools/core/common/ObjectFactory.java +++ b/drools-core/src/main/java/org/drools/core/common/ObjectFactory.java @@ -16,7 +16,7 @@ package org.drools.core.common; -import javax.xml.bind.annotation.XmlRegistry; +import jakarta.xml.bind.annotation.XmlRegistry; @XmlRegistry public class ObjectFactory { diff --git a/drools-core/src/main/java/org/drools/core/common/QueryElementFactHandle.java b/drools-core/src/main/java/org/drools/core/common/QueryElementFactHandle.java index ea934605196..39743821ebf 100644 --- a/drools-core/src/main/java/org/drools/core/common/QueryElementFactHandle.java +++ b/drools-core/src/main/java/org/drools/core/common/QueryElementFactHandle.java @@ -23,9 +23,9 @@ import org.drools.core.reteoo.RightTuple; import org.drools.core.reteoo.Tuple; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; import java.util.Arrays; import java.util.function.Consumer; import java.util.function.Predicate; diff --git a/drools-core/src/main/java/org/drools/core/util/AbstractBaseLinkedListNode.java b/drools-core/src/main/java/org/drools/core/util/AbstractBaseLinkedListNode.java index 5cd6e541a52..b38cf3801bb 100644 --- a/drools-core/src/main/java/org/drools/core/util/AbstractBaseLinkedListNode.java +++ b/drools-core/src/main/java/org/drools/core/util/AbstractBaseLinkedListNode.java @@ -16,9 +16,9 @@ package org.drools.core.util; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlRootElement; /** * Provides a abstract base implementation that an object can extend so that it can be used in a LinkedList. diff --git a/drools-decisiontables/pom.xml b/drools-decisiontables/pom.xml index 71f748d2d59..0a08bab7e59 100644 --- a/drools-decisiontables/pom.xml +++ b/drools-decisiontables/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-distribution/pom.xml b/drools-distribution/pom.xml index 13341b96836..68febb579a1 100644 --- a/drools-distribution/pom.xml +++ b/drools-distribution/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-docs/pom.xml b/drools-docs/pom.xml index cfdf4ecebb9..d6e5c9127ea 100755 --- a/drools-docs/pom.xml +++ b/drools-docs/pom.xml @@ -7,7 +7,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-docs/src/modules/ROOT/pages/migration-guide/migration-v7-to-kogito/_proc-kogito-migrate-drl-implement-ruleunits.adoc b/drools-docs/src/modules/ROOT/pages/migration-guide/migration-v7-to-kogito/_proc-kogito-migrate-drl-implement-ruleunits.adoc index 111c12b6c3c..4cc2968027d 100644 --- a/drools-docs/src/modules/ROOT/pages/migration-guide/migration-v7-to-kogito/_proc-kogito-migrate-drl-implement-ruleunits.adoc +++ b/drools-docs/src/modules/ROOT/pages/migration-guide/migration-v7-to-kogito/_proc-kogito-migrate-drl-implement-ruleunits.adoc @@ -127,7 +127,7 @@ The following is an example of a REST endpoint that takes a rule unit as input a @Path("/find-approved") public class LoanUnitQueryFindApprovedEndpoint { - @javax.inject.Inject + @jakarta.inject.Inject RuleUnit ruleUnit; public LoanUnitQueryFindApprovedEndpoint() { diff --git a/drools-drl-ast/pom.xml b/drools-drl-ast/pom.xml index fc9562bce9a..ddf60d0ebfb 100644 --- a/drools-drl-ast/pom.xml +++ b/drools-drl-ast/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-drl-extensions/pom.xml b/drools-drl-extensions/pom.xml index 0d876b9fd52..8c4ff683d09 100644 --- a/drools-drl-extensions/pom.xml +++ b/drools-drl-extensions/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-drl-parser/pom.xml b/drools-drl-parser/pom.xml index 1697b5cb2bc..b06424d5f48 100644 --- a/drools-drl-parser/pom.xml +++ b/drools-drl-parser/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/pom.xml index 468673fbd10..daf3c22ad1d 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/pom.xml @@ -6,7 +6,7 @@ org.drools drools-drl-quarkus-extension - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT Drools :: Quarkus Extension :: Deployment diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/DroolsAssetsProcessor.java b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/DroolsAssetsProcessor.java index a17475e17d0..c6083e2f78a 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/DroolsAssetsProcessor.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/DroolsAssetsProcessor.java @@ -23,7 +23,7 @@ import java.util.Set; import java.util.stream.Collectors; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.arc.deployment.GeneratedBeanBuildItem; import io.quarkus.deployment.annotations.BuildProducer; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/pom.xml index 663bf94e0e1..2585af92d10 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/pom.xml @@ -6,7 +6,7 @@ org.drools drools-drl-quarkus-examples - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT Drools :: Quarkus Extension :: Examples :: Reactive diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/test/java/org/drools/quarkus/ruleunit/examples/multiunit/RuntimeTest.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/test/java/org/drools/quarkus/ruleunit/examples/multiunit/RuntimeTest.java index 728bf58c32c..f8d77a3717d 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/test/java/org/drools/quarkus/ruleunit/examples/multiunit/RuntimeTest.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/test/java/org/drools/quarkus/ruleunit/examples/multiunit/RuntimeTest.java @@ -16,7 +16,7 @@ package org.drools.quarkus.ruleunit.examples.multiunit; import java.util.concurrent.atomic.AtomicReference; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.test.junit.QuarkusTest; import org.drools.ruleunits.api.DataHandle; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/pom.xml index 4917bd413a7..38b5e5da67f 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/pom.xml @@ -6,7 +6,7 @@ org.drools drools-drl-quarkus-examples - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT Drools :: Quarkus Extension :: Examples :: Reactive diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Adaptor.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Adaptor.java index bf39868231a..8d6faa6145a 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Adaptor.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Adaptor.java @@ -15,10 +15,10 @@ */ package org.drools.quarkus.ruleunit.examples.reactive; -import javax.annotation.PostConstruct; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.annotation.PostConstruct; import org.eclipse.microprofile.reactive.messaging.Channel; import org.eclipse.microprofile.reactive.messaging.Emitter; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/KafkaTestResourceLifecycleManager.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/KafkaTestResourceLifecycleManager.java index 14e6615a215..e1daf6033d3 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/KafkaTestResourceLifecycleManager.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/KafkaTestResourceLifecycleManager.java @@ -19,7 +19,7 @@ import java.util.Map; import io.quarkus.test.common.QuarkusTestResourceLifecycleManager; -import io.smallrye.reactive.messaging.providers.connectors.InMemoryConnector; +import io.smallrye.reactive.messaging.memory.InMemoryConnector; public class KafkaTestResourceLifecycleManager implements QuarkusTestResourceLifecycleManager { diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/RuntimeTest.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/RuntimeTest.java index 6e1f058eef0..79b6bb074c4 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/RuntimeTest.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/RuntimeTest.java @@ -15,13 +15,13 @@ */ package org.drools.quarkus.ruleunit.examples.reactive; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.test.common.QuarkusTestResource; import io.quarkus.test.junit.QuarkusTest; -import io.smallrye.reactive.messaging.providers.connectors.InMemoryConnector; -import io.smallrye.reactive.messaging.providers.connectors.InMemorySink; -import io.smallrye.reactive.messaging.providers.connectors.InMemorySource; +import io.smallrye.reactive.messaging.memory.InMemoryConnector; +import io.smallrye.reactive.messaging.memory.InMemorySink; +import io.smallrye.reactive.messaging.memory.InMemorySource; import org.eclipse.microprofile.reactive.messaging.spi.Connector; import org.junit.jupiter.api.Test; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/pom.xml index 1482a738614..3f9bf30f7ff 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/pom.xml @@ -6,7 +6,7 @@ org.drools drools-drl-quarkus-extension - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT Drools :: Quarkus Extension :: Examples diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/pom.xml index 6a4944831f5..91b0a4f2bf1 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/pom.xml @@ -6,7 +6,7 @@ org.drools drools-drl-quarkus-extension - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT Drools :: Quarkus Extension :: Integration Test :: Hotreload diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/java/org/drools/quarkus/test/hotreload/FindAdultEndpoint.java b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/java/org/drools/quarkus/test/hotreload/FindAdultEndpoint.java index 8d34b050844..9043abe0903 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/java/org/drools/quarkus/test/hotreload/FindAdultEndpoint.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/java/org/drools/quarkus/test/hotreload/FindAdultEndpoint.java @@ -17,12 +17,12 @@ import java.util.ArrayList; import java.util.List; -import javax.inject.Inject; -import javax.ws.rs.Consumes; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.kie.api.runtime.KieRuntimeBuilder; import org.kie.api.runtime.KieSession; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/pom.xml index e04b7e8d768..4cf12be4bcf 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/pom.xml @@ -6,7 +6,7 @@ org.drools drools-drl-quarkus-extension - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT Drools :: Quarkus Extension :: Integration Test diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/TestableResource.java b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/TestableResource.java index c2b54de4a49..340c6a08302 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/TestableResource.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/TestableResource.java @@ -22,10 +22,10 @@ import org.kie.api.runtime.rule.FactHandle; import org.kie.api.time.SessionPseudoClock; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import java.util.Collection; import java.util.List; import java.util.concurrent.TimeUnit; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/test/java/org/drools/quarkus/test/RuntimeTest.java b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/test/java/org/drools/quarkus/test/RuntimeTest.java index 541d798fb47..c8aff28b7b1 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/test/java/org/drools/quarkus/test/RuntimeTest.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/test/java/org/drools/quarkus/test/RuntimeTest.java @@ -21,7 +21,7 @@ import org.kie.api.runtime.KieRuntimeBuilder; import org.kie.api.runtime.KieSession; -import javax.inject.Inject; +import jakarta.inject.Inject; import java.util.List; import java.util.stream.Collectors; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/pom.xml index c4f2116f2ef..b5aa4da53a8 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/pom.xml @@ -6,7 +6,7 @@ org.drools drools-drl-quarkus-extension - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT Drools :: Quarkus Extension :: Quickstart Integration Test diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/HomeAlertsBean.java b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/HomeAlertsBean.java index b8341c62ae2..9b677cf639e 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/HomeAlertsBean.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/HomeAlertsBean.java @@ -18,8 +18,8 @@ import java.util.Collection; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.drools.quarkus.quickstart.test.model.Alert; import org.drools.quarkus.quickstart.test.model.CCTV; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/BeanTest.java b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/BeanTest.java index 2029f09c594..1fccb052af4 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/BeanTest.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/BeanTest.java @@ -15,7 +15,7 @@ */ package org.drools.quarkus.quickstart.test; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.test.junit.QuarkusTest; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/RuntimeIT.java b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/RuntimeIT.java index 1eef910ed36..637bc75cf55 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/RuntimeIT.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/RuntimeIT.java @@ -15,7 +15,7 @@ */ package org.drools.quarkus.quickstart.test; -import javax.inject.Inject; +import jakarta.inject.Inject; import io.quarkus.test.junit.QuarkusTest; import org.drools.quarkus.quickstart.test.model.Alert; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/pom.xml index a07e4ad4211..4f5b62bec0e 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/pom.xml @@ -6,7 +6,7 @@ org.drools drools-drl-quarkus-extension - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT Drools :: Quarkus Extension :: Integration Test with Rule Unit diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/TestableResource.java b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/TestableResource.java index e956f4e3188..29a8932f7f5 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/TestableResource.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/TestableResource.java @@ -17,10 +17,10 @@ import static org.assertj.core.api.Assertions.assertThat; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import org.drools.ruleunits.api.RuleUnit; import org.drools.ruleunits.api.RuleUnitInstance; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeDslRuleUnitTest.java b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeDslRuleUnitTest.java index b5c0335a677..eb2582f0ae2 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeDslRuleUnitTest.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeDslRuleUnitTest.java @@ -5,7 +5,7 @@ import org.drools.ruleunits.api.RuleUnitInstance; import org.junit.jupiter.api.Test; -import javax.inject.Inject; +import jakarta.inject.Inject; import static org.assertj.core.api.Assertions.assertThat; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeTest.java b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeTest.java index b683dcef384..5e7d100d4c8 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeTest.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeTest.java @@ -20,7 +20,7 @@ import org.drools.ruleunits.api.RuleUnitInstance; import org.junit.jupiter.api.Test; -import javax.inject.Inject; +import jakarta.inject.Inject; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/pom.xml index 2a92aa86b5a..c6cbcb1db4b 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/pom.xml @@ -6,7 +6,7 @@ org.drools drools-drl-quarkus-extension - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT Drools :: Quarkus Extension :: Util :: Deployment diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/DroolsQuarkusResourceUtils.java b/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/DroolsQuarkusResourceUtils.java index 6ce8b279fe4..0c6d8501e64 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/DroolsQuarkusResourceUtils.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/DroolsQuarkusResourceUtils.java @@ -223,8 +223,8 @@ public static List getRuleUnitDefProducerSource(IndexView indexVi } private static final String RULE_UNIT_DEF_PRODUCER = - "import javax.enterprise.context.Dependent;\n" + - "import javax.enterprise.inject.Produces;\n" + + "import jakarta.enterprise.context.Dependent;\n" + + "import jakarta.enterprise.inject.Produces;\n" + "\n" + "import org.drools.ruleunits.api.RuleUnit;\n" + "import org.drools.ruleunits.api.RuleUnitProvider;\n" + diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus/pom.xml index 20a2577f5c6..d7a14245de1 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus/pom.xml @@ -6,7 +6,7 @@ org.drools drools-drl-quarkus-extension - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT Drools :: Quarkus Extension :: Runtime @@ -83,7 +83,7 @@ io.quarkus - quarkus-bootstrap-maven-plugin + quarkus-extension-maven-plugin ${version.io.quarkus} diff --git a/drools-drl-quarkus-extension/pom.xml b/drools-drl-quarkus-extension/pom.xml index 8730532b5bf..649126d2bb5 100644 --- a/drools-drl-quarkus-extension/pom.xml +++ b/drools-drl-quarkus-extension/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/pom.xml b/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/pom.xml index 89854be7070..b910873c14f 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/pom.xml +++ b/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/pom.xml @@ -3,7 +3,7 @@ org.drools drools-drlonyaml-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT drools-drlonyaml-cli-tests Drools :: DRL on YAML :: CLI tests diff --git a/drools-drlonyaml-parent/drools-drlonyaml-cli/pom.xml b/drools-drlonyaml-parent/drools-drlonyaml-cli/pom.xml index 60a6beb65d8..c23f3344854 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-cli/pom.xml +++ b/drools-drlonyaml-parent/drools-drlonyaml-cli/pom.xml @@ -3,7 +3,7 @@ org.drools drools-drlonyaml-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT drools-drlonyaml-cli Drools :: DRL on YAML :: CLI diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/pom.xml b/drools-drlonyaml-parent/drools-drlonyaml-model/pom.xml index c496d3680dd..b9fe759f0f5 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/pom.xml +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/pom.xml @@ -3,7 +3,7 @@ org.drools drools-drlonyaml-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT drools-drlonyaml-model Drools :: DRL on YAML :: model diff --git a/drools-drlonyaml-parent/drools-drlonyaml-schemagen/pom.xml b/drools-drlonyaml-parent/drools-drlonyaml-schemagen/pom.xml index da596acb146..827e5d3968d 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-schemagen/pom.xml +++ b/drools-drlonyaml-parent/drools-drlonyaml-schemagen/pom.xml @@ -3,7 +3,7 @@ org.drools drools-drlonyaml-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT drools-drlonyaml-schemagen Drools :: DRL on YAML :: schema generator diff --git a/drools-drlonyaml-parent/drools-drlonyaml-todrl/pom.xml b/drools-drlonyaml-parent/drools-drlonyaml-todrl/pom.xml index 5530de14a2e..1e9580f5562 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-todrl/pom.xml +++ b/drools-drlonyaml-parent/drools-drlonyaml-todrl/pom.xml @@ -3,7 +3,7 @@ org.drools drools-drlonyaml-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT drools-drlonyaml-todrl Drools :: DRL on YAML :: to DRL emitter diff --git a/drools-drlonyaml-parent/pom.xml b/drools-drlonyaml-parent/pom.xml index 6e0336158e8..d78ad38a871 100644 --- a/drools-drlonyaml-parent/pom.xml +++ b/drools-drlonyaml-parent/pom.xml @@ -3,7 +3,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml org.drools diff --git a/drools-ecj/pom.xml b/drools-ecj/pom.xml index a9010b4a642..59b13c0f06c 100644 --- a/drools-ecj/pom.xml +++ b/drools-ecj/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-engine-classic/pom.xml b/drools-engine-classic/pom.xml index 2e491db27bf..a65cdc2a8a0 100644 --- a/drools-engine-classic/pom.xml +++ b/drools-engine-classic/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-engine/pom.xml b/drools-engine/pom.xml index 29ba8f095fd..d2275748035 100644 --- a/drools-engine/pom.xml +++ b/drools-engine/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-examples-api/default-kiesession-from-file/pom.xml b/drools-examples-api/default-kiesession-from-file/pom.xml index 0a9339b9438..65d1bca6ba5 100644 --- a/drools-examples-api/default-kiesession-from-file/pom.xml +++ b/drools-examples-api/default-kiesession-from-file/pom.xml @@ -6,7 +6,7 @@ org.drools drools-examples-api - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT default-kiesession-from-file diff --git a/drools-examples-api/default-kiesession/pom.xml b/drools-examples-api/default-kiesession/pom.xml index 4e69b8c5b4e..d78e2172192 100644 --- a/drools-examples-api/default-kiesession/pom.xml +++ b/drools-examples-api/default-kiesession/pom.xml @@ -6,7 +6,7 @@ org.drools drools-examples-api - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT default-kiesession diff --git a/drools-examples-api/kie-module-from-multiple-files/pom.xml b/drools-examples-api/kie-module-from-multiple-files/pom.xml index 86b284f519a..029c4534e50 100644 --- a/drools-examples-api/kie-module-from-multiple-files/pom.xml +++ b/drools-examples-api/kie-module-from-multiple-files/pom.xml @@ -6,7 +6,7 @@ org.drools drools-examples-api - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT kie-module-from-multiple-files diff --git a/drools-examples-api/kiebase-inclusion/pom.xml b/drools-examples-api/kiebase-inclusion/pom.xml index 44c57d87a6b..b25c8688510 100644 --- a/drools-examples-api/kiebase-inclusion/pom.xml +++ b/drools-examples-api/kiebase-inclusion/pom.xml @@ -6,7 +6,7 @@ org.drools drools-examples-api - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT kiebase-inclusion diff --git a/drools-examples-api/kiecontainer-from-kierepo/pom.xml b/drools-examples-api/kiecontainer-from-kierepo/pom.xml index cdf1cc699f0..4d083de96ec 100644 --- a/drools-examples-api/kiecontainer-from-kierepo/pom.xml +++ b/drools-examples-api/kiecontainer-from-kierepo/pom.xml @@ -6,7 +6,7 @@ org.drools drools-examples-api - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT kiecontainer-from-kierepo diff --git a/drools-examples-api/kiefilesystem-example/pom.xml b/drools-examples-api/kiefilesystem-example/pom.xml index 1b0e7b07c3c..2a30e0b6d79 100644 --- a/drools-examples-api/kiefilesystem-example/pom.xml +++ b/drools-examples-api/kiefilesystem-example/pom.xml @@ -6,7 +6,7 @@ org.drools drools-examples-api - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT kiefilesystem-example diff --git a/drools-examples-api/kiemodulemodel-example/pom.xml b/drools-examples-api/kiemodulemodel-example/pom.xml index 68757600793..9c380a41b02 100644 --- a/drools-examples-api/kiemodulemodel-example/pom.xml +++ b/drools-examples-api/kiemodulemodel-example/pom.xml @@ -6,7 +6,7 @@ org.drools drools-examples-api - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT kiemodulemodel-example diff --git a/drools-examples-api/multiple-kbases/pom.xml b/drools-examples-api/multiple-kbases/pom.xml index c717c0783da..518aed13d36 100644 --- a/drools-examples-api/multiple-kbases/pom.xml +++ b/drools-examples-api/multiple-kbases/pom.xml @@ -6,7 +6,7 @@ org.drools drools-examples-api - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT multiple-kbases diff --git a/drools-examples-api/named-kiesession-from-file/pom.xml b/drools-examples-api/named-kiesession-from-file/pom.xml index 5b079d9da8e..63d21fd417f 100644 --- a/drools-examples-api/named-kiesession-from-file/pom.xml +++ b/drools-examples-api/named-kiesession-from-file/pom.xml @@ -6,7 +6,7 @@ org.drools drools-examples-api - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT Drools :: API examples :: Named KieSession from File diff --git a/drools-examples-api/named-kiesession/pom.xml b/drools-examples-api/named-kiesession/pom.xml index 2b5055aa9f2..8b18c8b5d62 100644 --- a/drools-examples-api/named-kiesession/pom.xml +++ b/drools-examples-api/named-kiesession/pom.xml @@ -6,7 +6,7 @@ org.drools drools-examples-api - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT named-kiesession diff --git a/drools-examples-api/pom.xml b/drools-examples-api/pom.xml index 515bed1f7f9..7100c63653a 100644 --- a/drools-examples-api/pom.xml +++ b/drools-examples-api/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-examples-api/reactive-kiesession/pom.xml b/drools-examples-api/reactive-kiesession/pom.xml index c45d6351980..8f19adab514 100644 --- a/drools-examples-api/reactive-kiesession/pom.xml +++ b/drools-examples-api/reactive-kiesession/pom.xml @@ -6,7 +6,7 @@ org.drools drools-examples-api - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT reactive-kiesession diff --git a/drools-examples/pom.xml b/drools-examples/pom.xml index fb944dcaa53..4d8a5122d83 100644 --- a/drools-examples/pom.xml +++ b/drools-examples/pom.xml @@ -5,7 +5,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-fastutil/pom.xml b/drools-fastutil/pom.xml index cc772870424..b3a2f4e8f29 100644 --- a/drools-fastutil/pom.xml +++ b/drools-fastutil/pom.xml @@ -7,7 +7,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/pom.xml b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/pom.xml index 33c2fe6fbbf..dc5ff0fccd6 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/pom.xml +++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/pom.xml @@ -5,7 +5,7 @@ drools-impact-analysis-graph org.drools - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/pom.xml b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/pom.xml index e59c5309fb5..8812200efa4 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/pom.xml +++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/pom.xml @@ -5,7 +5,7 @@ drools-impact-analysis-graph org.drools - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/drools-impact-analysis/drools-impact-analysis-graph/pom.xml b/drools-impact-analysis/drools-impact-analysis-graph/pom.xml index 4d94a30ba41..d9628829cec 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/pom.xml +++ b/drools-impact-analysis/drools-impact-analysis-graph/pom.xml @@ -5,7 +5,7 @@ drools-impact-analysis org.drools - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/drools-impact-analysis/drools-impact-analysis-itests/pom.xml b/drools-impact-analysis/drools-impact-analysis-itests/pom.xml index b062770930c..f1b87d63f01 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/pom.xml +++ b/drools-impact-analysis/drools-impact-analysis-itests/pom.xml @@ -5,7 +5,7 @@ drools-impact-analysis org.drools - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/drools-impact-analysis/drools-impact-analysis-model/pom.xml b/drools-impact-analysis/drools-impact-analysis-model/pom.xml index b4fec6056b2..129f8b36091 100644 --- a/drools-impact-analysis/drools-impact-analysis-model/pom.xml +++ b/drools-impact-analysis/drools-impact-analysis-model/pom.xml @@ -5,7 +5,7 @@ drools-impact-analysis org.drools - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/drools-impact-analysis/drools-impact-analysis-parser/pom.xml b/drools-impact-analysis/drools-impact-analysis-parser/pom.xml index 7f6074d5bbe..8a12f31f368 100644 --- a/drools-impact-analysis/drools-impact-analysis-parser/pom.xml +++ b/drools-impact-analysis/drools-impact-analysis-parser/pom.xml @@ -5,7 +5,7 @@ drools-impact-analysis org.drools - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/drools-impact-analysis/pom.xml b/drools-impact-analysis/pom.xml index 7b54e001322..5bde9a171a5 100644 --- a/drools-impact-analysis/pom.xml +++ b/drools-impact-analysis/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-io/pom.xml b/drools-io/pom.xml index 93be5f7c314..723f2c1189c 100644 --- a/drools-io/pom.xml +++ b/drools-io/pom.xml @@ -7,7 +7,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-kiesession/pom.xml b/drools-kiesession/pom.xml index 68cd351a285..dc8a8152587 100644 --- a/drools-kiesession/pom.xml +++ b/drools-kiesession/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-legacy-test-util/pom.xml b/drools-legacy-test-util/pom.xml index bc46c89dc06..bb09a966e93 100644 --- a/drools-legacy-test-util/pom.xml +++ b/drools-legacy-test-util/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Person.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Person.java index 3a767f8f52c..4943dd1dfff 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Person.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Person.java @@ -18,8 +18,8 @@ import org.drools.base.factmodel.traits.Traitable; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; import java.io.Serializable; import java.math.BigDecimal; import java.math.BigInteger; diff --git a/drools-legacy-test-util/src/test/resources/META-INF/kmodule.xml b/drools-legacy-test-util/src/test/resources/META-INF/kmodule.xml index ef384a6d20f..ac6e1c76b08 100644 --- a/drools-legacy-test-util/src/test/resources/META-INF/kmodule.xml +++ b/drools-legacy-test-util/src/test/resources/META-INF/kmodule.xml @@ -25,7 +25,7 @@ - + diff --git a/drools-metric/pom.xml b/drools-metric/pom.xml index a2c446d1e16..a483f3ef13d 100644 --- a/drools-metric/pom.xml +++ b/drools-metric/pom.xml @@ -7,7 +7,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-model/drools-canonical-model/pom.xml b/drools-model/drools-canonical-model/pom.xml index c214c7d8e72..b7f89cde12e 100644 --- a/drools-model/drools-canonical-model/pom.xml +++ b/drools-model/drools-canonical-model/pom.xml @@ -7,7 +7,7 @@ org.drools drools-model - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT Drools :: Canonical Model diff --git a/drools-model/drools-codegen-common/pom.xml b/drools-model/drools-codegen-common/pom.xml index 8b5885bf7b4..b1b09ddad4d 100644 --- a/drools-model/drools-codegen-common/pom.xml +++ b/drools-model/drools-codegen-common/pom.xml @@ -7,7 +7,7 @@ org.drools drools-model - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT org.drools diff --git a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/QuarkusDroolsModelBuildContext.java b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/QuarkusDroolsModelBuildContext.java index 45f736f73a9..7c1d82f6965 100644 --- a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/QuarkusDroolsModelBuildContext.java +++ b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/QuarkusDroolsModelBuildContext.java @@ -18,8 +18,8 @@ public class QuarkusDroolsModelBuildContext extends AbstractDroolsModelBuildContext { public static final String CONTEXT_NAME = "Quarkus"; - public static final String QUARKUS_REST = "javax.ws.rs.Path"; - public static final String QUARKUS_DI = "javax.inject.Inject"; + public static final String QUARKUS_REST = "jakarta.ws.rs.Path"; + public static final String QUARKUS_DI = "jakarta.inject.Inject"; protected QuarkusDroolsModelBuildContext(QuarkusKogitoBuildContextBuilder builder) { super(builder, /*new CDIDependencyInjectionAnnotator(), new CDIRestAnnotator(), */ CONTEXT_NAME); diff --git a/drools-model/drools-model-codegen/pom.xml b/drools-model/drools-model-codegen/pom.xml index 6e8e8f11bfb..5d5670493f9 100644 --- a/drools-model/drools-model-codegen/pom.xml +++ b/drools-model/drools-model-codegen/pom.xml @@ -7,7 +7,7 @@ org.drools drools-model - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT org.drools diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigQuarkusTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigQuarkusTemplate.java index 0cfb0ca4b69..e9f4d6bbad4 100644 --- a/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigQuarkusTemplate.java +++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigQuarkusTemplate.java @@ -15,17 +15,17 @@ */ package $Package$; -import javax.enterprise.inject.Instance; +import jakarta.enterprise.inject.Instance; import org.kie.kogito.drools.core.config.AbstractRuleConfig; import org.kie.api.event.rule.AgendaEventListener; import org.kie.api.event.rule.RuleRuntimeEventListener; import org.kie.kogito.rules.RuleEventListenerConfig; -@javax.inject.Singleton +@jakarta.inject.Singleton class RuleConfig extends AbstractRuleConfig implements org.kie.kogito.rules.RuleConfig { - @javax.inject.Inject + @jakarta.inject.Inject public RuleConfig( Instance ruleEventListenerConfigs, Instance agendaEventListeners, diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java index 4fd73342a2c..3945fb580f6 100644 --- a/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java +++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java @@ -24,7 +24,7 @@ import org.kie.api.runtime.KieRuntimeBuilder; import org.drools.modelcompiler.KieBaseBuilder; -@javax.enterprise.context.ApplicationScoped +@jakarta.enterprise.context.ApplicationScoped public class ProjectRuntime implements KieRuntimeBuilder { private static final ProjectModel model = new ProjectModel(); diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitQuarkusTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitQuarkusTemplate.java index 35e6387505b..ec89fb8a041 100644 --- a/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitQuarkusTemplate.java +++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitQuarkusTemplate.java @@ -10,7 +10,7 @@ import org.drools.ruleunits.impl.ReteEvaluatorBasedRuleUnitInstance; import org.drools.ruleunits.impl.sessions.RuleUnitExecutorImpl; -@javax.enterprise.context.ApplicationScoped +@jakarta.enterprise.context.ApplicationScoped public class CLASS_NAME extends AbstractRuleUnit { private static final InternalRuleBase ruleBase = KieBaseBuilder.createKieBaseFromModel(new RULE_UNIT_MODEL(), $KieBaseOptions$); @@ -25,8 +25,8 @@ public CLASS_NAME() { this((RuleUnits) null); } - @javax.inject.Inject - public CLASS_NAME(javax.enterprise.inject.Instance ruleUnits) { + @jakarta.inject.Inject + public CLASS_NA(jakarta.enterprise.inject.Instance ruleUnits) { this(ruleUnits == null || ruleUnits.isUnsatisfied() ? AbstractRuleUnits.DummyRuleUnits.INSTANCE : ruleUnits.get()); } diff --git a/drools-model/drools-model-compiler/pom.xml b/drools-model/drools-model-compiler/pom.xml index fea1fb0ef5d..a8742e2d145 100644 --- a/drools-model/drools-model-compiler/pom.xml +++ b/drools-model/drools-model-compiler/pom.xml @@ -7,7 +7,7 @@ org.drools drools-model - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT Drools :: Model :: Compiler diff --git a/drools-model/drools-mvel-compiler/pom.xml b/drools-model/drools-mvel-compiler/pom.xml index 0ba3b23e174..5e8ec3f1720 100644 --- a/drools-model/drools-mvel-compiler/pom.xml +++ b/drools-model/drools-mvel-compiler/pom.xml @@ -7,7 +7,7 @@ org.drools drools-model - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT Drools :: MVEL Compiler diff --git a/drools-model/drools-mvel-parser/pom.xml b/drools-model/drools-mvel-parser/pom.xml index 4634907e8ef..2c9491dbcc6 100644 --- a/drools-model/drools-mvel-parser/pom.xml +++ b/drools-model/drools-mvel-parser/pom.xml @@ -4,7 +4,7 @@ org.drools drools-model - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT Drools :: MVEL Parser diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/MvelParser.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/MvelParser.java index 081579dedad..b7eb48d6747 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/MvelParser.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/MvelParser.java @@ -86,7 +86,7 @@ public MvelParser(ParserConfiguration configuration) { public MvelParser(ParserConfiguration configuration, boolean optionalSemicolon) { this.configuration = configuration; - configuration.getPostProcessors().clear(); + configuration.getProcessors().clear(); this.optionalSemicolon = optionalSemicolon; } @@ -146,8 +146,8 @@ public ParseResult parse(ParseStart start, Provider provi N resultNode = start.parse(parser); ParseResult result = new ParseResult<>(resultNode, parser.problems, parser.getCommentsCollection()); - configuration.getPostProcessors().forEach(postProcessor -> - postProcessor.process(result, configuration)); + configuration.getProcessors().forEach(processor -> + processor.get().postProcess(result, configuration)); result.getProblems().sort(PROBLEM_BY_BEGIN_POSITION); diff --git a/drools-model/drools-mvel-parser/src/main/javacc/mvel.jj b/drools-model/drools-mvel-parser/src/main/javacc/mvel.jj index 615512de3f8..7ef702abdb6 100644 --- a/drools-model/drools-mvel-parser/src/main/javacc/mvel.jj +++ b/drools-model/drools-mvel-parser/src/main/javacc/mvel.jj @@ -1370,13 +1370,14 @@ ModifierHolder Modifiers(): * Also note that JavaParser handles the hierarchy/specialisations of classes, interfaces, and enums differently to the JLS. *
    *
  • This {@code ClassOrInterfaceDeclaration} refers to the {@code NormalClassDeclaration} and {@code NormalInterfaceDeclaration},
  • - *
  • while {@code AnnotationTypeDeclaration} and {@code EnumDeclaration} are handled separately within this grammar.
  • + *
  • while {@code AnnotationTypeDeclaration}, {@code EnumDeclaration}, and {@code RecordDeclaration} are handled separately within this grammar.
  • *
- * https://docs.oracle.com/javase/specs/jls/se15/html/jls-8.html#jls-8.1 + * https://docs.oracle.com/javase/specs/jls/se17/html/jls-8.html#jls-8.1 *
{@code
  *     ClassDeclaration:
  *         NormalClassDeclaration
  *         EnumDeclaration
+ *         RecordDeclaration
  *     NormalClassDeclaration:
  *         {ClassModifier} class TypeIdentifier [TypeParameters] [Superclass] [Superinterfaces] ClassBody
  * }
@@ -1417,11 +1418,11 @@ ClassOrInterfaceDeclaration ClassOrInterfaceDeclaration(ModifierHolder modifier) } /** - * https://openjdk.java.net/jeps/395#Java-grammar + * https://docs.oracle.com/javase/specs/jls/se17/html/jls-8.html#jls-8.10 *
{@code
  *     RecordDeclaration:
  *        {ClassModifier} `record` TypeIdentifier [TypeParameters]
- *          RecordHeader [SuperInterfaces] RecordBody
+ *          RecordHeader [ClassImplements] RecordBody
  *
  *      RecordHeader:
  *       `(` [RecordComponentList] `)`
@@ -1430,11 +1431,15 @@ ClassOrInterfaceDeclaration ClassOrInterfaceDeclaration(ModifierHolder modifier)
  *       RecordComponent { `,` RecordComponent}
  *
  *      RecordComponent:
- *       {Annotation} UnannType Identifier
+ *       {RecordComponentModifier} UnannType Identifier
  *       VariableArityRecordComponent
  *
  *      VariableArityRecordComponent:
  *       {Annotation} UnannType {Annotation} `...` Identifier
+ *       {RecordComponentModifier} UnannType {Annotation} `...` Identifier
+ *
+ *      RecordComponentModifier:
+ *       Annotation
  *
  *      RecordBody:
  *        `{` {RecordBodyDeclaration} `}`
@@ -1859,6 +1864,9 @@ BodyDeclaration RecordBodyDeclaration():
          |
             LOOKAHEAD("enum")
             ret = EnumDeclaration(modifiers)
+         |
+            LOOKAHEAD("record")
+            ret = RecordDeclaration(modifiers)
          |
             LOOKAHEAD("@" "interface")
             ret = AnnotationTypeDeclaration(modifiers)
@@ -3365,13 +3373,15 @@ Expression EqualityExpression():
  */
 PatternExpr PatternExpression():
 {
+    ModifierHolder modifier;
     ReferenceType type;
     SimpleName name;
 }
 {
-    type = AnnotatedReferenceType()
+    modifier = Modifiers()
+    type = ReferenceType(modifier.annotations)
     name = SimpleName()
-    { return new PatternExpr(range(type, token()), type, name); }
+    { return new PatternExpr(range(type, token()), modifier.modifiers, type, name); }
 }
 
 
@@ -4527,6 +4537,11 @@ Statement BlockStatement():
             LOOKAHEAD( Modifiers() "record" SimpleName() [ TypeParameters() ] Parameters() )
             modifier = Modifiers()
             recordDeclaration = RecordDeclaration(modifier) { ret = new LocalRecordDeclarationStmt(range(recordDeclaration, token()), recordDeclaration); }
+         |
+            // try yield statement separate from more general Statement() because yield is not a keyword but
+            // just a restricted identifier and a yield statement can be confused with VariableDeclarationExpression sometimes
+            LOOKAHEAD( YieldStatement() )
+            ret = YieldStatement()
          |
             LOOKAHEAD( VariableDeclarationExpression() )
             expr = VariableDeclarationExpression()
diff --git a/drools-model/pom.xml b/drools-model/pom.xml
index 9cceb651f81..07c57b12fc8 100644
--- a/drools-model/pom.xml
+++ b/drools-model/pom.xml
@@ -6,7 +6,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
diff --git a/drools-mvel/pom.xml b/drools-mvel/pom.xml
index 1de877e39c8..cd511fff205 100644
--- a/drools-mvel/pom.xml
+++ b/drools-mvel/pom.xml
@@ -6,7 +6,7 @@
     
         org.kie
         drools-build-parent
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
         ../build-parent/pom.xml
     
 
@@ -70,9 +70,10 @@
             provided
         
         
-            com.sun.xml.bind
-            jaxb-impl
+            org.glassfish.jaxb
+            jaxb-runtime
             provided
+            4.0.3
         
         
             jakarta.xml.bind
diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/Person.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/Person.java
index 866fd03b54c..b4fa18bf5ce 100644
--- a/drools-mvel/src/test/java/org/drools/mvel/compiler/Person.java
+++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/Person.java
@@ -18,8 +18,8 @@
 
 import org.drools.base.factmodel.traits.Traitable;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
 import java.io.Serializable;
 import java.math.BigDecimal;
 import java.math.BigInteger;
diff --git a/drools-persistence/drools-persistence-api/pom.xml b/drools-persistence/drools-persistence-api/pom.xml
index 21c573d0d15..74bed4e60d3 100644
--- a/drools-persistence/drools-persistence-api/pom.xml
+++ b/drools-persistence/drools-persistence-api/pom.xml
@@ -6,7 +6,7 @@
   
     org.drools
     drools-persistence
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   drools-persistence-api
@@ -41,9 +41,10 @@
       drools-commands
     
     
-      com.sun.xml.bind
-      jaxb-impl
+      org.glassfish.jaxb
+      jaxb-runtime
       provided
+      4.0.3
     
     
       com.sun.xml.bind
diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistenceContextManager.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistenceContextManager.java
index d64ee3b8e37..1c988e07cc5 100644
--- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistenceContextManager.java
+++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistenceContextManager.java
@@ -19,7 +19,7 @@
 import org.kie.api.command.Command;
 import org.kie.api.runtime.KieSession;
 
-import javax.transaction.Synchronization;
+import jakarta.transaction.Synchronization;
 
 public interface PersistenceContextManager {
     
diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronizationRegistryHelper.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronizationRegistryHelper.java
index 5d4a3b36d47..d567816171a 100644
--- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronizationRegistryHelper.java
+++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronizationRegistryHelper.java
@@ -15,7 +15,7 @@
 
 package org.drools.persistence.api;
 
-import javax.transaction.TransactionSynchronizationRegistry;
+import jakarta.transaction.TransactionSynchronizationRegistry;
 
 import org.drools.persistence.jta.JtaTransactionSynchronizationAdapter;
 import org.slf4j.Logger;
diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManager.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManager.java
index 9ed3486b10e..15913f87721 100644
--- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManager.java
+++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManager.java
@@ -20,10 +20,10 @@
 import java.util.Map;
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
-import javax.transaction.Status;
-import javax.transaction.SystemException;
-import javax.transaction.TransactionSynchronizationRegistry;
-import javax.transaction.UserTransaction;
+import jakarta.transaction.Status;
+import jakarta.transaction.SystemException;
+import jakarta.transaction.TransactionSynchronizationRegistry;
+import jakarta.transaction.UserTransaction;
 
 import org.drools.persistence.api.TransactionManager;
 import org.drools.persistence.api.TransactionSynchronization;
@@ -47,7 +47,7 @@ public class JtaTransactionManager
      */
     public static final String           DEFAULT_TRANSACTION_SYNCHRONIZATION_REGISTRY_NAME = "java:comp/TransactionSynchronizationRegistry";
 
-    private static final String          TRANSACTION_SYNCHRONIZATION_REGISTRY_CLASS_NAME   = "javax.transaction.TransactionSynchronizationRegistry";
+    private static final String          TRANSACTION_SYNCHRONIZATION_REGISTRY_CLASS_NAME   = "jakarta.transaction.TransactionSynchronizationRegistry";
 
     private static Class< ? >            transactionSynchronizationRegistryClass;
 
@@ -69,7 +69,7 @@ protected Map initialValue() {
 
     UserTransaction                      ut;
     Object                               tsr;
-    javax.transaction.TransactionManager tm;
+    jakarta.transaction.TransactionManager tm;
     
     public JtaTransactionManager(Object ut,
                                  Object tsr,
@@ -80,20 +80,20 @@ public JtaTransactionManager(Object ut,
             this.ut = ( UserTransaction ) ( (ut != null) ? ut : findUserTransaction() );
         }
         
-        if ( tm instanceof javax.transaction.TransactionManager ) {
-            this.tm = ( javax.transaction.TransactionManager ) tm;
+        if ( tm instanceof jakarta.transaction.TransactionManager ) {
+            this.tm = ( jakarta.transaction.TransactionManager ) tm;
         } else {
-            this.tm = ( javax.transaction.TransactionManager ) ( (tm != null) ? tm : findTransactionManager( this.ut ) );
+            this.tm = ( jakarta.transaction.TransactionManager ) ( (tm != null) ? tm : findTransactionManager( this.ut ) );
         }
         this.tsr = (tsr != null) ? tsr : findTransactionSynchronizationRegistry( this.ut,
                                                                                  this.tm );
     }
 
-    protected javax.transaction.TransactionManager findTransactionManager(UserTransaction ut) {
-        if ( ut instanceof javax.transaction.TransactionManager ) {
+    protected jakarta.transaction.TransactionManager findTransactionManager(UserTransaction ut) {
+        if ( ut instanceof jakarta.transaction.TransactionManager ) {
             logger.debug( "JTA UserTransaction object [{}] implements TransactionManager",
                           ut );
-            return (javax.transaction.TransactionManager) ut;
+            return (jakarta.transaction.TransactionManager) ut;
         }
 
         InitialContext context;
@@ -112,7 +112,7 @@ protected javax.transaction.TransactionManager findTransactionManager(UserTransa
                 continue;
             }
             try {
-                javax.transaction.TransactionManager tm = (javax.transaction.TransactionManager) context.lookup( jndiName );
+                jakarta.transaction.TransactionManager tm = (jakarta.transaction.TransactionManager) context.lookup( jndiName );
                 logger.debug( "JTA TransactionManager found at fallback JNDI location [{}]",
                               jndiName );
                 return tm;
@@ -146,7 +146,7 @@ protected UserTransaction findUserTransaction() {
     }
 
     protected Object findTransactionSynchronizationRegistry(UserTransaction ut,
-                                                            javax.transaction.TransactionManager tm) {
+                                                            jakarta.transaction.TransactionManager tm) {
 
         if ( transactionSynchronizationRegistryClass == null ) {
             // JTA 1.1 API not present - skip.
@@ -216,7 +216,7 @@ public boolean begin() {
                 return true;
             } catch ( Exception e ) {
                 // special WAS handling for cached UserTrnsactions
-                if (e.getClass().getName().equals("javax.ejb.EJBException")) {
+                if (e.getClass().getName().equals("jakarta.ejb.EJBException")) {
                     // reinitialize all fields
                     this.ut = findUserTransaction();
                     this.tm = findTransactionManager(this.ut);
diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManagerFactory.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManagerFactory.java
index 7572b105d10..7cfb68b5142 100644
--- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManagerFactory.java
+++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManagerFactory.java
@@ -32,8 +32,8 @@ public TransactionManager newTransactionManager() {
     }
 
     /**
-     * Creates a {@link JtaTransactionManager} instance using any of the {@link javax.transaction.UserTransaction},
-     * {@link javax.transaction.TransactionSynchronizationRegistry}, and {@link javax.transaction.TransactionManager}
+     * Creates a {@link JtaTransactionManager} instance using any of the {@link jakarta.transaction.UserTransaction},
+     * {@link jakarta.transaction.TransactionSynchronizationRegistry}, and {@link jakarta.transaction.TransactionManager}
      * present in {@code env}.
      * 
      * @param env
diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionSynchronizationAdapter.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionSynchronizationAdapter.java
index d1d8dcc3a9d..ba7001e629f 100644
--- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionSynchronizationAdapter.java
+++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionSynchronizationAdapter.java
@@ -15,8 +15,8 @@
 
 package org.drools.persistence.jta;
 
-import javax.transaction.Status;
-import javax.transaction.Synchronization;
+import jakarta.transaction.Status;
+import jakarta.transaction.Synchronization;
 
 import org.drools.persistence.api.TransactionManager;
 import org.drools.persistence.api.TransactionSynchronization;
diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/TransactionLockInterceptor.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/TransactionLockInterceptor.java
index 228078eec75..267c2fca72d 100644
--- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/TransactionLockInterceptor.java
+++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/TransactionLockInterceptor.java
@@ -19,7 +19,7 @@
 import java.util.Set;
 import java.util.concurrent.CopyOnWriteArraySet;
 import java.util.concurrent.locks.ReentrantLock;
-import javax.transaction.Status;
+import jakarta.transaction.Status;
 
 import org.drools.commands.impl.AbstractInterceptor;
 import org.drools.persistence.api.OrderedTransactionSynchronization;
diff --git a/drools-persistence/drools-persistence-jpa/pom.xml b/drools-persistence/drools-persistence-jpa/pom.xml
index a72122559c5..fa6c345b5b9 100644
--- a/drools-persistence/drools-persistence-jpa/pom.xml
+++ b/drools-persistence/drools-persistence-jpa/pom.xml
@@ -6,7 +6,7 @@
   
     org.drools
     drools-persistence
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   drools-persistence-jpa
@@ -103,9 +103,10 @@
       drools-mvel
     
     
-      com.sun.xml.bind
-      jaxb-impl
+      org.glassfish.jaxb
+      jaxb-runtime
       provided
+      4.0.3
     
     
       com.sun.xml.bind
@@ -147,13 +148,8 @@
     
 
     
-    
-      org.hibernate
-      hibernate-entitymanager
-      test
-    
-    
-      org.hibernate
+    
+      org.hibernate.orm
       hibernate-core
       test
       
diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/TriggerUpdateTransactionSynchronization.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/TriggerUpdateTransactionSynchronization.java
index d71fbda7278..aaeb023cb35 100644
--- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/TriggerUpdateTransactionSynchronization.java
+++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/TriggerUpdateTransactionSynchronization.java
@@ -16,7 +16,7 @@
 package org.drools.persistence;
 
 import java.util.Set;
-import javax.persistence.EntityManager;
+import jakarta.persistence.EntityManager;
 
 import org.drools.persistence.api.TransactionManager;
 import org.drools.persistence.api.TransactionManagerHelper;
diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/SessionInfo.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/SessionInfo.java
index 52cc91c1367..b5da3259b22 100644
--- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/SessionInfo.java
+++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/SessionInfo.java
@@ -17,15 +17,15 @@
 
 import java.util.Date;
 
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.Lob;
-import javax.persistence.SequenceGenerator;
-import javax.persistence.Transient;
-import javax.persistence.Version;
+import jakarta.persistence.Column;
+import jakarta.persistence.Entity;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.GenerationType;
+import jakarta.persistence.Id;
+import jakarta.persistence.Lob;
+import jakarta.persistence.SequenceGenerator;
+import jakarta.persistence.Transient;
+import jakarta.persistence.Version;
 
 import org.drools.persistence.api.PersistentSession;
 import org.drools.persistence.SessionMarshallingHelper;
diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/WorkItemInfo.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/WorkItemInfo.java
index 65e07c870cc..3308128753a 100644
--- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/WorkItemInfo.java
+++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/WorkItemInfo.java
@@ -20,15 +20,15 @@
 import java.io.IOException;
 import java.io.ObjectInputStream;
 import java.util.Date;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.Lob;
-import javax.persistence.SequenceGenerator;
-import javax.persistence.Transient;
-import javax.persistence.Version;
+import jakarta.persistence.Column;
+import jakarta.persistence.Entity;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.GenerationType;
+import jakarta.persistence.Id;
+import jakarta.persistence.Lob;
+import jakarta.persistence.SequenceGenerator;
+import jakarta.persistence.Transient;
+import jakarta.persistence.Version;
 
 import org.drools.core.marshalling.MarshallerReaderContext;
 import org.drools.core.marshalling.MarshallerWriteContext;
diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/AbstractPersistenceContextManager.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/AbstractPersistenceContextManager.java
index a36e1b48430..abf285eb0da 100644
--- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/AbstractPersistenceContextManager.java
+++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/AbstractPersistenceContextManager.java
@@ -15,8 +15,8 @@
  */
  package org.drools.persistence.jpa;
 
-import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.EntityManagerFactory;
 
 import org.drools.persistence.api.TransactionManager;
 import org.kie.api.runtime.Environment;
diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContext.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContext.java
index 9cf810eef75..ee7012c4959 100644
--- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContext.java
+++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContext.java
@@ -17,8 +17,8 @@
 
 import java.lang.reflect.Field;
 
-import javax.persistence.EntityManager;
-import javax.persistence.LockModeType;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.LockModeType;
 
 import org.drools.persistence.api.PersistenceContext;
 import org.drools.persistence.api.PersistentSession;
diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContextManager.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContextManager.java
index 407ff42b024..6baa92cf50b 100644
--- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContextManager.java
+++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContextManager.java
@@ -15,7 +15,7 @@
  */
  package org.drools.persistence.jpa;
 
-import javax.persistence.EntityManager;
+import jakarta.persistence.EntityManager;
 
 import org.drools.persistence.api.PersistenceContext;
 import org.drools.persistence.api.PersistenceContextManager;
diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/OptimisticLockRetryInterceptor.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/OptimisticLockRetryInterceptor.java
index b5bea39c668..5e64f56dea0 100644
--- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/OptimisticLockRetryInterceptor.java
+++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/OptimisticLockRetryInterceptor.java
@@ -22,7 +22,7 @@
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import javax.persistence.OptimisticLockException;
+import jakarta.persistence.OptimisticLockException;
 import java.util.concurrent.atomic.AtomicInteger;
 
 /**
diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/EntityPersister.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/EntityPersister.java
index 231e8e2ee96..c05ec10deac 100644
--- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/EntityPersister.java
+++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/EntityPersister.java
@@ -19,7 +19,7 @@
 import java.util.ArrayList;
 import java.util.List;
 
-import javax.persistence.EntityManager;
+import jakarta.persistence.EntityManager;
 
 public class EntityPersister {
 
diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/JPAPlaceholderResolverStrategy.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/JPAPlaceholderResolverStrategy.java
index a107323a504..e48adb7e911 100644
--- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/JPAPlaceholderResolverStrategy.java
+++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/JPAPlaceholderResolverStrategy.java
@@ -25,11 +25,11 @@
 import java.util.HashSet;
 import java.util.Set;
 
-import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
-import javax.persistence.Persistence;
-import javax.persistence.metamodel.EntityType;
-import javax.persistence.metamodel.Metamodel;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.EntityManagerFactory;
+import jakarta.persistence.Persistence;
+import jakarta.persistence.metamodel.EntityType;
+import jakarta.persistence.metamodel.Metamodel;
 import org.drools.base.common.DroolsObjectInputStream;
 import org.drools.persistence.api.TransactionAware;
 import org.drools.persistence.api.TransactionManager;
diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/MappedVariable.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/MappedVariable.java
index 604fe48ceaa..5edb5d9e1d3 100644
--- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/MappedVariable.java
+++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/MappedVariable.java
@@ -17,13 +17,13 @@
 package org.drools.persistence.jpa.marshaller;
 
 import java.io.Serializable;
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.SequenceGenerator;
-import javax.persistence.Version;
+import jakarta.persistence.Column;
+import jakarta.persistence.Entity;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.GenerationType;
+import jakarta.persistence.Id;
+import jakarta.persistence.SequenceGenerator;
+import jakarta.persistence.Version;
 
 @Entity
 @SequenceGenerator(name="mappedVarIdSeq", sequenceName="MAPPED_VAR_ID_SEQ")
diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/VariableEntity.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/VariableEntity.java
index 445d9eb17f8..f35762181d1 100644
--- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/VariableEntity.java
+++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/VariableEntity.java
@@ -19,11 +19,11 @@
 import java.io.Serializable;
 import java.util.HashSet;
 import java.util.Set;
-import javax.persistence.CascadeType;
-import javax.persistence.JoinColumn;
-import javax.persistence.MappedSuperclass;
-import javax.persistence.OneToMany;
-import javax.persistence.FetchType;
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.JoinColumn;
+import jakarta.persistence.MappedSuperclass;
+import jakarta.persistence.OneToMany;
+import jakarta.persistence.FetchType;
 
 @MappedSuperclass
 public abstract class VariableEntity implements Serializable {
diff --git a/drools-persistence/drools-persistence-jpa/src/test/filtered-resources/META-INF/persistence.xml b/drools-persistence/drools-persistence-jpa/src/test/filtered-resources/META-INF/persistence.xml
index 6c29cb4771f..027943ebcc1 100644
--- a/drools-persistence/drools-persistence-jpa/src/test/filtered-resources/META-INF/persistence.xml
+++ b/drools-persistence/drools-persistence-jpa/src/test/filtered-resources/META-INF/persistence.xml
@@ -1,8 +1,8 @@
 
-
+             xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd">
 
     
       org.hibernate.jpa.HibernatePersistenceProvider
diff --git a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/JtaTransactionManagerFactoryTest.java b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/JtaTransactionManagerFactoryTest.java
index c21e0727459..ec16582dbfb 100644
--- a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/JtaTransactionManagerFactoryTest.java
+++ b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/JtaTransactionManagerFactoryTest.java
@@ -16,13 +16,13 @@
 
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
-import javax.transaction.HeuristicMixedException;
-import javax.transaction.HeuristicRollbackException;
-import javax.transaction.NotSupportedException;
-import javax.transaction.RollbackException;
-import javax.transaction.SystemException;
-import javax.transaction.TransactionManager;
-import javax.transaction.UserTransaction;
+import jakarta.transaction.HeuristicMixedException;
+import jakarta.transaction.HeuristicRollbackException;
+import jakarta.transaction.NotSupportedException;
+import jakarta.transaction.RollbackException;
+import jakarta.transaction.SystemException;
+import jakarta.transaction.TransactionManager;
+import jakarta.transaction.UserTransaction;
 import org.drools.core.impl.EnvironmentFactory;
 
 import static org.assertj.core.api.Assertions.assertThat;
diff --git a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/JtaTransactionManagerTest.java b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/JtaTransactionManagerTest.java
index 2ed2d81ebd2..fd02afeba97 100644
--- a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/JtaTransactionManagerTest.java
+++ b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/JtaTransactionManagerTest.java
@@ -20,10 +20,10 @@
 import java.util.Map;
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
-import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
-import javax.transaction.RollbackException;
-import javax.transaction.UserTransaction;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.EntityManagerFactory;
+import jakarta.transaction.RollbackException;
+import jakarta.transaction.UserTransaction;
 
 import org.drools.commands.impl.CommandBasedStatefulKnowledgeSessionImpl;
 import org.drools.kiesession.rulebase.InternalKnowledgeBase;
diff --git a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/TransactionTestCommand.java b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/TransactionTestCommand.java
index 3c04feca2e2..08c264c0127 100644
--- a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/TransactionTestCommand.java
+++ b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/TransactionTestCommand.java
@@ -16,8 +16,8 @@
 package org.drools.persistence.jta;
 
 import java.util.HashMap;
-import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManager;
+import jakarta.persistence.EntityManagerFactory;
 
 import com.arjuna.ats.jta.TransactionManager;
 import org.drools.core.base.MapGlobalResolver;
diff --git a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/TransactionTestObject.java b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/TransactionTestObject.java
index e3f3f3d8a34..5ed617ea178 100644
--- a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/TransactionTestObject.java
+++ b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/TransactionTestObject.java
@@ -17,13 +17,13 @@
 
 import java.io.Serializable;
 
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.OneToOne;
-import javax.persistence.SequenceGenerator;
+import jakarta.persistence.Column;
+import jakarta.persistence.Entity;
+import jakarta.persistence.GeneratedValue;
+import jakarta.persistence.GenerationType;
+import jakarta.persistence.Id;
+import jakarta.persistence.OneToOne;
+import jakarta.persistence.SequenceGenerator;
 
 /**
  * This class is used to test transactions. 
diff --git a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/kie/persistence/session/JpaPersistentStatefulSessionTest.java b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/kie/persistence/session/JpaPersistentStatefulSessionTest.java
index c23b5361dbd..28babfedb95 100644
--- a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/kie/persistence/session/JpaPersistentStatefulSessionTest.java
+++ b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/kie/persistence/session/JpaPersistentStatefulSessionTest.java
@@ -26,7 +26,7 @@
 import java.util.concurrent.atomic.AtomicInteger;
 
 import javax.naming.InitialContext;
-import javax.transaction.UserTransaction;
+import jakarta.transaction.UserTransaction;
 
 import org.drools.core.FlowSessionConfiguration;
 import org.drools.core.SessionConfiguration;
diff --git a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/map/impl/JpaBasedPersistenceTest.java b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/map/impl/JpaBasedPersistenceTest.java
index ba7dd5109d4..6e7e5432c62 100644
--- a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/map/impl/JpaBasedPersistenceTest.java
+++ b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/map/impl/JpaBasedPersistenceTest.java
@@ -31,7 +31,7 @@
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import javax.persistence.EntityManagerFactory;
+import jakarta.persistence.EntityManagerFactory;
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.Map;
diff --git a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/session/JpaPersistentStatefulSessionTest.java b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/session/JpaPersistentStatefulSessionTest.java
index 438650b714a..566285a37ae 100644
--- a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/session/JpaPersistentStatefulSessionTest.java
+++ b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/session/JpaPersistentStatefulSessionTest.java
@@ -25,7 +25,7 @@
 import java.util.stream.IntStream;
 
 import javax.naming.InitialContext;
-import javax.transaction.UserTransaction;
+import jakarta.transaction.UserTransaction;
 
 import org.drools.commands.ChainableRunner;
 import org.drools.commands.impl.CommandBasedStatefulKnowledgeSessionImpl;
diff --git a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/session/ReloadSessionTest.java b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/session/ReloadSessionTest.java
index fada845fc1e..2b8e3a8b3a6 100644
--- a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/session/ReloadSessionTest.java
+++ b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/session/ReloadSessionTest.java
@@ -20,8 +20,8 @@
 import java.util.Collection;
 import java.util.Map;
 import java.util.Random;
-import javax.persistence.EntityManagerFactory;
-import javax.persistence.Persistence;
+import jakarta.persistence.EntityManagerFactory;
+import jakarta.persistence.Persistence;
 
 import org.drools.core.common.DefaultFactHandle;
 import org.drools.kiesession.rulebase.InternalKnowledgeBase;
diff --git a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/util/DroolsPersistenceUtil.java b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/util/DroolsPersistenceUtil.java
index 31038d2afa6..775f3f19dcd 100644
--- a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/util/DroolsPersistenceUtil.java
+++ b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/util/DroolsPersistenceUtil.java
@@ -19,7 +19,7 @@
 import static org.kie.api.runtime.EnvironmentName.TRANSACTION;
 
 import java.util.Map;
-import javax.transaction.UserTransaction;
+import jakarta.transaction.UserTransaction;
 import org.drools.core.base.MapGlobalResolver;
 import org.drools.core.impl.EnvironmentFactory;
 import org.kie.api.runtime.Environment;
diff --git a/drools-persistence/pom.xml b/drools-persistence/pom.xml
index fd93dbd89d6..53ac618533f 100644
--- a/drools-persistence/pom.xml
+++ b/drools-persistence/pom.xml
@@ -6,7 +6,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
diff --git a/drools-reliability/drools-reliability-core/pom.xml b/drools-reliability/drools-reliability-core/pom.xml
index ccb261586b6..2800c0556c3 100644
--- a/drools-reliability/drools-reliability-core/pom.xml
+++ b/drools-reliability/drools-reliability-core/pom.xml
@@ -5,7 +5,7 @@
   
     org.drools
     drools-reliability
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   4.0.0
 
diff --git a/drools-reliability/drools-reliability-h2mvstore/pom.xml b/drools-reliability/drools-reliability-h2mvstore/pom.xml
index 46cb0fb88fa..52b510483fb 100644
--- a/drools-reliability/drools-reliability-h2mvstore/pom.xml
+++ b/drools-reliability/drools-reliability-h2mvstore/pom.xml
@@ -5,7 +5,7 @@
   
     org.drools
     drools-reliability
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   4.0.0
 
diff --git a/drools-reliability/drools-reliability-infinispan/pom.xml b/drools-reliability/drools-reliability-infinispan/pom.xml
index 08e38192fec..e5ff676cfd8 100644
--- a/drools-reliability/drools-reliability-infinispan/pom.xml
+++ b/drools-reliability/drools-reliability-infinispan/pom.xml
@@ -5,7 +5,7 @@
   
     org.drools
     drools-reliability
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   4.0.0
 
@@ -32,7 +32,7 @@
   
     
       org.infinispan
-      infinispan-core
+      infinispan-core-jakarta
     
     
       org.infinispan.protostream
@@ -41,7 +41,7 @@
     
     
       org.infinispan
-      infinispan-client-hotrod
+      infinispan-client-hotrod-jakarta
     
     
       org.drools
diff --git a/drools-reliability/drools-reliability-tests/pom.xml b/drools-reliability/drools-reliability-tests/pom.xml
index f067cc82994..a73e89d165a 100644
--- a/drools-reliability/drools-reliability-tests/pom.xml
+++ b/drools-reliability/drools-reliability-tests/pom.xml
@@ -5,7 +5,7 @@
   
     org.drools
     drools-reliability
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   4.0.0
 
diff --git a/drools-reliability/pom.xml b/drools-reliability/pom.xml
index ba2f9aaa7b8..59761a809b4 100644
--- a/drools-reliability/pom.xml
+++ b/drools-reliability/pom.xml
@@ -5,7 +5,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
   4.0.0
diff --git a/drools-retediagram/pom.xml b/drools-retediagram/pom.xml
index c395181d7b7..287d8e34c77 100644
--- a/drools-retediagram/pom.xml
+++ b/drools-retediagram/pom.xml
@@ -4,7 +4,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
diff --git a/drools-ruleunits/drools-ruleunits-api/pom.xml b/drools-ruleunits/drools-ruleunits-api/pom.xml
index 732a66c4387..409331dc67d 100755
--- a/drools-ruleunits/drools-ruleunits-api/pom.xml
+++ b/drools-ruleunits/drools-ruleunits-api/pom.xml
@@ -6,7 +6,7 @@
     
         org.drools
         drools-ruleunits
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
     
 
     org.drools
diff --git a/drools-ruleunits/drools-ruleunits-dsl/pom.xml b/drools-ruleunits/drools-ruleunits-dsl/pom.xml
index 0843636a3df..94f5e1839bf 100755
--- a/drools-ruleunits/drools-ruleunits-dsl/pom.xml
+++ b/drools-ruleunits/drools-ruleunits-dsl/pom.xml
@@ -6,7 +6,7 @@
     
         org.drools
         drools-ruleunits
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
     
 
     org.drools
diff --git a/drools-ruleunits/drools-ruleunits-engine/pom.xml b/drools-ruleunits/drools-ruleunits-engine/pom.xml
index 682972ad064..4fec9da2fd9 100644
--- a/drools-ruleunits/drools-ruleunits-engine/pom.xml
+++ b/drools-ruleunits/drools-ruleunits-engine/pom.xml
@@ -6,7 +6,7 @@
   
     org.drools
     drools-ruleunits
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   drools-ruleunits-engine
diff --git a/drools-ruleunits/drools-ruleunits-impl/pom.xml b/drools-ruleunits/drools-ruleunits-impl/pom.xml
index fcd4457147c..2e2ec58e55a 100755
--- a/drools-ruleunits/drools-ruleunits-impl/pom.xml
+++ b/drools-ruleunits/drools-ruleunits-impl/pom.xml
@@ -6,7 +6,7 @@
     
         org.drools
         drools-ruleunits
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
     
 
     org.drools
diff --git a/drools-ruleunits/pom.xml b/drools-ruleunits/pom.xml
index 88a438bc56a..66e618b73a6 100644
--- a/drools-ruleunits/pom.xml
+++ b/drools-ruleunits/pom.xml
@@ -6,7 +6,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/pom.xml b/drools-scenario-simulation/drools-scenario-simulation-api/pom.xml
index 6f4dd20f46f..afc7777e635 100644
--- a/drools-scenario-simulation/drools-scenario-simulation-api/pom.xml
+++ b/drools-scenario-simulation/drools-scenario-simulation-api/pom.xml
@@ -5,7 +5,7 @@
   
     drools-scenario-simulation
     org.drools
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   4.0.0
 
diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/pom.xml b/drools-scenario-simulation/drools-scenario-simulation-backend/pom.xml
index 6526709cc37..693693c755e 100644
--- a/drools-scenario-simulation/drools-scenario-simulation-backend/pom.xml
+++ b/drools-scenario-simulation/drools-scenario-simulation-backend/pom.xml
@@ -5,7 +5,7 @@
   
     drools-scenario-simulation
     org.drools
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   4.0.0
 
diff --git a/drools-scenario-simulation/drools-scenario-simulation-integrationtest/pom.xml b/drools-scenario-simulation/drools-scenario-simulation-integrationtest/pom.xml
index c33f0adbe5d..1393e1d9201 100644
--- a/drools-scenario-simulation/drools-scenario-simulation-integrationtest/pom.xml
+++ b/drools-scenario-simulation/drools-scenario-simulation-integrationtest/pom.xml
@@ -5,7 +5,7 @@
   
     drools-scenario-simulation
     org.drools
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   4.0.0
 
diff --git a/drools-scenario-simulation/pom.xml b/drools-scenario-simulation/pom.xml
index 5de8471e7c8..6e6f78b29c8 100644
--- a/drools-scenario-simulation/pom.xml
+++ b/drools-scenario-simulation/pom.xml
@@ -6,7 +6,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
diff --git a/drools-serialization-protobuf/pom.xml b/drools-serialization-protobuf/pom.xml
index ae7210a003d..f2dcfb9ad4d 100644
--- a/drools-serialization-protobuf/pom.xml
+++ b/drools-serialization-protobuf/pom.xml
@@ -6,7 +6,7 @@
     
         org.kie
         drools-build-parent
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
         ../build-parent/pom.xml
     
 
diff --git a/drools-templates/pom.xml b/drools-templates/pom.xml
index c298bdd3206..e35fabee37e 100644
--- a/drools-templates/pom.xml
+++ b/drools-templates/pom.xml
@@ -6,7 +6,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
diff --git a/drools-test-coverage/pom.xml b/drools-test-coverage/pom.xml
index a3e7c150925..433eb191e3a 100644
--- a/drools-test-coverage/pom.xml
+++ b/drools-test-coverage/pom.xml
@@ -7,7 +7,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
diff --git a/drools-test-coverage/standalone/kie-ci-with-domain/pom.xml b/drools-test-coverage/standalone/kie-ci-with-domain/pom.xml
index f4497fdcb80..5fb3d8906df 100644
--- a/drools-test-coverage/standalone/kie-ci-with-domain/pom.xml
+++ b/drools-test-coverage/standalone/kie-ci-with-domain/pom.xml
@@ -8,7 +8,7 @@
   
     org.drools.testcoverage
     drools-standalone-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   drools-kie-ci-with-domain-parent
diff --git a/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/pom.xml b/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/pom.xml
index 5801d67c544..66cfa905e1b 100644
--- a/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/pom.xml
+++ b/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/pom.xml
@@ -8,7 +8,7 @@
   
     org.drools.testcoverage
     drools-kie-ci-with-domain-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   drools-kie-ci-with-domain-test-domain
diff --git a/drools-test-coverage/standalone/kie-ci-with-domain/test-kjar/pom.xml b/drools-test-coverage/standalone/kie-ci-with-domain/test-kjar/pom.xml
index b56d247a462..89edf5538df 100644
--- a/drools-test-coverage/standalone/kie-ci-with-domain/test-kjar/pom.xml
+++ b/drools-test-coverage/standalone/kie-ci-with-domain/test-kjar/pom.xml
@@ -8,7 +8,7 @@
   
     org.drools.testcoverage
     drools-kie-ci-with-domain-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   drools-kie-ci-with-domain-test-kjar
diff --git a/drools-test-coverage/standalone/kie-ci-with-domain/tests/pom.xml b/drools-test-coverage/standalone/kie-ci-with-domain/tests/pom.xml
index 83d89e81cfa..c89fd7bbc1b 100644
--- a/drools-test-coverage/standalone/kie-ci-with-domain/tests/pom.xml
+++ b/drools-test-coverage/standalone/kie-ci-with-domain/tests/pom.xml
@@ -8,7 +8,7 @@
   
     org.drools.testcoverage
     drools-kie-ci-with-domain-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   drools-kie-ci-with-domain-tests
diff --git a/drools-test-coverage/standalone/kie-ci-without-domain/pom.xml b/drools-test-coverage/standalone/kie-ci-without-domain/pom.xml
index 2a1f8c843b6..39ed170f7fd 100644
--- a/drools-test-coverage/standalone/kie-ci-without-domain/pom.xml
+++ b/drools-test-coverage/standalone/kie-ci-without-domain/pom.xml
@@ -8,7 +8,7 @@
   
     org.drools.testcoverage
     drools-standalone-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   drools-kie-ci-without-domain-parent
diff --git a/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/pom.xml b/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/pom.xml
index 82b77b45795..88aa6a4c073 100644
--- a/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/pom.xml
+++ b/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/pom.xml
@@ -8,7 +8,7 @@
   
     org.drools.testcoverage
     drools-kie-ci-without-domain-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   drools-kie-ci-without-domain-test-domain
diff --git a/drools-test-coverage/standalone/kie-ci-without-domain/test-kjar/pom.xml b/drools-test-coverage/standalone/kie-ci-without-domain/test-kjar/pom.xml
index d8ff4729d21..ee00f9ddcbb 100644
--- a/drools-test-coverage/standalone/kie-ci-without-domain/test-kjar/pom.xml
+++ b/drools-test-coverage/standalone/kie-ci-without-domain/test-kjar/pom.xml
@@ -8,7 +8,7 @@
   
     org.drools.testcoverage
     drools-kie-ci-without-domain-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   drools-kie-ci-without-domain-test-kjar
diff --git a/drools-test-coverage/standalone/kie-ci-without-domain/tests/pom.xml b/drools-test-coverage/standalone/kie-ci-without-domain/tests/pom.xml
index dddf7577480..64a9fbf3cde 100644
--- a/drools-test-coverage/standalone/kie-ci-without-domain/tests/pom.xml
+++ b/drools-test-coverage/standalone/kie-ci-without-domain/tests/pom.xml
@@ -8,7 +8,7 @@
   
     org.drools.testcoverage
     drools-kie-ci-without-domain-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   drools-kie-ci-without-domain-tests
diff --git a/drools-test-coverage/standalone/pom.xml b/drools-test-coverage/standalone/pom.xml
index 30307880b43..96467f2d4e1 100644
--- a/drools-test-coverage/standalone/pom.xml
+++ b/drools-test-coverage/standalone/pom.xml
@@ -8,7 +8,7 @@
   
     org.drools.testcoverage
     drools-test-coverage-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   drools-standalone-parent
diff --git a/drools-test-coverage/test-compiler-integration/pom.xml b/drools-test-coverage/test-compiler-integration/pom.xml
index 95075d2fcc6..968fd0685cc 100644
--- a/drools-test-coverage/test-compiler-integration/pom.xml
+++ b/drools-test-coverage/test-compiler-integration/pom.xml
@@ -21,7 +21,7 @@
   
     drools-test-coverage-parent
     org.drools.testcoverage
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   4.0.0
 
diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Person.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Person.java
index 866fd03b54c..b4fa18bf5ce 100644
--- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Person.java
+++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Person.java
@@ -18,8 +18,8 @@
 
 import org.drools.base.factmodel.traits.Traitable;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
 import java.io.Serializable;
 import java.math.BigDecimal;
 import java.math.BigInteger;
diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieBuilderTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieBuilderTest.java
index d2949bf1df8..3726116e3b4 100644
--- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieBuilderTest.java
+++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieBuilderTest.java
@@ -95,8 +95,8 @@ public void testResourceInclusion() {
 
         final String kmodule = "\n" +
-                "  \n" +
-                "    \n" +
+                "  \n" +
+                "    \n" +
                 "  \n" +
                 "";
 
diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryTest.java
index c4902c912e7..7091274b36b 100644
--- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryTest.java
+++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryTest.java
@@ -54,7 +54,7 @@
 import org.kie.api.runtime.rule.Variable;
 import org.kie.api.runtime.rule.ViewChangedEventListener;
 
-import javax.xml.bind.JAXBContext;
+import jakarta.xml.bind.JAXBContext;
 import java.io.ByteArrayInputStream;
 import java.io.IOException;
 import java.io.StringWriter;
diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/META-INF/kmodule.xml b/drools-test-coverage/test-compiler-integration/src/test/resources/META-INF/kmodule.xml
index ef384a6d20f..ac6e1c76b08 100644
--- a/drools-test-coverage/test-compiler-integration/src/test/resources/META-INF/kmodule.xml
+++ b/drools-test-coverage/test-compiler-integration/src/test/resources/META-INF/kmodule.xml
@@ -25,7 +25,7 @@
         
 
     
-        
+        
         
     
 
diff --git a/drools-test-coverage/test-integration-nomvel/pom.xml b/drools-test-coverage/test-integration-nomvel/pom.xml
index a3a0c35523f..78b49ab5f74 100644
--- a/drools-test-coverage/test-integration-nomvel/pom.xml
+++ b/drools-test-coverage/test-integration-nomvel/pom.xml
@@ -21,7 +21,7 @@
     
         drools-test-coverage-parent
         org.drools.testcoverage
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
     
     4.0.0
 
@@ -102,9 +102,10 @@
             test
         
         
-            com.sun.xml.bind
-            jaxb-impl
+            org.glassfish.jaxb
+            jaxb-runtime
             test
+            4.0.3
         
         
             jakarta.xml.bind
diff --git a/drools-test-coverage/test-integration-notms/pom.xml b/drools-test-coverage/test-integration-notms/pom.xml
index b0be9df39a7..ef8ab4b7eff 100644
--- a/drools-test-coverage/test-integration-notms/pom.xml
+++ b/drools-test-coverage/test-integration-notms/pom.xml
@@ -21,7 +21,7 @@
     
         drools-test-coverage-parent
         org.drools.testcoverage
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
     
     4.0.0
 
diff --git a/drools-test-coverage/test-integration-noxml/pom.xml b/drools-test-coverage/test-integration-noxml/pom.xml
index d5869ff2592..237fe8f1c85 100644
--- a/drools-test-coverage/test-integration-noxml/pom.xml
+++ b/drools-test-coverage/test-integration-noxml/pom.xml
@@ -21,7 +21,7 @@
     
         drools-test-coverage-parent
         org.drools.testcoverage
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
     
     4.0.0
 
diff --git a/drools-test-coverage/test-integration-ruleunits/pom.xml b/drools-test-coverage/test-integration-ruleunits/pom.xml
index 0ea0a13fc57..b690f373a66 100644
--- a/drools-test-coverage/test-integration-ruleunits/pom.xml
+++ b/drools-test-coverage/test-integration-ruleunits/pom.xml
@@ -14,7 +14,7 @@
   
     drools-test-coverage-parent
     org.drools.testcoverage
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   4.0.0
 
diff --git a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-jar/pom.xml b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-jar/pom.xml
index bcb873ed856..bced7559368 100644
--- a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-jar/pom.xml
+++ b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-jar/pom.xml
@@ -14,7 +14,7 @@
   
     test-integration-ruleunits
     org.drools.testcoverage
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   4.0.0
 
diff --git a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/pom.xml b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/pom.xml
index ad9521a8154..0473ceca767 100644
--- a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/pom.xml
+++ b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/pom.xml
@@ -14,7 +14,7 @@
   
     test-integration-ruleunits
     org.drools.testcoverage
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   4.0.0
 
diff --git a/drools-test-coverage/test-suite/pom.xml b/drools-test-coverage/test-suite/pom.xml
index 7ebeeaa954e..88e8e1ac165 100644
--- a/drools-test-coverage/test-suite/pom.xml
+++ b/drools-test-coverage/test-suite/pom.xml
@@ -8,7 +8,7 @@
   
     org.drools.testcoverage
     drools-test-coverage-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   drools-test-suite
diff --git a/drools-tms/pom.xml b/drools-tms/pom.xml
index 91a6d6e5bcb..cf755444d17 100644
--- a/drools-tms/pom.xml
+++ b/drools-tms/pom.xml
@@ -6,7 +6,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
diff --git a/drools-traits/pom.xml b/drools-traits/pom.xml
index b81f5cbc81e..f89cac69aae 100644
--- a/drools-traits/pom.xml
+++ b/drools-traits/pom.xml
@@ -6,7 +6,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
@@ -138,8 +138,8 @@
     
 
     
-    
-      org.hibernate
+    
+      org.hibernate.orm
       hibernate-core
       test
       
@@ -158,11 +158,6 @@
       jandex
       test
     
-    
-      org.hibernate
-      hibernate-entitymanager
-      test
-    
 
     
       com.sun.xml.bind
diff --git a/drools-traits/src/test/filtered-resources/META-INF/persistence.xml b/drools-traits/src/test/filtered-resources/META-INF/persistence.xml
index 6c29cb4771f..027943ebcc1 100644
--- a/drools-traits/src/test/filtered-resources/META-INF/persistence.xml
+++ b/drools-traits/src/test/filtered-resources/META-INF/persistence.xml
@@ -1,8 +1,8 @@
 
-
+             xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd">
 
     
       org.hibernate.jpa.HibernatePersistenceProvider
diff --git a/drools-traits/src/test/java/org/drools/traits/persistence/DroolsPersistenceUtil.java b/drools-traits/src/test/java/org/drools/traits/persistence/DroolsPersistenceUtil.java
index aaf01f00a25..9d634ec94c6 100644
--- a/drools-traits/src/test/java/org/drools/traits/persistence/DroolsPersistenceUtil.java
+++ b/drools-traits/src/test/java/org/drools/traits/persistence/DroolsPersistenceUtil.java
@@ -17,7 +17,7 @@
 
 import java.util.Map;
 
-import javax.transaction.UserTransaction;
+import jakarta.transaction.UserTransaction;
 
 import org.drools.core.base.MapGlobalResolver;
 import org.drools.core.impl.EnvironmentFactory;
diff --git a/drools-util/pom.xml b/drools-util/pom.xml
index df992cd1350..22261545460 100644
--- a/drools-util/pom.xml
+++ b/drools-util/pom.xml
@@ -7,7 +7,7 @@
     
         org.kie
         drools-build-parent
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
         ../build-parent/pom.xml
     
 
diff --git a/drools-verifier/drools-verifier-api/pom.xml b/drools-verifier/drools-verifier-api/pom.xml
index 75442dce784..afc0d448351 100644
--- a/drools-verifier/drools-verifier-api/pom.xml
+++ b/drools-verifier/drools-verifier-api/pom.xml
@@ -6,7 +6,7 @@
     
         org.drools
         drools-verifier
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
     
     4.0.0
 
diff --git a/drools-verifier/drools-verifier-core/pom.xml b/drools-verifier/drools-verifier-core/pom.xml
index e747ef6f70e..3fc0b6afe11 100644
--- a/drools-verifier/drools-verifier-core/pom.xml
+++ b/drools-verifier/drools-verifier-core/pom.xml
@@ -5,7 +5,7 @@
     
         drools-verifier
         org.drools
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
     
     4.0.0
 
diff --git a/drools-verifier/drools-verifier-drl/pom.xml b/drools-verifier/drools-verifier-drl/pom.xml
index f81141aafee..d51fe841e66 100644
--- a/drools-verifier/drools-verifier-drl/pom.xml
+++ b/drools-verifier/drools-verifier-drl/pom.xml
@@ -6,7 +6,7 @@
   
     org.drools
     drools-verifier
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   drools-verifier-drl
diff --git a/drools-verifier/pom.xml b/drools-verifier/pom.xml
index 3b59f784483..f4a61a7868b 100644
--- a/drools-verifier/pom.xml
+++ b/drools-verifier/pom.xml
@@ -6,7 +6,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
diff --git a/drools-wiring/drools-wiring-api/pom.xml b/drools-wiring/drools-wiring-api/pom.xml
index 27aa4188bf6..6ff77bb6bb8 100755
--- a/drools-wiring/drools-wiring-api/pom.xml
+++ b/drools-wiring/drools-wiring-api/pom.xml
@@ -6,7 +6,7 @@
     
         org.drools
         drools-wiring
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
     
 
     org.drools
diff --git a/drools-wiring/drools-wiring-dynamic/pom.xml b/drools-wiring/drools-wiring-dynamic/pom.xml
index fe2b08dcc54..45098a5127c 100755
--- a/drools-wiring/drools-wiring-dynamic/pom.xml
+++ b/drools-wiring/drools-wiring-dynamic/pom.xml
@@ -6,7 +6,7 @@
   
     org.drools
     drools-wiring
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   org.drools
@@ -34,9 +34,10 @@
       provided
     
     
-      com.sun.xml.bind
-      jaxb-impl
+      org.glassfish.jaxb
+      jaxb-runtime
       provided
+      4.0.3
     
     
       jakarta.xml.bind
diff --git a/drools-wiring/drools-wiring-static/pom.xml b/drools-wiring/drools-wiring-static/pom.xml
index 6f2b5282eaf..656c1e142cc 100755
--- a/drools-wiring/drools-wiring-static/pom.xml
+++ b/drools-wiring/drools-wiring-static/pom.xml
@@ -6,7 +6,7 @@
   
     org.drools
     drools-wiring
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   org.drools
diff --git a/drools-wiring/pom.xml b/drools-wiring/pom.xml
index 3025c3d5052..3e857be51b4 100644
--- a/drools-wiring/pom.xml
+++ b/drools-wiring/pom.xml
@@ -6,7 +6,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
diff --git a/drools-xml-support/pom.xml b/drools-xml-support/pom.xml
index 375c344cba6..b67981d0af2 100644
--- a/drools-xml-support/pom.xml
+++ b/drools-xml-support/pom.xml
@@ -6,7 +6,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
diff --git a/drools-xml-support/src/test/java/org/drools/xml/support/CommandSerializationTest.java b/drools-xml-support/src/test/java/org/drools/xml/support/CommandSerializationTest.java
index 0599915ec99..41b607324fc 100644
--- a/drools-xml-support/src/test/java/org/drools/xml/support/CommandSerializationTest.java
+++ b/drools-xml-support/src/test/java/org/drools/xml/support/CommandSerializationTest.java
@@ -31,9 +31,9 @@
 import java.util.UUID;
 import java.util.regex.Pattern;
 
-import javax.xml.bind.JAXBContext;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElements;
+import jakarta.xml.bind.JAXBContext;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlElements;
 
 import org.drools.core.ClassObjectFilter;
 import org.drools.core.ClassObjectSerializationFilter;
diff --git a/efesto/efesto-common-utils/pom.xml b/efesto/efesto-common-utils/pom.xml
index f344ea8a782..1aab3dea786 100644
--- a/efesto/efesto-common-utils/pom.xml
+++ b/efesto/efesto-common-utils/pom.xml
@@ -7,7 +7,7 @@
   
     org.kie
     efesto
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   efesto-common-utils
diff --git a/efesto/efesto-core/efesto-common-api/pom.xml b/efesto/efesto-core/efesto-common-api/pom.xml
index 97fe7512b4d..fc0f243034a 100644
--- a/efesto/efesto-core/efesto-common-api/pom.xml
+++ b/efesto/efesto-core/efesto-common-api/pom.xml
@@ -7,7 +7,7 @@
   
     org.kie
     efesto-core
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   efesto-common-api
diff --git a/efesto/efesto-core/efesto-common-core/pom.xml b/efesto/efesto-core/efesto-common-core/pom.xml
index 133daa0925f..1b8efee2b68 100644
--- a/efesto/efesto-core/efesto-common-core/pom.xml
+++ b/efesto/efesto-core/efesto-common-core/pom.xml
@@ -7,7 +7,7 @@
   
     org.kie
     efesto-core
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   efesto-common-core
diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/pom.xml b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/pom.xml
index e62928f7143..7c9fbc1bfed 100644
--- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/pom.xml
+++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/pom.xml
@@ -7,7 +7,7 @@
   
     org.kie
     efesto-compilation-manager
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   efesto-compilation-manager-api
diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/pom.xml b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/pom.xml
index ce601a6d51f..a8169ef0ff4 100644
--- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/pom.xml
+++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/pom.xml
@@ -19,7 +19,7 @@
   
     org.kie
     efesto-compilation-manager
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   efesto-compilation-manager-core
diff --git a/efesto/efesto-core/efesto-compilation-manager/pom.xml b/efesto/efesto-core/efesto-compilation-manager/pom.xml
index 8a72f4a606f..f5a49e83baf 100644
--- a/efesto/efesto-core/efesto-compilation-manager/pom.xml
+++ b/efesto/efesto-core/efesto-compilation-manager/pom.xml
@@ -7,7 +7,7 @@
   
     org.kie
     efesto-core
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   pom
 
diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/pom.xml b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/pom.xml
index ddb0b3f4e09..069bfef54d8 100644
--- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/pom.xml
+++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/pom.xml
@@ -7,7 +7,7 @@
   
     org.kie
     efesto-runtime-manager
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
  efesto-runtime-manager-api
diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/pom.xml b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/pom.xml
index 884b6ed79a5..30c64c199a9 100644
--- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/pom.xml
+++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/pom.xml
@@ -7,7 +7,7 @@
   
     org.kie
     efesto-runtime-manager
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   efesto-runtime-manager-core
diff --git a/efesto/efesto-core/efesto-runtime-manager/pom.xml b/efesto/efesto-core/efesto-runtime-manager/pom.xml
index 2a346f455ac..15dc8f8218f 100644
--- a/efesto/efesto-core/efesto-runtime-manager/pom.xml
+++ b/efesto/efesto-core/efesto-runtime-manager/pom.xml
@@ -7,7 +7,7 @@
   
     org.kie
     efesto-core
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   pom
 
diff --git a/efesto/efesto-core/pom.xml b/efesto/efesto-core/pom.xml
index 04f0fef02f6..d311936f929 100644
--- a/efesto/efesto-core/pom.xml
+++ b/efesto/efesto-core/pom.xml
@@ -7,7 +7,7 @@
   
     org.kie
     efesto
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   pom
 
diff --git a/efesto/efesto-dependencies/pom.xml b/efesto/efesto-dependencies/pom.xml
index d754afda871..2ceabc7e469 100644
--- a/efesto/efesto-dependencies/pom.xml
+++ b/efesto/efesto-dependencies/pom.xml
@@ -5,7 +5,7 @@
   
     efesto
     org.kie
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   4.0.0
 
diff --git a/efesto/pom.xml b/efesto/pom.xml
index 19e93fa3cf0..40163cc1069 100644
--- a/efesto/pom.xml
+++ b/efesto/pom.xml
@@ -7,7 +7,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
diff --git a/jpmml-migration-recipe/pom.xml b/jpmml-migration-recipe/pom.xml
index 78a85ac7e37..4d29be8171d 100644
--- a/jpmml-migration-recipe/pom.xml
+++ b/jpmml-migration-recipe/pom.xml
@@ -6,7 +6,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
diff --git a/kie-api/pom.xml b/kie-api/pom.xml
index 243e01d52f4..4265f8a0729 100644
--- a/kie-api/pom.xml
+++ b/kie-api/pom.xml
@@ -6,7 +6,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
diff --git a/kie-api/src/main/java/org/kie/api/builder/model/KieBaseModel.java b/kie-api/src/main/java/org/kie/api/builder/model/KieBaseModel.java
index 9db6cb102ca..cf80a876e7d 100644
--- a/kie-api/src/main/java/org/kie/api/builder/model/KieBaseModel.java
+++ b/kie-api/src/main/java/org/kie/api/builder/model/KieBaseModel.java
@@ -181,7 +181,7 @@ public interface KieBaseModel {
 
     /**
      * Returns the CDI scope of this KieBaseModel
-     * Default is javax.enterprise.context.ApplicationScoped
+     * Default is jakarta.enterprise.context.ApplicationScoped
      */
     String getScope();
 
diff --git a/kie-api/src/main/java/org/kie/api/builder/model/KieSessionModel.java b/kie-api/src/main/java/org/kie/api/builder/model/KieSessionModel.java
index 3259eb145e4..bb0d4fd4e6e 100644
--- a/kie-api/src/main/java/org/kie/api/builder/model/KieSessionModel.java
+++ b/kie-api/src/main/java/org/kie/api/builder/model/KieSessionModel.java
@@ -98,7 +98,7 @@ public interface KieSessionModel {
     
     /**
      * Sets the CDI scope for this KieSessionModel
-     * Default is javax.enterprise.context.ApplicationScoped
+     * Default is jakarta.enterprise.context.ApplicationScoped
      */
     KieSessionModel setScope(String scope);
 
diff --git a/kie-api/src/main/java/org/kie/api/pmml/AbstractOutput.java b/kie-api/src/main/java/org/kie/api/pmml/AbstractOutput.java
index cb33ba3dc3d..5748494ac97 100644
--- a/kie-api/src/main/java/org/kie/api/pmml/AbstractOutput.java
+++ b/kie-api/src/main/java/org/kie/api/pmml/AbstractOutput.java
@@ -15,11 +15,11 @@
  */
 package org.kie.api.pmml;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAttribute;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlRootElement;
 
 @XmlRootElement(name="pmmlOutput")
 @XmlAccessorType(XmlAccessType.FIELD)
diff --git a/kie-api/src/main/java/org/kie/api/pmml/DoubleFieldOutput.java b/kie-api/src/main/java/org/kie/api/pmml/DoubleFieldOutput.java
index 413db4a8fd1..d6c5f186489 100644
--- a/kie-api/src/main/java/org/kie/api/pmml/DoubleFieldOutput.java
+++ b/kie-api/src/main/java/org/kie/api/pmml/DoubleFieldOutput.java
@@ -15,9 +15,9 @@
  */
 package org.kie.api.pmml;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlRootElement;
 
 @XmlRootElement(name="value")
 @XmlAccessorType(XmlAccessType.FIELD)
diff --git a/kie-api/src/main/java/org/kie/api/pmml/IntegerFieldOutput.java b/kie-api/src/main/java/org/kie/api/pmml/IntegerFieldOutput.java
index 0de625b8f2f..37b5d8317cb 100644
--- a/kie-api/src/main/java/org/kie/api/pmml/IntegerFieldOutput.java
+++ b/kie-api/src/main/java/org/kie/api/pmml/IntegerFieldOutput.java
@@ -15,9 +15,9 @@
  */
 package org.kie.api.pmml;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlRootElement;
 
 @XmlRootElement(name="value")
 @XmlAccessorType(XmlAccessType.FIELD)
diff --git a/kie-api/src/main/java/org/kie/api/pmml/PMML4DataField.java b/kie-api/src/main/java/org/kie/api/pmml/PMML4DataField.java
index 5294014700d..f7ea76fedbc 100644
--- a/kie-api/src/main/java/org/kie/api/pmml/PMML4DataField.java
+++ b/kie-api/src/main/java/org/kie/api/pmml/PMML4DataField.java
@@ -15,10 +15,10 @@
  */
 package org.kie.api.pmml;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAttribute;
+import jakarta.xml.bind.annotation.XmlRootElement;
 
 import org.kie.api.definition.type.Role;
 import org.kie.api.definition.type.Role.Type;
diff --git a/kie-api/src/main/java/org/kie/api/pmml/PMML4OutputField.java b/kie-api/src/main/java/org/kie/api/pmml/PMML4OutputField.java
index f795d3a5b01..b001d86df17 100644
--- a/kie-api/src/main/java/org/kie/api/pmml/PMML4OutputField.java
+++ b/kie-api/src/main/java/org/kie/api/pmml/PMML4OutputField.java
@@ -15,11 +15,11 @@
  */
 package org.kie.api.pmml;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAttribute;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlRootElement;
 
 import org.kie.api.definition.type.Role;
 import org.kie.api.definition.type.Role.Type;
diff --git a/kie-api/src/main/java/org/kie/api/pmml/PMML4Result.java b/kie-api/src/main/java/org/kie/api/pmml/PMML4Result.java
index 49728c846fc..0bb619813da 100644
--- a/kie-api/src/main/java/org/kie/api/pmml/PMML4Result.java
+++ b/kie-api/src/main/java/org/kie/api/pmml/PMML4Result.java
@@ -21,13 +21,13 @@
 import java.util.Map;
 import java.util.Optional;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElementWrapper;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAttribute;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlElementWrapper;
+import jakarta.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlType;
 
 import org.kie.api.definition.type.PropertyReactive;
 import org.slf4j.Logger;
diff --git a/kie-api/src/main/java/org/kie/api/pmml/PMMLRequestData.java b/kie-api/src/main/java/org/kie/api/pmml/PMMLRequestData.java
index b39d168f63f..4ad5e238627 100644
--- a/kie-api/src/main/java/org/kie/api/pmml/PMMLRequestData.java
+++ b/kie-api/src/main/java/org/kie/api/pmml/PMMLRequestData.java
@@ -22,12 +22,12 @@
 import java.util.Map;
 import java.util.stream.Collectors;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElementWrapper;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAttribute;
+import jakarta.xml.bind.annotation.XmlElementWrapper;
+import jakarta.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlType;
 
 /**
  * This class provides a vanilla mechanism for sending data to
diff --git a/kie-api/src/main/java/org/kie/api/pmml/ParameterInfo.java b/kie-api/src/main/java/org/kie/api/pmml/ParameterInfo.java
index 677a93b394b..7fcf52c98d1 100644
--- a/kie-api/src/main/java/org/kie/api/pmml/ParameterInfo.java
+++ b/kie-api/src/main/java/org/kie/api/pmml/ParameterInfo.java
@@ -15,12 +15,12 @@
  */
 package org.kie.api.pmml;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAttribute;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlType;
 
 @XmlType(name="ParameterInfo")
 @XmlAccessorType(XmlAccessType.NONE)
diff --git a/kie-api/src/main/java/org/kie/api/pmml/StringFieldOutput.java b/kie-api/src/main/java/org/kie/api/pmml/StringFieldOutput.java
index 1d59e1de4dd..adf7419718c 100644
--- a/kie-api/src/main/java/org/kie/api/pmml/StringFieldOutput.java
+++ b/kie-api/src/main/java/org/kie/api/pmml/StringFieldOutput.java
@@ -15,9 +15,9 @@
  */
 package org.kie.api.pmml;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlRootElement;
 
 @XmlRootElement(name="value")
 @XmlAccessorType(XmlAccessType.FIELD)
diff --git a/kie-api/src/main/java/org/kie/api/runtime/query/QueryContext.java b/kie-api/src/main/java/org/kie/api/runtime/query/QueryContext.java
index 970c21fafdf..e461e4857d2 100644
--- a/kie-api/src/main/java/org/kie/api/runtime/query/QueryContext.java
+++ b/kie-api/src/main/java/org/kie/api/runtime/query/QueryContext.java
@@ -18,11 +18,11 @@
 
 import java.io.Serializable;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlSchemaType;
-import javax.xml.bind.annotation.XmlType;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlSchemaType;
+import jakarta.xml.bind.annotation.XmlType;
 
 @XmlType(name="kieQueryContext")
 @XmlAccessorType(XmlAccessType.FIELD)
diff --git a/kie-api/src/main/java/org/kie/api/task/model/Status.java b/kie-api/src/main/java/org/kie/api/task/model/Status.java
index f37ba2607c3..737985a4db5 100644
--- a/kie-api/src/main/java/org/kie/api/task/model/Status.java
+++ b/kie-api/src/main/java/org/kie/api/task/model/Status.java
@@ -16,7 +16,7 @@
 
 package org.kie.api.task.model;
 
-import javax.xml.bind.annotation.XmlType;
+import jakarta.xml.bind.annotation.XmlType;
 
 
 @XmlType
diff --git a/kie-api/src/test/resources/org/kie/api/kmod1.xml b/kie-api/src/test/resources/org/kie/api/kmod1.xml
index 8b4e16467ab..ab006111e87 100644
--- a/kie-api/src/test/resources/org/kie/api/kmod1.xml
+++ b/kie-api/src/test/resources/org/kie/api/kmod1.xml
@@ -9,7 +9,7 @@
     
 
 
-    
+    
         
     
 
@@ -27,7 +27,7 @@
     
 
     
-        
+        
             
         
 
@@ -85,5 +85,3 @@
         
     
 
-
-
diff --git a/kie-archetypes/kie-drools-dmn-archetype/pom.xml b/kie-archetypes/kie-drools-dmn-archetype/pom.xml
index bb0453f10a9..54886e39921 100644
--- a/kie-archetypes/kie-drools-dmn-archetype/pom.xml
+++ b/kie-archetypes/kie-drools-dmn-archetype/pom.xml
@@ -4,7 +4,7 @@
   
     org.kie
     kie-archetypes
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   kie-drools-dmn-archetype
diff --git a/kie-archetypes/kie-drools-exec-model-archetype/pom.xml b/kie-archetypes/kie-drools-exec-model-archetype/pom.xml
index 660461b8353..acf27ba3a62 100644
--- a/kie-archetypes/kie-drools-exec-model-archetype/pom.xml
+++ b/kie-archetypes/kie-drools-exec-model-archetype/pom.xml
@@ -4,7 +4,7 @@
   
     org.kie
     kie-archetypes
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   kie-drools-exec-model-archetype
diff --git a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/pom.xml b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/pom.xml
index 88bc5f4a27b..27f94b4245f 100644
--- a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/pom.xml
+++ b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/pom.xml
@@ -4,7 +4,7 @@
   
     org.kie
     kie-archetypes
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   kie-drools-exec-model-ruleunit-archetype
diff --git a/kie-archetypes/pom.xml b/kie-archetypes/pom.xml
index 57932b1cdcd..c9ff80b97ce 100644
--- a/kie-archetypes/pom.xml
+++ b/kie-archetypes/pom.xml
@@ -6,7 +6,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
diff --git a/kie-ci/pom.xml b/kie-ci/pom.xml
index 6be7124c273..49354c33aa2 100644
--- a/kie-ci/pom.xml
+++ b/kie-ci/pom.xml
@@ -6,7 +6,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
diff --git a/kie-dmn/kie-dmn-api/pom.xml b/kie-dmn/kie-dmn-api/pom.xml
index 6ae7dd1dcb9..c708266dce4 100644
--- a/kie-dmn/kie-dmn-api/pom.xml
+++ b/kie-dmn/kie-dmn-api/pom.xml
@@ -7,7 +7,7 @@
   
     org.kie
     kie-dmn
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   kie-dmn-api
diff --git a/kie-dmn/kie-dmn-backend/pom.xml b/kie-dmn/kie-dmn-backend/pom.xml
index 2736ecee995..20f41a4a6fe 100644
--- a/kie-dmn/kie-dmn-backend/pom.xml
+++ b/kie-dmn/kie-dmn-backend/pom.xml
@@ -7,7 +7,7 @@
   
     org.kie
     kie-dmn
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   kie-dmn-backend
diff --git a/kie-dmn/kie-dmn-core-jsr223-jq/pom.xml b/kie-dmn/kie-dmn-core-jsr223-jq/pom.xml
index 25724bf1aee..43d2c6bf056 100644
--- a/kie-dmn/kie-dmn-core-jsr223-jq/pom.xml
+++ b/kie-dmn/kie-dmn-core-jsr223-jq/pom.xml
@@ -3,7 +3,7 @@
     
         org.kie
         kie-dmn
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
     
     kie-dmn-core-jsr223-jq
     KIE :: Decision Model Notation :: JSR-223 JQ ScriptEngine
diff --git a/kie-dmn/kie-dmn-core-jsr223/pom.xml b/kie-dmn/kie-dmn-core-jsr223/pom.xml
index 930dae17524..0d76867c513 100644
--- a/kie-dmn/kie-dmn-core-jsr223/pom.xml
+++ b/kie-dmn/kie-dmn-core-jsr223/pom.xml
@@ -3,7 +3,7 @@
   
     org.kie
     kie-dmn
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   kie-dmn-core-jsr223
   KIE :: Decision Model Notation :: Core JSR-223
diff --git a/kie-dmn/kie-dmn-core/pom.xml b/kie-dmn/kie-dmn-core/pom.xml
index d50862ba7b2..e3b2553dd74 100644
--- a/kie-dmn/kie-dmn-core/pom.xml
+++ b/kie-dmn/kie-dmn-core/pom.xml
@@ -7,7 +7,7 @@
   
     kie-dmn
     org.kie
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   kie-dmn-core
diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNImportPMMLInfo.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNImportPMMLInfo.java
index 7c3bb1c1979..d7053e68a37 100644
--- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNImportPMMLInfo.java
+++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNImportPMMLInfo.java
@@ -62,7 +62,7 @@ public static Either from(InputStream is, DMNCompi
             final PMML pmml = org.jpmml.model.PMMLUtil.unmarshal(is);
             PMMLHeaderInfo h = PMMLInfo.pmmlToHeaderInfo(pmml, pmml.getHeader());
             for (DataField df : pmml.getDataDictionary().getDataFields()) {
-                String dfName = df.getName().getValue();
+                String dfName =df.getName();
                 BuiltInType ft = getBuiltInTypeByDataType(df.getDataType());
                 List helperFEELProfiles = cc.getFeelProfiles();
                 DMNFEELHelper feel = new DMNFEELHelper(cc.getRootClassLoader(), helperFEELProfiles);
@@ -118,7 +118,7 @@ private static void registerOutputFieldType(Model pmmlModel, DMNModelImpl dmnMod
                 // register ., being a composite type of the different model outputs fields
                 Map typeMap = new HashMap<>();
                 outputFields.stream().forEach(field -> {
-                    String fieldName = field.getName().getValue();
+                    String fieldName =field.getName();
                     BuiltInType ft = getBuiltInTypeByDataType(field.getDataType());
                     DMNType type = new SimpleTypeImpl(i.getNamespace(), fieldName, null, false, null, dmnModel.getTypeRegistry().resolveType(dmnModel.getDefinitions().getURIFEEL(), ft.getName()), ft);
                     typeMap.put(fieldName, type);
diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/PMMLInfo.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/PMMLInfo.java
index e272189c007..a2cc46881c5 100644
--- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/PMMLInfo.java
+++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/PMMLInfo.java
@@ -24,7 +24,7 @@
 import java.util.List;
 import java.util.Map;
 
-import javax.xml.bind.JAXBException;
+import jakarta.xml.bind.JAXBException;
 
 import org.dmg.pmml.Extension;
 import org.dmg.pmml.Header;
@@ -73,15 +73,15 @@ public static PMMLModelInfo pmmlToModelInfo(Model pm) {
         miningSchema.getMiningFields()
                     .stream()
                     .filter(mf -> mf.getUsageType() == UsageType.ACTIVE)
-                    .forEach(fn -> inputFields.add(fn.getName().getValue()));
+                    .forEach(fn -> inputFields.add(fn.getName()));
         Collection targetFields = new ArrayList<>();
         miningSchema.getMiningFields()
                     .stream()
                     .filter(mf -> mf.getUsageType() == UsageType.PREDICTED)
-                    .forEach(fn -> targetFields.add(fn.getName().getValue()));
+                    .forEach(fn -> targetFields.add(fn.getName()));
         Collection outputFields = new ArrayList<>();
         if (pm.getOutput() != null && pm.getOutput().getOutputFields() != null) {
-            pm.getOutput().getOutputFields().forEach(of -> outputFields.add(of.getName().getValue()));
+            pm.getOutput().getOutputFields().forEach(of -> outputFields.add(of.getName()));
         }
         return new PMMLModelInfo(pm.getModelName(), pm.getClass().getSimpleName(), inputFields, targetFields, outputFields);
     }
diff --git a/kie-dmn/kie-dmn-feel/pom.xml b/kie-dmn/kie-dmn-feel/pom.xml
index ed5666a2c2a..d2c9864f5e6 100644
--- a/kie-dmn/kie-dmn-feel/pom.xml
+++ b/kie-dmn/kie-dmn-feel/pom.xml
@@ -7,7 +7,7 @@
   
     org.kie
     kie-dmn
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   kie-dmn-feel
diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Generated.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Generated.java
index 52451035983..747e5232f8a 100644
--- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Generated.java
+++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Generated.java
@@ -16,7 +16,7 @@
 /**
  * For internal use for the scope of https://github.com/jacoco/jacoco/issues/731
  * and coverage analysis.
- * Similar to {@link javax.annotation.Generated}, but with RetentionPolicy.CLASS
+ * Similar to {@link jakarta.annotation.Generated}, but with RetentionPolicy.CLASS
  */
 @Retention(RetentionPolicy.CLASS)
 @Target({PACKAGE, TYPE, ANNOTATION_TYPE, METHOD, CONSTRUCTOR, FIELD,
diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/jandex/AbstractJandexTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/jandex/AbstractJandexTest.java
index 1e4a002044e..0f043b9da04 100644
--- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/jandex/AbstractJandexTest.java
+++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/jandex/AbstractJandexTest.java
@@ -29,9 +29,9 @@
 import java.util.Set;
 import java.util.stream.Collectors;
 
-import javax.json.bind.Jsonb;
-import javax.json.bind.JsonbBuilder;
-import javax.json.bind.JsonbConfig;
+import jakarta.json.bind.Jsonb;
+import jakarta.json.bind.JsonbBuilder;
+import jakarta.json.bind.JsonbConfig;
 
 import org.jboss.jandex.ClassInfo;
 import org.jboss.jandex.DotName;
diff --git a/kie-dmn/kie-dmn-legacy-tests/pom.xml b/kie-dmn/kie-dmn-legacy-tests/pom.xml
index 56163885b3c..480e00fd05f 100644
--- a/kie-dmn/kie-dmn-legacy-tests/pom.xml
+++ b/kie-dmn/kie-dmn-legacy-tests/pom.xml
@@ -3,7 +3,7 @@
   
     org.kie
     kie-dmn
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   kie-dmn-legacy-tests
   
@@ -100,9 +100,10 @@
       provided
     
     
-      com.sun.xml.bind
-      jaxb-impl
+      org.glassfish.jaxb
+      jaxb-runtime
       provided
+      4.0.3
     
     
       jakarta.xml.bind
diff --git a/kie-dmn/kie-dmn-model/pom.xml b/kie-dmn/kie-dmn-model/pom.xml
index 95abf5547b8..3a62f39b589 100644
--- a/kie-dmn/kie-dmn-model/pom.xml
+++ b/kie-dmn/kie-dmn-model/pom.xml
@@ -7,7 +7,7 @@
   
     kie-dmn
     org.kie
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
 
   kie-dmn-model
diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDiagram.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDiagram.java
index 0667ee8e9ec..f89f0669497 100644
--- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDiagram.java
+++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDiagram.java
@@ -19,7 +19,7 @@
 import java.util.ArrayList;
 import java.util.List;
 
-import javax.xml.bind.JAXBElement;
+import jakarta.xml.bind.JAXBElement;
 
 public class DMNDiagram extends Diagram implements org.kie.dmn.model.api.dmndi.DMNDiagram {
 
diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DiagramElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DiagramElement.java
index f13fcb52750..6d6950fb5f6 100644
--- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DiagramElement.java
+++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DiagramElement.java
@@ -19,7 +19,7 @@
 import java.util.ArrayList;
 import java.util.List;
 
-import javax.xml.bind.JAXBElement;
+import jakarta.xml.bind.JAXBElement;
 
 import org.kie.dmn.model.v1_2.KieDMNModelInstrumentedBase;
 
diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDiagram.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDiagram.java
index a1c3bda6f55..b2332ca6e8c 100644
--- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDiagram.java
+++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDiagram.java
@@ -19,7 +19,7 @@
 import java.util.ArrayList;
 import java.util.List;
 
-import javax.xml.bind.JAXBElement;
+import jakarta.xml.bind.JAXBElement;
 
 public class DMNDiagram extends Diagram implements org.kie.dmn.model.api.dmndi.DMNDiagram {
 
diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DiagramElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DiagramElement.java
index 37f68faf850..7720ab80ed7 100644
--- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DiagramElement.java
+++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DiagramElement.java
@@ -19,7 +19,7 @@
 import java.util.ArrayList;
 import java.util.List;
 
-import javax.xml.bind.JAXBElement;
+import jakarta.xml.bind.JAXBElement;
 
 import org.kie.dmn.model.v1_3.KieDMNModelInstrumentedBase;
 
diff --git a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/jandex/KieDMNModelJandexTest.java b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/jandex/KieDMNModelJandexTest.java
index 14c47f65e8a..4004e437295 100644
--- a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/jandex/KieDMNModelJandexTest.java
+++ b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/jandex/KieDMNModelJandexTest.java
@@ -29,9 +29,9 @@
 import java.util.Set;
 import java.util.stream.Collectors;
 
-import javax.json.bind.Jsonb;
-import javax.json.bind.JsonbBuilder;
-import javax.json.bind.JsonbConfig;
+import jakarta.json.bind.Jsonb;
+import jakarta.json.bind.JsonbBuilder;
+import jakarta.json.bind.JsonbConfig;
 
 import org.jboss.jandex.ClassInfo;
 import org.jboss.jandex.DotName;
diff --git a/kie-dmn/kie-dmn-openapi/pom.xml b/kie-dmn/kie-dmn-openapi/pom.xml
index 61c55b8cc15..8b46c8d7f6e 100644
--- a/kie-dmn/kie-dmn-openapi/pom.xml
+++ b/kie-dmn/kie-dmn-openapi/pom.xml
@@ -3,7 +3,7 @@
   
     org.kie
     kie-dmn
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   kie-dmn-openapi
   
@@ -62,9 +62,10 @@
       provided
     
     
-      com.sun.xml.bind
-      jaxb-impl
+      org.glassfish.jaxb
+      jaxb-runtime
       provided
+      4.0.3
     
     
       jakarta.xml.bind
diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/pom.xml b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/pom.xml
index bda55f3e305..f92636346ef 100644
--- a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/pom.xml
+++ b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/pom.xml
@@ -5,7 +5,7 @@
   
     kie-dmn-pmml-tests-parent
     org.kie
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   4.0.0
 
diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/pom.xml b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/pom.xml
index c0d043287ab..0c4f1797c96 100644
--- a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/pom.xml
+++ b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/pom.xml
@@ -5,7 +5,7 @@
   
     kie-dmn-pmml-tests-parent
     org.kie
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   4.0.0
 
@@ -62,9 +62,10 @@
       provided
     
     
-      com.sun.xml.bind
-      jaxb-impl
+      org.glassfish.jaxb
+      jaxb-runtime
       provided
+      4.0.3
     
     
       jakarta.xml.bind
diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/pom.xml b/kie-dmn/kie-dmn-pmml-tests-parent/pom.xml
index 0c9c91e4676..eb8230528ee 100644
--- a/kie-dmn/kie-dmn-pmml-tests-parent/pom.xml
+++ b/kie-dmn/kie-dmn-pmml-tests-parent/pom.xml
@@ -5,7 +5,7 @@
   
     kie-dmn
     org.kie
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   4.0.0
   pom
diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/pom.xml b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/pom.xml
index 62bfed64a4b..3b517f042a3 100644
--- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/pom.xml
+++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/pom.xml
@@ -3,7 +3,7 @@
   
     org.kie
     kie-dmn-ruleset2dmn-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   kie-dmn-ruleset2dmn-cli
   
diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/pom.xml b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/pom.xml
index 9161a1eabac..2441c4b4f90 100644
--- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/pom.xml
+++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/pom.xml
@@ -3,7 +3,7 @@
   
     org.kie
     kie-dmn-ruleset2dmn-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   kie-dmn-ruleset2dmn
 
diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/Converter.java b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/Converter.java
index 17887354fff..97309c1ddad 100644
--- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/Converter.java
+++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/Converter.java
@@ -36,7 +36,6 @@
 import org.dmg.pmml.DataDictionary;
 import org.dmg.pmml.DataField;
 import org.dmg.pmml.DataType;
-import org.dmg.pmml.FieldName;
 import org.dmg.pmml.Model;
 import org.dmg.pmml.PMML;
 import org.dmg.pmml.SimplePredicate;
@@ -143,7 +142,7 @@ public static String parse(String dmnModelName, InputStream is) throws Exception
             for (String input : usedPredictors) {
                 List predicatesForInput = r.map.get(input);
                 if (predicatesForInput != null && !predicatesForInput.isEmpty())  {
-                    FieldName fnLookup = FieldName.create(input);
+                     String fnLookup =input;
                     Optional df = pmml.getDataDictionary().getDataFields().stream().filter(x-> x.getName().equals(fnLookup)).findFirst();
                     UnaryTests ut = processSimplePredicateUnaryOrBinary(predicatesForInput, df);
                     if (ut.getText().startsWith("\"") && ut.getText().endsWith("\"")) {
@@ -195,9 +194,9 @@ public static String parse(String dmnModelName, InputStream is) throws Exception
         }
 
         for (DataField df : pmml.getDataDictionary().getDataFields()) {
-            if (df.getDataType() == DataType.STRING && predictorsLoVs.containsKey(df.getName().getValue())) {
+            if (df.getDataType() == DataType.STRING && predictorsLoVs.containsKey(df.getName())) {
                 for (Value value : df.getValues()) {
-                    predictorsLoVs.get(df.getName().getValue()).add("\""+value.getValue().toString()+"\"");
+                    predictorsLoVs.get(df.getName()).add("\""+value.getValue().toString()+"\"");
                 }
             }
         }
@@ -476,7 +475,7 @@ private static void appendInputData(Definitions definitions, PMML pmml, Set opt = dd.getDataFields().stream().filter(df -> df.getName().equals(lookup)).findFirst();
         if (opt.isEmpty()) {
             return "Any";
diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/SimpleRuleRow.java b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/SimpleRuleRow.java
index f5b19f4e055..25171444d1c 100644
--- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/SimpleRuleRow.java
+++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/SimpleRuleRow.java
@@ -37,7 +37,7 @@ public SimpleRuleRow(SimpleRule r) {
         Predicate rootPredicate = r.getPredicate();
         if (rootPredicate instanceof SimplePredicate) {
             SimplePredicate sp = (SimplePredicate) rootPredicate;
-            map.computeIfAbsent(sp.getField().getValue(), k -> new ArrayList()).add(sp);
+            map.computeIfAbsent(sp.getField(), k -> new ArrayList()).add(sp);
         } else {
             if (!(rootPredicate instanceof CompoundPredicate)) {
                 throw new UnsupportedOperationException("Was expecting a CompoundPredicate, found: "+rootPredicate.getClass());
@@ -48,7 +48,7 @@ public SimpleRuleRow(SimpleRule r) {
             }
             for (Predicate c : cPredicate.getPredicates()) {
                 SimplePredicate sp = (SimplePredicate) c;
-                map.computeIfAbsent(sp.getField().getValue(), k -> new ArrayList()).add(sp);
+                map.computeIfAbsent(sp.getField(), k -> new ArrayList()).add(sp);
             }
         }
     }
diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/pom.xml b/kie-dmn/kie-dmn-ruleset2dmn-parent/pom.xml
index 25079e310df..07a4c6e5649 100644
--- a/kie-dmn/kie-dmn-ruleset2dmn-parent/pom.xml
+++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/pom.xml
@@ -3,7 +3,7 @@
   
     org.kie
     kie-dmn
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   kie-dmn-ruleset2dmn-parent
   pom
diff --git a/kie-dmn/kie-dmn-signavio/pom.xml b/kie-dmn/kie-dmn-signavio/pom.xml
index 11ad56fde94..742967d3f33 100644
--- a/kie-dmn/kie-dmn-signavio/pom.xml
+++ b/kie-dmn/kie-dmn-signavio/pom.xml
@@ -3,7 +3,7 @@
   
     org.kie
     kie-dmn
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   kie-dmn-signavio
   
diff --git a/kie-dmn/kie-dmn-tck/pom.xml b/kie-dmn/kie-dmn-tck/pom.xml
index 1a2d75e960e..1f5def291a8 100644
--- a/kie-dmn/kie-dmn-tck/pom.xml
+++ b/kie-dmn/kie-dmn-tck/pom.xml
@@ -21,7 +21,7 @@
   
     kie-dmn
     org.kie
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   4.0.0
   pom
diff --git a/kie-dmn/kie-dmn-trisotech/pom.xml b/kie-dmn/kie-dmn-trisotech/pom.xml
index 5206a0ddf4c..ff32f95d0f6 100644
--- a/kie-dmn/kie-dmn-trisotech/pom.xml
+++ b/kie-dmn/kie-dmn-trisotech/pom.xml
@@ -5,7 +5,7 @@
   
     org.kie
     kie-dmn
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   kie-dmn-trisotech
 
diff --git a/kie-dmn/kie-dmn-validation-bootstrap/pom.xml b/kie-dmn/kie-dmn-validation-bootstrap/pom.xml
index 2d736724cca..84f1b4407ad 100644
--- a/kie-dmn/kie-dmn-validation-bootstrap/pom.xml
+++ b/kie-dmn/kie-dmn-validation-bootstrap/pom.xml
@@ -5,7 +5,7 @@
   
     org.kie
     kie-dmn
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   kie-dmn-validation-bootstrap
 
diff --git a/kie-dmn/kie-dmn-validation/pom.xml b/kie-dmn/kie-dmn-validation/pom.xml
index fa66a3cec63..2b7de376f1d 100644
--- a/kie-dmn/kie-dmn-validation/pom.xml
+++ b/kie-dmn/kie-dmn-validation/pom.xml
@@ -3,7 +3,7 @@
   
     org.kie
     kie-dmn
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   kie-dmn-validation
     jar
diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/MCDC2TCKGenerator.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/MCDC2TCKGenerator.java
index 17147f54a7f..4a32d87f94b 100644
--- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/MCDC2TCKGenerator.java
+++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/MCDC2TCKGenerator.java
@@ -21,10 +21,10 @@
 import java.util.List;
 import java.util.Set;
 
-import javax.xml.bind.JAXBContext;
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.JAXBException;
-import javax.xml.bind.Marshaller;
+import jakarta.xml.bind.JAXBContext;
+import jakarta.xml.bind.JAXBElement;
+import jakarta.xml.bind.JAXBException;
+import jakarta.xml.bind.Marshaller;
 
 import org.kie.dmn.model.api.DecisionTable;
 import org.kie.dmn.validation.dtanalysis.mcdc.MCDCAnalyser.PosNegBlock;
diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ObjectFactory.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ObjectFactory.java
index 48a48628e42..e5e128f0266 100644
--- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ObjectFactory.java
+++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ObjectFactory.java
@@ -2,9 +2,9 @@
 package org.kie.dmn.validation.dtanalysis.mcdc.dmntck;
 
 import org.kie.dmn.feel.util.Generated;
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.annotation.XmlElementDecl;
-import javax.xml.bind.annotation.XmlRegistry;
+import jakarta.xml.bind.JAXBElement;
+import jakarta.xml.bind.annotation.XmlElementDecl;
+import jakarta.xml.bind.annotation.XmlRegistry;
 import javax.xml.namespace.QName;
 
 
diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCaseType.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCaseType.java
index b2006fd5a27..cd387bc2f63 100644
--- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCaseType.java
+++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCaseType.java
@@ -2,9 +2,9 @@
 package org.kie.dmn.validation.dtanalysis.mcdc.dmntck;
 
 import org.kie.dmn.feel.util.Generated;
-import javax.xml.bind.annotation.XmlEnum;
-import javax.xml.bind.annotation.XmlEnumValue;
-import javax.xml.bind.annotation.XmlType;
+import jakarta.xml.bind.annotation.XmlEnum;
+import jakarta.xml.bind.annotation.XmlEnumValue;
+import jakarta.xml.bind.annotation.XmlType;
 
 
 /**
diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCases.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCases.java
index 45caf032e21..138efc4c084 100644
--- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCases.java
+++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCases.java
@@ -7,16 +7,16 @@
 import java.util.Map;
 
 import org.kie.dmn.feel.util.Generated;
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAnyAttribute;
-import javax.xml.bind.annotation.XmlAnyElement;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlSchemaType;
-import javax.xml.bind.annotation.XmlType;
+import jakarta.xml.bind.JAXBElement;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAnyAttribute;
+import jakarta.xml.bind.annotation.XmlAnyElement;
+import jakarta.xml.bind.annotation.XmlAttribute;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlSchemaType;
+import jakarta.xml.bind.annotation.XmlType;
 import javax.xml.namespace.QName;
 
 import org.w3c.dom.Element;
diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ValueType.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ValueType.java
index 30254ad028a..0f02b4ce32f 100644
--- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ValueType.java
+++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ValueType.java
@@ -7,17 +7,17 @@
 import java.util.Map;
 
 import org.kie.dmn.feel.util.Generated;
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAnyAttribute;
-import javax.xml.bind.annotation.XmlAnyElement;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElementRef;
-import javax.xml.bind.annotation.XmlSchemaType;
-import javax.xml.bind.annotation.XmlSeeAlso;
-import javax.xml.bind.annotation.XmlType;
+import jakarta.xml.bind.JAXBElement;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAnyAttribute;
+import jakarta.xml.bind.annotation.XmlAnyElement;
+import jakarta.xml.bind.annotation.XmlAttribute;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlElementRef;
+import jakarta.xml.bind.annotation.XmlSchemaType;
+import jakarta.xml.bind.annotation.XmlSeeAlso;
+import jakarta.xml.bind.annotation.XmlType;
 import javax.xml.namespace.QName;
 
 import org.w3c.dom.Element;
diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/package-info.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/package-info.java
index f6c8310e3a2..9fb6a6eafb1 100644
--- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/package-info.java
+++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/package-info.java
@@ -1,7 +1,7 @@
 // Copied under Apache License from https://github.com/dmn-tck/tck/blob/8c23dc13caa508a33d11b47cca318d7c3a3ca2fc/LICENSE-ASL-2.0.txt
-@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.omg.org/spec/DMN/20160719/testcase",
-                                     elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED,
+@jakarta.xml.bind.annotation.XmlSchema(namespace = "http://www.omg.org/spec/DMN/20160719/testcase",
+                                     elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED,
                                      xmlns = {@XmlNs(prefix = "tc", namespaceURI = "http://www.omg.org/spec/DMN/20160719/testcase")})
 package org.kie.dmn.validation.dtanalysis.mcdc.dmntck;
 
-import javax.xml.bind.annotation.XmlNs;
+import jakarta.xml.bind.annotation.XmlNs;
diff --git a/kie-dmn/kie-dmn-xls2dmn-cli/pom.xml b/kie-dmn/kie-dmn-xls2dmn-cli/pom.xml
index 98aba6ecb83..0653fccfc2b 100644
--- a/kie-dmn/kie-dmn-xls2dmn-cli/pom.xml
+++ b/kie-dmn/kie-dmn-xls2dmn-cli/pom.xml
@@ -3,7 +3,7 @@
   
     org.kie
     kie-dmn
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   kie-dmn-xls2dmn-cli
   jar
diff --git a/kie-dmn/pom.xml b/kie-dmn/pom.xml
index af7179b7da6..d3fe90d52b3 100644
--- a/kie-dmn/pom.xml
+++ b/kie-dmn/pom.xml
@@ -6,7 +6,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
diff --git a/kie-drl/kie-drl-api/pom.xml b/kie-drl/kie-drl-api/pom.xml
index 74321876cde..db3750a147b 100644
--- a/kie-drl/kie-drl-api/pom.xml
+++ b/kie-drl/kie-drl-api/pom.xml
@@ -5,7 +5,7 @@
     
         kie-drl
         org.kie
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
     
     4.0.0
 
diff --git a/kie-drl/kie-drl-compilation-common/pom.xml b/kie-drl/kie-drl-compilation-common/pom.xml
index 19354e4f74c..105231a36bc 100644
--- a/kie-drl/kie-drl-compilation-common/pom.xml
+++ b/kie-drl/kie-drl-compilation-common/pom.xml
@@ -5,7 +5,7 @@
     
         kie-drl
         org.kie
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
     
     4.0.0
 
diff --git a/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/pom.xml b/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/pom.xml
index c761582d7f0..55c3c9bd785 100644
--- a/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/pom.xml
+++ b/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/pom.xml
@@ -5,7 +5,7 @@
     
         kie-drl-kiesession-local
         org.kie
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
     
     4.0.0
 
diff --git a/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/pom.xml b/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/pom.xml
index 8d499bbbd7e..2e9a1cbea5e 100644
--- a/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/pom.xml
+++ b/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/pom.xml
@@ -5,7 +5,7 @@
     
         kie-drl-implementations
         org.kie
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
     
     4.0.0
     pom
diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/pom.xml b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/pom.xml
index 4758545c334..8012c99217d 100644
--- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/pom.xml
+++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/pom.xml
@@ -6,7 +6,7 @@
     
         kie-drl-map-input
         org.kie
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
     
 
     kie-drl-map-input-runtime
diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/pom.xml b/kie-drl/kie-drl-implementations/kie-drl-map-input/pom.xml
index 1522b1651f1..4317be7fa21 100644
--- a/kie-drl/kie-drl-implementations/kie-drl-map-input/pom.xml
+++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/pom.xml
@@ -5,7 +5,7 @@
     
         kie-drl-implementations
         org.kie
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
     
     4.0.0
     pom
diff --git a/kie-drl/kie-drl-implementations/pom.xml b/kie-drl/kie-drl-implementations/pom.xml
index 3f97dee7c58..b4c72c5ddcf 100644
--- a/kie-drl/kie-drl-implementations/pom.xml
+++ b/kie-drl/kie-drl-implementations/pom.xml
@@ -7,7 +7,7 @@
     
         kie-drl
         org.kie
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
     
 
     KIE :: DRL :: Implementations
diff --git a/kie-drl/kie-drl-runtime-common/pom.xml b/kie-drl/kie-drl-runtime-common/pom.xml
index 841a3eb791c..a83f04dac79 100644
--- a/kie-drl/kie-drl-runtime-common/pom.xml
+++ b/kie-drl/kie-drl-runtime-common/pom.xml
@@ -5,7 +5,7 @@
     
         kie-drl
         org.kie
-        8.44.0-SNAPSHOT
+        9.44.0-SNAPSHOT
     
     4.0.0
 
diff --git a/kie-drl/kie-drl-tests-without-index-file/pom.xml b/kie-drl/kie-drl-tests-without-index-file/pom.xml
index 7e1dcb3ee88..e5178660f63 100644
--- a/kie-drl/kie-drl-tests-without-index-file/pom.xml
+++ b/kie-drl/kie-drl-tests-without-index-file/pom.xml
@@ -5,7 +5,7 @@
   
     kie-drl
     org.kie
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   4.0.0
 
diff --git a/kie-drl/kie-drl-tests/pom.xml b/kie-drl/kie-drl-tests/pom.xml
index 8922ab43bc5..885b11945bc 100644
--- a/kie-drl/kie-drl-tests/pom.xml
+++ b/kie-drl/kie-drl-tests/pom.xml
@@ -5,7 +5,7 @@
   
     kie-drl
     org.kie
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
   
   4.0.0
 
diff --git a/kie-drl/pom.xml b/kie-drl/pom.xml
index 51b58823d2d..57b32bc69f0 100644
--- a/kie-drl/pom.xml
+++ b/kie-drl/pom.xml
@@ -7,7 +7,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
diff --git a/kie-internal/pom.xml b/kie-internal/pom.xml
index 2007f049b52..e28216b7b7b 100644
--- a/kie-internal/pom.xml
+++ b/kie-internal/pom.xml
@@ -6,7 +6,7 @@
   
     org.kie
     drools-build-parent
-    8.44.0-SNAPSHOT
+    9.44.0-SNAPSHOT
     ../build-parent/pom.xml
   
 
@@ -76,9 +76,10 @@
        provided
     
     
-      com.sun.xml.bind
-      jaxb-impl
+      org.glassfish.jaxb
+      jaxb-runtime
       provided
+      4.0.3
     
 
     
@@ -93,6 +94,13 @@
       provided
     
 
+    
+    
+      org.glassfish.jaxb
+      jaxb-runtime
+      provided
+    
+
     
       ch.qos.logback
       logback-classic
diff --git a/kie-internal/src/main/java/org/kie/internal/builder/help/DroolsJaxbHelperProvider.java b/kie-internal/src/main/java/org/kie/internal/builder/help/DroolsJaxbHelperProvider.java
index 398a8ca6b22..708942c6676 100644
--- a/kie-internal/src/main/java/org/kie/internal/builder/help/DroolsJaxbHelperProvider.java
+++ b/kie-internal/src/main/java/org/kie/internal/builder/help/DroolsJaxbHelperProvider.java
@@ -19,8 +19,8 @@
 import java.io.IOException;
 import java.util.Map;
 
-import javax.xml.bind.JAXBContext;
-import javax.xml.bind.JAXBException;
+import jakarta.xml.bind.JAXBContext;
+import jakarta.xml.bind.JAXBException;
 
 import com.sun.tools.xjc.Options;
 import org.kie.api.KieBase;
diff --git a/kie-internal/src/main/java/org/kie/internal/builder/help/KnowledgeBuilderHelper.java b/kie-internal/src/main/java/org/kie/internal/builder/help/KnowledgeBuilderHelper.java
index 5bc9fb6176b..aef8a660116 100644
--- a/kie-internal/src/main/java/org/kie/internal/builder/help/KnowledgeBuilderHelper.java
+++ b/kie-internal/src/main/java/org/kie/internal/builder/help/KnowledgeBuilderHelper.java
@@ -20,8 +20,8 @@
 import java.util.Collections;
 import java.util.Map;
 
-import javax.xml.bind.JAXBContext;
-import javax.xml.bind.JAXBException;
+import jakarta.xml.bind.JAXBContext;
+import jakarta.xml.bind.JAXBException;
 
 import com.sun.tools.xjc.Options;
 import org.kie.api.KieBase;
diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/CorrelationKeyXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/CorrelationKeyXmlAdapter.java
index 78b83922f06..7b3f93bf2bd 100644
--- a/kie-internal/src/main/java/org/kie/internal/jaxb/CorrelationKeyXmlAdapter.java
+++ b/kie-internal/src/main/java/org/kie/internal/jaxb/CorrelationKeyXmlAdapter.java
@@ -21,7 +21,7 @@
 import java.util.Iterator;
 import java.util.List;
 
-import javax.xml.bind.annotation.adapters.XmlAdapter;
+import jakarta.xml.bind.annotation.adapters.XmlAdapter;
 
 import org.kie.internal.KieInternalServices;
 import org.kie.internal.process.CorrelationKey;
diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateTimeXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateTimeXmlAdapter.java
index 1a8848a4ff8..281e5e1823a 100644
--- a/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateTimeXmlAdapter.java
+++ b/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateTimeXmlAdapter.java
@@ -21,7 +21,7 @@
 import java.time.format.DateTimeFormatterBuilder;
 import java.time.temporal.ChronoField;
 
-import javax.xml.bind.annotation.adapters.XmlAdapter;
+import jakarta.xml.bind.annotation.adapters.XmlAdapter;
 
 public class LocalDateTimeXmlAdapter extends XmlAdapter {
 
diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateXmlAdapter.java
index c41076f7a51..bdcc613daf3 100644
--- a/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateXmlAdapter.java
+++ b/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateXmlAdapter.java
@@ -18,7 +18,7 @@
 import java.time.DateTimeException;
 import java.time.LocalDate;
 
-import javax.xml.bind.annotation.adapters.XmlAdapter;
+import jakarta.xml.bind.annotation.adapters.XmlAdapter;
 
 public class LocalDateXmlAdapter extends XmlAdapter {
 
diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/LocalTimeXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/LocalTimeXmlAdapter.java
index 184f65b0f2b..68944541184 100644
--- a/kie-internal/src/main/java/org/kie/internal/jaxb/LocalTimeXmlAdapter.java
+++ b/kie-internal/src/main/java/org/kie/internal/jaxb/LocalTimeXmlAdapter.java
@@ -21,7 +21,7 @@
 import java.time.format.DateTimeFormatterBuilder;
 import java.time.temporal.ChronoField;
 
-import javax.xml.bind.annotation.adapters.XmlAdapter;
+import jakarta.xml.bind.annotation.adapters.XmlAdapter;
 
 public class LocalTimeXmlAdapter extends XmlAdapter {
 
diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/OffsetDateTimeXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/OffsetDateTimeXmlAdapter.java
index 7774380f71f..d2cf1a1c938 100644
--- a/kie-internal/src/main/java/org/kie/internal/jaxb/OffsetDateTimeXmlAdapter.java
+++ b/kie-internal/src/main/java/org/kie/internal/jaxb/OffsetDateTimeXmlAdapter.java
@@ -21,7 +21,7 @@
 import java.time.format.DateTimeFormatterBuilder;
 import java.time.temporal.ChronoField;
 
-import javax.xml.bind.annotation.adapters.XmlAdapter;
+import jakarta.xml.bind.annotation.adapters.XmlAdapter;
 
 public class OffsetDateTimeXmlAdapter extends XmlAdapter {
 
diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueEntry.java b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueEntry.java
index 6cb8412e190..9bdfb6c0e55 100644
--- a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueEntry.java
+++ b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueEntry.java
@@ -17,12 +17,12 @@
 
 import java.util.Map.Entry;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlSchemaType;
-import javax.xml.bind.annotation.XmlType;
-import javax.xml.bind.annotation.XmlValue;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlAttribute;
+import jakarta.xml.bind.annotation.XmlSchemaType;
+import jakarta.xml.bind.annotation.XmlType;
+import jakarta.xml.bind.annotation.XmlValue;
 
 
 @XmlType
diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMap.java b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMap.java
index 7cbab157915..db46e1e0336 100644
--- a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMap.java
+++ b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMap.java
@@ -23,10 +23,10 @@
 import java.util.Map;
 import java.util.Set;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlType;
 
 import static org.kie.internal.jaxb.StringKeyObjectValueMapXmlAdapter.createJaxbStringObjectMapEntry;
 import static org.kie.internal.jaxb.StringKeyObjectValueMapXmlAdapter.deserializeObject;
diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMapXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMapXmlAdapter.java
index 0f8326be2ff..3a0fd51b2dd 100644
--- a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMapXmlAdapter.java
+++ b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMapXmlAdapter.java
@@ -25,7 +25,7 @@
 import java.util.Map;
 import java.util.Map.Entry;
 
-import javax.xml.bind.annotation.adapters.XmlAdapter;
+import jakarta.xml.bind.annotation.adapters.XmlAdapter;
 
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueEntry.java b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueEntry.java
index 07ac95248f8..d22ef755e3a 100644
--- a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueEntry.java
+++ b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueEntry.java
@@ -15,10 +15,10 @@
 
 package org.kie.internal.jaxb;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlType;
 
 
 @XmlType
diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMap.java b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMap.java
index d05c3b36067..d84990d6f39 100644
--- a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMap.java
+++ b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMap.java
@@ -23,10 +23,10 @@
 import java.util.Map;
 import java.util.Set;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlType;
 
 /**
  * This implements {@link Map} in order to fool JSON..
diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMapXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMapXmlAdapter.java
index caf41ec85ae..ccf5431e327 100644
--- a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMapXmlAdapter.java
+++ b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMapXmlAdapter.java
@@ -19,7 +19,7 @@
 import java.util.Map;
 import java.util.Map.Entry;
 
-import javax.xml.bind.annotation.adapters.XmlAdapter;
+import jakarta.xml.bind.annotation.adapters.XmlAdapter;
 
 /**
  * This is a {@link XmlAdapter} for mapping Map<String, String> instances
diff --git a/kie-internal/src/main/java/org/kie/internal/query/QueryContext.java b/kie-internal/src/main/java/org/kie/internal/query/QueryContext.java
index c8d54837c2e..e0b739007b1 100644
--- a/kie-internal/src/main/java/org/kie/internal/query/QueryContext.java
+++ b/kie-internal/src/main/java/org/kie/internal/query/QueryContext.java
@@ -16,9 +16,9 @@
 
 package org.kie.internal.query;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlType;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlType;
 
 @XmlType
 @XmlAccessorType(XmlAccessType.FIELD)
diff --git a/kie-internal/src/main/java/org/kie/internal/query/QueryFilter.java b/kie-internal/src/main/java/org/kie/internal/query/QueryFilter.java
index 21a3b822778..52ef85b198b 100644
--- a/kie-internal/src/main/java/org/kie/internal/query/QueryFilter.java
+++ b/kie-internal/src/main/java/org/kie/internal/query/QueryFilter.java
@@ -20,9 +20,9 @@
 import java.util.Map;
 import java.util.Map.Entry;
 
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlSchemaType;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlSchemaType;
+import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 
 import org.kie.internal.jaxb.StringKeyObjectValueMapXmlAdapter;
 
diff --git a/kie-internal/src/main/java/org/kie/internal/query/data/QueryData.java b/kie-internal/src/main/java/org/kie/internal/query/data/QueryData.java
index a07910db942..04acf1f1ab5 100644
--- a/kie-internal/src/main/java/org/kie/internal/query/data/QueryData.java
+++ b/kie-internal/src/main/java/org/kie/internal/query/data/QueryData.java
@@ -15,10 +15,10 @@
 
 package org.kie.internal.query.data;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlType;
 
 import org.kie.internal.query.QueryContext;
 
diff --git a/kie-internal/src/main/java/org/kie/internal/query/data/QueryParameters.java b/kie-internal/src/main/java/org/kie/internal/query/data/QueryParameters.java
index 3c22fb6b7f2..c31fd5bbbb6 100644
--- a/kie-internal/src/main/java/org/kie/internal/query/data/QueryParameters.java
+++ b/kie-internal/src/main/java/org/kie/internal/query/data/QueryParameters.java
@@ -21,12 +21,12 @@
 import java.util.List;
 import java.util.Map;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlTransient;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlTransient;
+import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 
 import org.kie.internal.jaxb.StringKeyObjectValueMapXmlAdapter;
 
diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/DeploymentDescriptor.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/DeploymentDescriptor.java
index 4f0cf1ebb8b..68fdf05e9b5 100644
--- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/DeploymentDescriptor.java
+++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/DeploymentDescriptor.java
@@ -18,8 +18,8 @@
 
 import java.util.List;
 
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
+import jakarta.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlType;
 
 import org.kie.api.remote.Remotable;
 
diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/MergeMode.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/MergeMode.java
index 2ca6a37da30..d1829b33e74 100644
--- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/MergeMode.java
+++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/MergeMode.java
@@ -16,7 +16,7 @@
 
 package org.kie.internal.runtime.conf;
 
-import javax.xml.bind.annotation.XmlType;
+import jakarta.xml.bind.annotation.XmlType;
 
 /**
  * Defines merging strategy of two descriptors
diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/NamedObjectModel.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/NamedObjectModel.java
index 22f0573bb58..cfdef63ab48 100644
--- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/NamedObjectModel.java
+++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/NamedObjectModel.java
@@ -16,11 +16,11 @@
 
 package org.kie.internal.runtime.conf;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlSchemaType;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlSchemaType;
 
 /**
  * Extension of ObjectModel that provides unique name for the object model
diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModel.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModel.java
index 5d8ffe81348..2ae91cff15a 100644
--- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModel.java
+++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModel.java
@@ -21,12 +21,12 @@
 import java.util.Arrays;
 import java.util.List;
 
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElementWrapper;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlSchemaType;
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlElementWrapper;
+import jakarta.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlSchemaType;
 /**
  * Object model that defines how and of what type the object instance should be created.
* The how is actually delegated to resolved implementation ObjectModelResolver diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/RuntimeStrategy.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/RuntimeStrategy.java index a70f3100d0c..415a2c53884 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/RuntimeStrategy.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/RuntimeStrategy.java @@ -15,7 +15,7 @@ package org.kie.internal.runtime.conf; -import javax.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType; @XmlType public enum RuntimeStrategy { diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorIO.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorIO.java index aeeef037973..cb31932264e 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorIO.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorIO.java @@ -21,10 +21,10 @@ import java.net.URL; import javax.xml.XMLConstants; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Marshaller; -import javax.xml.bind.Unmarshaller; +import jakarta.xml.bind.JAXBContext; +import jakarta.xml.bind.JAXBException; +import jakarta.xml.bind.Marshaller; +import jakarta.xml.bind.Unmarshaller; import javax.xml.validation.Schema; import javax.xml.validation.SchemaFactory; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorImpl.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorImpl.java index c2907e3a7e9..a8d8dd299eb 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorImpl.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorImpl.java @@ -27,13 +27,13 @@ import java.util.Map; import java.util.Set; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElementWrapper; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlElementWrapper; +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.XmlTransient; import org.kie.internal.runtime.conf.AuditMode; import org.kie.internal.runtime.conf.BuilderHandler; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/TransientObjectModel.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/TransientObjectModel.java index eb2e3dcbf92..89d6b93d317 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/TransientObjectModel.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/TransientObjectModel.java @@ -16,7 +16,7 @@ package org.kie.internal.runtime.manager.deploy; -import javax.xml.bind.annotation.XmlTransient; +import jakarta.xml.bind.annotation.XmlTransient; import org.kie.internal.runtime.conf.ObjectModel; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/AccessType.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/AccessType.java index e892aba698d..12420b0f79b 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/AccessType.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/AccessType.java @@ -19,7 +19,7 @@ */ package org.kie.internal.task.api.model; -import javax.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType; @XmlType public enum AccessType { diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/SubTasksStrategy.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/SubTasksStrategy.java index 86cf39d1960..982920d369f 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/SubTasksStrategy.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/SubTasksStrategy.java @@ -16,7 +16,7 @@ package org.kie.internal.task.api.model; -import javax.xml.bind.annotation.XmlType; +import jakarta.xml.bind.annotation.XmlType; @XmlType public enum SubTasksStrategy{ diff --git a/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/JaxbMarshalingTest.java b/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/JaxbMarshalingTest.java index 29f8b7e2f8b..65e66814a9e 100644 --- a/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/JaxbMarshalingTest.java +++ b/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/JaxbMarshalingTest.java @@ -18,9 +18,9 @@ import java.io.StringWriter; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Marshaller; +import jakarta.xml.bind.JAXBContext; +import jakarta.xml.bind.JAXBException; +import jakarta.xml.bind.Marshaller; import org.junit.Test; import org.kie.internal.runtime.conf.DeploymentDescriptor; diff --git a/kie-maven-plugin/pom.xml b/kie-maven-plugin/pom.xml index d70e25cb01d..3b0068d419d 100644 --- a/kie-maven-plugin/pom.xml +++ b/kie-maven-plugin/pom.xml @@ -7,7 +7,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/kie-memory-compiler/pom.xml b/kie-memory-compiler/pom.xml index 3dd90fd1209..a4cf508aa5b 100644 --- a/kie-memory-compiler/pom.xml +++ b/kie-memory-compiler/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/kie-pmml-trusty/kie-pmml-api/pom.xml b/kie-pmml-trusty/kie-pmml-api/pom.xml index 82335894373..58579e0cd70 100644 --- a/kie-pmml-trusty/kie-pmml-api/pom.xml +++ b/kie-pmml-trusty/kie-pmml-api/pom.xml @@ -5,7 +5,7 @@ kie-pmml-trusty org.kie - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-commons/pom.xml b/kie-pmml-trusty/kie-pmml-commons/pom.xml index 4701457eb15..963cc3a4b74 100644 --- a/kie-pmml-trusty/kie-pmml-commons/pom.xml +++ b/kie-pmml-trusty/kie-pmml-commons/pom.xml @@ -5,7 +5,7 @@ org.kie kie-pmml-trusty - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/pom.xml b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/pom.xml index 03875b4c16d..357bdf3b445 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/pom.xml +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/pom.xml @@ -5,7 +5,7 @@ org.kie kie-pmml-compiler - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/dto/CommonCompilationDTO.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/dto/CommonCompilationDTO.java index faeebf018f0..ab667a71c92 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/dto/CommonCompilationDTO.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/dto/CommonCompilationDTO.java @@ -116,7 +116,7 @@ private CommonCompilationDTO(final PMML pmml, targetDataField = this.fields.stream() .filter(DataField.class::isInstance) .map(DataField.class::cast) - .filter(field -> Objects.equals(getTargetFieldName(), field.getName().getValue())) + .filter(field -> Objects.equals(getTargetFieldName(),field.getName())) .findFirst().orElse(null); } else { targetDataField = null; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/utils/ModelUtils.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/utils/ModelUtils.java index 8f99b7d8c8f..b4e5e7069f6 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/utils/ModelUtils.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/utils/ModelUtils.java @@ -48,8 +48,8 @@ import org.dmg.pmml.Targets; import org.dmg.pmml.TransformationDictionary; import org.dmg.pmml.Value; -import org.jpmml.model.inlinetable.InputCell; -import org.jpmml.model.inlinetable.OutputCell; +import org.jpmml.model.cells.InputCell; +import org.jpmml.model.cells.OutputCell; import org.kie.pmml.api.enums.CAST_INTEGER; import org.kie.pmml.api.enums.DATA_TYPE; import org.kie.pmml.api.enums.FIELD_USAGE_TYPE; @@ -120,8 +120,8 @@ public static List getTargetFields(final List> field if (model.getMiningSchema() != null && model.getMiningSchema().getMiningFields() != null) { for (MiningField miningField : model.getMiningSchema().getMiningFields()) { if (MiningField.UsageType.TARGET.equals(miningField.getUsageType()) || MiningField.UsageType.PREDICTED.equals(miningField.getUsageType())) { - OP_TYPE opType = getOpType(fields, model, miningField.getName().getValue()); - toReturn.add(new KiePMMLNameOpType(miningField.getName().getValue(), opType)); + OP_TYPE opType = getOpType(fields, model,miningField.getName()); + toReturn.add(new KiePMMLNameOpType(miningField.getName(), opType)); } } } @@ -142,8 +142,7 @@ public static Map getTargetFieldsTypeMap(final List> if (model.getMiningSchema() != null && model.getMiningSchema().getMiningFields() != null) { for (MiningField miningField : model.getMiningSchema().getMiningFields()) { if (MiningField.UsageType.TARGET.equals(miningField.getUsageType()) || MiningField.UsageType.PREDICTED.equals(miningField.getUsageType())) { - toReturn.put(miningField.getName().getValue(), getDATA_TYPE(fields, - miningField.getName().getValue())); + toReturn.put(miningField.getName(), getDATA_TYPE(fields,miningField.getName())); } } } @@ -179,7 +178,7 @@ public static Optional getOpTypeFromFields(final List> fields, final String fieldName) { return fields == null ? Optional.empty() : fields.stream() - .filter(dataField -> Objects.equals(fieldName, dataField.getName().getValue()) && dataField.getOpType() != null) + .filter(dataField -> Objects.equals(fieldName,dataField.getName()) && dataField.getOpType() != null) .map(dataField -> OP_TYPE.byName(dataField.getOpType().value())) .findFirst(); } @@ -193,7 +192,7 @@ public static Optional getOpTypeFromFields(final List> fields, public static Optional getOpTypeFromMiningFields(MiningSchema miningSchema, String fieldName) { if (miningSchema != null && miningSchema.getMiningFields() != null) { return miningSchema.getMiningFields().stream() - .filter(miningField -> Objects.equals(fieldName, miningField.getName().getValue()) && miningField.getOpType() != null) + .filter(miningField -> Objects.equals(fieldName,miningField.getName()) && miningField.getOpType() != null) .findFirst() .map(dataField -> OP_TYPE.byName(dataField.getOpType().value())); } else { @@ -210,7 +209,7 @@ public static Optional getOpTypeFromMiningFields(MiningSchema miningSch public static Optional getOpTypeFromTargets(Targets targets, String fieldName) { if (targets != null && targets.getTargets() != null) { return targets.getTargets().stream() - .filter(target -> Objects.equals(fieldName, target.getField().getValue()) && target.getOpType() != null) + .filter(target -> Objects.equals(fieldName,target.getField()) && target.getOpType() != null) .findFirst() .map(dataField -> OP_TYPE.byName(dataField.getOpType().value())); } else { @@ -228,7 +227,7 @@ public static Optional getOpTypeFromTargets(Targets targets, String fie public static DataType getDataType(final List> fields, final String fieldName) { return fields.stream() - .filter(fld -> Objects.equals(fieldName, fld.getName().getValue())) + .filter(fld -> Objects.equals(fieldName,fld.getName())) .map(Field::getDataType) .findFirst() .orElseThrow(() -> new KiePMMLInternalException(String.format("Failed to find DataType for " + @@ -244,7 +243,7 @@ public static DataType getDataType(final List> fields, */ public static DATA_TYPE getDATA_TYPE(final List> fields, String fieldName) { Optional toReturn = fields.stream() - .filter(fld -> Objects.equals(fieldName, fld.getName().getValue())) + .filter(fld -> Objects.equals(fieldName,fld.getName())) .findFirst() .map(dataField -> DATA_TYPE.byName(dataField.getDataType().value())); return toReturn.orElseThrow(() -> new KiePMMLInternalException(String.format("Failed to find DATA_TYPE for " + @@ -328,7 +327,7 @@ public static List convertToKieMiningFieldL */ public static org.kie.pmml.api.models.MiningField convertToKieMiningField(final MiningField toConvert, final Field field) { - final String name = toConvert.getName() != null ? toConvert.getName().getValue() : null; + final String name = toConvert.getName() != null ?toConvert.getName() : null; final FIELD_USAGE_TYPE fieldUsageType = toConvert.getUsageType() != null ? FIELD_USAGE_TYPE.byName(toConvert.getUsageType().value()) : null; final OP_TYPE opType = toConvert.getOpType() != null ? OP_TYPE.byName(toConvert.getOpType().value()) : null; @@ -405,13 +404,13 @@ public static List convertToKieOutputFieldL */ public static org.kie.pmml.api.models.OutputField convertToKieOutputField(final OutputField toConvert, final Field field) { - final String name = toConvert.getName() != null ? toConvert.getName().getValue() : null; + final String name = toConvert.getName() != null ?toConvert.getName() : null; final OP_TYPE opType = toConvert.getOpType() != null ? OP_TYPE.byName(toConvert.getOpType().value()) : null; final DATA_TYPE dataFieldDataType = field != null ? DATA_TYPE.byName(field.getDataType().value()) : null; final DATA_TYPE dataType = toConvert.getDataType() != null ? DATA_TYPE.byName(toConvert.getDataType().value()) : dataFieldDataType; - final String targetField = toConvert.getTargetField() != null ? toConvert.getTargetField().getValue() : null; + final String targetField = toConvert.getTargetField() != null ?toConvert.getTargetField() : null; final RESULT_FEATURE resultFeature = toConvert.getResultFeature() != null ? RESULT_FEATURE.byName(toConvert.getResultFeature().value()) : null; final List allowedValues = field instanceof DataField ? @@ -456,8 +455,7 @@ public static TargetField convertToKieTargetField(final Target toConvert) { toConvert.getRescaleConstant().doubleValue() : null; final Double rescaleFactor = toConvert.getRescaleFactor() != null ? toConvert.getRescaleFactor().doubleValue() : null; return new TargetField(targetValues, - opType, - toConvert.getField().getValue(), + opType,toConvert.getField(), castInteger, min, max, diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/mocks/TestModel.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/mocks/TestModel.java index 29e0f7b7d01..606759ffdc3 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/mocks/TestModel.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/mocks/TestModel.java @@ -122,4 +122,14 @@ public TestModel setLocalTransformations(LocalTransformations localTransformatio public VisitorAction accept(Visitor visitor) { return null; } + + @Override + public MiningFunction requireMiningFunction() { + return null; + } + + @Override + public MiningSchema requireMiningSchema() { + return null; + } } diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/testutils/PMMLModelTestUtils.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/testutils/PMMLModelTestUtils.java index 9c855e91bc4..dd1de2f0d43 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/testutils/PMMLModelTestUtils.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/testutils/PMMLModelTestUtils.java @@ -28,6 +28,7 @@ import org.dmg.pmml.Array; import org.dmg.pmml.CompareFunction; import org.dmg.pmml.ComparisonMeasure; +import org.dmg.pmml.ComplexScoreDistribution; import org.dmg.pmml.CompoundPredicate; import org.dmg.pmml.Constant; import org.dmg.pmml.DataDictionary; @@ -40,7 +41,6 @@ import org.dmg.pmml.Euclidean; import org.dmg.pmml.Field; import org.dmg.pmml.FieldColumnPair; -import org.dmg.pmml.FieldName; import org.dmg.pmml.FieldRef; import org.dmg.pmml.InlineTable; import org.dmg.pmml.Interval; @@ -86,8 +86,8 @@ import org.dmg.pmml.regression.PredictorTerm; import org.dmg.pmml.regression.RegressionModel; import org.dmg.pmml.regression.RegressionTable; -import org.jpmml.model.inlinetable.InputCell; -import org.jpmml.model.inlinetable.OutputCell; +import org.jpmml.model.cells.InputCell; +import org.jpmml.model.cells.OutputCell; import org.kie.pmml.api.enums.DATA_TYPE; import org.kie.pmml.api.enums.Named; import org.kie.pmml.api.enums.RESULT_FEATURE; @@ -191,7 +191,7 @@ public static TestModel getRandomTestModel(DataDictionary dataDictionary) { miningSchema.addMiningFields(predictedMiningField); Output output = new Output(); OutputField outputField = new OutputField(); - outputField.setName(FieldName.create("OUTPUT_" + lastDataField.getName().getValue())); + outputField.setName("OUTPUT_" +lastDataField.getName()); outputField.setDataType(lastDataField.getDataType()); outputField.setOpType(getRandomOpType()); toReturn.setModelName(RandomStringUtils.random(6, true, false)); @@ -219,7 +219,7 @@ public static MiningModel getRandomMiningModel(DataDictionary dataDictionary) { miningSchema.addMiningFields(predictedMiningField); Output output = new Output(); OutputField outputField = new OutputField(); - outputField.setName(FieldName.create("OUTPUT_" + lastDataField.getName().getValue())); + outputField.setName("OUTPUT_" +lastDataField.getName()); outputField.setDataType(lastDataField.getDataType()); outputField.setOpType(getRandomOpType()); toReturn.setModelName(RandomStringUtils.random(6, true, false)); @@ -279,7 +279,7 @@ public static RegressionTable getRegressionTable(List cate public static CategoricalPredictor getCategoricalPredictor(String name, double value, double coefficient) { CategoricalPredictor toReturn = new CategoricalPredictor(); - toReturn.setField(FieldName.create(name)); + toReturn.setField(name); toReturn.setValue(value); toReturn.setCoefficient(coefficient); return toReturn; @@ -287,7 +287,7 @@ public static CategoricalPredictor getCategoricalPredictor(String name, double v public static NumericPredictor getNumericPredictor(String name, int exponent, double coefficient) { NumericPredictor toReturn = new NumericPredictor(); - toReturn.setField(FieldName.create(name)); + toReturn.setField(name); toReturn.setExponent(exponent); toReturn.setCoefficient(coefficient); return toReturn; @@ -295,7 +295,7 @@ public static NumericPredictor getNumericPredictor(String name, int exponent, do public static PredictorTerm getPredictorTerm(String name, double coefficient, List fieldRefNames) { PredictorTerm toReturn = new PredictorTerm(); - toReturn.setName(FieldName.create(name)); + toReturn.setName(name); toReturn.setCoefficient(coefficient); toReturn.addFieldRefs(fieldRefNames.stream().map(PMMLModelTestUtils::getFieldRef).toArray(FieldRef[]::new)); return toReturn; @@ -320,7 +320,7 @@ public static ClusteringModel getClusteringModel(String modelName, MiningFunctio public static DataField getDataField(String fieldName, OpType opType) { DataField toReturn = new DataField(); - toReturn.setName(FieldName.create(fieldName)); + toReturn.setName(fieldName); toReturn.setOpType(opType); return toReturn; } @@ -333,14 +333,14 @@ public static DataField getDataField(String fieldName, OpType opType, DataType d public static MiningField getMiningField(String fieldName, MiningField.UsageType usageType) { MiningField toReturn = getRandomMiningField(); - toReturn.setName(FieldName.create(fieldName)); + toReturn.setName(fieldName); toReturn.setUsageType(usageType); return toReturn; } public static Target getTarget(String fieldTarget, OpType opType) { Target toReturn = new Target(); - toReturn.setField(FieldName.create(fieldTarget)); + toReturn.setField(fieldTarget); toReturn.setOpType(opType); return toReturn; } @@ -359,7 +359,7 @@ public static DefineFunction getDefineFunction(String functionName) { public static DerivedField getDerivedField(String fieldName) { DerivedField toReturn = new DerivedField(); - toReturn.setName(FieldName.create(fieldName)); + toReturn.setName(fieldName); toReturn.setDataType(getRandomDataType()); toReturn.setOpType(getRandomOpType()); Constant expression = new Constant(5); @@ -383,7 +383,7 @@ public static Measure getRandomMeasure() { public static DataField getRandomDataField() { DataField toReturn = new DataField(); - toReturn.setName(FieldName.create(RandomStringUtils.random(6, true, false))); + toReturn.setName(RandomStringUtils.random(6, true, false)); toReturn.setDataType(getRandomDataType()); toReturn.setOpType(getRandomOpType()); IntStream.range(0, 3).forEach(i -> { @@ -410,7 +410,7 @@ public static MiningField getRandomMiningField(DataField dataField) { public static MiningField getRandomMiningField() { Random random = new Random(); - MiningField toReturn = new MiningField(FieldName.create(RandomStringUtils.random(6, true, false))); + MiningField toReturn = new MiningField(RandomStringUtils.random(6, true, false)); toReturn.setInvalidValueTreatment(getRandomInvalidValueTreatmentMethod()); toReturn.setMissingValueTreatment(getRandomMissingValueTreatmentMethod()); toReturn.setOutlierTreatment(getRandomOutlierTreatmentMethod()); @@ -433,13 +433,13 @@ public static OutputField getRandomOutputField(DataField dataField) { } public static OutputField getRandomOutputField() { - FieldName fieldName = FieldName.create(RandomStringUtils.random(6, true, false)); + String fieldName =RandomStringUtils.random(6, true, false); OutputField toReturn = new OutputField(); toReturn.setName(fieldName); toReturn.setOpType(getRandomOpType()); toReturn.setDataType(getRandomDataType()); toReturn.setValue(getRandomValue(toReturn.getDataType())); - fieldName = FieldName.create(RandomStringUtils.random(6, true, false)); + fieldName =RandomStringUtils.random(6, true, false); toReturn.setTargetField(fieldName); toReturn.setResultFeature(getRandomResultFeature()); toReturn.setExpression(getRandomConstant()); @@ -449,7 +449,7 @@ public static OutputField getRandomOutputField() { public static Target getRandomTarget() { Random random = new Random(); Target toReturn = new Target(); - toReturn.setField(FieldName.create(RandomStringUtils.random(6, true, false))); + toReturn.setField(RandomStringUtils.random(6, true, false)); toReturn.setOpType(getRandomOpType()); toReturn.setMax(random.nextInt(234)); toReturn.setMin(random.nextInt(23)); @@ -473,7 +473,7 @@ public static TargetValue getRandomTargetValue() { public static FieldColumnPair getRandomFieldColumnPair() { FieldColumnPair toReturn = new FieldColumnPair(); - toReturn.setField(FieldName.create(RandomStringUtils.random(6, true, false))); + toReturn.setField(RandomStringUtils.random(6, true, false)); toReturn.setColumn(RandomStringUtils.random(6, true, false)); return toReturn; } @@ -490,7 +490,7 @@ public static ClusteringField getRandomClusteringField() { Random random = new Random(); ClusteringField toReturn = new ClusteringField(); toReturn.setCenterField(getRandomClusteringFieldCenterField()); - toReturn.setField(FieldName.create(RandomStringUtils.random(6, true, false))); + toReturn.setField(RandomStringUtils.random(6, true, false)); toReturn.setCompareFunction(getRandomCompareFunction()); toReturn.setFieldWeight(random.nextDouble()); toReturn.setComparisons(getRandomComparisons()); @@ -528,7 +528,7 @@ public static Discretize getRandomDiscretize() { Discretize toReturn = new Discretize(); toReturn.setDataType(getRandomDataType()); toReturn.setDefaultValue(RandomStringUtils.random(6, true, false)); - toReturn.setField(FieldName.create(RandomStringUtils.random(6, true, false))); + toReturn.setField(RandomStringUtils.random(6, true, false)); toReturn.setMapMissingTo(RandomStringUtils.random(6, true, false)); IntStream.range(0, 3).forEach(i -> toReturn.addDiscretizeBins(getRandomDiscretizeBin())); return toReturn; @@ -536,7 +536,7 @@ public static Discretize getRandomDiscretize() { public static FieldRef getRandomFieldRef() { FieldRef toReturn = new FieldRef(); - toReturn.setField(FieldName.create(RandomStringUtils.random(6, true, false))); + toReturn.setField(RandomStringUtils.random(6, true, false)); toReturn.setMapMissingTo(RandomStringUtils.random(6, true, false)); return toReturn; } @@ -562,7 +562,7 @@ public static NormContinuous getRandomNormContinuous() { double mapMissingTo = random.nextInt(100) / 10; NormContinuous toReturn = new NormContinuous(); IntStream.range(0, 3).forEach(i -> toReturn.addLinearNorms(getRandomLinearNorm())); - toReturn.setField(FieldName.create(RandomStringUtils.random(6, true, false))); + toReturn.setField(RandomStringUtils.random(6, true, false)); toReturn.setOutliers(getRandomOutlierTreatmentMethod()); toReturn.setMapMissingTo(mapMissingTo); return toReturn; @@ -570,7 +570,7 @@ public static NormContinuous getRandomNormContinuous() { public static NormDiscrete getRandomNormDiscrete() { NormDiscrete toReturn = new NormDiscrete(); - toReturn.setField(FieldName.create(RandomStringUtils.random(6, true, false))); + toReturn.setField(RandomStringUtils.random(6, true, false)); toReturn.setValue(getRandomObject(DataType.INTEGER)); toReturn.setMapMissingTo((Number) getRandomObject(DataType.INTEGER)); toReturn.setMethod(getRandomMethod()); @@ -580,14 +580,14 @@ public static NormDiscrete getRandomNormDiscrete() { public static TextIndex getRandomTextIndex() { Random random = new Random(); TextIndex toReturn = new TextIndex(); - toReturn.setField(FieldName.create(RandomStringUtils.random(6, true, false))); + toReturn.setField(RandomStringUtils.random(6, true, false)); toReturn.setExpression(getRandomFieldRef()); toReturn.setLocalTermWeights(getRandomLocalTermWeights()); toReturn.setWordSeparatorCharacterRE(RandomStringUtils.random(1, true, false)); toReturn.setTokenize(true); toReturn.setCaseSensitive(false); toReturn.setMaxLevenshteinDistance(random.nextInt(10)); - toReturn.setTextField(FieldName.create(RandomStringUtils.random(6, true, false))); + toReturn.setTextField(RandomStringUtils.random(6, true, false)); IntStream.range(0, 3).forEach(i -> toReturn.addTextIndexNormalizations(getRandomTextIndexNormalization())); return toReturn; } @@ -600,7 +600,7 @@ public static LinearNorm getRandomLinearNorm() { } public static ParameterField getParameterField(String fieldName) { - ParameterField toReturn = new ParameterField(FieldName.create(fieldName)); + ParameterField toReturn = new ParameterField(fieldName); toReturn.setDataType(getRandomDataType()); toReturn.setOpType(getRandomOpType()); toReturn.setDisplayName("Display-" + fieldName); @@ -608,7 +608,7 @@ public static ParameterField getParameterField(String fieldName) { } public static ParameterField getParameterField(String fieldName, DataType dataType) { - ParameterField toReturn = new ParameterField(FieldName.create(fieldName)); + ParameterField toReturn = new ParameterField(fieldName); toReturn.setDataType(dataType); return toReturn; } @@ -635,7 +635,7 @@ public static List getResultFeature() { public static SimplePredicate getSimplePredicate(final String predicateName, final Object value, final SimplePredicate.Operator operator) { - FieldName fieldName = FieldName.create(predicateName); + String fieldName =predicateName; SimplePredicate toReturn = new SimplePredicate(); toReturn.setField(fieldName); toReturn.setOperator(operator); @@ -654,7 +654,7 @@ public static SimpleSetPredicate getSimpleSetPredicate(final String predicateNam final Array.Type arrayType, final List values, final SimpleSetPredicate.BooleanOperator booleanOperator) { - FieldName fieldName = FieldName.create(predicateName); + String fieldName =predicateName; SimpleSetPredicate toReturn = new SimpleSetPredicate(); toReturn.setField(fieldName); toReturn.setBooleanOperator(booleanOperator); @@ -671,7 +671,7 @@ public static Array getArray(Array.Type arrayType, final List values) { } public static FieldRef getFieldRef(final String fieldName) { - return new FieldRef(FieldName.create(fieldName)); + return new FieldRef(fieldName); } public static Object getRandomObject(DataType dataType) { @@ -873,7 +873,7 @@ public static List getRandomPMMLScoreDistributions(boolean wi public static ScoreDistribution getRandomPMMLScoreDistribution(Double probability) { Random random = new Random(); - ScoreDistribution toReturn = new ScoreDistribution(); + ScoreDistribution toReturn = new ComplexScoreDistribution(); toReturn.setValue(RandomStringUtils.random(6, true, false)); toReturn.setRecordCount(random.nextInt(100)); toReturn.setConfidence((double) random.nextInt(1) / 100); @@ -925,7 +925,7 @@ public static SimplePredicate getRandomSimplePredicate(DataField dataField) { } public static SimplePredicate getRandomSimplePredicate() { - FieldName fieldName = FieldName.create(RandomStringUtils.random(6, true, false)); + String fieldName =RandomStringUtils.random(6, true, false); SimplePredicate toReturn = new SimplePredicate(); toReturn.setField(fieldName); toReturn.setOperator(getRandomSimplePredicateOperator()); @@ -945,7 +945,7 @@ public static SimpleSetPredicate getRandomSimpleSetPredicate(DataField dataField } public static SimpleSetPredicate getRandomSimpleSetPredicate() { - FieldName fieldName = FieldName.create(RandomStringUtils.random(6, true, false)); + String fieldName =RandomStringUtils.random(6, true, false); SimpleSetPredicate toReturn = new SimpleSetPredicate(); toReturn.setField(fieldName); toReturn.setBooleanOperator(getRandomSimpleSetPredicateOperator()); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/utils/ModelUtilsTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/utils/ModelUtilsTest.java index 8dd030ef3db..28334005b78 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/utils/ModelUtilsTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/utils/ModelUtilsTest.java @@ -34,7 +34,6 @@ import org.dmg.pmml.DataType; import org.dmg.pmml.DerivedField; import org.dmg.pmml.Field; -import org.dmg.pmml.FieldName; import org.dmg.pmml.MiningField; import org.dmg.pmml.MiningSchema; import org.dmg.pmml.Model; @@ -45,8 +44,8 @@ import org.dmg.pmml.Target; import org.dmg.pmml.Targets; import org.dmg.pmml.regression.RegressionModel; -import org.jpmml.model.inlinetable.InputCell; -import org.jpmml.model.inlinetable.OutputCell; +import org.jpmml.model.cells.InputCell; +import org.jpmml.model.cells.OutputCell; import org.junit.jupiter.api.Test; import org.kie.pmml.api.enums.DATA_TYPE; import org.kie.pmml.api.enums.FIELD_USAGE_TYPE; @@ -196,10 +195,10 @@ void getTargetFieldsWithTargetFieldsWithoutOptType() { retrieved.forEach(kiePMMLNameOpType -> { assertThat(miningSchema.getMiningFields() .stream() - .anyMatch(fld -> kiePMMLNameOpType.getName().equals(fld.getName().getValue()))).isTrue(); + .anyMatch(fld -> kiePMMLNameOpType.getName().equals(fld.getName()))).isTrue(); Optional optionalDataField = dataDictionary.getDataFields() .stream() - .filter(fld -> kiePMMLNameOpType.getName().equals(fld.getName().getValue())) + .filter(fld -> kiePMMLNameOpType.getName().equals(fld.getName())) .findFirst(); assertThat(optionalDataField).isPresent(); DataField dataField = optionalDataField.get(); @@ -228,7 +227,7 @@ void getTargetFieldsWithTargetFieldsWithOptType() { retrieved.forEach(kiePMMLNameOpType -> { Optional optionalMiningField = miningSchema.getMiningFields() .stream() - .filter(fld -> kiePMMLNameOpType.getName().equals(fld.getName().getValue())) + .filter(fld -> kiePMMLNameOpType.getName().equals(fld.getName())) .findFirst(); assertThat(optionalMiningField).isPresent(); MiningField miningField = optionalMiningField.get(); @@ -261,7 +260,7 @@ void getTargetFieldsWithTargetFieldsWithTargetsWithoutOptType() { retrieved.forEach(kiePMMLNameOpType -> { Optional optionalMiningField = miningSchema.getMiningFields() .stream() - .filter(fld -> kiePMMLNameOpType.getName().equals(fld.getName().getValue())) + .filter(fld -> kiePMMLNameOpType.getName().equals(fld.getName())) .findFirst(); assertThat(optionalMiningField).isPresent(); MiningField miningField = optionalMiningField.get(); @@ -294,7 +293,7 @@ void getTargetFieldsWithTargetFieldsWithTargetsWithOptType() { retrieved.forEach(kiePMMLNameOpType -> { Optional optionalTarget = targets.getTargets() .stream() - .filter(fld -> kiePMMLNameOpType.getName().equals(fld.getField().getValue())) + .filter(fld -> kiePMMLNameOpType.getName().equals(fld.getField())) .findFirst(); assertThat(optionalTarget).isPresent(); Target target = optionalTarget.get(); @@ -311,7 +310,7 @@ void getTargetFieldsTypeMapWithTargetFieldsWithoutTargets() { IntStream.range(0, 3).forEach(i -> { final DataField dataField = getRandomDataField(); dataDictionary.addDataFields(dataField); - final MiningField miningField = getMiningField(dataField.getName().getValue(), + final MiningField miningField = getMiningField(dataField.getName(), MiningField.UsageType.PREDICTED); miningSchema.addMiningFields(miningField); }); @@ -341,7 +340,7 @@ void getTargetFieldsTypeMapWithoutTargetFieldsWithoutTargets() { IntStream.range(0, 3).forEach(i -> { final DataField dataField = getRandomDataField(); dataDictionary.addDataFields(dataField); - final MiningField miningField = getMiningField(dataField.getName().getValue(), + final MiningField miningField = getMiningField(dataField.getName(), MiningField.UsageType.ACTIVE); miningSchema.addMiningFields(miningField); }); @@ -360,10 +359,10 @@ void getTargetFieldsWithoutTargetFieldsWithTargets() { IntStream.range(0, 3).forEach(i -> { final DataField dataField = getRandomDataField(); dataDictionary.addDataFields(dataField); - final MiningField miningField = getMiningField(dataField.getName().getValue(), + final MiningField miningField = getMiningField(dataField.getName(), MiningField.UsageType.ACTIVE); miningSchema.addMiningFields(miningField); - final Target targetField = getTarget(dataField.getName().getValue(), null); + final Target targetField = getTarget(dataField.getName(), null); targets.addTargets(targetField); }); model.setMiningSchema(miningSchema); @@ -386,8 +385,7 @@ void getOpTypeByDataFields() { dataDictionary.getDataFields().forEach(dataField -> { OP_TYPE retrieved = org.kie.pmml.compiler.api.utils.ModelUtils.getOpType(getFieldsFromDataDictionary(dataDictionary), - model, - dataField.getName().getValue()); + model,dataField.getName()); assertThat(retrieved).isNotNull(); OP_TYPE expected = OP_TYPE.byName(dataField.getOpType().value()); assertThat(retrieved).isEqualTo(expected); @@ -402,7 +400,7 @@ void getOpTypeByDataFieldsNotFound() { IntStream.range(0, 3).forEach(i -> { String fieldName = "field" + i; final DataField dataField = getRandomDataField(); - dataField.setName(FieldName.create(fieldName)); + dataField.setName(fieldName); dataDictionary.addDataFields(dataField); }); org.kie.pmml.compiler.api.utils.ModelUtils.getOpType(getFieldsFromDataDictionary(dataDictionary), model, @@ -426,8 +424,7 @@ void getOpTypeByMiningFields() { miningSchema.getMiningFields().forEach(miningField -> { OP_TYPE retrieved = org.kie.pmml.compiler.api.utils.ModelUtils.getOpType(getFieldsFromDataDictionary(dataDictionary), - model, - miningField.getName().getValue()); + model,miningField.getName()); assertThat(retrieved).isNotNull(); OP_TYPE expected = OP_TYPE.byName(miningField.getOpType().value()); assertThat(retrieved).isEqualTo(expected); @@ -443,7 +440,7 @@ void getOpTypeByMiningFieldsNotFound() { IntStream.range(0, 3).forEach(i -> { String fieldName = "field" + i; final DataField dataField = getRandomDataField(); - dataField.setName(FieldName.create(fieldName)); + dataField.setName(fieldName); dataDictionary.addDataFields(dataField); final MiningField miningField = getRandomMiningField(); miningField.setName(dataField.getName()); @@ -477,8 +474,7 @@ void getOpTypeByTargets() { targets.getTargets().forEach(target -> { OP_TYPE retrieved = org.kie.pmml.compiler.api.utils.ModelUtils.getOpType(getFieldsFromDataDictionary(dataDictionary), - model, - target.getField().getValue()); + model,target.getField()); assertThat(retrieved).isNotNull(); OP_TYPE expected = OP_TYPE.byName(target.getOpType().value()); assertThat(retrieved).isEqualTo(expected); @@ -495,7 +491,7 @@ void getOpTypeByTargetsNotFound() { IntStream.range(0, 3).forEach(i -> { String fieldName = "field" + i; final DataField dataField = getRandomDataField(); - dataField.setName(FieldName.create(fieldName)); + dataField.setName(fieldName); dataDictionary.addDataFields(dataField); final MiningField miningField = getRandomMiningField(); miningField.setName(dataField.getName()); @@ -528,8 +524,7 @@ void getOpTypeFromFields() { fields.clear(); fields.addAll(getFieldsFromDataDictionary(dataDictionary)); dataDictionary.getDataFields().forEach(dataField -> { - Optional retrieved = org.kie.pmml.compiler.api.utils.ModelUtils.getOpTypeFromFields(fields, - dataField.getName().getValue()); + Optional retrieved = org.kie.pmml.compiler.api.utils.ModelUtils.getOpTypeFromFields(fields,dataField.getName()); assertThat(retrieved).isNotNull(); assertThat(retrieved).isPresent(); OP_TYPE expected = OP_TYPE.byName(dataField.getOpType().value()); @@ -552,8 +547,7 @@ void getOpTypeFromMiningFields() { }); miningSchema.getMiningFields().forEach(miningField -> { Optional retrieved = - org.kie.pmml.compiler.api.utils.ModelUtils.getOpTypeFromMiningFields(miningSchema, - miningField.getName().getValue()); + org.kie.pmml.compiler.api.utils.ModelUtils.getOpTypeFromMiningFields(miningSchema,miningField.getName()); assertThat(retrieved).isNotNull(); assertThat(retrieved).isPresent(); OP_TYPE expected = OP_TYPE.byName(miningField.getOpType().value()); @@ -575,8 +569,7 @@ void getOpTypeFromTargets() { targets.addTargets(target); }); targets.getTargets().forEach(target -> { - Optional retrieved = org.kie.pmml.compiler.api.utils.ModelUtils.getOpTypeFromTargets(targets, - target.getField().getValue()); + Optional retrieved = org.kie.pmml.compiler.api.utils.ModelUtils.getOpTypeFromTargets(targets,target.getField()); assertThat(retrieved).isNotNull(); assertThat(retrieved).isPresent(); OP_TYPE expected = OP_TYPE.byName(target.getOpType().value()); @@ -595,7 +588,7 @@ void getDataTypeFromDerivedFieldsAndDataDictionary() { .stream() .map(dataField -> { DerivedField toReturn = new DerivedField(); - toReturn.setName(FieldName.create("DER_" + dataField.getName().getValue())); + toReturn.setName("DER_" +dataField.getName()); DataType dataType = getRandomDataType(); while (dataType.equals(dataField.getDataType())) { dataType = getRandomDataType(); @@ -612,14 +605,14 @@ void getDataTypeFromDerivedFieldsAndDataDictionary() { .map(Field.class::cast) .forEach(fields::add); dataDictionary.getDataFields().forEach(dataField -> { - String fieldName = dataField.getName().getValue(); + String fieldName =dataField.getName(); DataType retrieved = org.kie.pmml.compiler.api.utils.ModelUtils.getDataType(fields, fieldName); assertThat(retrieved).isNotNull(); DataType expected = dataField.getDataType(); assertThat(retrieved).isEqualTo(expected); }); derivedFields.forEach(derivedField -> { - String fieldName = derivedField.getName().getValue(); + String fieldName =derivedField.getName(); DataType retrieved = org.kie.pmml.compiler.api.utils.ModelUtils.getDataType(fields, fieldName); assertThat(retrieved).isNotNull(); DataType expected = derivedField.getDataType(); @@ -636,7 +629,7 @@ void getDataTypeFromDataDictionary() { }); dataDictionary.getDataFields().forEach(dataField -> { DATA_TYPE retrieved = - org.kie.pmml.compiler.api.utils.ModelUtils.getDATA_TYPE(getFieldsFromDataDictionary(dataDictionary), dataField.getName().getValue()); + org.kie.pmml.compiler.api.utils.ModelUtils.getDATA_TYPE(getFieldsFromDataDictionary(dataDictionary),dataField.getName()); assertThat(retrieved).isNotNull(); DATA_TYPE expected = DATA_TYPE.byName(dataField.getDataType().value()); assertThat(retrieved).isEqualTo(expected); @@ -650,7 +643,7 @@ void getDataTypeNotFound() { IntStream.range(0, 3).forEach(i -> { String fieldName = "field" + i; final DataField dataField = getRandomDataField(); - dataField.setName(FieldName.create(fieldName)); + dataField.setName(fieldName); dataDictionary.addDataFields(dataField); }); org.kie.pmml.compiler.api.utils.ModelUtils.getDATA_TYPE(getFieldsFromDataDictionary(dataDictionary), @@ -716,12 +709,12 @@ void convertToKieOutputField() { org.kie.pmml.api.models.OutputField retrieved = org.kie.pmml.compiler.api.utils.ModelUtils.convertToKieOutputField(toConvert, null); assertThat(retrieved).isNotNull(); - assertThat(retrieved.getName()).isEqualTo(toConvert.getName().getValue()); + assertThat(retrieved.getName()).isEqualTo(toConvert.getName()); OP_TYPE expectedOpType = OP_TYPE.byName(toConvert.getOpType().value()); assertThat(retrieved.getOpType()).isEqualTo(expectedOpType); DATA_TYPE expectedDataType = DATA_TYPE.byName(toConvert.getDataType().value()); assertThat(retrieved.getDataType()).isEqualTo(expectedDataType); - assertThat(retrieved.getTargetField()).isEqualTo(toConvert.getTargetField().getValue()); + assertThat(retrieved.getTargetField()).isEqualTo(toConvert.getTargetField()); RESULT_FEATURE expectedResultFeature = RESULT_FEATURE.byName(toConvert.getResultFeature().value()); assertThat(retrieved.getResultFeature()).isEqualTo(expectedResultFeature); toConvert.setOpType(null); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/pom.xml b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/pom.xml index 76a149bae39..15a8cc59bc4 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/pom.xml +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/pom.xml @@ -5,7 +5,7 @@ org.kie kie-pmml-compiler - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactory.java index b0a57eebda1..4aee65cbc72 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactory.java @@ -81,7 +81,7 @@ static BlockStmt getDerivedFieldVariableDeclaration(final String variableName, f final MethodCallExpr builder = getChainedMethodCallExprFrom("builder", initializer); final Expression dataTypeExpression = getExpressionForDataType(derivedField.getDataType()); final Expression opTypeExpression = getExpressionForOpType(derivedField.getOpType()); - builder.setArgument(0, new StringLiteralExpr(derivedField.getName().getValue())); + builder.setArgument(0, new StringLiteralExpr(derivedField.getName())); builder.setArgument(2, dataTypeExpression); builder.setArgument(3, opTypeExpression); builder.setArgument(4, new NameExpr(nestedVariableName)); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactory.java index f740a025abd..276205279d3 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactory.java @@ -85,7 +85,7 @@ static BlockStmt getDiscretizeVariableDeclaration(final String variableName, fin .orElseThrow(() -> new KiePMMLException(String.format(MISSING_VARIABLE_INITIALIZER_TEMPLATE, DISCRETIZE, toReturn))) .asObjectCreationExpr(); - final Expression nameExpr = new StringLiteralExpr(discretize.getField().getValue()); + final Expression nameExpr = new StringLiteralExpr(discretize.getField()); final Expression mapMissingToExpr = getExpressionForObject(discretize.getMapMissingTo()); final Expression defaultValueExpr = getExpressionForObject(discretize.getDefaultValue()); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactory.java index 1a6854dc37f..d0c9299e4fa 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactory.java @@ -67,7 +67,7 @@ static BlockStmt getFieldColumnPairVariableDeclaration(final String variableName final ObjectCreationExpr objectCreationExpr = variableDeclarator.getInitializer() .orElseThrow(() -> new KiePMMLException(String.format(MISSING_VARIABLE_INITIALIZER_TEMPLATE, FIELDCOLUMNPAIR, toReturn))) .asObjectCreationExpr(); - objectCreationExpr.getArguments().set(0, new StringLiteralExpr(fieldColumnPair.getField().getValue())); + objectCreationExpr.getArguments().set(0, new StringLiteralExpr(fieldColumnPair.getField())); objectCreationExpr.getArguments().set(2, new StringLiteralExpr(fieldColumnPair.getColumn())); return toReturn; } diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactory.java index 8404131f4db..2fe5206fe1f 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactory.java @@ -70,7 +70,7 @@ static BlockStmt getFieldRefVariableDeclaration(final String variableName, final FIELD_REF, toReturn))) .asObjectCreationExpr(); - final StringLiteralExpr nameExpr = new StringLiteralExpr(fieldRef.getField().getValue()); + final StringLiteralExpr nameExpr = new StringLiteralExpr(fieldRef.getField()); final Expression mapMissingToExpr = getExpressionForObject(fieldRef.getMapMissingTo()); objectCreationExpr.getArguments().set(0, nameExpr); objectCreationExpr.getArguments().set(2, mapMissingToExpr); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactory.java index 5a1026b9be9..409f799bb4b 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactory.java @@ -85,7 +85,7 @@ static BlockStmt getMiningFieldVariableDeclaration(final String variableName, fi MININGFIELD, toReturn))) .asMethodCallExpr(); final MethodCallExpr builder = getChainedMethodCallExprFrom("builder", initializer); - final StringLiteralExpr nameExpr = new StringLiteralExpr(miningField.getName().getValue()); + final StringLiteralExpr nameExpr = new StringLiteralExpr(miningField.getName()); Expression fieldUsageTypeExpr; if (miningField.getUsageType() != null) { final FIELD_USAGE_TYPE fieldUsageType = FIELD_USAGE_TYPE.byName(miningField.getUsageType().value()); @@ -100,8 +100,8 @@ static BlockStmt getMiningFieldVariableDeclaration(final String variableName, fi } else { opTypeExpr = new NullLiteralExpr(); } - final List> mappedFields = getMappedFields(fields, miningField.getName().getValue()); - final DataType dataType = getDataType(mappedFields, miningField.getName().getValue()); + final List> mappedFields = getMappedFields(fields,miningField.getName()); + final DataType dataType = getDataType(mappedFields,miningField.getName()); final DATA_TYPE data_TYPE = DATA_TYPE.byName(dataType.value()); Expression dataTypeExpr = new NameExpr(DATA_TYPE.class.getName() + "." + data_TYPE.name()); Expression missingValueTreatmentMethodExpr; @@ -169,7 +169,7 @@ static BlockStmt getMiningFieldVariableDeclaration(final String variableName, fi private static List> getMappedFields(final List> fields, final String fieldName) { return fields.stream() - .filter(fld -> Objects.equals(fieldName, fld.getName().getValue())) + .filter(fld -> Objects.equals(fieldName,fld.getName())) .collect(Collectors.toList()); } diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLModelFactoryUtils.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLModelFactoryUtils.java index 41b5b046afd..d3b65137074 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLModelFactoryUtils.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLModelFactoryUtils.java @@ -611,7 +611,7 @@ static void commonPopulateGetCreatedKiePMMLMiningFieldsMethod(final MethodDeclar BlockStmt body = new BlockStmt(); NodeList arguments = new NodeList<>(); for (org.dmg.pmml.MiningField miningField : miningFields) { - String miningFieldVariableName = getSanitizedVariableName(miningField.getName().getValue()).toLowerCase(); + String miningFieldVariableName = getSanitizedVariableName(miningField.getName()).toLowerCase(); BlockStmt toAdd = getMiningFieldVariableDeclaration(miningFieldVariableName, miningField, fields); toAdd.getStatements().forEach(body::addStatement); arguments.add(new NameExpr(miningFieldVariableName)); @@ -631,7 +631,7 @@ static void commonPopulateGetCreatedKiePMMLOutputFieldsMethod(final MethodDeclar BlockStmt body = new BlockStmt(); NodeList arguments = new NodeList<>(); for (org.dmg.pmml.OutputField outputField : outputFields) { - String outputFieldVariableName = getSanitizedVariableName(outputField.getName().getValue()).toLowerCase(); + String outputFieldVariableName = getSanitizedVariableName(outputField.getName()).toLowerCase(); BlockStmt toAdd = getOutputFieldVariableDeclaration(outputFieldVariableName, outputField); toAdd.getStatements().forEach(body::addStatement); arguments.add(new NameExpr(outputFieldVariableName)); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactory.java index 41b6d2292b9..fe96b29fae6 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactory.java @@ -77,7 +77,7 @@ static BlockStmt getNormContinuousVariableDeclaration(final String variableName, NORM_CONTINUOUS, toReturn))) .asObjectCreationExpr(); - final StringLiteralExpr nameExpr = new StringLiteralExpr(normContinuous.getField().getValue()); + final StringLiteralExpr nameExpr = new StringLiteralExpr(normContinuous.getField()); final OUTLIER_TREATMENT_METHOD outlierTreatmentMethod = OUTLIER_TREATMENT_METHOD.byName(normContinuous.getOutliers().value()); final NameExpr outlierTreatmentMethodExpr = diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactory.java index a3dfadc05b4..ce6dfdf09b5 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactory.java @@ -71,7 +71,7 @@ static BlockStmt getNormDiscreteVariableDeclaration(final String variableName, NORM_DISCRETE, toReturn))) .asObjectCreationExpr(); - final StringLiteralExpr nameExpr = new StringLiteralExpr(normDiscrete.getField().getValue()); + final StringLiteralExpr nameExpr = new StringLiteralExpr(normDiscrete.getField()); final Expression mapMissingToExpr = getExpressionForObject(normDiscrete.getMapMissingTo()); objectCreationExpr.getArguments().set(0, nameExpr); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLOutputFieldFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLOutputFieldFactory.java index 03ac64ec847..5dc5a651fc9 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLOutputFieldFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLOutputFieldFactory.java @@ -78,10 +78,10 @@ static BlockStmt getOutputFieldVariableDeclaration(final String variableName, fi .orElseThrow(() -> new KiePMMLException(String.format(MISSING_VARIABLE_INITIALIZER_TEMPLATE, OUTPUTFIELD, toReturn))) .asMethodCallExpr(); final MethodCallExpr builder = getChainedMethodCallExprFrom("builder", initializer); - final StringLiteralExpr nameExpr = new StringLiteralExpr(outputField.getName().getValue()); + final StringLiteralExpr nameExpr = new StringLiteralExpr(outputField.getName()); final RESULT_FEATURE resultFeature = RESULT_FEATURE.byName(outputField.getResultFeature().value()); final NameExpr resultFeatureExpr = new NameExpr(RESULT_FEATURE.class.getName() + "." + resultFeature.name()); - final Expression targetFieldExpr = outputField.getTargetField() != null ? getExpressionForObject(outputField.getTargetField().getValue()) : new NullLiteralExpr(); + final Expression targetFieldExpr = outputField.getTargetField() != null ? getExpressionForObject(outputField.getTargetField()) : new NullLiteralExpr(); final Expression valueExpr = outputField.getValue() != null ? getExpressionForObject(outputField.getValue()) : new NullLiteralExpr(); final Expression dataTypeExpression = getExpressionForDataType(outputField.getDataType()); final Expression rankExpr = outputField.getRank() != null ? getExpressionForObject(outputField.getRank()) : new NullLiteralExpr(); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactory.java index 364a781216d..0c40c78ee6f 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactory.java @@ -70,7 +70,7 @@ static BlockStmt getParameterFieldVariableDeclaration(final String variableName, .orElseThrow(() -> new KiePMMLException(String.format(MISSING_VARIABLE_INITIALIZER_TEMPLATE, PARAMETER_FIELD, toReturn))) .asMethodCallExpr(); final MethodCallExpr builder = getChainedMethodCallExprFrom("builder", initializer); - builder.setArgument(0, new StringLiteralExpr(parameterField.getName().getValue())); + builder.setArgument(0, new StringLiteralExpr(parameterField.getName())); final Expression dataTypeExpression = getExpressionForDataType(parameterField.getDataType()); final Expression opTypeExpression = getExpressionForOpType(parameterField.getOpType()); getChainedMethodCallExprFrom("withDataType", initializer).setArgument(0, dataTypeExpression); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactory.java index acbd5765a4c..61cbf6b8b27 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactory.java @@ -82,9 +82,9 @@ static BlockStmt getSimplePredicateVariableDeclaration(final String variableName .orElseThrow(() -> new KiePMMLException(String.format(MISSING_VARIABLE_INITIALIZER_TEMPLATE, SIMPLE_PREDICATE, simplePredicateBody))) .asMethodCallExpr(); final MethodCallExpr builder = getChainedMethodCallExprFrom("builder", initializer); - builder.setArgument(0, new StringLiteralExpr(simplePredicate.getField().getValue())); + builder.setArgument(0, new StringLiteralExpr(simplePredicate.getField())); builder.setArgument(2, operatorExpr); - DataType dataType = getDataType(fields, simplePredicate.getField().getValue()); + DataType dataType = getDataType(fields,simplePredicate.getField()); Object actualValue = DATA_TYPE.byName(dataType.value()).getActualValue(simplePredicate.getValue()); getChainedMethodCallExprFrom("withValue", initializer).setArgument(0, getExpressionForObject(actualValue)); simplePredicateBody.getStatements().forEach(toReturn::addStatement); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactory.java index 078b865fb10..5cb84d66945 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactory.java @@ -87,7 +87,7 @@ static BlockStmt getSimpleSetPredicateVariableDeclaration(final String variableN .orElseThrow(() -> new KiePMMLException(String.format(MISSING_VARIABLE_INITIALIZER_TEMPLATE, SIMPLESET_PREDICATE, simpleSetPredicateBody))) .asMethodCallExpr(); final MethodCallExpr builder = getChainedMethodCallExprFrom("builder", initializer); - builder.setArgument(0, new StringLiteralExpr(simpleSetPredicate.getField().getValue())); + builder.setArgument(0, new StringLiteralExpr(simpleSetPredicate.getField())); builder.setArgument(2, arrayTypeExpr); builder.setArgument(3, inNotInExpr); getChainedMethodCallExprFrom("asList", initializer).setArguments(arguments); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactory.java index 1f8247c3450..c94064c6da8 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactory.java @@ -98,7 +98,7 @@ static BlockStmt getTextIndexVariableDeclaration(final String variableName, fina TEXTINDEX, toReturn))) .asMethodCallExpr(); final MethodCallExpr builder = getChainedMethodCallExprFrom("builder", initializer); - final StringLiteralExpr nameExpr = new StringLiteralExpr(textIndex.getTextField().getValue()); + final StringLiteralExpr nameExpr = new StringLiteralExpr(textIndex.getTextField()); final NameExpr expressionExpr = new NameExpr(expressionVariableName); builder.setArgument(0, nameExpr); builder.setArgument(2, expressionExpr); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDerivedFieldInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDerivedFieldInstanceFactory.java index 5d2d2d8d57f..cdafde8db99 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDerivedFieldInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDerivedFieldInstanceFactory.java @@ -49,10 +49,9 @@ static List getKiePMMLDerivedFields(final List> fields) { - DataType dataType = derivedField.getDataType() != null ? derivedField.getDataType() : getDataType(fields, - derivedField.getName().getValue()); + DataType dataType = derivedField.getDataType() != null ? derivedField.getDataType() : getDataType(fields,derivedField.getName()); OP_TYPE opType = derivedField.getOpType() != null ? OP_TYPE.byName(derivedField.getOpType().value()) : null; - return KiePMMLDerivedField.builder(derivedField.getName().getValue(), + return KiePMMLDerivedField.builder(derivedField.getName(), getKiePMMLExtensions(derivedField.getExtensions()), DATA_TYPE.byName(dataType.value()), opType, diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeInstanceFactory.java index 5ee6792fcb5..9d6de34f7fc 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeInstanceFactory.java @@ -43,7 +43,7 @@ static KiePMMLDiscretize getKiePMMLDiscretize(final Discretize discretize) { String defaultValue = discretize.getDefaultValue() != null ? discretize.getDefaultValue().toString() : null; DATA_TYPE dataType = discretize.getDataType() != null ? DATA_TYPE.byName(discretize.getDataType().value()) : null; - return new KiePMMLDiscretize(discretize.getField().getValue(), + return new KiePMMLDiscretize(discretize.getField(), getKiePMMLExtensions(discretize.getExtensions()), discretizeBins, mapMissingTo, diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldColumnPairInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldColumnPairInstanceFactory.java index a659b870fa0..7741a23b4a7 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldColumnPairInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldColumnPairInstanceFactory.java @@ -38,7 +38,7 @@ static List getKiePMMLFieldColumnPairs(List field) { - String name = toConvert.getName() != null ? toConvert.getName().getValue() : "" + toConvert.hashCode(); + String name = toConvert.getName() != null ?toConvert.getName() : "" + toConvert.hashCode(); final FIELD_USAGE_TYPE fieldUsageType = toConvert.getUsageType() != null ? FIELD_USAGE_TYPE.byName(toConvert.getUsageType().value()) : null; final OP_TYPE opType = toConvert.getOpType() != null ? OP_TYPE.byName(toConvert.getOpType().value()) : null; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormContinuousInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormContinuousInstanceFactory.java index a393a966446..cbcaf48c940 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormContinuousInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormContinuousInstanceFactory.java @@ -40,7 +40,7 @@ static KiePMMLNormContinuous getKiePMMLNormContinuous(final NormContinuous normC final List linearNorms = normContinuous.hasLinearNorms() ? getKiePMMLLinearNorms(normContinuous.getLinearNorms()) : Collections.emptyList(); final OUTLIER_TREATMENT_METHOD outlierTreatmentMethod = normContinuous.getOutliers() != null ? OUTLIER_TREATMENT_METHOD.byName(normContinuous.getOutliers().value()) : null; - return new KiePMMLNormContinuous(normContinuous.getField().getValue(), getKiePMMLExtensions(normContinuous.getExtensions()), linearNorms, outlierTreatmentMethod, normContinuous.getMapMissingTo()); + return new KiePMMLNormContinuous(normContinuous.getField(), getKiePMMLExtensions(normContinuous.getExtensions()), linearNorms, outlierTreatmentMethod, normContinuous.getMapMissingTo()); } } diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormDiscreteInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormDiscreteInstanceFactory.java index 875056d14f8..80c5f58f6c7 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormDiscreteInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormDiscreteInstanceFactory.java @@ -35,7 +35,7 @@ private KiePMMLNormDiscreteInstanceFactory() { static KiePMMLNormDiscrete getKiePMMLNormDiscrete(final NormDiscrete normDiscrete) { List extensions = getKiePMMLExtensions(normDiscrete.getExtensions()); - return new KiePMMLNormDiscrete(normDiscrete.getField().getValue(), + return new KiePMMLNormDiscrete(normDiscrete.getField(), extensions, normDiscrete.getValue().toString(), normDiscrete.getMapMissingTo()); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLOutputFieldInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLOutputFieldInstanceFactory.java index adf65610e88..7e85bfe54b5 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLOutputFieldInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLOutputFieldInstanceFactory.java @@ -35,8 +35,8 @@ private KiePMMLOutputFieldInstanceFactory() { } public static KiePMMLOutputField getKiePMMLOutputField(final OutputField outputField) { - String name = outputField.getName() != null ? outputField.getName().getValue() : "" + outputField.hashCode(); - final String targetField = outputField.getTargetField() != null ? outputField.getTargetField().getValue() : + String name = outputField.getName() != null ?outputField.getName() : "" + outputField.hashCode(); + final String targetField = outputField.getTargetField() != null ?outputField.getTargetField() : null; final RESULT_FEATURE resultFeature = outputField.getResultFeature() != null ? RESULT_FEATURE.byName(outputField.getResultFeature().value()) : null; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLParameterFieldInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLParameterFieldInstanceFactory.java index 71e65adf8e8..4a5527eeac6 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLParameterFieldInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLParameterFieldInstanceFactory.java @@ -44,7 +44,7 @@ static KiePMMLParameterField getKiePMMLParameterField(final ParameterField param DATA_TYPE dataType = parameterField.getDataType() != null ? DATA_TYPE.byName(parameterField.getDataType().value()) : null; OP_TYPE opType = parameterField.getOpType() != null ? OP_TYPE.byName(parameterField.getOpType().value()) : null; - return KiePMMLParameterField.builder(parameterField.getName().getValue(), + return KiePMMLParameterField.builder(parameterField.getName(), Collections.emptyList()) .withDataType(dataType) .withOpType(opType) diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimplePredicateInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimplePredicateInstanceFactory.java index 60d10d26e35..94e7f67abba 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimplePredicateInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimplePredicateInstanceFactory.java @@ -41,9 +41,9 @@ private KiePMMLSimplePredicateInstanceFactory() { static KiePMMLSimplePredicate getKiePMMLSimplePredicate(final SimplePredicate simplePredicate, final List> fields) { final List kiePMMLExtensions = getKiePMMLExtensions(simplePredicate.getExtensions()); - DataType dataType = getDataType(fields, simplePredicate.getField().getValue()); + DataType dataType = getDataType(fields,simplePredicate.getField()); Object value = DATA_TYPE.byName(dataType.value()).getActualValue(simplePredicate.getValue()); - return KiePMMLSimplePredicate.builder(simplePredicate.getField().getValue(), + return KiePMMLSimplePredicate.builder(simplePredicate.getField(), kiePMMLExtensions, OPERATOR.byName(simplePredicate.getOperator().value())) .withValue(value) diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimpleSetPredicateInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimpleSetPredicateInstanceFactory.java index 70871ada4fd..cfeeb80dde8 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimpleSetPredicateInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimpleSetPredicateInstanceFactory.java @@ -34,7 +34,7 @@ private KiePMMLSimpleSetPredicateInstanceFactory() { } static KiePMMLSimpleSetPredicate getKiePMMLSimpleSetPredicate(final SimpleSetPredicate simpleSetPredicate) { - return KiePMMLSimpleSetPredicate.builder(simpleSetPredicate.getField().getValue(), + return KiePMMLSimpleSetPredicate.builder(simpleSetPredicate.getField(), getKiePMMLExtensions(simpleSetPredicate.getExtensions()), ARRAY_TYPE.byName(simpleSetPredicate.getArray().getType().value()), IN_NOTIN.byName(simpleSetPredicate.getBooleanOperator().value())) diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetInstanceFactory.java index 40ae1e73c9f..088b09c9754 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetInstanceFactory.java @@ -42,7 +42,7 @@ public static KiePMMLTarget getKiePMMLTarget(final Target target) { .map(KiePMMLTargetInstanceFactory::getKieTargetValue) .collect(Collectors.toList()) : Collections.emptyList(); final OP_TYPE opType = target.getOpType() != null ? OP_TYPE.byName(target.getOpType().value()) : null; - final String field = target.getField() != null ? target.getField().getValue() : null; + final String field = target.getField() != null ?target.getField() : null; final CAST_INTEGER castInteger = target.getCastInteger() != null ? CAST_INTEGER.byName(target.getCastInteger().value()) : null; TargetField targetField = new TargetField(targetValues, diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexInstanceFactory.java index a2efd175959..9e133499b7f 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexInstanceFactory.java @@ -42,7 +42,7 @@ static KiePMMLTextIndex getKiePMMLTextIndex(final TextIndex textIndex) { COUNT_HITS.byName(textIndex.getCountHits().value()) : null; final String wordSeparatorCharacterRE = textIndex.getWordSeparatorCharacterRE() != null ? StringEscapeUtils.escapeJava(textIndex.getWordSeparatorCharacterRE()) : null; - return KiePMMLTextIndex.builder(textIndex.getTextField().getValue(), + return KiePMMLTextIndex.builder(textIndex.getTextField(), getKiePMMLExtensions(textIndex.getExtensions()), getKiePMMLExpression(textIndex.getExpression())) .withTextIndexNormalizations(getKiePMMLTextIndexNormalizations(textIndex.getTextIndexNormalizations())) diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtil.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtil.java index 7bee48918d6..0bca6aa64fa 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtil.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtil.java @@ -21,11 +21,10 @@ import java.util.Optional; import java.util.stream.Collectors; -import javax.xml.bind.JAXBException; +import jakarta.xml.bind.JAXBException; import org.dmg.pmml.DataField; import org.dmg.pmml.DataType; -import org.dmg.pmml.FieldName; import org.dmg.pmml.MathContext; import org.dmg.pmml.MiningField; import org.dmg.pmml.MiningFunction; @@ -166,7 +165,7 @@ static Optional getTargetDataField(final Model model) { String cleanedName = model.getModelName().replaceAll("[^A-Za-z0-9]", ""); String fieldName = String.format(TARGETFIELD_TEMPLATE, cleanedName); DataField toReturn = new DataField(); - toReturn.setName(FieldName.create(fieldName)); + toReturn.setName(fieldName); toReturn.setOpType(targetOpType); toReturn.setDataType(targetDataType); return Optional.of(toReturn); @@ -338,7 +337,7 @@ static void populateMissingOutputFieldDataType(List toPopulate, Lis .filter(targetField -> outputField.getTargetField().equals(targetField.getName())) .findFirst() .orElseThrow(() -> new KiePMMLException("Failed to find a target field for OutputField " - + outputField.getName().getValue())); + +outputField.getName())); } if (referencedField == null && (outputField.getResultFeature() == null || outputField.getResultFeature().equals(ResultFeature.PREDICTED_VALUE))) { // default predictedValue referencedField = targetFields.stream() @@ -351,7 +350,7 @@ static void populateMissingOutputFieldDataType(List toPopulate, Lis return; } if (referencedField != null) { - FieldName targetFieldName = referencedField.getName(); + String targetFieldName = referencedField.getName(); DataField dataField = dataFields.stream() .filter(df -> df.getName().equals(targetFieldName)) .findFirst() diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLApplyFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLApplyFactoryTest.java index 3d9f631222c..52db2a9ae34 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLApplyFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLApplyFactoryTest.java @@ -25,7 +25,6 @@ import com.github.javaparser.ast.stmt.Statement; import org.dmg.pmml.Apply; import org.dmg.pmml.Constant; -import org.dmg.pmml.FieldName; import org.dmg.pmml.FieldRef; import org.dmg.pmml.InvalidValueTreatmentMethod; import org.junit.jupiter.api.Test; @@ -89,9 +88,9 @@ void getApplyVariableDeclarationWithFieldRefs() throws IOException { InvalidValueTreatmentMethod invalidValueTreatmentMethod = InvalidValueTreatmentMethod.AS_MISSING; apply.setInvalidValueTreatment(invalidValueTreatmentMethod); FieldRef fieldRef1 = new FieldRef(); - fieldRef1.setField(FieldName.create(PARAM_1)); + fieldRef1.setField(PARAM_1); FieldRef fieldRef2 = new FieldRef(); - fieldRef2.setField(FieldName.create(PARAM_2)); + fieldRef2.setField(PARAM_2); apply.addExpressions(fieldRef1, fieldRef2); BlockStmt retrieved = org.kie.pmml.compiler.commons.codegenfactories.KiePMMLApplyFactory.getApplyVariableDeclaration(variableName, apply); @@ -117,9 +116,9 @@ void getApplyVariableDeclarationWithApply() throws IOException { InvalidValueTreatmentMethod nestedInvalidValueTreatmentMethod = InvalidValueTreatmentMethod.AS_MISSING; nestedApply.setInvalidValueTreatment(nestedInvalidValueTreatmentMethod); FieldRef fieldRef1 = new FieldRef(); - fieldRef1.setField(FieldName.create(PARAM_1)); + fieldRef1.setField(PARAM_1); FieldRef fieldRef2 = new FieldRef(); - fieldRef2.setField(FieldName.create(PARAM_2)); + fieldRef2.setField(PARAM_2); nestedApply.addExpressions(fieldRef1, fieldRef2); Apply apply = new Apply(); apply.setFunction(function); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDefineFunctionFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDefineFunctionFactoryTest.java index 81541acf239..1f65911c7ae 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDefineFunctionFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDefineFunctionFactoryTest.java @@ -27,7 +27,6 @@ import org.dmg.pmml.Constant; import org.dmg.pmml.DataType; import org.dmg.pmml.DefineFunction; -import org.dmg.pmml.FieldName; import org.dmg.pmml.FieldRef; import org.dmg.pmml.OpType; import org.dmg.pmml.ParameterField; @@ -55,18 +54,18 @@ public class KiePMMLDefineFunctionFactoryTest { @Test void getDefineFunctionVariableDeclaration() throws IOException { - ParameterField parameterField1 = new ParameterField(FieldName.create(PARAM_1)); + ParameterField parameterField1 = new ParameterField(PARAM_1); parameterField1.setDataType(DataType.DOUBLE); parameterField1.setOpType(OpType.CONTINUOUS); parameterField1.setDisplayName("displayName1"); - ParameterField parameterField2 = new ParameterField(FieldName.create(PARAM_2)); + ParameterField parameterField2 = new ParameterField(PARAM_2); parameterField2.setDataType(DataType.DOUBLE); parameterField2.setOpType(OpType.CONTINUOUS); parameterField2.setDisplayName("displayName2"); Constant constant = new Constant(); constant.setValue(value1); FieldRef fieldRef = new FieldRef(); - fieldRef.setField(FieldName.create("FIELD_REF")); + fieldRef.setField("FIELD_REF"); Apply apply = new Apply(); apply.setFunction("/"); apply.addExpressions(constant, fieldRef); @@ -85,17 +84,14 @@ void getDefineFunctionVariableDeclaration() throws IOException { BlockStmt retrieved = KiePMMLDefineFunctionFactory.getDefineFunctionVariableDeclaration(defineFunction); String text = getFileContent(TEST_01_SOURCE); Statement expected = JavaParserUtils - .parseBlock(String.format(text, - parameterField1.getName().getValue(), + .parseBlock(String.format(text,parameterField1.getName(), dataType1, opType1, - parameterField1.getDisplayName(), - parameterField2.getName().getValue(), + parameterField1.getDisplayName(),parameterField2.getName(), dataType2, opType2, parameterField2.getDisplayName(), - constant.getValue(), - fieldRef.getField().getValue(), + constant.getValue(),fieldRef.getField(), apply.getFunction(), apply.getInvalidValueTreatment().value(), dataType3, diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactoryTest.java index 9c0deb97ccd..5c0de1d0d0f 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactoryTest.java @@ -27,7 +27,6 @@ import org.dmg.pmml.Constant; import org.dmg.pmml.DataType; import org.dmg.pmml.DerivedField; -import org.dmg.pmml.FieldName; import org.dmg.pmml.FieldRef; import org.dmg.pmml.OpType; import org.junit.jupiter.api.Test; @@ -59,7 +58,7 @@ void getDerivedFieldVariableDeclarationWithConstant() throws IOException { Constant constant = new Constant(); constant.setValue(value1); DerivedField derivedField = new DerivedField(); - derivedField.setName(FieldName.create(PARAM_1)); + derivedField.setName(PARAM_1); derivedField.setDataType(DataType.DOUBLE); derivedField.setOpType(OpType.CONTINUOUS); derivedField.setExpression(constant); @@ -70,8 +69,7 @@ void getDerivedFieldVariableDeclarationWithConstant() throws IOException { String text = getFileContent(TEST_01_SOURCE); Statement expected = JavaParserUtils .parseBlock(String.format(text, constant.getValue(), - variableName, - derivedField.getName().getValue(), + variableName,derivedField.getName(), dataType, opType)); assertThat(JavaParserUtils.equalsNode(expected, retrieved)).isTrue(); @@ -85,9 +83,9 @@ void getDerivedFieldVariableDeclarationWithConstant() throws IOException { void getDerivedFieldVariableDeclarationWithFieldRef() throws IOException { final String variableName = "variableName"; FieldRef fieldRef = new FieldRef(); - fieldRef.setField(FieldName.create("FIELD_REF")); + fieldRef.setField("FIELD_REF"); DerivedField derivedField = new DerivedField(); - derivedField.setName(FieldName.create(PARAM_1)); + derivedField.setName(PARAM_1); derivedField.setDataType(DataType.DOUBLE); derivedField.setOpType(OpType.CONTINUOUS); derivedField.setExpression(fieldRef); @@ -97,9 +95,8 @@ void getDerivedFieldVariableDeclarationWithFieldRef() throws IOException { org.kie.pmml.compiler.commons.codegenfactories.KiePMMLDerivedFieldFactory.getDerivedFieldVariableDeclaration(variableName, derivedField); String text = getFileContent(TEST_02_SOURCE); Statement expected = JavaParserUtils - .parseBlock(String.format(text, fieldRef.getField().getValue(), - variableName, - derivedField.getName().getValue(), + .parseBlock(String.format(text,fieldRef.getField(), + variableName,derivedField.getName(), dataType, opType)); assertThat(JavaParserUtils.equalsNode(expected, retrieved)).isTrue(); @@ -115,12 +112,12 @@ void getDerivedFieldVariableDeclarationWithApply() throws IOException { Constant constant = new Constant(); constant.setValue(value1); FieldRef fieldRef = new FieldRef(); - fieldRef.setField(FieldName.create("FIELD_REF")); + fieldRef.setField("FIELD_REF"); Apply apply = new Apply(); apply.setFunction("/"); apply.addExpressions(constant, fieldRef); DerivedField derivedField = new DerivedField(); - derivedField.setName(FieldName.create(PARAM_1)); + derivedField.setName(PARAM_1); derivedField.setDataType(DataType.DOUBLE); derivedField.setOpType(OpType.CONTINUOUS); derivedField.setExpression(apply); @@ -130,12 +127,10 @@ void getDerivedFieldVariableDeclarationWithApply() throws IOException { String text = getFileContent(TEST_03_SOURCE); Statement expected = JavaParserUtils .parseBlock(String.format(text, - constant.getValue(), - fieldRef.getField().getValue(), + constant.getValue(),fieldRef.getField(), apply.getFunction(), apply.getInvalidValueTreatment().value(), - variableName, - derivedField.getName().getValue(), + variableName,derivedField.getName(), dataType, opType)); assertThat(JavaParserUtils.equalsNode(expected, retrieved)).isTrue(); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactoryTest.java index 7d6783f9327..8323b93d5c9 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactoryTest.java @@ -26,7 +26,6 @@ import org.dmg.pmml.DataType; import org.dmg.pmml.Discretize; import org.dmg.pmml.DiscretizeBin; -import org.dmg.pmml.FieldName; import org.dmg.pmml.Interval; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; @@ -64,7 +63,7 @@ public static void setup() { void getDiscretizeVariableDeclaration() throws IOException { String variableName = "variableName"; Discretize discretize = new Discretize(); - discretize.setField(FieldName.create(NAME)); + discretize.setField(NAME); discretize.setDataType(dataType); discretize.setMapMissingTo(MAP_MISSING_TO); discretize.setDefaultValue(DEFAULTVALUE); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactoryTest.java index 9be27ab139d..7db1e1472e1 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactoryTest.java @@ -24,7 +24,6 @@ import com.github.javaparser.ast.stmt.BlockStmt; import com.github.javaparser.ast.stmt.Statement; import org.dmg.pmml.FieldColumnPair; -import org.dmg.pmml.FieldName; import org.junit.jupiter.api.Test; import org.kie.pmml.commons.model.expressions.KiePMMLFieldColumnPair; import org.kie.pmml.compiler.commons.utils.JavaParserUtils; @@ -43,7 +42,7 @@ void getRowVariableDeclaration() throws IOException { String fieldName = "fieldName"; String column = "column"; FieldColumnPair fieldColumnPair = new FieldColumnPair(); - fieldColumnPair.setField(FieldName.create(fieldName)); + fieldColumnPair.setField(fieldName); fieldColumnPair.setColumn(column); BlockStmt retrieved = KiePMMLFieldColumnPairFactory.getFieldColumnPairVariableDeclaration(variableName, diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactoryTest.java index 74a0a47a199..b25133c0f96 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactoryTest.java @@ -23,7 +23,6 @@ import com.github.javaparser.ast.stmt.BlockStmt; import com.github.javaparser.ast.stmt.Statement; -import org.dmg.pmml.FieldName; import org.dmg.pmml.FieldRef; import org.junit.jupiter.api.Test; import org.kie.pmml.commons.model.expressions.KiePMMLFieldRef; @@ -43,7 +42,7 @@ void getFieldRefVariableDeclaration() throws IOException { String fieldName = "fieldName"; String mapMissingTo = "mapMissingTo"; FieldRef fieldRef = new FieldRef(); - fieldRef.setField(FieldName.create(fieldName)); + fieldRef.setField(fieldName); fieldRef.setMapMissingTo(mapMissingTo); BlockStmt retrieved = KiePMMLFieldRefFactory.getFieldRefVariableDeclaration(variableName, fieldRef); String text = getFileContent(TEST_01_SOURCE); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLInlineTableFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLInlineTableFactoryTest.java index 7363100b0c4..66457e48339 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLInlineTableFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLInlineTableFactoryTest.java @@ -55,7 +55,7 @@ public static void setup() throws Exception { DerivedField mapValued = pmmlModel.getTransformationDictionary() .getDerivedFields() .stream() - .filter(derivedField -> MAPVALUED.equals(derivedField.getName().getValue())) + .filter(derivedField -> MAPVALUED.equals(derivedField.getName())) .findFirst() .orElseThrow(() -> new RuntimeException("Missing derived field " + MAPVALUED)); INLINETABLE = ((MapValues) mapValued.getExpression()).getInlineTable(); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLLocalTransformationsFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLLocalTransformationsFactoryTest.java index bd93f31de7b..b71bd94743a 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLLocalTransformationsFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLLocalTransformationsFactoryTest.java @@ -27,7 +27,6 @@ import org.dmg.pmml.Constant; import org.dmg.pmml.DataType; import org.dmg.pmml.DerivedField; -import org.dmg.pmml.FieldName; import org.dmg.pmml.LocalTransformations; import org.dmg.pmml.OpType; import org.junit.jupiter.api.Test; @@ -78,7 +77,7 @@ private DerivedField getDerivedField(int counter) { Constant constant = new Constant(); constant.setValue(value1); DerivedField toReturn = new DerivedField(); - toReturn.setName(FieldName.create(PARAM_2 + counter)); + toReturn.setName(PARAM_2 + counter); toReturn.setDataType(DataType.DOUBLE); toReturn.setOpType(OpType.CONTINUOUS); toReturn.setExpression(constant); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMapValuesFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMapValuesFactoryTest.java index aba744b1938..4607c85989e 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMapValuesFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMapValuesFactoryTest.java @@ -56,7 +56,7 @@ public static void setup() throws Exception { DerivedField mapValued = pmmlModel.getTransformationDictionary() .getDerivedFields() .stream() - .filter(derivedField -> MAPVALUED.equals(derivedField.getName().getValue())) + .filter(derivedField -> MAPVALUED.equals(derivedField.getName())) .findFirst() .orElseThrow(() -> new RuntimeException("Missing derived field " + MAPVALUED)); MAPVALUES = ((MapValues) mapValued.getExpression()); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactoryTest.java index dfed066bf49..543bd74ff0a 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactoryTest.java @@ -57,8 +57,7 @@ void getMiningFieldVariableDeclarationNoAllowedValuesNoIntervals() throws IOExce String dataTypeString = DATA_TYPE.class.getName() + "." + DATA_TYPE.byName(dataField.getDataType().value()).name(); String text = getFileContent(TEST_01_SOURCE); - Statement expected = JavaParserUtils.parseBlock(String.format(text, VARIABLE_NAME, - miningField.getName().getValue(), + Statement expected = JavaParserUtils.parseBlock(String.format(text, VARIABLE_NAME,miningField.getName(), dataTypeString)); assertThat(JavaParserUtils.equalsNode(expected, retrieved)).isTrue(); List> imports = Arrays.asList(Arrays.class, Collections.class, KiePMMLInterval.class, @@ -79,8 +78,7 @@ void getMiningFieldVariableDeclarationWithAllowedValuesNoIntervals() throws IOEx String dataTypeString = DATA_TYPE.class.getName() + "." + DATA_TYPE.byName(dataField.getDataType().value()).name(); String text = getFileContent(TEST_02_SOURCE); - Statement expected = JavaParserUtils.parseBlock(String.format(text, VARIABLE_NAME, - miningField.getName().getValue(), + Statement expected = JavaParserUtils.parseBlock(String.format(text, VARIABLE_NAME,miningField.getName(), dataTypeString, dataField.getValues().get(0).getValue(), dataField.getValues().get(1).getValue(), @@ -102,8 +100,7 @@ void getMiningFieldVariableDeclarationWithAllowedValuesAndIntervals() throws IOE String dataTypeString = DATA_TYPE.class.getName() + "." + DATA_TYPE.byName(dataField.getDataType().value()).name(); String text = getFileContent(TEST_03_SOURCE); - Statement expected = JavaParserUtils.parseBlock(String.format(text, VARIABLE_NAME, - miningField.getName().getValue(), + Statement expected = JavaParserUtils.parseBlock(String.format(text, VARIABLE_NAME,miningField.getName(), dataTypeString, dataField.getValues().get(0).getValue(), dataField.getValues().get(1).getValue(), diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactoryTest.java index 8c2652e5618..1c6cd52d747 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactoryTest.java @@ -55,8 +55,7 @@ void getNormContinuousVariableDeclaration() throws IOException { String outlierString = OUTLIER_TREATMENT_METHOD.class.getName() + "." + OUTLIER_TREATMENT_METHOD.byName(normContinuous.getOutliers().value()).name(); String text = getFileContent(TEST_01_SOURCE); - Statement expected = JavaParserUtils.parseBlock(String.format(text, variableName, - normContinuous.getField().getValue(), + Statement expected = JavaParserUtils.parseBlock(String.format(text, variableName,normContinuous.getField(), linearNorms.get(0).getOrig(), linearNorms.get(0).getNorm(), linearNorms.get(1).getOrig(), diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactoryTest.java index f86b124884f..e76bdd00a1e 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactoryTest.java @@ -23,7 +23,6 @@ import com.github.javaparser.ast.stmt.BlockStmt; import com.github.javaparser.ast.stmt.Statement; -import org.dmg.pmml.FieldName; import org.dmg.pmml.NormDiscrete; import org.junit.jupiter.api.Test; import org.kie.pmml.commons.model.expressions.KiePMMLNormDiscrete; @@ -45,7 +44,7 @@ void getNormDiscreteVariableDeclaration() throws IOException { double mapMissingTo = 45.32; NormDiscrete normDiscrete = new NormDiscrete(); - normDiscrete.setField(FieldName.create(fieldName)); + normDiscrete.setField(fieldName); normDiscrete.setValue(fieldValue); normDiscrete.setMapMissingTo(mapMissingTo); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactoryTest.java index c123f9d16eb..df4a6f50cc6 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactoryTest.java @@ -24,7 +24,6 @@ import com.github.javaparser.ast.stmt.BlockStmt; import com.github.javaparser.ast.stmt.Statement; import org.dmg.pmml.DataType; -import org.dmg.pmml.FieldName; import org.dmg.pmml.OpType; import org.dmg.pmml.ParameterField; import org.junit.jupiter.api.Test; @@ -44,7 +43,7 @@ public class KiePMMLParameterFieldFactoryTest { @Test void getParameterFieldVariableDeclaration() throws IOException { String variableName = "variableName"; - ParameterField parameterField = new ParameterField(FieldName.create(variableName)); + ParameterField parameterField = new ParameterField(variableName); parameterField.setDataType(DataType.DOUBLE); parameterField.setOpType(OpType.CONTINUOUS); parameterField.setDisplayName("displayName"); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLRowFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLRowFactoryTest.java index 2ebfa7b4628..86e72a5cc2a 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLRowFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLRowFactoryTest.java @@ -56,14 +56,14 @@ public static void setup() throws Exception { DerivedField mapValued = pmmlModel.getTransformationDictionary() .getDerivedFields() .stream() - .filter(derivedField -> MAPVALUED.equals(derivedField.getName().getValue())) + .filter(derivedField -> MAPVALUED.equals(derivedField.getName())) .findFirst() .orElseThrow(() -> new RuntimeException("Missing derived field " + MAPVALUED)); MAPVALUED_ROW = ((MapValues) mapValued.getExpression()).getInlineTable().getRows().get(0); DerivedField dataEncoded = pmmlModel.getTransformationDictionary() .getDerivedFields() .stream() - .filter(derivedField -> DATAENCODED.equals(derivedField.getName().getValue())) + .filter(derivedField -> DATAENCODED.equals(derivedField.getName())) .findFirst() .orElseThrow(() -> new RuntimeException("Missing derived field " + MAPVALUED)); DATAENCODED_ROW = ((MapValues) dataEncoded.getExpression()).getInlineTable().getRows().get(0); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactoryTest.java index cbb71e27073..2ccf1a9b913 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactoryTest.java @@ -26,7 +26,6 @@ import org.dmg.pmml.DataDictionary; import org.dmg.pmml.DataField; import org.dmg.pmml.DataType; -import org.dmg.pmml.FieldName; import org.dmg.pmml.SimplePredicate; import org.junit.jupiter.api.Test; import org.kie.pmml.api.enums.OPERATOR; @@ -46,7 +45,7 @@ public class KiePMMLSimplePredicateFactoryTest { void getSimplePredicateVariableDeclaration() throws IOException { String variableName = "variableName"; final SimplePredicate simplePredicate = new SimplePredicate(); - simplePredicate.setField(FieldName.create("CUSTOM_FIELD")); + simplePredicate.setField("CUSTOM_FIELD"); simplePredicate.setValue("235.435"); simplePredicate.setOperator(SimplePredicate.Operator.EQUAL); String operatorString = OPERATOR.class.getName() + "." + OPERATOR.byName(simplePredicate.getOperator().value()); @@ -58,8 +57,7 @@ void getSimplePredicateVariableDeclaration() throws IOException { BlockStmt retrieved = KiePMMLSimplePredicateFactory.getSimplePredicateVariableDeclaration(variableName, simplePredicate, getFieldsFromDataDictionary(dataDictionary)); String text = getFileContent(TEST_01_SOURCE); - Statement expected = JavaParserUtils.parseBlock(String.format(text, variableName, - simplePredicate.getField().getValue(), + Statement expected = JavaParserUtils.parseBlock(String.format(text, variableName,simplePredicate.getField(), operatorString, simplePredicate.getValue())); assertThat(JavaParserUtils.equalsNode(expected, retrieved)).isTrue(); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactoryTest.java index 70ab189ceb8..3ec3f1ef8f6 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactoryTest.java @@ -28,7 +28,6 @@ import org.dmg.pmml.DataDictionary; import org.dmg.pmml.DataField; import org.dmg.pmml.DataType; -import org.dmg.pmml.FieldName; import org.dmg.pmml.SimpleSetPredicate; import org.junit.jupiter.api.Test; import org.kie.pmml.api.enums.ARRAY_TYPE; @@ -71,8 +70,7 @@ void getSimpleSetPredicateVariableDeclaration() throws IOException { BlockStmt retrieved = KiePMMLSimpleSetPredicateFactory.getSimpleSetPredicateVariableDeclaration(variableName, simpleSetPredicate); String text = getFileContent(TEST_01_SOURCE); - Statement expected = JavaParserUtils.parseBlock(String.format(text, variableName, - simpleSetPredicate.getField().getValue(), + Statement expected = JavaParserUtils.parseBlock(String.format(text, variableName,simpleSetPredicate.getField(), arrayTypeString, booleanOperatorString, valuesString)); @@ -85,7 +83,7 @@ public static SimpleSetPredicate getSimpleSetPredicate(List values, fina final SimpleSetPredicate.BooleanOperator inNotIn) { Array array = getArray(arrayType, values); SimpleSetPredicate toReturn = new SimpleSetPredicate(); - toReturn.setField(FieldName.create(SIMPLE_SET_PREDICATE_NAME)); + toReturn.setField(SIMPLE_SET_PREDICATE_NAME); toReturn.setBooleanOperator(inNotIn); toReturn.setArray(array); return toReturn; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactoryTest.java index 2e0b8155732..a806d340457 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactoryTest.java @@ -69,8 +69,7 @@ void getTextIndexVariableDeclaration() throws IOException { BlockStmt retrieved = KiePMMLTextIndexFactory.getTextIndexVariableDeclaration(variableName, TEXTINDEX); String text = getFileContent(TEST_01_SOURCE); - Statement expected = JavaParserUtils.parseBlock(String.format(text, variableName, - TEXTINDEX.getTextField().getValue())); + Statement expected = JavaParserUtils.parseBlock(String.format(text, variableName,TEXTINDEX.getTextField())); assertThat(JavaParserUtils.equalsNode(expected, retrieved)).isTrue(); List> imports = Arrays.asList(Arrays.class, Collections.class, Collectors.class, KiePMMLFieldRef.class, KiePMMLInlineTable.class, diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTransformationDictionaryFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTransformationDictionaryFactoryTest.java index 8cb77861844..e1b152a939b 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTransformationDictionaryFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTransformationDictionaryFactoryTest.java @@ -29,7 +29,6 @@ import org.dmg.pmml.DataType; import org.dmg.pmml.DefineFunction; import org.dmg.pmml.DerivedField; -import org.dmg.pmml.FieldName; import org.dmg.pmml.FieldRef; import org.dmg.pmml.OpType; import org.dmg.pmml.ParameterField; @@ -86,18 +85,18 @@ private DefineFunction[] getDefineFunctions() { } private DefineFunction getDefineFunction(int counter) { - ParameterField parameterField1 = new ParameterField(FieldName.create(PARAM_1 + counter)); + ParameterField parameterField1 = new ParameterField(PARAM_1 + counter); parameterField1.setDataType(DataType.DOUBLE); parameterField1.setOpType(OpType.CONTINUOUS); parameterField1.setDisplayName("displayName1" + counter); - ParameterField parameterField2 = new ParameterField(FieldName.create(PARAM_2 + counter)); + ParameterField parameterField2 = new ParameterField(PARAM_2 + counter); parameterField2.setDataType(DataType.DOUBLE); parameterField2.setOpType(OpType.CONTINUOUS); parameterField2.setDisplayName("displayName2" + counter); Constant constant = new Constant(); constant.setValue(value1); FieldRef fieldRef = new FieldRef(); - fieldRef.setField(FieldName.create("FIELD_REF" + counter)); + fieldRef.setField("FIELD_REF" + counter); Apply apply = new Apply(); apply.setFunction("/"); apply.addExpressions(constant, fieldRef); @@ -120,7 +119,7 @@ private DerivedField getDerivedField(int counter) { Constant constant = new Constant(); constant.setValue(value1); DerivedField toReturn = new DerivedField(); - toReturn.setName(FieldName.create(PARAM_2 + counter)); + toReturn.setName(PARAM_2 + counter); toReturn.setDataType(DataType.DOUBLE); toReturn.setOpType(OpType.CONTINUOUS); toReturn.setExpression(constant); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/InstanceFactoriesTestCommon.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/InstanceFactoriesTestCommon.java index 39a0971352b..3a36790356e 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/InstanceFactoriesTestCommon.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/InstanceFactoriesTestCommon.java @@ -109,7 +109,7 @@ static void commonVerifyKiePMMLDefineFunction(KiePMMLDefineFunction toVerify, assertThat(toVerifyList).hasSameSizeAs(sourcesParameterFields); sourcesParameterFields.forEach(paramSource -> { Optional parameterToVerify = - toVerifyList.stream().filter(param -> param.getName().equals(paramSource.getName().getValue())) + toVerifyList.stream().filter(param -> param.getName().equals(paramSource.getName())) .findFirst(); assertThat(parameterToVerify).isPresent(); commonVerifyKiePMMLParameterField(parameterToVerify.get(), paramSource); @@ -119,24 +119,24 @@ static void commonVerifyKiePMMLDefineFunction(KiePMMLDefineFunction toVerify, static void commonVerifyKiePMMLDerivedField(KiePMMLDerivedField toVerify, DerivedField source) { assertThat(toVerify).isNotNull(); - assertThat(toVerify.getName()).isEqualTo(source.getName().getValue()); + assertThat(toVerify.getName()).isEqualTo(source.getName()); DATA_TYPE expectedDataType = DATA_TYPE.byName(source.getDataType().value()); assertThat(toVerify.getDataType()).isEqualTo(expectedDataType); OP_TYPE expectedOpType = OP_TYPE.byName(source.getOpType().value()); assertThat(toVerify.getOpType()).isEqualTo(expectedOpType); - String expectedDisplayName = "Display-" + source.getName().getValue(); + String expectedDisplayName = "Display-" +source.getName(); assertThat(toVerify.getDisplayName()).isEqualTo(expectedDisplayName); commonVerifyKiePMMLExpression(toVerify.getKiePMMLExpression(), source.getExpression()); } static void commonVerifyKiePMMLParameterField(KiePMMLParameterField toVerify, ParameterField source) { assertThat(toVerify).isNotNull(); - assertThat(toVerify.getName()).isEqualTo(source.getName().getValue()); + assertThat(toVerify.getName()).isEqualTo(source.getName()); DATA_TYPE expectedDataType = DATA_TYPE.byName(source.getDataType().value()); assertThat(toVerify.getDataType()).isEqualTo(expectedDataType); OP_TYPE expectedOpType = OP_TYPE.byName(source.getOpType().value()); assertThat(toVerify.getOpType()).isEqualTo(expectedOpType); - String expectedDisplayName = "Display-" + source.getName().getValue(); + String expectedDisplayName = "Display-" +source.getName(); assertThat(toVerify.getDisplayName()).isEqualTo(expectedDisplayName); } @@ -181,20 +181,20 @@ static void commonVerifyKiePMMLSimplePredicate(KiePMMLSimplePredicate toVerify, DataField dataField) { assertThat(toVerify).isNotNull(); Object value = DATA_TYPE.byName(dataField.getDataType().value()).getActualValue(source.getValue()); - assertThat(toVerify.getName()).isEqualTo(source.getField().getValue()); + assertThat(toVerify.getName()).isEqualTo(source.getField()); assertThat(toVerify.getValue()).isEqualTo(value); assertThat(toVerify.getOperator().getName()).isEqualTo(source.getOperator().value()); } static void commonVerifyKiePMMLSimplePredicate(KiePMMLSimplePredicate toVerify, SimplePredicate source) { assertThat(toVerify).isNotNull(); - assertThat(toVerify.getName()).isEqualTo(source.getField().getValue()); + assertThat(toVerify.getName()).isEqualTo(source.getField()); assertThat(toVerify.getOperator().getName()).isEqualTo(source.getOperator().value()); } static void commonVerifyKiePMMLSimpleSetPredicate(KiePMMLSimpleSetPredicate toVerify, SimpleSetPredicate source) { assertThat(toVerify).isNotNull(); - assertThat(toVerify.getName()).isEqualTo(source.getField().getValue()); + assertThat(toVerify.getName()).isEqualTo(source.getField()); Array array = source.getArray(); assertThat(toVerify.getArrayType().getName()).isEqualTo(array.getType().value()); assertThat(toVerify.getInNotIn().getName()).isEqualTo(source.getBooleanOperator().value()); @@ -273,7 +273,7 @@ static void commonVerifyKiePMMLConstant(KiePMMLConstant toVerify, Constant sourc static void commonVerifyKiePMMLDiscretize(KiePMMLDiscretize toVerify, Discretize source) { assertThat(toVerify).isNotNull(); - assertThat(toVerify.getName()).isEqualTo(source.getField().getValue()); + assertThat(toVerify.getName()).isEqualTo(source.getField()); assertThat(toVerify.getMapMissingTo()).isEqualTo(source.getMapMissingTo()); assertThat(toVerify.getDefaultValue()).isEqualTo(source.getDefaultValue()); assertThat(toVerify.getDataType().getName()).isEqualTo(source.getDataType().value()); @@ -283,7 +283,7 @@ static void commonVerifyKiePMMLDiscretize(KiePMMLDiscretize toVerify, Discretize static void commonVerifyKiePMMLFieldRef(KiePMMLFieldRef toVerify, FieldRef source) { assertThat(toVerify).isNotNull(); - assertThat(toVerify.getName()).isEqualTo(source.getField().getValue()); + assertThat(toVerify.getName()).isEqualTo(source.getField()); assertThat(toVerify.getMapMissingTo()).isEqualTo(source.getMapMissingTo()); } @@ -311,7 +311,7 @@ static void commonVerifyKiePMMLNormContinuous(KiePMMLNormContinuous toVerify, No static void commonVerifyKiePMMLNormDiscrete(KiePMMLNormDiscrete toVerify, NormDiscrete source) { assertThat(toVerify).isNotNull(); - assertThat(toVerify.getName()).isEqualTo(source.getField().getValue()); + assertThat(toVerify.getName()).isEqualTo(source.getField()); assertThat(toVerify.getMapMissingTo()).isEqualTo(source.getMapMissingTo()); assertThat(toVerify.getValue()).isEqualTo(source.getValue().toString()); } @@ -347,7 +347,7 @@ static void commonVerifyKiePMMLDiscretizeBin(KiePMMLDiscretizeBin toVerify, Disc static void commonVerifyKiePMMLFieldColumnPair(KiePMMLFieldColumnPair toVerify, FieldColumnPair source) { assertThat(toVerify).isNotNull(); - assertThat(toVerify.getName()).isEqualTo(source.getField().getValue()); + assertThat(toVerify.getName()).isEqualTo(source.getField()); assertThat(toVerify.getColumn()).isEqualTo(source.getColumn()); } @@ -366,7 +366,7 @@ static void commonVerifyKiePMMLInterval(KiePMMLInterval toVerify, Interval sourc static void commonVerifyKiePMMLMiningField(KiePMMLMiningField toVerify, MiningField source, DataField dataField) { assertThat(toVerify).isNotNull(); - assertThat(toVerify.getName()).isEqualTo(source.getName().getValue()); + assertThat(toVerify.getName()).isEqualTo(source.getName()); assertThat(toVerify.getOpType().getName()).isEqualTo(source.getOpType().value()); assertThat(toVerify.getFieldUsageType().getName()).isEqualTo(source.getUsageType().value()); assertThat(toVerify.getInvalidValueTreatmentMethod().getName()).isEqualTo(source.getInvalidValueTreatment().value()); @@ -380,10 +380,10 @@ static void commonVerifyKiePMMLMiningField(KiePMMLMiningField toVerify, MiningFi static void commonVerifyKiePMMLOutputField(KiePMMLOutputField toVerify, OutputField source) { assertThat(toVerify).isNotNull(); - assertThat(toVerify.getName()).isEqualTo(source.getName().getValue()); + assertThat(toVerify.getName()).isEqualTo(source.getName()); assertThat(toVerify.getValue()).isEqualTo(source.getValue()); assertThat(toVerify.getDataType().getName()).isEqualTo(source.getDataType().value()); - assertThat(toVerify.getTargetField().get()).isEqualTo(source.getTargetField().getValue()); + assertThat(toVerify.getTargetField().get()).isEqualTo(source.getTargetField()); assertThat(toVerify.getResultFeature().getName()).isEqualTo(source.getResultFeature().value()); assertThat(toVerify.getRank()).isEqualTo(source.getRank()); assertThat(toVerify.getValue()).isEqualTo(source.getValue()); @@ -395,7 +395,7 @@ static void commonVerifyKiePMMLTarget(KiePMMLTarget toVerify, Target source) { assertThat(source.getTargetValues()).hasSameSizeAs(toVerify.getTargetValues()); OP_TYPE expectedOpType = OP_TYPE.byName(source.getOpType().value()); assertThat(toVerify.getOpType()).isEqualTo(expectedOpType); - assertThat(toVerify.getField()).isEqualTo(source.getField().getValue()); + assertThat(toVerify.getField()).isEqualTo(source.getField()); CAST_INTEGER expectedCastInteger = CAST_INTEGER.byName(source.getCastInteger().value()); assertThat(toVerify.getCastInteger()).isEqualTo(expectedCastInteger); assertThat(toVerify.getMin()).isCloseTo(source.getMin().doubleValue(), Offset.offset(0.0)); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLLocalTransformationsInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLLocalTransformationsInstanceFactoryTest.java index 7769f9d331b..d6008be920d 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLLocalTransformationsInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLLocalTransformationsInstanceFactoryTest.java @@ -44,7 +44,7 @@ void getKiePMMLLocalTransformations() { assertThat(derivedFieldsToVerify).hasSameSizeAs(derivedFields); derivedFields.forEach(derivedFieldSource -> { Optional derivedFieldToVerify = - derivedFieldsToVerify.stream().filter(param -> param.getName().equals(derivedFieldSource.getName().getValue())) + derivedFieldsToVerify.stream().filter(param -> param.getName().equals(derivedFieldSource.getName())) .findFirst(); assertThat(derivedFieldToVerify).isPresent(); commonVerifyKiePMMLDerivedField(derivedFieldToVerify.get(), derivedFieldSource); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTransformationDictionaryInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTransformationDictionaryInstanceFactoryTest.java index 4082c4c6220..bd9737cf9a5 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTransformationDictionaryInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTransformationDictionaryInstanceFactoryTest.java @@ -47,7 +47,7 @@ void getKiePMMLTransformationDictionary() { assertThat(derivedFieldsToVerify).hasSameSizeAs(derivedFields); derivedFields.forEach(derivedFieldSource -> { Optional derivedFieldToVerify = - derivedFieldsToVerify.stream().filter(param -> param.getName().equals(derivedFieldSource.getName().getValue())) + derivedFieldsToVerify.stream().filter(param -> param.getName().equals(derivedFieldSource.getName())) .findFirst(); assertThat(derivedFieldToVerify).isPresent(); commonVerifyKiePMMLDerivedField(derivedFieldToVerify.get(), derivedFieldSource); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/JavaParserUtilsTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/JavaParserUtilsTest.java index 8e0ef571cbf..3c48c553edb 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/JavaParserUtilsTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/JavaParserUtilsTest.java @@ -22,6 +22,7 @@ import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; import com.github.javaparser.ast.expr.Name; import org.junit.jupiter.api.Test; +import org.kie.pmml.api.exceptions.ExternalException; import org.kie.pmml.api.exceptions.KiePMMLInternalException; import static org.assertj.core.api.Assertions.assertThat; @@ -49,7 +50,7 @@ void getFromFileNameNotParsable() { @Test void getFromFileNameNotExisting() { - assertThatExceptionOfType(AssertionError.class).isThrownBy(() -> { + assertThatExceptionOfType(ExternalException.class).isThrownBy(() -> { JavaParserUtils.getFromFileName("not_existing"); }); } diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtilTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtilTest.java index d27ff4c4471..aab94e8f8c8 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtilTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtilTest.java @@ -30,12 +30,11 @@ import java.util.stream.Collectors; import java.util.stream.IntStream; -import javax.xml.bind.JAXBException; +import jakarta.xml.bind.JAXBException; import org.apache.commons.lang3.RandomStringUtils; import org.dmg.pmml.DataField; import org.dmg.pmml.DataType; -import org.dmg.pmml.FieldName; import org.dmg.pmml.MathContext; import org.dmg.pmml.MiningField; import org.dmg.pmml.MiningFunction; @@ -140,7 +139,7 @@ void getTargetDataField() throws Exception { assertThat(optionalDataField).isPresent(); DataField retrieved = optionalDataField.get(); String expected = String.format(TARGETFIELD_TEMPLATE, "golfing"); - assertThat(retrieved.getName().getValue()).isEqualTo(expected); + assertThat(retrieved.getName()).isEqualTo(expected); } @Test @@ -188,23 +187,23 @@ void getTargetOpType() { @Test void getTargetMiningField() { final DataField dataField = new DataField(); - dataField.setName(FieldName.create("FIELD_NAME")); + dataField.setName("FIELD_NAME"); final MiningField retrieved = KiePMMLUtil.getTargetMiningField(dataField); - assertThat(retrieved.getName().getValue()).isEqualTo(dataField.getName().getValue()); + assertThat(retrieved.getName()).isEqualTo(dataField.getName()); assertThat(retrieved.getUsageType()).isEqualTo(MiningField.UsageType.TARGET); } @Test void correctTargetFields() { - final MiningField miningField = new MiningField(FieldName.create("FIELD_NAME")); + final MiningField miningField = new MiningField("FIELD_NAME"); final Targets targets = new Targets(); final Target namedTarget = new Target(); String targetName = "TARGET_NAME"; - namedTarget.setField(FieldName.create(targetName)); + namedTarget.setField(targetName); final Target unnamedTarget = new Target(); targets.addTargets(namedTarget, unnamedTarget); KiePMMLUtil.correctTargetFields(miningField, targets); - assertThat(namedTarget.getField().getValue()).isEqualTo(targetName); + assertThat(namedTarget.getField()).isEqualTo(targetName); assertThat(unnamedTarget.getField()).isEqualTo(miningField.getName()); } @@ -290,7 +289,7 @@ void populateMissingOutputFieldDataType() { List dataFields = fieldNames.stream() .map(fieldName -> { DataField toReturn = new DataField(); - toReturn.setName(FieldName.create(fieldName)); + toReturn.setName(fieldName); DataType dataType = DataType.values()[random.nextInt(DataType.values().length)]; toReturn.setDataType(dataType); return toReturn; @@ -300,40 +299,40 @@ void populateMissingOutputFieldDataType() { .mapToObj(dataFields::get) .map(dataField -> { MiningField toReturn = new MiningField(); - toReturn.setName(FieldName.create(dataField.getName().getValue())); + toReturn.setName(dataField.getName()); toReturn.setUsageType(MiningField.UsageType.ACTIVE); return toReturn; }) .collect(Collectors.toList()); DataField lastDataField = dataFields.get(dataFields.size() - 1); MiningField targetMiningField = new MiningField(); - targetMiningField.setName(FieldName.create(lastDataField.getName().getValue())); + targetMiningField.setName(lastDataField.getName()); targetMiningField.setUsageType(MiningField.UsageType.TARGET); miningFields.add(targetMiningField); // Following OutputFields should be populated based on "ResultFeature.PROBABILITY" List outputFields = IntStream.range(0, 3) .mapToObj(i -> { OutputField toReturn = new OutputField(); - toReturn.setName(FieldName.create(RandomStringUtils.random(6, true, false))); + toReturn.setName(RandomStringUtils.random(6, true, false)); toReturn.setResultFeature(ResultFeature.PROBABILITY); return toReturn; }) .collect(Collectors.toList()); // Following OutputField should be populated based on "ResultFeature.PREDICTED_VALUE" OutputField targetOutputField = new OutputField(); - targetOutputField.setName(FieldName.create(RandomStringUtils.random(6, true, false))); + targetOutputField.setName(RandomStringUtils.random(6, true, false)); targetOutputField.setResultFeature(ResultFeature.PREDICTED_VALUE); outputFields.add(targetOutputField); // Following OutputField should be populated based on "TargetField" property OutputField targetingOutputField = new OutputField(); - targetingOutputField.setName(FieldName.create(RandomStringUtils.random(6, true, false))); - targetingOutputField.setTargetField(FieldName.create(targetMiningField.getName().getValue())); + targetingOutputField.setName(RandomStringUtils.random(6, true, false)); + targetingOutputField.setTargetField(targetMiningField.getName()); outputFields.add(targetingOutputField); outputFields.forEach(outputField -> assertThat(outputField.getDataType()).isNull()); IntStream.range(0, 2) .forEach(i -> { OutputField toAdd = new OutputField(); - toAdd.setName(FieldName.create(RandomStringUtils.random(6, true, false))); + toAdd.setName(RandomStringUtils.random(6, true, false)); DataType dataType = DataType.values()[random.nextInt(DataType.values().length)]; toAdd.setDataType(dataType); outputFields.add(toAdd); @@ -368,7 +367,7 @@ void getMiningTargetFieldsFromMiningSchema() throws Exception { assertThat(retrieved).isNotNull(); assertThat(retrieved).hasSize(1); MiningField targetField = retrieved.get(0); - assertThat(targetField.getName().getValue()).isEqualTo("car_location"); + assertThat(targetField.getName()).isEqualTo("car_location"); assertThat(targetField.getUsageType().value()).isEqualTo("target"); } @@ -381,7 +380,7 @@ void getMiningTargetFieldsFromMiningFields() throws Exception { assertThat(retrieved).isNotNull(); assertThat(retrieved).hasSize(1); MiningField targetField = retrieved.get(0); - assertThat(targetField.getName().getValue()).isEqualTo("car_location"); + assertThat(targetField.getName()).isEqualTo("car_location"); assertThat(targetField.getUsageType().value()).isEqualTo("target"); } diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/pom.xml b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/pom.xml index 82d69637215..40127dba47f 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/pom.xml +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/pom.xml @@ -5,7 +5,7 @@ org.kie kie-pmml-compiler - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/testingutils/TestingModel.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/testingutils/TestingModel.java index 626fd4316e6..7470fe40474 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/testingutils/TestingModel.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/testingutils/TestingModel.java @@ -104,5 +104,15 @@ public String getModelName() { return modelName; } + @Override + public MiningFunction requireMiningFunction() { + return null; + } + + @Override + public MiningSchema requireMiningSchema() { + return null; + } + } diff --git a/kie-pmml-trusty/kie-pmml-compiler/pom.xml b/kie-pmml-trusty/kie-pmml-compiler/pom.xml index 258fcdd3184..10eedfbb856 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/pom.xml +++ b/kie-pmml-trusty/kie-pmml-compiler/pom.xml @@ -5,7 +5,7 @@ org.kie kie-pmml-trusty - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-dependencies/pom.xml b/kie-pmml-trusty/kie-pmml-dependencies/pom.xml index 959ed283968..76984c80a38 100644 --- a/kie-pmml-trusty/kie-pmml-dependencies/pom.xml +++ b/kie-pmml-trusty/kie-pmml-dependencies/pom.xml @@ -5,7 +5,7 @@ org.kie kie-pmml-trusty - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-api/pom.xml b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-api/pom.xml index 453e84a36e7..90c901ba8e1 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-api/pom.xml +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-api/pom.xml @@ -5,7 +5,7 @@ org.kie kie-pmml-evaluator - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/pom.xml b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/pom.xml index eab0a3f87a6..74a16302d8b 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/pom.xml +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/pom.xml @@ -5,7 +5,7 @@ org.kie kie-pmml-evaluator - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-utils/pom.xml b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-utils/pom.xml index 2298cfa4f5a..52fed582750 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-utils/pom.xml +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-utils/pom.xml @@ -5,7 +5,7 @@ kie-pmml-evaluator org.kie - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-evaluator/pom.xml b/kie-pmml-trusty/kie-pmml-evaluator/pom.xml index 11cc55b4225..15c944325ba 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/pom.xml +++ b/kie-pmml-trusty/kie-pmml-evaluator/pom.xml @@ -4,7 +4,7 @@ org.kie kie-pmml-trusty - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 pom diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/pom.xml index a5d9532e17d..4847abe37d5 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-clustering - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactory.java index 7b7ca55b9e6..e760d10cfb2 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactory.java @@ -170,7 +170,7 @@ static KiePMMLClusteringField getKiePMMLClusteringField(ClusteringField clusteri boolean isCenterField = clusteringField.getCenterField() == null || clusteringField.getCenterField() == ClusteringField.CenterField.TRUE; KiePMMLCompareFunction kiePMMLCompareFunction = clusteringField.getCompareFunction() != null ? compareFunctionFrom(clusteringField.getCompareFunction()) : null; - return new KiePMMLClusteringField(clusteringField.getField().getValue(), fieldWeight, isCenterField, + return new KiePMMLClusteringField(clusteringField.getField(), fieldWeight, isCenterField, kiePMMLCompareFunction, null); } @@ -250,7 +250,7 @@ private static ObjectCreationExpr clusteringFieldCreationExprFrom(ClusteringFiel clusteringField.getCenterField() == null || clusteringField.getCenterField() == ClusteringField.CenterField.TRUE; NodeList arguments = new NodeList<>(); - arguments.add(literalExprFrom(clusteringField.getField().getValue())); + arguments.add(literalExprFrom(clusteringField.getField())); arguments.add(new DoubleLiteralExpr(fieldWeight)); arguments.add(new BooleanLiteralExpr(isCenterField)); arguments.add(clusteringField.getCompareFunction() == null ? new NullLiteralExpr() : diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/test/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/test/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactoryTest.java index 5fbfa7f31d1..8f102e47c4d 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/test/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/test/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactoryTest.java @@ -35,7 +35,6 @@ import org.dmg.pmml.DataField; import org.dmg.pmml.DataType; import org.dmg.pmml.Euclidean; -import org.dmg.pmml.FieldName; import org.dmg.pmml.MiningField; import org.dmg.pmml.MiningFunction; import org.dmg.pmml.MiningSchema; @@ -105,7 +104,7 @@ public static void setup() { IntStream.range(0, 3).forEach(i -> { ClusteringField clusteringField = getRandomClusteringField(); clusteringFields.add(clusteringField); - fieldNames.add(clusteringField.getField().getValue()); + fieldNames.add(clusteringField.getField()); clusters.add(getRandomCluster()); }); @@ -190,7 +189,7 @@ void getKiePMMLCluster() { void getKiePMMLClusteringField() { ClusteringField clusteringField = new ClusteringField(); final Random random = new Random(); - clusteringField.setField(FieldName.create("TEXT")); + clusteringField.setField("TEXT"); clusteringField.setFieldWeight(random.nextDouble()); clusteringField.setCenterField(getRandomEnum(ClusteringField.CenterField.values())); clusteringField.setCompareFunction(getRandomEnum(CompareFunction.values())); @@ -253,7 +252,7 @@ void setStaticGetter() throws IOException { String expectedCompareFunction = KiePMMLCompareFunction.class.getCanonicalName() + "." + comparisonMeasure.getCompareFunction().name(); - String expectedTargetField = targetMiningField.getName().getValue(); + String expectedTargetField =targetMiningField.getName(); KiePMMLClusteringModelFactory.setStaticGetter(compilationDTO, modelTemplate); @@ -282,7 +281,7 @@ private void commonEvaluateKiePMMLClusteringField(KiePMMLClusteringField retriev ClusteringField clusteringField) { assertThat(retrieved).isNotNull(); boolean isCenterField = clusteringField.getCenterField() == ClusteringField.CenterField.TRUE; - assertThat(retrieved.getField()).isEqualTo(clusteringField.getField().getValue()); + assertThat(retrieved.getField()).isEqualTo(clusteringField.getField()); assertThat(retrieved.getFieldWeight()).isEqualTo(clusteringField.getFieldWeight()); assertThat(retrieved.getCenterField()).isEqualTo(isCenterField); assertThat(retrieved.getCompareFunction()).isPresent(); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-evaluator/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-evaluator/pom.xml index ffee6e81b9f..ae7e7e4bfdd 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-evaluator/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-evaluator/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-clustering - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/pom.xml index f39b67a4260..d5b0fbdab5a 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-clustering - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/pom.xml index eb61bc5ec2e..0fc9a8e0a1d 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-clustering - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/pom.xml index 37d7368b70b..7102c6654f0 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 pom diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/pom.xml index 3bd53b74cbf..5d6470b9e81 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/pom.xml @@ -5,7 +5,7 @@ org.kie kie-pmml-models-drools - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactory.java index 06274037a0f..47192452419 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactory.java @@ -63,8 +63,8 @@ public List declareTypes(final List> fields) { * @param field */ public KiePMMLDroolsType declareType(Field field) { - String generatedType = getGeneratedClassName(field.getName().getValue()); - String fieldName = field.getName().getValue(); + String generatedType = getGeneratedClassName(field.getName()); + String fieldName =field.getName(); String fieldType = field.getDataType().value(); fieldTypeMap.put(fieldName, new KiePMMLOriginalTypeGeneratedType(fieldType, generatedType)); return new KiePMMLDroolsType(generatedType, DATA_TYPE.byName(fieldType).getMappedClass().getSimpleName()); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactory.java index e66d696e1cd..f2672484956 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactory.java @@ -60,8 +60,8 @@ public List declareTypes(final List derivedFiel * @param derivedField */ public KiePMMLDroolsType declareType(DerivedField derivedField) { - String generatedType = getSanitizedClassName(derivedField.getName().getValue().toUpperCase()); - String fieldName = derivedField.getName().getValue(); + String generatedType = getSanitizedClassName(derivedField.getName().toUpperCase()); + String fieldName =derivedField.getName(); String fieldType = derivedField.getDataType().value(); fieldTypeMap.put(fieldName, new KiePMMLOriginalTypeGeneratedType(fieldType, generatedType)); return new KiePMMLDroolsType(generatedType, DATA_TYPE.byName(fieldType).getMappedClass().getSimpleName()); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactory.java index 45091cb9c40..0ca52233919 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactory.java @@ -55,7 +55,7 @@ public void declareRuleFromSimplePredicateSurrogate( final KiePMMLReasonCodeAndValue reasonCodeAndValue, final boolean isLastCharacteristic) { logger.trace("declareRuleFromSimplePredicateSurrogate {} {} {} {}", agendaActivationGroup, toAccumulate, statusToSet, isLastCharacteristic); - String fieldName = predicateASTFactoryData.getFieldTypeMap().get(((SimplePredicate) predicateASTFactoryData.getPredicate()).getField().getValue()).getGeneratedType(); + String fieldName = predicateASTFactoryData.getFieldTypeMap().get(((SimplePredicate) predicateASTFactoryData.getPredicate()).getField()).getGeneratedType(); String surrogateCurrentRule = String.format(KiePMMLAbstractModelASTFactory.SURROGATE_RULENAME_PATTERN, predicateASTFactoryData.getCurrentRule(), fieldName); final List constraints = Collections.singletonList(KiePMMLASTFactoryUtils.getConstraintEntryFromSimplePredicates(fieldName, BOOLEAN_OPERATOR.SURROGATE, Collections.singletonList((SimplePredicate) predicateASTFactoryData.getPredicate()), predicateASTFactoryData.getFieldTypeMap())); // Create "TRUE" matcher @@ -79,7 +79,7 @@ public void declareRuleFromSimplePredicateSurrogate( final Object result, boolean isFinalLeaf) { logger.trace("declareRuleFromSimplePredicateSurrogate {} {} {}", agendaActivationGroup, result, isFinalLeaf); - String fieldName = predicateASTFactoryData.getFieldTypeMap().get(((SimplePredicate) predicateASTFactoryData.getPredicate()).getField().getValue()).getGeneratedType(); + String fieldName = predicateASTFactoryData.getFieldTypeMap().get(((SimplePredicate) predicateASTFactoryData.getPredicate()).getField()).getGeneratedType(); String surrogateCurrentRule = String.format(KiePMMLAbstractModelASTFactory.SURROGATE_RULENAME_PATTERN, predicateASTFactoryData.getCurrentRule(), fieldName); final List constraints = Collections.singletonList(KiePMMLASTFactoryUtils.getConstraintEntryFromSimplePredicates(fieldName, BOOLEAN_OPERATOR.SURROGATE, Collections.singletonList((SimplePredicate) predicateASTFactoryData.getPredicate()), predicateASTFactoryData.getFieldTypeMap())); String statusToSet = isFinalLeaf ? DONE : predicateASTFactoryData.getCurrentRule(); @@ -215,7 +215,7 @@ private KiePMMLDroolsRule.Builder getBuilderForSimplePredicateSurrogateFalseMatc protected KiePMMLDroolsRule.Builder getBuilderForSimplePredicate(final String statusToSet) { logger.trace("getBuilderForSimplePredicate {}", statusToSet); String statusConstraint = StringUtils.isEmpty(predicateASTFactoryData.getParentPath()) ? KiePMMLAbstractModelASTFactory.STATUS_NULL : String.format(STATUS_PATTERN, predicateASTFactoryData.getParentPath()); - String key = predicateASTFactoryData.getFieldTypeMap().get(((SimplePredicate) predicateASTFactoryData.getPredicate()).getField().getValue()).getGeneratedType(); + String key = predicateASTFactoryData.getFieldTypeMap().get(((SimplePredicate) predicateASTFactoryData.getPredicate()).getField()).getGeneratedType(); OPERATOR operator = OPERATOR.byName(((SimplePredicate) predicateASTFactoryData.getPredicate()).getOperator().value()); Object value = KiePMMLASTFactoryUtils.getCorrectlyFormattedObject(((SimplePredicate) predicateASTFactoryData.getPredicate()), predicateASTFactoryData.getFieldTypeMap()); List andConstraints = Collections.singletonList(new KiePMMLFieldOperatorValue(key, BOOLEAN_OPERATOR.AND, Collections.singletonList(new KiePMMLOperatorValue(operator, value)), null)); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateASTFactory.java index 3cd86577052..6f7028f7829 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateASTFactory.java @@ -72,11 +72,11 @@ private KiePMMLDroolsRule.Builder getBuilderForSimpleSetPredicate(final String s logger.trace("declareRuleFromSimpleSetPredicate {}", statusToSet); String statusConstraint = StringUtils.isEmpty(predicateASTFactoryData.getParentPath()) ? STATUS_NULL : String.format(STATUS_PATTERN, predicateASTFactoryData.getParentPath()); SimpleSetPredicate simpleSetPredicate = (SimpleSetPredicate) predicateASTFactoryData.getPredicate(); - String key = predicateASTFactoryData.getFieldTypeMap().get(simpleSetPredicate.getField().getValue()).getGeneratedType(); + String key = predicateASTFactoryData.getFieldTypeMap().get(simpleSetPredicate.getField()).getGeneratedType(); String stringValue = (String) simpleSetPredicate.getArray().getValue(); String[] valuesArray = stringValue.split(" "); List value = Arrays.stream(valuesArray).map(rawValue -> { - String originalType = predicateASTFactoryData.getFieldTypeMap().get(simpleSetPredicate.getField().getValue()).getOriginalType(); + String originalType = predicateASTFactoryData.getFieldTypeMap().get(simpleSetPredicate.getField()).getOriginalType(); switch (originalType) { case "string": return "\"" + rawValue + "\""; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtils.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtils.java index 491df26632b..35b5ffa32e9 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtils.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtils.java @@ -55,7 +55,7 @@ public static List getConstraintEntriesFromAndOrCompo } final Map> predicatesByField = simplePredicates.stream() .map(child -> (SimplePredicate) child) - .collect(groupingBy(child -> fieldTypeMap.get(child.getField().getValue()).getGeneratedType())); + .collect(groupingBy(child -> fieldTypeMap.get(child.getField()).getGeneratedType())); final List toReturn = new LinkedList<>(); populateKiePMMLFieldOperatorValueListWithSimplePredicates(toReturn, compoundPredicate.getBooleanOperator(), predicatesByField, fieldTypeMap); final List compoundPredicates = compoundPredicate.getPredicates().stream() @@ -113,7 +113,7 @@ public static List getXORConstraintEntryFromSimplePre .filter(predicate -> predicate instanceof SimplePredicate) .map(predicate -> { SimplePredicate simplePredicate = (SimplePredicate) predicate; - String fieldName = fieldTypeMap.get(simplePredicate.getField().getValue()).getGeneratedType(); + String fieldName = fieldTypeMap.get(simplePredicate.getField()).getGeneratedType(); OPERATOR operator = OPERATOR.byName(simplePredicate.getOperator().value()); Object value = getCorrectlyFormattedObject(simplePredicate, fieldTypeMap); return new KiePMMLFieldOperatorValue(fieldName, null, Collections.singletonList(new KiePMMLOperatorValue(operator, value)), null); @@ -121,7 +121,7 @@ public static List getXORConstraintEntryFromSimplePre } public static Object getCorrectlyFormattedObject(final SimplePredicate simplePredicate, final Map fieldTypeMap) { - DATA_TYPE dataType = DATA_TYPE.byName(fieldTypeMap.get(simplePredicate.getField().getValue()).getOriginalType()); + DATA_TYPE dataType = DATA_TYPE.byName(fieldTypeMap.get(simplePredicate.getField()).getOriginalType()); return getCorrectlyFormattedResult(simplePredicate.getValue(), dataType); } diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateASTFactoryTest.java index 7f39b545f36..874ffd5b6be 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateASTFactoryTest.java @@ -170,7 +170,7 @@ void declareRuleFromCompoundPredicateSurrogateFinalLeaf() { .findFirst(); if (fieldName.isPresent()) { SimplePredicate mappedPredicate = predicates.stream() - .filter(pred -> fieldName.get().equals(pred.getField().getValue())) + .filter(pred -> fieldName.get().equals(pred.getField())) .findFirst() .orElse(null); assertThat(mappedPredicate).isNotNull(); @@ -235,7 +235,7 @@ void declareRuleFromCompoundPredicateSurrogateNotFinalLeaf() { .findFirst(); if (fieldName.isPresent()) { SimplePredicate mappedPredicate = predicates.stream() - .filter(pred -> fieldName.get().equals(pred.getField().getValue())).findFirst().orElse(null); + .filter(pred -> fieldName.get().equals(pred.getField())).findFirst().orElse(null); assertThat(mappedPredicate).isNotNull(); assertThat(retrieved.getStatusConstraint()).isNull(); assertThat(retrieved.getActivationGroup()).isEqualTo(agendaActivationGroup); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactoryTest.java index 7425a8e4d14..5b4d3250df5 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactoryTest.java @@ -40,7 +40,7 @@ public class KiePMMLDataDictionaryASTFactoryTest { @Test void declareTypes() { List dataFields = Arrays.asList(getTypeDataField(), getDottedTypeDataField(), getTypeDataField(), getDottedTypeDataField()); - DataDictionary dataDictionary = new DataDictionary(dataFields); + DataDictionary dataDictionary = new DataDictionary().addDataFields(dataFields.toArray(new org.dmg.pmml.DataField[0])); final Map fieldTypeMap = new HashMap<>(); List retrieved = KiePMMLDataDictionaryASTFactory.factory(fieldTypeMap).declareTypes(getFieldsFromDataDictionary(dataDictionary)); assertThat(retrieved).isNotNull(); @@ -58,12 +58,12 @@ void declareType() { } private void commonVerifyTypeDeclarationDescr(DataField dataField, Map fieldTypeMap, final KiePMMLDroolsType kiePMMLDroolsType) { - String expectedGeneratedType = getSanitizedClassName(dataField.getName().getValue()); + String expectedGeneratedType = getSanitizedClassName(dataField.getName()); String expectedMappedOriginalType = DATA_TYPE.byName(dataField.getDataType().value()).getMappedClass().getSimpleName(); assertThat(kiePMMLDroolsType.getName()).startsWith(expectedGeneratedType); assertThat(kiePMMLDroolsType.getType()).isEqualTo(expectedMappedOriginalType); - assertThat(fieldTypeMap).containsKey(dataField.getName().getValue()); - KiePMMLOriginalTypeGeneratedType kiePMMLOriginalTypeGeneratedType = fieldTypeMap.get(dataField.getName().getValue()); + assertThat(fieldTypeMap).containsKey(dataField.getName()); + KiePMMLOriginalTypeGeneratedType kiePMMLOriginalTypeGeneratedType = fieldTypeMap.get(dataField.getName()); assertThat(kiePMMLOriginalTypeGeneratedType.getOriginalType()).isEqualTo(dataField.getDataType().value()); assertThat(kiePMMLOriginalTypeGeneratedType.getGeneratedType()).startsWith(expectedGeneratedType); } diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactoryTest.java index cb32a1c418e..9694394d762 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactoryTest.java @@ -25,7 +25,6 @@ import org.dmg.pmml.DataType; import org.dmg.pmml.DerivedField; -import org.dmg.pmml.FieldName; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.kie.pmml.api.enums.DATA_TYPE; @@ -67,7 +66,7 @@ void declareType() { } private void commonValidateKiePMMLDroolsType(KiePMMLDroolsType toValidate, DerivedField derivedField) { - String derivedFieldName = derivedField.getName().getValue(); + String derivedFieldName =derivedField.getName(); String expectedName = getSanitizedClassName(derivedFieldName.toUpperCase()); assertThat(toValidate.getName()).isEqualTo(expectedName); String expectedType = DATA_TYPE.byName(derivedField.getDataType().value()).getMappedClass().getSimpleName(); @@ -80,7 +79,7 @@ private void commonValidateKiePMMLDroolsType(KiePMMLDroolsType toValidate, Deriv private DerivedField getDerivedField(String fieldName) { DerivedField toReturn = new DerivedField(); - toReturn.setName(FieldName.create(fieldName)); + toReturn.setName(fieldName); final DATA_TYPE[] values = DATA_TYPE.values(); int rndInt = new Random().nextInt(values.length - 1); DATA_TYPE dataType = values[rndInt]; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactoryTest.java index eda072a71e7..08fbb62ee3e 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactoryTest.java @@ -65,7 +65,7 @@ void declareRuleFromSimplePredicateSurrogateFinalLeaf() { assertThat(retrieved).isNotNull(); String baseExpectedRule = String.format(KiePMMLAbstractModelASTFactory.SURROGATE_RULENAME_PATTERN, currentRule, - fieldTypeMap.get(simplePredicate.getField().getValue()).getGeneratedType()); + fieldTypeMap.get(simplePredicate.getField()).getGeneratedType()); String expectedRule = baseExpectedRule + "_TRUE"; assertThat(retrieved.getName()).isEqualTo(expectedRule); assertThat(retrieved.getStatusToSet()).isEqualTo(DONE); @@ -133,7 +133,7 @@ void declareRuleFromSimplePredicateSurrogateNotFinalLeaf() { assertThat(retrieved).isNotNull(); String baseExpectedRule = String.format(KiePMMLAbstractModelASTFactory.SURROGATE_RULENAME_PATTERN, currentRule, - fieldTypeMap.get(simplePredicate.getField().getValue()).getGeneratedType()); + fieldTypeMap.get(simplePredicate.getField()).getGeneratedType()); String expectedRule = baseExpectedRule + "_TRUE"; assertThat(retrieved.getName()).isEqualTo(expectedRule); assertThat(retrieved.getStatusToSet()).isEqualTo(currentRule); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRhsFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRhsFactoryTest.java index 1c5c90e631f..1d3192f47bf 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRhsFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRhsFactoryTest.java @@ -20,7 +20,6 @@ import java.util.List; import java.util.StringJoiner; -import org.dmg.pmml.FieldName; import org.dmg.pmml.OutputField; import org.dmg.pmml.ResultFeature; import org.drools.drl.ast.dsl.DescrFactory; @@ -164,7 +163,7 @@ void commonDeclareThen() { String outputFieldName = "OUTPUTFIELDNAME"; Object result = "RESULT"; OutputField outputField = new OutputField(); - outputField.setName(FieldName.create(outputFieldName)); + outputField.setName(outputFieldName); outputField.setResultFeature(ResultFeature.PREDICTED_VALUE); List outputFields = Collections.singletonList(outputField); KiePMMLDroolsRule.Builder builder = KiePMMLDroolsRule.builder(ruleName, statusToSet, outputFields); @@ -209,7 +208,7 @@ void commonDeclareOutputFields() { String outputFieldName = "OUTPUTFIELDNAME"; Object result = "RESULT"; OutputField outputField = new OutputField(); - outputField.setName(FieldName.create(outputFieldName)); + outputField.setName(outputFieldName); outputField.setResultFeature(ResultFeature.PREDICTED_VALUE); List outputFields = Collections.singletonList(outputField); StringJoiner joiner = new StringJoiner(""); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/provider/DroolsModelProviderTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/provider/DroolsModelProviderTest.java index 5d2096f1d8d..4461cfb39ea 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/provider/DroolsModelProviderTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/provider/DroolsModelProviderTest.java @@ -181,7 +181,7 @@ private void commonVerifyTypesList(final List toVerify, List< private void commonVerifyTypesList(Field toVerify, final List types) { assertThat(types.stream() .anyMatch(type -> { - String expectedName = getSanitizedClassName(toVerify.getName().getValue()); + String expectedName = getSanitizedClassName(toVerify.getName()); if (!type.getName().startsWith(expectedName)) { return false; } @@ -206,13 +206,13 @@ private void commonVerifyFieldTypeMap(Field toVerify, final Map fieldTypeMap) { assertThat(fieldTypeMap.entrySet().stream() .anyMatch(entry -> { - if (!entry.getKey().equals(toVerify.getName().getValue())) { + if (!entry.getKey().equals(toVerify.getName())) { return false; } KiePMMLOriginalTypeGeneratedType value = entry.getValue(); assertThat(value.getOriginalType()).isEqualTo(toVerify.getDataType().value()); String expectedGeneratedType = - getSanitizedClassName(toVerify.getName().getValue()); + getSanitizedClassName(toVerify.getName()); assertThat(value.getGeneratedType()).startsWith(expectedGeneratedType); return true; })).isTrue(); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtilsTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtilsTest.java index e0c824f1d3f..ddfa79ee1b3 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtilsTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtilsTest.java @@ -195,7 +195,7 @@ public void accept(KiePMMLFieldOperatorValue kiePMMLFieldOperatorValue) { kiePMMLFieldOperatorValue.getKiePMMLOperatorValues().get(0); SimplePredicate simplePredicate = nestedPredicates.stream() .map(predicate -> (SimplePredicate) predicate) - .filter(predicate -> predicate.getField().getValue().equals(getOriginalPredicateName(kiePMMLFieldOperatorValue.getName()))) + .filter(predicate -> predicate.getField().equals(getOriginalPredicateName(kiePMMLFieldOperatorValue.getName()))) .findFirst() .orElseThrow(() -> new RuntimeException("Failed to find SimplePredicate for " + kiePMMLFieldOperatorValue.getName())); commonVerifyKiePMMLOperatorValue(kiePMMLOperatorValue, simplePredicate); @@ -208,7 +208,7 @@ public void accept(KiePMMLFieldOperatorValue kiePMMLFieldOperatorValue) { private void commonPopulateKiePMMLFieldOperatorValueListWithSimplePredicates(CompoundPredicate.BooleanOperator compoundBooleanOperator, BOOLEAN_OPERATOR booleanOperator) { final Map> predicatesByField = simplePredicates.stream() - .collect(groupingBy(child -> fieldTypeMap.get(child.getField().getValue()).getGeneratedType())); + .collect(groupingBy(child -> fieldTypeMap.get(child.getField()).getGeneratedType())); final List toPopulate = new ArrayList<>(); KiePMMLASTFactoryUtils.populateKiePMMLFieldOperatorValueListWithSimplePredicates(toPopulate, compoundBooleanOperator, @@ -258,7 +258,7 @@ private void commonVerifyKiePMMLOperatorValue(final KiePMMLOperatorValue toVerif private SimplePredicate getSimplePredicate(String generatedType) { String predicateName = getOriginalPredicateName(generatedType); return simplePredicates.stream() - .filter(simplePredicate -> simplePredicate.getField().getValue().equals(predicateName)) + .filter(simplePredicate -> simplePredicate.getField().equals(predicateName)) .findFirst() .orElseThrow(() -> new RuntimeException("Failed to find SimplePredicate for " + predicateName)); } diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTTestUtils.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTTestUtils.java index 3e160ea62a3..488c28cc078 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTTestUtils.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTTestUtils.java @@ -22,7 +22,6 @@ import org.dmg.pmml.DataDictionary; import org.dmg.pmml.DataField; import org.dmg.pmml.DataType; -import org.dmg.pmml.FieldName; import org.dmg.pmml.LocalTransformations; import org.dmg.pmml.OpType; import org.dmg.pmml.OutputField; @@ -67,7 +66,7 @@ public static DataField getTypeDataField() { DataField toReturn = new DataField(); toReturn.setOpType(OpType.CONTINUOUS); toReturn.setDataType(DataType.DATE); - toReturn.setName(FieldName.create("dataField")); + toReturn.setName("dataField"); return toReturn; } @@ -75,7 +74,7 @@ public static DataField getDottedTypeDataField() { DataField toReturn = new DataField(); toReturn.setOpType(OpType.CONTINUOUS); toReturn.setDataType(DataType.BOOLEAN); - toReturn.setName(FieldName.create("dotted.field")); + toReturn.setName("dotted.field"); return toReturn; } diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLDroolsModelFactoryUtilsTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLDroolsModelFactoryUtilsTest.java index 28fdafd02a3..d9955b6c0e3 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLDroolsModelFactoryUtilsTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLDroolsModelFactoryUtilsTest.java @@ -42,7 +42,6 @@ import org.dmg.pmml.DataDictionary; import org.dmg.pmml.DataField; import org.dmg.pmml.DataType; -import org.dmg.pmml.FieldName; import org.dmg.pmml.MiningField; import org.dmg.pmml.MiningFunction; import org.dmg.pmml.MiningSchema; @@ -84,7 +83,7 @@ public static void setup() { void getKiePMMLModelCompilationUnit() { DataDictionary dataDictionary = new DataDictionary(); String targetFieldString = "target.field"; - FieldName targetFieldName = FieldName.create(targetFieldString); + String targetFieldName =targetFieldString; dataDictionary.addDataFields(new DataField(targetFieldName, OpType.CONTINUOUS, DataType.DOUBLE)); String modelName = "ModelName"; TreeModel model = new TreeModel(); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/pom.xml index b6f19cf08f4..fc08d189067 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-drools-scorecard - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelCharacteristicASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelCharacteristicASTFactoryTest.java index 16d50cd2113..af24a2d2f82 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelCharacteristicASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelCharacteristicASTFactoryTest.java @@ -368,7 +368,7 @@ private Object getExpectedValue(SimplePredicate simplePredicate) throws RuntimeE DATA_TYPE dataType = dataDictionary.getDataFields().stream().filter(dataField -> dataField.getName().equals(simplePredicate.getField())) .map(dataField -> DATA_TYPE.byName(dataField.getDataType().value())) .findFirst() - .orElseThrow(() -> new RuntimeException("Failed to find DataField for " + simplePredicate.getField().getValue())); + .orElseThrow(() -> new RuntimeException("Failed to find DataField for " +simplePredicate.getField())); return getCorrectlyFormattedResult(simplePredicate.getValue(), dataType); } diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-evaluator/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-evaluator/pom.xml index b6b47099844..3f7218e3a8a 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-evaluator/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-evaluator/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-drools-scorecard - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-model/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-model/pom.xml index c20e54c9025..1c713b3f894 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-model/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-model/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-drools-scorecard - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/pom.xml index c00363aad89..b662c89a569 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-drools-scorecard - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/pom.xml index 2a23fbdff83..7aace090331 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-drools - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 pom diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/pom.xml index 1581c747bc9..f8e1750116e 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-drools-tree - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelFactoryTest.java index 22d3cb65c1d..d48aff5c66c 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelFactoryTest.java @@ -98,7 +98,7 @@ void getKiePMMLDroolsAST() { assertThat(retrieved).isNotNull(); List dataFields = dataDictionary.getDataFields(); assertThat(fieldTypeMap).hasSameSizeAs(dataFields); - dataFields.forEach(dataField -> assertThat(fieldTypeMap).containsKey(dataField.getName().getValue())); + dataFields.forEach(dataField -> assertThat(fieldTypeMap).containsKey(dataField.getName())); } @Test diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-evaluator/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-evaluator/pom.xml index 9a0d342ebe8..122a1492909 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-evaluator/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-evaluator/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-drools-tree - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-model/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-model/pom.xml index 0c005411f26..b46c970e864 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-model/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-model/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-drools-tree - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/pom.xml index 79bd279c442..20410a3e610 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-drools-tree - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/pom.xml index 16ab48dac35..2d98e0495d3 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-drools - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 pom diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/pom.xml index 4701ee90591..b8daa75fc66 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/pom.xml index 9e31031ce88..33670e2f092 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-mining - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/AbstractKiePMMLFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/AbstractKiePMMLFactoryTest.java index 01fd1ef0c71..393c4f4343d 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/AbstractKiePMMLFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/AbstractKiePMMLFactoryTest.java @@ -20,7 +20,7 @@ import java.io.IOException; import java.util.List; -import javax.xml.bind.JAXBException; +import jakarta.xml.bind.JAXBException; import org.dmg.pmml.DataDictionary; import org.dmg.pmml.DerivedField; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLMiningModelFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLMiningModelFactoryTest.java index a01f6ba83f1..2316de95034 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLMiningModelFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLMiningModelFactoryTest.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.Map; -import javax.xml.bind.JAXBException; +import jakarta.xml.bind.JAXBException; import com.github.javaparser.ast.CompilationUnit; import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentFactoryTest.java index cc2616fdef3..f4ecab705b0 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentFactoryTest.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.Map; -import javax.xml.bind.JAXBException; +import jakarta.xml.bind.JAXBException; import com.github.javaparser.ast.CompilationUnit; import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentationFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentationFactoryTest.java index 87c89db11f3..bbd01cae215 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentationFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentationFactoryTest.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; -import javax.xml.bind.JAXBException; +import jakarta.xml.bind.JAXBException; import org.dmg.pmml.mining.MiningModel; import org.junit.jupiter.api.BeforeAll; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/pom.xml index a30dc20f65b..30c81f7093b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-mining - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/pom.xml index 073b82d7749..76ebfc7b58a 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-mining - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/pom.xml index fd3d54017f5..ef7f9375e64 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-mining - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/pom.xml index 468b8a1344d..0284968a96e 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 pom diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/pom.xml index dc5b209380c..82a3a89d488 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/pom.xml @@ -5,7 +5,7 @@ org.kie kie-pmml-models-regression - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/executor/RegressionModelImplementationProvider.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/executor/RegressionModelImplementationProvider.java index d843728fb00..7de61d608c8 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/executor/RegressionModelImplementationProvider.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/executor/RegressionModelImplementationProvider.java @@ -191,7 +191,7 @@ private void validateRegressionTargetField(final List targetF if (targetFields.size() != 1) { throw new KiePMMLException("Expected one target field, retrieved " + targetFields.size()); } - if (toValidate.getTargetField() != null && !(Objects.equals(toValidate.getTargetField().getValue(), + if (toValidate.getTargetField() != null && !(Objects.equals(toValidate.getTargetField(), targetFields.get(0).getName()))) { throw new KiePMMLException(String.format("Not-matching target fields: %s %s", toValidate.getTargetField() , targetFields.get(0).getName())); @@ -206,7 +206,7 @@ private boolean isBinary(final List> fields, final String categoricalFi return fields.stream() .filter(DataField.class::isInstance) .map(DataField.class::cast) - .filter(dataField -> Objects.equals(dataField.getName().getValue(), categoricalFieldName)).mapToDouble(dataField -> dataField.getValues().size()) + .filter(dataField -> Objects.equals(dataField.getName(), categoricalFieldName)).mapToDouble(dataField -> dataField.getValues().size()) .findFirst().orElse(0) == 2; } @@ -214,7 +214,7 @@ private String getCategoricalTargetName(final List> fields, final Regre List targetFields = getTargetFields(fields, toValidate); final List categoricalFields = fields.stream() .filter(dataField -> OpType.CATEGORICAL.equals(dataField.getOpType())) - .map(dataField -> dataField.getName().getValue()) + .map(dataField ->dataField.getName()) .collect(Collectors.toList()); final List categoricalNameTypes = targetFields.stream().filter(targetField -> categoricalFields.contains(targetField.getName())).collect(Collectors.toList()); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactory.java index fcffd3bb091..2721ba73831 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactory.java @@ -203,7 +203,7 @@ public static Map.Entry getRegressionTableBuilder(final Regressi */ static Map> getNumericPredictorsMap(final List numericPredictors) { return numericPredictors.stream() - .collect(Collectors.toMap(numericPredictor -> numericPredictor.getName().getValue(), + .collect(Collectors.toMap(numericPredictor ->numericPredictor.getField(), KiePMMLRegressionTableFactory::getNumericPredictorEntry)); } @@ -232,7 +232,7 @@ static SerializableFunction getNumericPredictorEntry(final Numer */ static Map> getCategoricalPredictorsMap(final List categoricalPredictors) { final Map> groupedCollectors = categoricalPredictors.stream() - .collect(groupingBy(categoricalPredictor -> categoricalPredictor.getField().getValue())); + .collect(groupingBy(categoricalPredictor ->categoricalPredictor.getField())); return groupedCollectors.entrySet().stream() .map(entry -> { Map groupedCategoricalPredictorMap = @@ -273,7 +273,7 @@ static Map, Double>> getPredict return predictorTerms.stream() .map(predictorTerm -> { int arity = predictorsArity.addAndGet(1); - String variableName = predictorTerm.getName() != null ? predictorTerm.getName().getValue() : + String variableName = predictorTerm.getName() != null ?predictorTerm.getName() : "predictorTermFunction" + arity; return new AbstractMap.SimpleEntry<>(variableName, getPredictorTermSerializableFunction(predictorTerm)); @@ -292,7 +292,7 @@ static SerializableFunction, Double> getPredictorTermSeriali return resultMap -> { final AtomicReference result = new AtomicReference<>(1.0); final List fieldRefs = predictorTerm.getFieldRefs().stream() - .map(fieldRef -> fieldRef.getField().getValue()) + .map(fieldRef ->fieldRef.getField()) .collect(Collectors.toList()); for (Map.Entry entry : resultMap.entrySet()) { if (fieldRefs.contains(entry.getKey())) { @@ -440,7 +440,7 @@ static MethodReferenceExpr getResultUpdaterSupportedExpression(final RegressionM */ static Map getNumericPredictorsExpressions(final List numericPredictors) { return numericPredictors.stream() - .collect(Collectors.toMap(numericPredictor -> numericPredictor.getName().getValue(), + .collect(Collectors.toMap(numericPredictor ->numericPredictor.getField(), KiePMMLRegressionTableFactory::getNumericPredictorExpression)); } @@ -489,7 +489,7 @@ static CastExpr getNumericPredictorExpression(final NumericPredictor numericPred */ static Map getCategoricalPredictorsExpressions(final List categoricalPredictors, final BlockStmt body, final String variableName) { final Map> groupedCollectors = categoricalPredictors.stream() - .collect(groupingBy(categoricalPredictor -> categoricalPredictor.getField().getValue())); + .collect(groupingBy(categoricalPredictor ->categoricalPredictor.getField())); final String categoricalPredictorMapNameBase = getSanitizedVariableName(String.format("%sMap", variableName)); final AtomicInteger counter = new AtomicInteger(); return groupedCollectors.entrySet().stream() @@ -578,7 +578,7 @@ static Map getPredictorTermFunctions(final List { int arity = predictorsArity.addAndGet(1); - String variableName = predictorTerm.getName() != null ? predictorTerm.getName().getValue() : + String variableName = predictorTerm.getName() != null ?predictorTerm.getName() : "predictorTermFunction" + arity; return new AbstractMap.SimpleEntry<>(variableName, getPredictorTermFunction(predictorTerm)); @@ -627,7 +627,7 @@ static BlockStmt getPredictorTermBody(final PredictorTerm predictorTerm) { .orElseThrow(() -> new KiePMMLInternalException(String.format(MISSING_VARIABLE_IN_BODY, "fieldRefs", body))); final List nodeList = predictorTerm.getFieldRefs().stream() - .map(fieldRef -> new StringLiteralExpr(fieldRef.getField().getValue())) + .map(fieldRef -> new StringLiteralExpr(fieldRef.getField())) .collect(Collectors.toList()); NodeList expressions = NodeList.nodeList(nodeList); MethodCallExpr methodCallExpr = new MethodCallExpr(new NameExpr("Arrays"), "asList", expressions); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/AbstractKiePMMLRegressionTableRegressionFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/AbstractKiePMMLRegressionTableRegressionFactoryTest.java index 3e609be3e3f..58707e6f2fa 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/AbstractKiePMMLRegressionTableRegressionFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/AbstractKiePMMLRegressionTableRegressionFactoryTest.java @@ -64,8 +64,7 @@ protected RegressionTable getRegressionTable(double intercept, Object targetCate IntStream.range(0, 2).forEach(j -> categoricalPredictors.add(getCategoricalPredictor("CatPred-" + i, 27.12, 3.46))); numericPredictors.add(getNumericPredictor("NumPred-" + i, 2, 13.11)); predictorTerms.add(getPredictorTerm("PredTerm-" + i, 32.29, - Arrays.asList(categoricalPredictors.get(0).getName().getValue(), - numericPredictors.get(0).getName().getValue()))); + Arrays.asList(categoricalPredictors.get(0).getField(),numericPredictors.get(0).getField()))); }); return PMMLModelTestUtils.getRegressionTable(categoricalPredictors, numericPredictors, predictorTerms, intercept, targetCategory); } diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLClassificationTableFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLClassificationTableFactoryTest.java index 20c679fb096..f49fff8e01c 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLClassificationTableFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLClassificationTableFactoryTest.java @@ -28,7 +28,6 @@ import com.github.javaparser.ast.expr.MethodReferenceExpr; import org.dmg.pmml.DataDictionary; import org.dmg.pmml.DataField; -import org.dmg.pmml.FieldName; import org.dmg.pmml.MiningField; import org.dmg.pmml.MiningSchema; import org.dmg.pmml.OpType; @@ -88,7 +87,7 @@ void getClassificationTable() { String targetField = "targetField"; DataField dataField = new DataField(); - dataField.setName(FieldName.create(targetField)); + dataField.setName(targetField); dataField.setOpType(OpType.CATEGORICAL); DataDictionary dataDictionary = new DataDictionary(); dataDictionary.addDataFields(dataField); @@ -129,7 +128,7 @@ void getClassificationTable() { boolean isBinary = regressionModel.getRegressionTables().size() == 2; assertThat(retrieved.isBinary()).isEqualTo(isBinary); assertThat(retrieved.isBinary()).isEqualTo(isBinary); - assertThat(retrieved.getTargetField()).isEqualTo(targetMiningField.getName().getValue()); + assertThat(retrieved.getTargetField()).isEqualTo(targetMiningField.getName()); } @Test @@ -142,7 +141,7 @@ void getClassificationTableBuilders() { String targetField = "targetField"; DataField dataField = new DataField(); - dataField.setName(FieldName.create(targetField)); + dataField.setName(targetField); dataField.setOpType(OpType.CATEGORICAL); DataDictionary dataDictionary = new DataDictionary(); dataDictionary.addDataFields(dataField); @@ -193,7 +192,7 @@ void getClassificationTableBuilder() { String targetField = "targetField"; DataField dataField = new DataField(); - dataField.setName(FieldName.create(targetField)); + dataField.setName(targetField); dataField.setOpType(OpType.CATEGORICAL); DataDictionary dataDictionary = new DataDictionary(); dataDictionary.addDataFields(dataField); @@ -279,7 +278,7 @@ void setStaticGetter() throws IOException { String targetField = "targetField"; DataField dataField = new DataField(); - dataField.setName(FieldName.create(targetField)); + dataField.setName(targetField); dataField.setOpType(OpType.CATEGORICAL); DataDictionary dataDictionary = new DataDictionary(); dataDictionary.addDataFields(dataField); @@ -371,10 +370,10 @@ void getProbabilityMapFunctionSupportedExpression() throws IOException { private OutputField getOutputField(String name, ResultFeature resultFeature, String targetField) { OutputField toReturn = new OutputField(); - toReturn.setName(FieldName.create(name)); + toReturn.setName(name); toReturn.setResultFeature(resultFeature); if (targetField != null) { - toReturn.setTargetField(FieldName.create(targetField)); + toReturn.setTargetField(targetField); } return toReturn; } diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionModelFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionModelFactoryTest.java index c5ef91a5eb9..0c6f212269e 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionModelFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionModelFactoryTest.java @@ -164,7 +164,7 @@ void getKiePMMLRegressionModelClasses() throws IOException, IllegalAccessExcepti assertThat(retrieved).isNotNull(); assertThat(retrieved.getName()).isEqualTo(regressionModel.getModelName()); assertThat(retrieved.getMiningFunction()).isEqualTo(MINING_FUNCTION.byName(regressionModel.getMiningFunction().value())); - assertThat(retrieved.getTargetField()).isEqualTo(miningFields.get(0).getName().getValue()); + assertThat(retrieved.getTargetField()).isEqualTo(miningFields.get(0).getName()); final AbstractKiePMMLTable regressionTable = retrieved.getRegressionTable(); assertThat(regressionTable).isNotNull(); assertThat(regressionTable).isInstanceOf(KiePMMLClassificationTable.class); @@ -225,7 +225,7 @@ void setStaticGetter() throws IOException { Map superInvocationExpressionsMap = new HashMap<>(); superInvocationExpressionsMap.put(0, new NameExpr(String.format("\"%s\"", regressionModel.getModelName()))); Map assignExpressionMap = new HashMap<>(); - assignExpressionMap.put("targetField", new StringLiteralExpr(targetMiningField.getName().getValue())); + assignExpressionMap.put("targetField", new StringLiteralExpr(targetMiningField.getName())); assignExpressionMap.put("miningFunction", new NameExpr(miningFunction.getClass().getName() + "." + miningFunction.name())); assignExpressionMap.put("pmmlMODEL", @@ -258,17 +258,17 @@ private void evaluateRegressionTable(KiePMMLRegressionTable regressionTable, final Map> numericFunctionMap = regressionTable.getNumericFunctionMap(); for (NumericPredictor numericPredictor : originalRegressionTable.getNumericPredictors()) { - assertThat(numericFunctionMap).containsKey(numericPredictor.getName().getValue()); + assertThat(numericFunctionMap).containsKey(numericPredictor.getField()); } final Map> categoricalFunctionMap = regressionTable.getCategoricalFunctionMap(); for (CategoricalPredictor categoricalPredictor : originalRegressionTable.getCategoricalPredictors()) { - assertThat(categoricalFunctionMap).containsKey(categoricalPredictor.getName().getValue()); + assertThat(categoricalFunctionMap).containsKey(categoricalPredictor.getField()); } final Map, Double>> predictorTermsFunctionMap = regressionTable.getPredictorTermsFunctionMap(); for (PredictorTerm predictorTerm : originalRegressionTable.getPredictorTerms()) { - assertThat(predictorTermsFunctionMap).containsKey(predictorTerm.getName().getValue()); + assertThat(predictorTermsFunctionMap).containsKey(predictorTerm.getName()); } } } \ No newline at end of file diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactoryTest.java index ba88fb6bd13..2ef89a689d5 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactoryTest.java @@ -41,7 +41,6 @@ import org.assertj.core.data.Offset; import org.dmg.pmml.DataDictionary; import org.dmg.pmml.DataField; -import org.dmg.pmml.FieldName; import org.dmg.pmml.MiningField; import org.dmg.pmml.MiningSchema; import org.dmg.pmml.OpType; @@ -111,7 +110,7 @@ void getRegressionTables() { regressionModel.setModelName(getGeneratedClassName("RegressionModel")); String targetField = "targetField"; DataField dataField = new DataField(); - dataField.setName(FieldName.create(targetField)); + dataField.setName(targetField); dataField.setOpType(OpType.CATEGORICAL); DataDictionary dataDictionary = new DataDictionary(); dataDictionary.addDataFields(dataField); @@ -154,7 +153,7 @@ void getRegressionTable() { regressionModel.setModelName(getGeneratedClassName("RegressionModel")); String targetField = "targetField"; DataField dataField = new DataField(); - dataField.setName(FieldName.create(targetField)); + dataField.setName(targetField); dataField.setOpType(OpType.CATEGORICAL); DataDictionary dataDictionary = new DataDictionary(); dataDictionary.addDataFields(dataField); @@ -192,7 +191,7 @@ void getRegressionTableBuilders() { regressionModel.setModelName(getGeneratedClassName("RegressionModel")); String targetField = "targetField"; DataField dataField = new DataField(); - dataField.setName(FieldName.create(targetField)); + dataField.setName(targetField); dataField.setOpType(OpType.CATEGORICAL); DataDictionary dataDictionary = new DataDictionary(); dataDictionary.addDataFields(dataField); @@ -231,7 +230,7 @@ void getRegressionTableBuilder() { regressionModel.setModelName(getGeneratedClassName("RegressionModel")); String targetField = "targetField"; DataField dataField = new DataField(); - dataField.setName(FieldName.create(targetField)); + dataField.setName(targetField); dataField.setOpType(OpType.CATEGORICAL); DataDictionary dataDictionary = new DataDictionary(); dataDictionary.addDataFields(dataField); @@ -316,7 +315,7 @@ void getCategoricalPredictorsMap() { Map> retrieved = KiePMMLRegressionTableFactory.getCategoricalPredictorsMap(categoricalPredictors); final Map> groupedCollectors = categoricalPredictors.stream() - .collect(groupingBy(categoricalPredictor -> categoricalPredictor.getField().getValue())); + .collect(groupingBy(categoricalPredictor ->categoricalPredictor.getField())); assertThat(retrieved).hasSameSizeAs(groupedCollectors); groupedCollectors.keySet().forEach(predictName -> assertThat(retrieved).containsKey(predictName)); } @@ -355,7 +354,7 @@ void getPredictorTermsMap() { assertThat(retrieved).hasSameSizeAs(predictorTerms); IntStream.range(0, predictorTerms.size()).forEach(index -> { PredictorTerm predictorTerm = predictorTerms.get(index); - assertThat(retrieved).containsKey(predictorTerm.getName().getValue()); + assertThat(retrieved).containsKey(predictorTerm.getName()); }); } @@ -392,7 +391,7 @@ void setStaticGetter() throws IOException { regressionModel.setModelName(getGeneratedClassName("RegressionModel")); String targetField = "targetField"; DataField dataField = new DataField(); - dataField.setName(FieldName.create(targetField)); + dataField.setName(targetField); dataField.setOpType(OpType.CATEGORICAL); DataDictionary dataDictionary = new DataDictionary(); dataDictionary.addDataFields(dataField); @@ -531,7 +530,7 @@ void getCategoricalPredictorsExpressions() { "variableName"); assertThat(retrieved).hasSize(3); final Map> groupedCollectors = categoricalPredictors.stream() - .collect(groupingBy(categoricalPredictor -> categoricalPredictor.getField().getValue())); + .collect(groupingBy(categoricalPredictor ->categoricalPredictor.getField())); groupedCollectors.values().forEach(categoricalPredictors12 -> commonEvaluateCategoryPredictors(body, categoricalPredictors12, "variableName")); @@ -586,7 +585,7 @@ void getPredictorTermFunctions() { assertThat(retrieved).hasSameSizeAs(predictorTerms); IntStream.range(0, predictorTerms.size()).forEach(index -> { PredictorTerm predictorTerm = predictorTerms.get(index); - assertThat(retrieved).containsKey(predictorTerm.getName().getValue()); + assertThat(retrieved).containsKey(predictorTerm.getName()); }); } @@ -607,17 +606,17 @@ void getPredictorTermFunction() throws IOException { private void commonEvaluateRegressionTable(KiePMMLRegressionTable retrieved, RegressionTable source) { Map> numericFunctionMap = retrieved.getNumericFunctionMap(); assertThat(numericFunctionMap).hasSameSizeAs(source.getNumericPredictors()); - source.getNumericPredictors().forEach(numericPredictor -> assertThat(numericFunctionMap).containsKey(numericPredictor.getName().getValue())); + source.getNumericPredictors().forEach(numericPredictor -> assertThat(numericFunctionMap).containsKey(numericPredictor.getField())); Map> categoricalFunctionMap = retrieved.getCategoricalFunctionMap(); Map> groupedCollectors = categoricalPredictors.stream() - .collect(groupingBy(categoricalPredictor -> categoricalPredictor.getField().getValue())); + .collect(groupingBy(categoricalPredictor ->categoricalPredictor.getField())); assertThat(categoricalFunctionMap).hasSameSizeAs(groupedCollectors); groupedCollectors.keySet().forEach(categorical -> assertThat(categoricalFunctionMap).containsKey(categorical)); Map, Double>> predictorTermsFunctionMap = retrieved.getPredictorTermsFunctionMap(); assertThat(predictorTermsFunctionMap).hasSameSizeAs(source.getPredictorTerms()); - source.getPredictorTerms().forEach(predictorTerm -> assertThat(predictorTermsFunctionMap).containsKey(predictorTerm.getName().getValue())); + source.getPredictorTerms().forEach(predictorTerm -> assertThat(predictorTermsFunctionMap).containsKey(predictorTerm.getName())); } private void commonEvaluateCategoryPredictors(final BlockStmt toVerify, diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-evaluator/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-evaluator/pom.xml index fceb816f330..89a6cd1697a 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-evaluator/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-evaluator/pom.xml @@ -5,7 +5,7 @@ org.kie kie-pmml-models-regression - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/pom.xml index 48e4564984f..0b96c1bf113 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/pom.xml @@ -5,7 +5,7 @@ org.kie kie-pmml-models-regression - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/pom.xml index 35483a4df2c..d9117908d86 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/pom.xml @@ -5,7 +5,7 @@ org.kie kie-pmml-models-regression - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/pom.xml index d77d0dff2de..70843125166 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/pom.xml @@ -5,7 +5,7 @@ org.kie kie-pmml-models - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 pom diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/pom.xml index ba5953ee6b2..4e32e130719 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-scorecard - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLComplexPartialScoreFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLComplexPartialScoreFactoryTest.java index f39bd5ffe90..e9f3daa345e 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLComplexPartialScoreFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLComplexPartialScoreFactoryTest.java @@ -24,7 +24,6 @@ import com.github.javaparser.ast.stmt.Statement; import org.dmg.pmml.Apply; import org.dmg.pmml.Constant; -import org.dmg.pmml.FieldName; import org.dmg.pmml.FieldRef; import org.dmg.pmml.scorecard.ComplexPartialScore; import org.junit.jupiter.api.Test; @@ -69,14 +68,14 @@ void getComplexPartialScoreVariableDeclaration() throws IOException { void getComplexPartialScoreVariableDeclarationWithFieldRef() throws IOException { final String variableName = "variableName"; FieldRef fieldRef = new FieldRef(); - fieldRef.setField(FieldName.create("FIELD_REF")); + fieldRef.setField("FIELD_REF"); ComplexPartialScore complexPartialScore = new ComplexPartialScore(); complexPartialScore.setExpression(fieldRef); BlockStmt retrieved = KiePMMLComplexPartialScoreFactory.getComplexPartialScoreVariableDeclaration(variableName, complexPartialScore); String text = getFileContent(TEST_02_SOURCE); - Statement expected = JavaParserUtils.parseBlock(String.format(text, fieldRef.getField().getValue(), + Statement expected = JavaParserUtils.parseBlock(String.format(text,fieldRef.getField(), variableName)); assertThat(retrieved).isEqualTo(expected); List> imports = Arrays.asList(KiePMMLFieldRef.class, @@ -91,7 +90,7 @@ void getComplexPartialScoreVariableDeclarationWithApply() throws IOException { Constant constant = new Constant(); constant.setValue(value1); FieldRef fieldRef = new FieldRef(); - fieldRef.setField(FieldName.create("FIELD_REF")); + fieldRef.setField("FIELD_REF"); Apply apply = new Apply(); apply.setFunction("/"); apply.addExpressions(constant, fieldRef); @@ -102,8 +101,7 @@ void getComplexPartialScoreVariableDeclarationWithApply() throws IOException { complexPartialScore); String text = getFileContent(TEST_03_SOURCE); Statement expected = JavaParserUtils.parseBlock(String.format(text, - constant.getValue(), - fieldRef.getField().getValue(), + constant.getValue(),fieldRef.getField(), apply.getFunction(), apply.getInvalidValueTreatment().value(), variableName)); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-evaluator/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-evaluator/pom.xml index e1e34996161..5869239b4ce 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-evaluator/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-evaluator/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-scorecard - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/pom.xml index 68acf9ce103..7130cb38c8c 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-scorecard - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/pom.xml index 2844f703e84..831c52b76b9 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-scorecard - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/pom.xml index 75839d1089f..fbb61f40535 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 pom diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tests/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tests/pom.xml index 8b5a2f306fc..10957febaf0 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tests/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tests/pom.xml @@ -5,7 +5,7 @@ kie-pmml-models org.kie - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/pom.xml index b38c9bad724..872b9c09f24 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-tree - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-evaluator/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-evaluator/pom.xml index 0118a578d57..1069413d548 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-evaluator/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-evaluator/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-tree - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/pom.xml index 4433cc63428..d280c1566de 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-tree - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/pom.xml index 1714e142879..f579c8dccd9 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models-tree - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/pom.xml index 67da6961b98..20ba2d9c5ad 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-models - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 pom diff --git a/kie-pmml-trusty/kie-pmml-models/pom.xml b/kie-pmml-trusty/kie-pmml-models/pom.xml index 941539b71e4..6be50ce5d45 100644 --- a/kie-pmml-trusty/kie-pmml-models/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/pom.xml @@ -3,7 +3,7 @@ org.kie kie-pmml-trusty - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/pom.xml b/kie-pmml-trusty/pom.xml index 43e47132662..9d65a1336f5 100644 --- a/kie-pmml-trusty/pom.xml +++ b/kie-pmml-trusty/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/kie-test-util/pom.xml b/kie-test-util/pom.xml index 722d6499336..d0f93447d70 100644 --- a/kie-test-util/pom.xml +++ b/kie-test-util/pom.xml @@ -5,7 +5,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/kie-test-util/src/main/java/org/kie/test/util/db/PersistenceUtil.java b/kie-test-util/src/main/java/org/kie/test/util/db/PersistenceUtil.java index ed1536f0563..b939672ad08 100644 --- a/kie-test-util/src/main/java/org/kie/test/util/db/PersistenceUtil.java +++ b/kie-test-util/src/main/java/org/kie/test/util/db/PersistenceUtil.java @@ -22,8 +22,8 @@ import java.util.Map; import java.util.Properties; -import javax.persistence.EntityManagerFactory; -import javax.persistence.Persistence; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.Persistence; import org.h2.tools.DeleteDbFiles; import org.h2.tools.Server; diff --git a/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceFactory.java b/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceFactory.java index eee5f49aede..7bb32d63117 100644 --- a/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceFactory.java +++ b/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceFactory.java @@ -26,8 +26,8 @@ import javax.sql.DataSource; import javax.sql.XAConnection; import javax.sql.XADataSource; -import javax.transaction.TransactionManager; -import javax.transaction.TransactionSynchronizationRegistry; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.TransactionSynchronizationRegistry; import javax.transaction.xa.XAResource; import com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule; diff --git a/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceWrapperImpl.java b/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceWrapperImpl.java index 1a396881d89..3e2b39fd964 100755 --- a/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceWrapperImpl.java +++ b/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceWrapperImpl.java @@ -27,8 +27,8 @@ import javax.naming.InitialContext; import javax.naming.NamingException; import javax.sql.XADataSource; -import javax.transaction.TransactionManager; -import javax.transaction.TransactionSynchronizationRegistry; +import jakarta.transaction.TransactionManager; +import jakarta.transaction.TransactionSynchronizationRegistry; import com.arjuna.ats.jta.common.jtaPropertyManager; import org.apache.tomcat.dbcp.dbcp2.managed.BasicManagedDataSource; diff --git a/kie-util/kie-util-maven-integration/pom.xml b/kie-util/kie-util-maven-integration/pom.xml index e803b0780fe..88b32ad88ee 100644 --- a/kie-util/kie-util-maven-integration/pom.xml +++ b/kie-util/kie-util-maven-integration/pom.xml @@ -5,7 +5,7 @@ org.kie kie-util - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-util/kie-util-maven-support/pom.xml b/kie-util/kie-util-maven-support/pom.xml index 02048eeb38a..69412173bd0 100644 --- a/kie-util/kie-util-maven-support/pom.xml +++ b/kie-util/kie-util-maven-support/pom.xml @@ -5,7 +5,7 @@ org.kie kie-util - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-util/kie-util-xml/pom.xml b/kie-util/kie-util-xml/pom.xml index 8505b45ff48..07a58798a33 100644 --- a/kie-util/kie-util-xml/pom.xml +++ b/kie-util/kie-util-xml/pom.xml @@ -5,7 +5,7 @@ org.kie kie-util - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT 4.0.0 diff --git a/kie-util/pom.xml b/kie-util/pom.xml index 99d8e995f87..f6cbda7afa6 100644 --- a/kie-util/pom.xml +++ b/kie-util/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT ../build-parent/pom.xml diff --git a/pom.xml b/pom.xml index 5e66ac13c5e..d485524e377 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ org.kie drools-parent pom - 8.44.0-SNAPSHOT + 9.44.0-SNAPSHOT Drools :: Parent