diff --git a/.gitignore b/.gitignore index 68b72bd88f..3e73adc7da 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + node_modules/ dist/ dist-it/ diff --git a/.husky/.gitignore b/.husky/.gitignore index 31354ec138..f01d8c864e 100644 --- a/.husky/.gitignore +++ b/.husky/.gitignore @@ -1 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + _ diff --git a/DISCLAIMER b/DISCLAIMER new file mode 100644 index 0000000000..b0e2c6b2c3 --- /dev/null +++ b/DISCLAIMER @@ -0,0 +1,24 @@ +Apache KIE (incubating) is an effort undergoing incubation at The Apache Software +Foundation (ASF), sponsored by the name of Apache Incubator. Incubation is +required of all newly accepted projects until a further review indicates that +the infrastructure, communications, and decision making process have stabilized +in a manner consistent with other successful ASF projects. While incubation +status is not necessarily a reflection of the completeness or stability of the +code, it does indicate that the project has yet to be fully endorsed by the ASF. + +Some of the incubating project’s releases may not be fully compliant with ASF +policy. For example, releases may have incomplete or un-reviewed licensing +conditions. What follows is a list of known issues the project is currently +aware of (note that this list, by definition, is likely to be incomplete): + +* Hibernate, an LGPL project, is being used. Hibernate is in the process of + relicensing to ASL v2 +* Some files, particularly test files, and those not supporting comments, may + be missing the ASF Licensing Header + +If you are planning to incorporate this work into your product/project, please +be aware that you will need to conduct a thorough licensing review to determine +the overall implications of including this work. For the current status of this +project through the Apache Incubator visit: +https://incubator.apache.org/projects/kie.html + diff --git a/Makefile b/Makefile index 82c3e585bc..4bb7ceb737 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + mvn_opts= mvn_cmd=mvn $(mvn_opts) diff --git a/README.md b/README.md index 45cf6629c2..23655384e6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,21 @@ + # Kogito Apps ## Contributing to Kogito diff --git a/apps-integration-tests/integration-tests-data-index-service/integration-tests-data-index-service-quarkus/.gitignore b/apps-integration-tests/integration-tests-data-index-service/integration-tests-data-index-service-quarkus/.gitignore index 7407c43307..e4c482fe2f 100644 --- a/apps-integration-tests/integration-tests-data-index-service/integration-tests-data-index-service-quarkus/.gitignore +++ b/apps-integration-tests/integration-tests-data-index-service/integration-tests-data-index-service-quarkus/.gitignore @@ -1,2 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + src/main/resources/**/*.bpmn src/main/resources/*.sql \ No newline at end of file diff --git a/apps-integration-tests/integration-tests-data-index-service/integration-tests-data-index-service-springboot/.gitignore b/apps-integration-tests/integration-tests-data-index-service/integration-tests-data-index-service-springboot/.gitignore index c990f78158..27e5bc0483 100644 --- a/apps-integration-tests/integration-tests-data-index-service/integration-tests-data-index-service-springboot/.gitignore +++ b/apps-integration-tests/integration-tests-data-index-service/integration-tests-data-index-service-springboot/.gitignore @@ -1,2 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + src/main/resources/**/*.bpmn src/main/resources/*create.sql \ No newline at end of file diff --git a/apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-springboot/.gitignore b/apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-springboot/.gitignore index d20440f9af..76298e6003 100644 --- a/apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-springboot/.gitignore +++ b/apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-springboot/.gitignore @@ -1 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + src/main/resources/**/*.bpmn \ No newline at end of file diff --git a/apps-integration-tests/integration-tests-trusty-service/integration-tests-trusty-service-quarkus/.gitignore b/apps-integration-tests/integration-tests-trusty-service/integration-tests-trusty-service-quarkus/.gitignore index ef2ccafe39..2109313e7a 100644 --- a/apps-integration-tests/integration-tests-trusty-service/integration-tests-trusty-service-quarkus/.gitignore +++ b/apps-integration-tests/integration-tests-trusty-service/integration-tests-trusty-service-quarkus/.gitignore @@ -1 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + src/main/resources/**/*.dmn diff --git a/apps-integration-tests/integration-tests-trusty-service/integration-tests-trusty-service-springboot/.gitignore b/apps-integration-tests/integration-tests-trusty-service/integration-tests-trusty-service-springboot/.gitignore index ef2ccafe39..2109313e7a 100644 --- a/apps-integration-tests/integration-tests-trusty-service/integration-tests-trusty-service-springboot/.gitignore +++ b/apps-integration-tests/integration-tests-trusty-service/integration-tests-trusty-service-springboot/.gitignore @@ -1 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + src/main/resources/**/*.dmn diff --git a/apps-integration-tests/integration-tests-trusty-service/pom.xml b/apps-integration-tests/integration-tests-trusty-service/pom.xml index f93c8547db..1e37863467 100644 --- a/apps-integration-tests/integration-tests-trusty-service/pom.xml +++ b/apps-integration-tests/integration-tests-trusty-service/pom.xml @@ -32,7 +32,6 @@ integration-tests-trusty-service-common - integration-tests-trusty-service-quarkus integration-tests-trusty-service-springboot diff --git a/data-audit/README.md b/data-audit/README.md index 4e323cb9f8..61c4896b5e 100644 --- a/data-audit/README.md +++ b/data-audit/README.md @@ -1,3 +1,21 @@ + ### Data Audit subsystem This is the implementation of the Kogito Audit subystem. The subsystem allows to store events from issued by diff --git a/data-audit/data-audit-common-service/pom.xml b/data-audit/data-audit-common-service/pom.xml index daec96c6fc..e6ce549b52 100644 --- a/data-audit/data-audit-common-service/pom.xml +++ b/data-audit/data-audit-common-service/pom.xml @@ -1,4 +1,23 @@ + + diff --git a/data-audit/data-audit-common/pom.xml b/data-audit/data-audit-common/pom.xml index a00c3f81d5..8de29f3ac1 100644 --- a/data-audit/data-audit-common/pom.xml +++ b/data-audit/data-audit-common/pom.xml @@ -1,4 +1,23 @@ + + diff --git a/data-audit/data-audit-quarkus-service/pom.xml b/data-audit/data-audit-quarkus-service/pom.xml index 2744fd74b2..0bb9f683cf 100644 --- a/data-audit/data-audit-quarkus-service/pom.xml +++ b/data-audit/data-audit-quarkus-service/pom.xml @@ -1,4 +1,23 @@ + + diff --git a/data-audit/data-audit-quarkus-service/src/main/resources/META-INF/beans.xml b/data-audit/data-audit-quarkus-service/src/main/resources/META-INF/beans.xml index e69de29bb2..ffaca20bd4 100644 --- a/data-audit/data-audit-quarkus-service/src/main/resources/META-INF/beans.xml +++ b/data-audit/data-audit-quarkus-service/src/main/resources/META-INF/beans.xml @@ -0,0 +1,19 @@ + + diff --git a/data-audit/data-audit-quarkus-service/src/main/resources/application.properties b/data-audit/data-audit-quarkus-service/src/main/resources/application.properties index c674b7830a..1437ad2bc4 100644 --- a/data-audit/data-audit-quarkus-service/src/main/resources/application.properties +++ b/data-audit/data-audit-quarkus-service/src/main/resources/application.properties @@ -1 +1,20 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + kafka.bootstrap.servers=${QUARKUS_KAFKA_URL:localhost:9092} \ No newline at end of file diff --git a/data-audit/kogito-addons-data-audit-jpa/data-audit-quarkus-jpa-service/pom.xml b/data-audit/kogito-addons-data-audit-jpa/data-audit-quarkus-jpa-service/pom.xml index 4bc72e655f..4be041bda6 100644 --- a/data-audit/kogito-addons-data-audit-jpa/data-audit-quarkus-jpa-service/pom.xml +++ b/data-audit/kogito-addons-data-audit-jpa/data-audit-quarkus-jpa-service/pom.xml @@ -1,4 +1,23 @@ + + diff --git a/data-audit/kogito-addons-data-audit-jpa/data-audit-quarkus-jpa-service/src/main/resources/META-INF/beans.xml b/data-audit/kogito-addons-data-audit-jpa/data-audit-quarkus-jpa-service/src/main/resources/META-INF/beans.xml index e69de29bb2..ffaca20bd4 100644 --- a/data-audit/kogito-addons-data-audit-jpa/data-audit-quarkus-jpa-service/src/main/resources/META-INF/beans.xml +++ b/data-audit/kogito-addons-data-audit-jpa/data-audit-quarkus-jpa-service/src/main/resources/META-INF/beans.xml @@ -0,0 +1,19 @@ + + diff --git a/data-audit/kogito-addons-data-audit-jpa/data-audit-quarkus-jpa-service/src/main/resources/application.properties b/data-audit/kogito-addons-data-audit-jpa/data-audit-quarkus-jpa-service/src/main/resources/application.properties index fac5a15376..7d0ab4ca20 100644 --- a/data-audit/kogito-addons-data-audit-jpa/data-audit-quarkus-jpa-service/src/main/resources/application.properties +++ b/data-audit/kogito-addons-data-audit-jpa/data-audit-quarkus-jpa-service/src/main/resources/application.properties @@ -1,3 +1,22 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + # build multiple images %h2.quarkus.datasource.db-kind=h2 diff --git a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/pom.xml b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/pom.xml index 66545078e5..86147093da 100644 --- a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/pom.xml +++ b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/pom.xml @@ -1,4 +1,23 @@ + + diff --git a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/META-INF/beans.xml b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/META-INF/beans.xml index e69de29bb2..ffaca20bd4 100644 --- a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/META-INF/beans.xml +++ b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/META-INF/beans.xml @@ -0,0 +1,19 @@ + + diff --git a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/h2/V1.0.0__CREATE DATA AUDIT SCHEMA.sql b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/h2/V1.0.0__CREATE DATA AUDIT SCHEMA.sql index c4b13ac8d6..1b10c462bb 100644 --- a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/h2/V1.0.0__CREATE DATA AUDIT SCHEMA.sql +++ b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/h2/V1.0.0__CREATE DATA AUDIT SCHEMA.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + create sequence JOB_EXECUTION_HISTORY_ID_SEQ start with 1 increment by 50; create sequence PROCESS_INSTANCE_ERROR_LOG_SEQ_ID start with 1 increment by 50; create sequence PROCESS_INSTANCE_NODE_LOG_ID_SEQ start with 1 increment by 50; diff --git a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/h2/V1.1.0__Add Query audit dynamic registering.sql b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/h2/V1.1.0__Add Query audit dynamic registering.sql index 2c5e2da7e4..8040ff31e6 100644 --- a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/h2/V1.1.0__Add Query audit dynamic registering.sql +++ b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/h2/V1.1.0__Add Query audit dynamic registering.sql @@ -1,2 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + create table Audit_Query (identifier varchar(255) not null, graph_ql_definition varchar(5000), query varchar(5000), primary key (identifier)); diff --git a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/h2/V1.2.0__Add migration event type.sql b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/h2/V1.2.0__Add migration event type.sql index 17b5a8cdeb..ab03b7bd5b 100644 --- a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/h2/V1.2.0__Add migration event type.sql +++ b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/h2/V1.2.0__Add migration event type.sql @@ -1,2 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + ALTER TABLE Process_Instance_State_Log DROP CONSTRAINT Process_Instance_State_Log_event_type_check; ALTER TABLE Process_Instance_State_Log ADD CONSTRAINT Process_Instance_State_Log_event_type_check CHECK (event_type IN ( 'ACTIVE','COMPLETED','SLA_VIOLATION', 'MIGRATED' )); \ No newline at end of file diff --git a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/postgresql/V1.0.0__CREATE DATA AUDIT SCHEMA.sql b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/postgresql/V1.0.0__CREATE DATA AUDIT SCHEMA.sql index c4b13ac8d6..1b10c462bb 100644 --- a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/postgresql/V1.0.0__CREATE DATA AUDIT SCHEMA.sql +++ b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/postgresql/V1.0.0__CREATE DATA AUDIT SCHEMA.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + create sequence JOB_EXECUTION_HISTORY_ID_SEQ start with 1 increment by 50; create sequence PROCESS_INSTANCE_ERROR_LOG_SEQ_ID start with 1 increment by 50; create sequence PROCESS_INSTANCE_NODE_LOG_ID_SEQ start with 1 increment by 50; diff --git a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/postgresql/V1.1.0__Add Query audit dynamic registering.sql b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/postgresql/V1.1.0__Add Query audit dynamic registering.sql index 2c5e2da7e4..8040ff31e6 100644 --- a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/postgresql/V1.1.0__Add Query audit dynamic registering.sql +++ b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/postgresql/V1.1.0__Add Query audit dynamic registering.sql @@ -1,2 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + create table Audit_Query (identifier varchar(255) not null, graph_ql_definition varchar(5000), query varchar(5000), primary key (identifier)); diff --git a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/postgresql/V1.2.0__Add migration event type.sql b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/postgresql/V1.2.0__Add migration event type.sql index 17b5a8cdeb..ab03b7bd5b 100644 --- a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/postgresql/V1.2.0__Add migration event type.sql +++ b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/db/data-audit/postgresql/V1.2.0__Add migration event type.sql @@ -1,2 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + ALTER TABLE Process_Instance_State_Log DROP CONSTRAINT Process_Instance_State_Log_event_type_check; ALTER TABLE Process_Instance_State_Log ADD CONSTRAINT Process_Instance_State_Log_event_type_check CHECK (event_type IN ( 'ACTIVE','COMPLETED','SLA_VIOLATION', 'MIGRATED' )); \ No newline at end of file diff --git a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-quarkus/pom.xml b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-quarkus/pom.xml index 399b092b3d..4da48bab49 100644 --- a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-quarkus/pom.xml +++ b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-quarkus/pom.xml @@ -1,4 +1,23 @@ + + diff --git a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-quarkus/src/main/resources/META-INF/beans.xml b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-quarkus/src/main/resources/META-INF/beans.xml index e69de29bb2..ffaca20bd4 100644 --- a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-quarkus/src/main/resources/META-INF/beans.xml +++ b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-quarkus/src/main/resources/META-INF/beans.xml @@ -0,0 +1,19 @@ + + diff --git a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-quarkus/src/main/resources/application.properties b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-quarkus/src/main/resources/application.properties index b60de7d417..a68e813e41 100644 --- a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-quarkus/src/main/resources/application.properties +++ b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-quarkus/src/main/resources/application.properties @@ -1,3 +1,22 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + #quarkus.hibernate-orm.DataAuditPU.packages=org.kie.kogito.app.audit.jpa.model #quarkus.hibernate-orm.DataAuditPU.mapping-files=META-INF/entity-orm.xml,META-INF/job-orm.xml,META-INF/process-orm.xml,META-INF/usertask-orm.xml #quarkus.hibernate-orm.DataAuditPU.datasource=data-audit \ No newline at end of file diff --git a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-springboot/pom.xml b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-springboot/pom.xml index 111ab46888..9b4a0f207c 100644 --- a/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-springboot/pom.xml +++ b/data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-springboot/pom.xml @@ -1,4 +1,23 @@ + + diff --git a/data-audit/kogito-addons-data-audit-jpa/pom.xml b/data-audit/kogito-addons-data-audit-jpa/pom.xml index 8e9a5fb802..ef8aeb45d9 100644 --- a/data-audit/kogito-addons-data-audit-jpa/pom.xml +++ b/data-audit/kogito-addons-data-audit-jpa/pom.xml @@ -1,4 +1,23 @@ + + diff --git a/data-audit/kogito-addons-data-audit-quarkus/pom.xml b/data-audit/kogito-addons-data-audit-quarkus/pom.xml index 4bebd27896..ad15cbe284 100644 --- a/data-audit/kogito-addons-data-audit-quarkus/pom.xml +++ b/data-audit/kogito-addons-data-audit-quarkus/pom.xml @@ -1,4 +1,23 @@ + + diff --git a/data-audit/kogito-addons-data-audit-quarkus/src/main/resources/META-INF/beans.xml b/data-audit/kogito-addons-data-audit-quarkus/src/main/resources/META-INF/beans.xml index e69de29bb2..ffaca20bd4 100644 --- a/data-audit/kogito-addons-data-audit-quarkus/src/main/resources/META-INF/beans.xml +++ b/data-audit/kogito-addons-data-audit-quarkus/src/main/resources/META-INF/beans.xml @@ -0,0 +1,19 @@ + + diff --git a/data-audit/kogito-addons-data-audit-quarkus/src/test/resources/application.properties b/data-audit/kogito-addons-data-audit-quarkus/src/test/resources/application.properties index 24a1f9d8fb..12b0b3d216 100644 --- a/data-audit/kogito-addons-data-audit-quarkus/src/test/resources/application.properties +++ b/data-audit/kogito-addons-data-audit-quarkus/src/test/resources/application.properties @@ -1,3 +1,22 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + quarkus.datasource.db-kind=h2 quarkus.datasource.username=hibernate quarkus.datasource.password=hibernate diff --git a/data-audit/kogito-addons-data-audit-springboot/pom.xml b/data-audit/kogito-addons-data-audit-springboot/pom.xml index 762fad23c2..b999ab7dc0 100644 --- a/data-audit/kogito-addons-data-audit-springboot/pom.xml +++ b/data-audit/kogito-addons-data-audit-springboot/pom.xml @@ -1,4 +1,23 @@ + + diff --git a/data-audit/pom.xml b/data-audit/pom.xml index 103a871d43..b9ed553cf4 100644 --- a/data-audit/pom.xml +++ b/data-audit/pom.xml @@ -1,4 +1,23 @@ + + diff --git a/data-index/README.md b/data-index/README.md index e555ede1a8..c4b75817ae 100644 --- a/data-index/README.md +++ b/data-index/README.md @@ -1,3 +1,21 @@ + # Kogito Data Index Service Data Index is a subsystem/component responsible to store a snapshot of the last state of the process instance state. diff --git a/data-index/data-index-service/data-index-service-common/src/main/docker/Dockerfile.jvm b/data-index/data-index-service/data-index-service-common/src/main/docker/Dockerfile.jvm index fa97e4b117..749a842ad0 100644 --- a/data-index/data-index-service/data-index-service-common/src/main/docker/Dockerfile.jvm +++ b/data-index/data-index-service/data-index-service-common/src/main/docker/Dockerfile.jvm @@ -1,3 +1,21 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# #### # This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode # diff --git a/data-index/data-index-service/data-index-service-common/src/main/docker/Dockerfile.native b/data-index/data-index-service/data-index-service-common/src/main/docker/Dockerfile.native index 426c99b81a..fea0c11451 100644 --- a/data-index/data-index-service/data-index-service-common/src/main/docker/Dockerfile.native +++ b/data-index/data-index-service/data-index-service-common/src/main/docker/Dockerfile.native @@ -1,3 +1,21 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# #### # This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode # diff --git a/data-index/data-index-service/data-index-service-common/src/test/resources/books.proto b/data-index/data-index-service/data-index-service-common/src/test/resources/books.proto index 9e5b626d16..1c1731a5e6 100644 --- a/data-index/data-index-service/data-index-service-common/src/test/resources/books.proto +++ b/data-index/data-index-service/data-index-service-common/src/test/resources/books.proto @@ -1,4 +1,22 @@ -syntax = "proto2"; +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +syntax = "proto2"; package org.acme.books; import "kogito-index.proto"; import "kogito-types.proto"; diff --git a/data-index/data-index-service/data-index-service-common/src/test/resources/visaApplications.proto b/data-index/data-index-service/data-index-service-common/src/test/resources/visaApplications.proto index b9a31b055a..b6ab191392 100644 --- a/data-index/data-index-service/data-index-service-common/src/test/resources/visaApplications.proto +++ b/data-index/data-index-service/data-index-service-common/src/test/resources/visaApplications.proto @@ -1,3 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ syntax = "proto2"; package org.acme.travels.visaApplications; import "kogito-index.proto"; diff --git a/data-index/data-index-service/data-index-service-mongodb/README.md b/data-index/data-index-service/data-index-service-mongodb/README.md index 16be71cfb7..12b58a20b7 100644 --- a/data-index/data-index-service/data-index-service-mongodb/README.md +++ b/data-index/data-index-service/data-index-service-mongodb/README.md @@ -1,3 +1,21 @@ + To use MongoDB as storage for data index service in Quarkus dev mode: 1. MongoDB application properties in the `application.properties` of data index service: ``` diff --git a/data-index/data-index-service/data-index-service-mongodb/src/test/resources/deals-mongo.proto b/data-index/data-index-service/data-index-service-mongodb/src/test/resources/deals-mongo.proto index 7cb97e4bcd..e3417a8849 100644 --- a/data-index/data-index-service/data-index-service-mongodb/src/test/resources/deals-mongo.proto +++ b/data-index/data-index-service/data-index-service-mongodb/src/test/resources/deals-mongo.proto @@ -1,3 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ syntax = "proto2"; package org.acme.deals; import "kogito-index.proto"; diff --git a/data-index/data-index-service/data-index-service-mongodb/src/test/resources/travels-mongo.proto b/data-index/data-index-service/data-index-service-mongodb/src/test/resources/travels-mongo.proto index 3c301726e9..5465eea152 100644 --- a/data-index/data-index-service/data-index-service-mongodb/src/test/resources/travels-mongo.proto +++ b/data-index/data-index-service/data-index-service-mongodb/src/test/resources/travels-mongo.proto @@ -1,3 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ syntax = "proto2"; package org.acme.travels.travels; import "kogito-index.proto"; diff --git a/data-index/data-index-storage/data-index-storage-common/src/test/java/org/kie/kogito/index/event/mapper/ProcessInstanceNodeDataEventMergerTest.java b/data-index/data-index-storage/data-index-storage-common/src/test/java/org/kie/kogito/index/event/mapper/ProcessInstanceNodeDataEventMergerTest.java index 16a038fcf8..fc31fa77ba 100644 --- a/data-index/data-index-storage/data-index-storage-common/src/test/java/org/kie/kogito/index/event/mapper/ProcessInstanceNodeDataEventMergerTest.java +++ b/data-index/data-index-storage/data-index-storage-common/src/test/java/org/kie/kogito/index/event/mapper/ProcessInstanceNodeDataEventMergerTest.java @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + package org.kie.kogito.index.event.mapper; import java.time.ZonedDateTime; diff --git a/data-index/data-index-storage/data-index-storage-common/src/test/java/org/kie/kogito/index/storage/ModelDataIndexStorageServiceTest.java b/data-index/data-index-storage/data-index-storage-common/src/test/java/org/kie/kogito/index/storage/ModelDataIndexStorageServiceTest.java index 64ab4b0d74..58a9e3e068 100644 --- a/data-index/data-index-storage/data-index-storage-common/src/test/java/org/kie/kogito/index/storage/ModelDataIndexStorageServiceTest.java +++ b/data-index/data-index-storage/data-index-storage-common/src/test/java/org/kie/kogito/index/storage/ModelDataIndexStorageServiceTest.java @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + package org.kie.kogito.index.storage; import java.util.HashSet; diff --git a/data-index/data-index-storage/data-index-storage-infinispan/src/main/java/org/kie/kogito/index/model/Entry.java b/data-index/data-index-storage/data-index-storage-infinispan/src/main/java/org/kie/kogito/index/model/Entry.java index c13c40daac..2e3dcee8a5 100644 --- a/data-index/data-index-storage/data-index-storage-infinispan/src/main/java/org/kie/kogito/index/model/Entry.java +++ b/data-index/data-index-storage/data-index-storage-infinispan/src/main/java/org/kie/kogito/index/model/Entry.java @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + package org.kie.kogito.index.model; import java.util.Objects; diff --git a/data-index/data-index-storage/data-index-storage-infinispan/src/test/resources/test.proto b/data-index/data-index-storage/data-index-storage-infinispan/src/test/resources/test.proto index 93f2d9d42e..01c684bd80 100644 --- a/data-index/data-index-storage/data-index-storage-infinispan/src/test/resources/test.proto +++ b/data-index/data-index-storage/data-index-storage-infinispan/src/test/resources/test.proto @@ -1,3 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ syntax = "proto2"; package org.acme.deals; import "kogito-index.proto"; diff --git a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.33.0__data_index_create.sql b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.33.0__data_index_create.sql index 4d76d3d1d3..5d315351da 100644 --- a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.33.0__data_index_create.sql +++ b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.33.0__data_index_create.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + create table attachments ( id varchar(255) not null, diff --git a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.44.0__data_index_definitions.sql b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.44.0__data_index_definitions.sql index 746f02e15a..96b2ec5f08 100644 --- a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.44.0__data_index_definitions.sql +++ b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.44.0__data_index_definitions.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + create table definitions ( id varchar2(255 char) not null, diff --git a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.45.0.0__data_index_node_definitions.sql b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.45.0.0__data_index_node_definitions.sql index a000cc7376..ee98614a4e 100644 --- a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.45.0.0__data_index_node_definitions.sql +++ b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.45.0.0__data_index_node_definitions.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + create table definitions_nodes ( id varchar2(255 char) not null, diff --git a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.45.0.1__add_identity_to_process_instance.sql b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.45.0.1__add_identity_to_process_instance.sql index a37888e041..a794f9740c 100644 --- a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.45.0.1__add_identity_to_process_instance.sql +++ b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.45.0.1__add_identity_to_process_instance.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + ALTER TABLE processes ADD (created_by varchar(255), updated_by varchar(255)); diff --git a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.45.0.2__data_index_definitions_add_collums.sql b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.45.0.2__data_index_definitions_add_collums.sql index d63ca07505..00ec3ce934 100644 --- a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.45.0.2__data_index_definitions_add_collums.sql +++ b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.45.0.2__data_index_definitions_add_collums.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + create table definitions_annotations ( value varchar2(255 char) not null, diff --git a/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.45.0.3__increase_varchar_length.sql b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.45.0.3__increase_varchar_length.sql new file mode 100644 index 0000000000..da08414b00 --- /dev/null +++ b/data-index/data-index-storage/data-index-storage-jpa/src/main/resources/db/migration/V1.45.0.3__increase_varchar_length.sql @@ -0,0 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +alter table processes alter column message character varying(4000) diff --git a/data-index/data-index-storage/data-index-storage-jpa/src/test/resources/application.properties b/data-index/data-index-storage/data-index-storage-jpa/src/test/resources/application.properties index 5cf2dfb3a2..9193b5a235 100644 --- a/data-index/data-index-storage/data-index-storage-jpa/src/test/resources/application.properties +++ b/data-index/data-index-storage/data-index-storage-jpa/src/test/resources/application.properties @@ -27,4 +27,10 @@ quarkus.hibernate-orm.database.generation=create quarkus.hibernate-orm.database.generation.halt-on-error=true quarkus.hibernate-orm.physical-naming-strategy=org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy quarkus.hibernate-orm.jdbc.timezone=UTC -quarkus.hibernate-orm.log.sql=true \ No newline at end of file +quarkus.hibernate-orm.log.sql=true + +# Disabling Security for tests +quarkus.oidc.enabled=false +quarkus.oidc.tenant-enabled=false +quarkus.oidc.auth-server-url=none +quarkus.keycloak.devservices.enabled=false \ No newline at end of file diff --git a/data-index/data-index-storage/data-index-storage-mongodb/src/test/resources/application.properties b/data-index/data-index-storage/data-index-storage-mongodb/src/test/resources/application.properties index ebc31394c1..f65003ecab 100644 --- a/data-index/data-index-storage/data-index-storage-mongodb/src/test/resources/application.properties +++ b/data-index/data-index-storage/data-index-storage-mongodb/src/test/resources/application.properties @@ -31,4 +31,10 @@ quarkus.log.level=INFO # MongoDB quarkus.mongodb.database=kogito quarkus.mongodb.devservices.enabled=false -kogito.apps.persistence.type=mongodb \ No newline at end of file +kogito.apps.persistence.type=mongodb + +# Disabling Security for tests +quarkus.oidc.enabled=false +quarkus.oidc.tenant-enabled=false +quarkus.oidc.auth-server-url=none +quarkus.keycloak.devservices.enabled=false \ No newline at end of file diff --git a/data-index/data-index-storage/data-index-storage-postgresql-reporting/src/test/resources/application.properties b/data-index/data-index-storage/data-index-storage-postgresql-reporting/src/test/resources/application.properties index 8ff5711746..3e88fe838f 100644 --- a/data-index/data-index-storage/data-index-storage-postgresql-reporting/src/test/resources/application.properties +++ b/data-index/data-index-storage/data-index-storage-postgresql-reporting/src/test/resources/application.properties @@ -30,4 +30,10 @@ quarkus.hibernate-orm.database.generation=drop-and-create quarkus.hibernate-orm.database.generation.halt-on-error=true quarkus.hibernate-orm.physical-naming-strategy=org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy quarkus.hibernate-orm.jdbc.timezone=UTC -quarkus.hibernate-orm.log.sql=true \ No newline at end of file +quarkus.hibernate-orm.log.sql=true + +# Disabling Security for tests +quarkus.oidc.enabled=false +quarkus.oidc.tenant-enabled=false +quarkus.oidc.auth-server-url=none +quarkus.keycloak.devservices.enabled=false \ No newline at end of file diff --git a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.32.0__data_index_create.sql b/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.32.0__data_index_create.sql index 5499ecb057..766c25015e 100644 --- a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.32.0__data_index_create.sql +++ b/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.32.0__data_index_create.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + create table IF NOT EXISTS attachments ( id varchar(255) not null, diff --git a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.44.0__data_index_definitions.sql b/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.44.0__data_index_definitions.sql index 6c7937a44e..ae426ac647 100644 --- a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.44.0__data_index_definitions.sql +++ b/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.44.0__data_index_definitions.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + create table IF NOT EXISTS definitions ( id varchar(255) not null, diff --git a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.45.0.0__data_index_node_definitions.sql b/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.45.0.0__data_index_node_definitions.sql index 5332c4946d..2bb6697577 100644 --- a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.45.0.0__data_index_node_definitions.sql +++ b/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.45.0.0__data_index_node_definitions.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + create table IF NOT EXISTS definitions_nodes ( id varchar(255) not null, diff --git a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.45.0.1__add_identity_to_process_instance.sql b/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.45.0.1__add_identity_to_process_instance.sql index dc94cd5caf..9df4d0fc19 100644 --- a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.45.0.1__add_identity_to_process_instance.sql +++ b/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.45.0.1__add_identity_to_process_instance.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + ALTER TABLE IF exists processes ADD COLUMN IF NOT EXISTS created_by character varying, ADD COLUMN IF NOT EXISTS updated_by character varying; \ No newline at end of file diff --git a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.45.0.2__data_index_definitions_add_columns.sql b/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.45.0.2__data_index_definitions_add_columns.sql index 0506531e0c..bcecf49b67 100644 --- a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.45.0.2__data_index_definitions_add_columns.sql +++ b/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.45.0.2__data_index_definitions_add_columns.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + create table IF NOT EXISTS definitions_annotations ( value varchar(255) not null, diff --git a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.45.0.3__add_fk_index.sql b/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.45.0.3__add_fk_index.sql index 72e909ac55..368091ea46 100644 --- a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.45.0.3__add_fk_index.sql +++ b/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.45.0.3__add_fk_index.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + create index if not exists idx_attachments_tid on attachments(task_id); create index if not exists idx_comments_tid on comments(task_id); create index if not exists idx_definitions_addons_pid_pv on definitions_addons(process_id, process_version); diff --git a/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.45.0.4__increase_varchar_length.sql b/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.45.0.4__increase_varchar_length.sql new file mode 100644 index 0000000000..5e05f7441d --- /dev/null +++ b/data-index/data-index-storage/data-index-storage-postgresql/src/main/resources/db/migration/V1.45.0.4__increase_varchar_length.sql @@ -0,0 +1,20 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +alter table if exists processes alter column message type varchar(65535) diff --git a/data-index/data-index-storage/data-index-storage-postgresql/src/test/resources/application.properties b/data-index/data-index-storage/data-index-storage-postgresql/src/test/resources/application.properties index 517ca87684..b5637dfd64 100644 --- a/data-index/data-index-storage/data-index-storage-postgresql/src/test/resources/application.properties +++ b/data-index/data-index-storage/data-index-storage-postgresql/src/test/resources/application.properties @@ -29,4 +29,10 @@ quarkus.hibernate-orm.database.generation=drop-and-create quarkus.hibernate-orm.database.generation.halt-on-error=true quarkus.hibernate-orm.physical-naming-strategy=org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy quarkus.hibernate-orm.jdbc.timezone=UTC -quarkus.hibernate-orm.log.sql=true \ No newline at end of file +quarkus.hibernate-orm.log.sql=true + +# Disabling Security for tests +quarkus.oidc.enabled=false +quarkus.oidc.tenant-enabled=false +quarkus.oidc.auth-server-url=none +quarkus.keycloak.devservices.enabled=false \ No newline at end of file diff --git a/data-index/data-index-storage/data-index-storage-protobuf/src/main/resources/META-INF/kogito-index.proto b/data-index/data-index-storage/data-index-storage-protobuf/src/main/resources/META-INF/kogito-index.proto index a2315f0211..18f01a6014 100644 --- a/data-index/data-index-storage/data-index-storage-protobuf/src/main/resources/META-INF/kogito-index.proto +++ b/data-index/data-index-storage/data-index-storage-protobuf/src/main/resources/META-INF/kogito-index.proto @@ -1,3 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ package org.kie.kogito.index.model; /* @Indexed */ diff --git a/data-index/data-index-test-utils/src/main/resources/deals.proto b/data-index/data-index-test-utils/src/main/resources/deals.proto index aecc3a72ad..0811658162 100644 --- a/data-index/data-index-test-utils/src/main/resources/deals.proto +++ b/data-index/data-index-test-utils/src/main/resources/deals.proto @@ -1,3 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ syntax = "proto2"; package org.acme.deals; import "kogito-index.proto"; diff --git a/data-index/data-index-test-utils/src/main/resources/travels.proto b/data-index/data-index-test-utils/src/main/resources/travels.proto index bf67ae38dd..0fb04a1536 100644 --- a/data-index/data-index-test-utils/src/main/resources/travels.proto +++ b/data-index/data-index-test-utils/src/main/resources/travels.proto @@ -1,4 +1,22 @@ -syntax = "proto2"; +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +syntax = "proto2"; package org.acme.travels.travels; import "kogito-index.proto"; import "kogito-types.proto"; diff --git a/data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-infinispan/runtime/pom.xml b/data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-infinispan/runtime/pom.xml index e967805e02..f39cf266ce 100644 --- a/data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-infinispan/runtime/pom.xml +++ b/data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-infinispan/runtime/pom.xml @@ -58,7 +58,7 @@ ${project.groupId}:${project.artifactId}-deployment:${project.version} - org.kie.kogito.data-index.persistence.infinispan + org.kie.kogito.data-index.persistence diff --git a/data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-mongodb/runtime/pom.xml b/data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-mongodb/runtime/pom.xml index 5c6b565665..bbcd412d64 100644 --- a/data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-mongodb/runtime/pom.xml +++ b/data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-mongodb/runtime/pom.xml @@ -54,7 +54,7 @@ ${project.groupId}:${project.artifactId}-deployment:${project.version} - org.kie.kogito.data-index.persistence.mongodb + org.kie.kogito.data-index.persistence diff --git a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-common/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/AbstractKogitoAddonsQuarkusDataIndexProcessor.java b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-common/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/AbstractKogitoAddonsQuarkusDataIndexProcessor.java index cda0bbdbb6..c6235729b6 100644 --- a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-common/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/AbstractKogitoAddonsQuarkusDataIndexProcessor.java +++ b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-common/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/AbstractKogitoAddonsQuarkusDataIndexProcessor.java @@ -18,6 +18,7 @@ */ package org.kie.kogito.addons.quarkus.data.index.deployment; +import org.eclipse.microprofile.config.ConfigProvider; import org.jboss.jandex.DotName; import org.jboss.jandex.Type; import org.kie.kogito.index.addon.vertx.VertxGraphiQLSetup; @@ -33,16 +34,30 @@ import io.quarkus.deployment.IsDevelopment; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; +import io.quarkus.deployment.builditem.SystemPropertyBuildItem; import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveHierarchyBuildItem; import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; public abstract class AbstractKogitoAddonsQuarkusDataIndexProcessor extends OneOfCapabilityKogitoAddOnProcessor { + private static final String QUARKUS_HTTP_PORT = "quarkus.http.port"; + private static final String KOGITO_SERVICE_URL_PROP = "kogito.service.url"; + private static final String KOGITO_DATA_INDEX_PROP = "kogito.data-index.url"; AbstractKogitoAddonsQuarkusDataIndexProcessor() { super(KogitoCapability.SERVERLESS_WORKFLOW, KogitoCapability.PROCESSES); } + @BuildStep(onlyIf = IsDevelopment.class) + public void buildDefaultDataIndexURLSystemProperty(BuildProducer systemProperties) { + // Setting a default `kogito.data-index.url` accordingly to the runtime url. + String dataIndexUrl = ConfigProvider.getConfig().getOptionalValue(KOGITO_SERVICE_URL_PROP, String.class).orElseGet(() -> { + Integer port = ConfigProvider.getConfig().getOptionalValue(QUARKUS_HTTP_PORT, Integer.class).orElse(8080); + return "http://localhost:" + port; + }); + systemProperties.produce(new SystemPropertyBuildItem(KOGITO_DATA_INDEX_PROP, dataIndexUrl)); + } + @BuildStep(onlyIf = IsDevelopment.class) public void processGraphiql(BuildProducer additionalBean) { additionalBean.produce(AdditionalBeanBuildItem.builder().addBeanClass(VertxGraphiQLSetup.class).setUnremovable().setDefaultScope(DotNames.APPLICATION_SCOPED).build()); diff --git a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-infinispan/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/InfinispanDataIndexProcessor.java b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-infinispan/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/InfinispanDataIndexProcessor.java index 0fc6070abd..ee7a8d6448 100644 --- a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-infinispan/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/InfinispanDataIndexProcessor.java +++ b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-infinispan/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/InfinispanDataIndexProcessor.java @@ -18,8 +18,14 @@ */ package org.kie.kogito.addons.quarkus.data.index.deployment; +import java.util.List; + +import io.quarkus.deployment.IsDevelopment; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.FeatureBuildItem; +import io.quarkus.deployment.builditem.SystemPropertyBuildItem; +import io.quarkus.devui.spi.page.CardPageBuildItem; +import io.quarkus.devui.spi.page.Page; public class InfinispanDataIndexProcessor extends AbstractKogitoAddonsQuarkusDataIndexProcessor { @@ -30,4 +36,13 @@ public FeatureBuildItem feature() { return new FeatureBuildItem(FEATURE); } + @BuildStep(onlyIf = { IsDevelopment.class }) + CardPageBuildItem createDevUILink(List systemPropertyBuildItems) { + CardPageBuildItem cardPageBuildItem = new CardPageBuildItem(); + cardPageBuildItem.addPage(Page.externalPageBuilder("Data Index GraphQL UI") + .url("/q/graphql-ui/") + .isHtmlContent() + .icon("font-awesome-solid:signs-post")); + return cardPageBuildItem; + } } diff --git a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-infinispan/runtime/pom.xml b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-infinispan/runtime/pom.xml index 5c361b575c..ba9cde99c7 100644 --- a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-infinispan/runtime/pom.xml +++ b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-infinispan/runtime/pom.xml @@ -54,7 +54,7 @@ ${project.groupId}:${project.artifactId}-deployment:${project.version} - org.kie.kogito.data-index.infinispan + org.kie.kogito.data-index diff --git a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/InMemoryDataIndexProcessor.java b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/InMemoryDataIndexProcessor.java index 3290dee299..354cefd2ac 100644 --- a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/InMemoryDataIndexProcessor.java +++ b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/InMemoryDataIndexProcessor.java @@ -18,11 +18,17 @@ */ package org.kie.kogito.addons.quarkus.data.index.deployment; +import java.util.List; + +import io.quarkus.deployment.IsDevelopment; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.FeatureBuildItem; +import io.quarkus.deployment.builditem.SystemPropertyBuildItem; import io.quarkus.deployment.builditem.nativeimage.NativeImageResourcePatternsBuildItem; import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; +import io.quarkus.devui.spi.page.CardPageBuildItem; +import io.quarkus.devui.spi.page.Page; public class InMemoryDataIndexProcessor extends AbstractKogitoAddonsQuarkusDataIndexProcessor { @@ -38,4 +44,13 @@ public void inMemoryNativeResources(BuildProducer systemPropertyBuildItems) { + CardPageBuildItem cardPageBuildItem = new CardPageBuildItem(); + cardPageBuildItem.addPage(Page.externalPageBuilder("Data Index GraphQL UI") + .url("/q/graphql-ui/") + .isHtmlContent() + .icon("font-awesome-solid:signs-post")); + return cardPageBuildItem; + } } diff --git a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/runtime/pom.xml b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/runtime/pom.xml index 737e73f30f..4e2e25c648 100644 --- a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/runtime/pom.xml +++ b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/runtime/pom.xml @@ -62,7 +62,7 @@ ${project.groupId}:${project.artifactId}-deployment:${project.version} - org.kie.kogito.data-index.in-memory + org.kie.kogito.data-index diff --git a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/runtime/src/main/resources/application.properties b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/runtime/src/main/resources/application.properties index 587a8cf10c..815bcb43dd 100644 --- a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/runtime/src/main/resources/application.properties +++ b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/runtime/src/main/resources/application.properties @@ -23,8 +23,8 @@ kogito.data-index.domain-indexing=false kogito.data-index.blocking=true #PostgreSql -quarkus.datasource.data_index.db-kind=postgresql -quarkus.datasource.data_index.devservices.enabled=false +quarkus.datasource."data_index".db-kind=postgresql +quarkus.datasource."data_index".devservices.enabled=false #Hibernate quarkus.hibernate-orm.jdbc.timezone=UTC diff --git a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-mongodb/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/MongoDataIndexProcessor.java b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-mongodb/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/MongoDataIndexProcessor.java index ce6bfb77de..dde5b3992c 100644 --- a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-mongodb/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/MongoDataIndexProcessor.java +++ b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-mongodb/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/MongoDataIndexProcessor.java @@ -18,8 +18,14 @@ */ package org.kie.kogito.addons.quarkus.data.index.deployment; +import java.util.List; + +import io.quarkus.deployment.IsDevelopment; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.FeatureBuildItem; +import io.quarkus.deployment.builditem.SystemPropertyBuildItem; +import io.quarkus.devui.spi.page.CardPageBuildItem; +import io.quarkus.devui.spi.page.Page; public class MongoDataIndexProcessor extends AbstractKogitoAddonsQuarkusDataIndexProcessor { @@ -30,4 +36,13 @@ public FeatureBuildItem feature() { return new FeatureBuildItem(FEATURE); } + @BuildStep(onlyIf = { IsDevelopment.class }) + CardPageBuildItem createDevUILink(List systemPropertyBuildItems) { + CardPageBuildItem cardPageBuildItem = new CardPageBuildItem(); + cardPageBuildItem.addPage(Page.externalPageBuilder("Data Index GraphQL UI") + .url("/q/graphql-ui/") + .isHtmlContent() + .icon("font-awesome-solid:signs-post")); + return cardPageBuildItem; + } } diff --git a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-mongodb/runtime/pom.xml b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-mongodb/runtime/pom.xml index bba0e6e3c5..a5666405d7 100644 --- a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-mongodb/runtime/pom.xml +++ b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-mongodb/runtime/pom.xml @@ -58,7 +58,7 @@ ${project.groupId}:${project.artifactId}-deployment:${project.version} - org.kie.kogito.data-index.mongodb + org.kie.kogito.data-index diff --git a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-postgresql/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/PostgreSQLDataIndexProcessor.java b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-postgresql/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/PostgreSQLDataIndexProcessor.java index 31e077e7ea..0f26fffe24 100644 --- a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-postgresql/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/PostgreSQLDataIndexProcessor.java +++ b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-postgresql/deployment/src/main/java/org/kie/kogito/addons/quarkus/data/index/deployment/PostgreSQLDataIndexProcessor.java @@ -18,8 +18,14 @@ */ package org.kie.kogito.addons.quarkus.data.index.deployment; +import java.util.List; + +import io.quarkus.deployment.IsDevelopment; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.FeatureBuildItem; +import io.quarkus.deployment.builditem.SystemPropertyBuildItem; +import io.quarkus.devui.spi.page.CardPageBuildItem; +import io.quarkus.devui.spi.page.Page; public class PostgreSQLDataIndexProcessor extends AbstractKogitoAddonsQuarkusDataIndexProcessor { @@ -30,4 +36,13 @@ public FeatureBuildItem feature() { return new FeatureBuildItem(FEATURE); } + @BuildStep(onlyIf = { IsDevelopment.class }) + CardPageBuildItem createDevUILink(List systemPropertyBuildItems) { + CardPageBuildItem cardPageBuildItem = new CardPageBuildItem(); + cardPageBuildItem.addPage(Page.externalPageBuilder("Data Index GraphQL UI") + .url("/q/graphql-ui/") + .isHtmlContent() + .icon("font-awesome-solid:signs-post")); + return cardPageBuildItem; + } } diff --git a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-postgresql/runtime/pom.xml b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-postgresql/runtime/pom.xml index 91e7c8d0a4..0de5aa77c8 100644 --- a/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-postgresql/runtime/pom.xml +++ b/data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-postgresql/runtime/pom.xml @@ -58,7 +58,7 @@ ${project.groupId}:${project.artifactId}-deployment:${project.version} - org.kie.kogito.data-index.postgresql + org.kie.kogito.data-index diff --git a/explainability/README.md b/explainability/README.md index 15acabb13a..a9f0c08d82 100644 --- a/explainability/README.md +++ b/explainability/README.md @@ -1,3 +1,21 @@ + # Kogito Explainability ### Notes diff --git a/explainability/explainability-service/README.md b/explainability/explainability-service/README.md index cdda7cd4cb..7866ed163d 100644 --- a/explainability/explainability-service/README.md +++ b/explainability/explainability-service/README.md @@ -1 +1,19 @@ + ## Kogito Trusty explainability service diff --git a/jitexecutor-native/jitexecutor-native-darwin/pom.xml b/jitexecutor-native/jitexecutor-native-darwin/pom.xml new file mode 100644 index 0000000000..4dd67713d2 --- /dev/null +++ b/jitexecutor-native/jitexecutor-native-darwin/pom.xml @@ -0,0 +1,47 @@ + + + 4.0.0 + + + org.kie.kogito + jitexecutor-native + 999-SNAPSHOT + + + jitexecutor-native-darwin + jar + Kogito Apps :: JIT Executor Native :: Darwin + + + false + ${project.build.directory}/${project.build.finalName}-runner + + + + + org.kie.kogito + jitexecutor-runner + + + \ No newline at end of file diff --git a/jitexecutor-native/jitexecutor-native-linux/pom.xml b/jitexecutor-native/jitexecutor-native-linux/pom.xml new file mode 100644 index 0000000000..e88b81f1c2 --- /dev/null +++ b/jitexecutor-native/jitexecutor-native-linux/pom.xml @@ -0,0 +1,47 @@ + + + 4.0.0 + + + org.kie.kogito + jitexecutor-native + 999-SNAPSHOT + + + jitexecutor-native-linux + jar + Kogito Apps :: JIT Executor Native :: Linux + + + false + ${project.build.directory}/${project.build.finalName}-runner + + + + + org.kie.kogito + jitexecutor-runner + + + \ No newline at end of file diff --git a/jitexecutor-native/jitexecutor-native-win32/pom.xml b/jitexecutor-native/jitexecutor-native-win32/pom.xml new file mode 100644 index 0000000000..a6e61c578a --- /dev/null +++ b/jitexecutor-native/jitexecutor-native-win32/pom.xml @@ -0,0 +1,47 @@ + + + 4.0.0 + + + org.kie.kogito + jitexecutor-native + 999-SNAPSHOT + + + jitexecutor-native-win32 + jar + Kogito Apps :: JIT Executor Native :: Win32 + + + false + ${project.build.directory}/${project.build.finalName}-runner + + + + + org.kie.kogito + jitexecutor-runner + + + \ No newline at end of file diff --git a/jitexecutor-native/pom.xml b/jitexecutor-native/pom.xml new file mode 100644 index 0000000000..38fbe63194 --- /dev/null +++ b/jitexecutor-native/pom.xml @@ -0,0 +1,117 @@ + + + + org.kie.kogito + kogito-apps-build-parent + 999-SNAPSHOT + ../kogito-apps-build-parent/pom.xml + + 4.0.0 + jitexecutor-native + Kogito Apps :: JIT Executor Native + pom + + + org.kie.kogito.jitexecutor.runner + true + native + + + + + + io.quarkus + quarkus-maven-plugin + + true + ${jitexecutor.native.skip} + + + + compile + + build + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + package + + jar + + + ${project.build.directory} + binaries + + jitexecutor-native-*-${project.version}-run* + + true + + + + + + + + + + platform-windows + + + windows + + + + jitexecutor-native-win32 + + + + platform-darwin + + + mac + + + + jitexecutor-native-darwin + + + + platform-linux + + + Linux + + + + jitexecutor-native-linux + + + + \ No newline at end of file diff --git a/jitexecutor/README.md b/jitexecutor/README.md index 3fa5d7e947..a5fbcde119 100644 --- a/jitexecutor/README.md +++ b/jitexecutor/README.md @@ -1,3 +1,21 @@ + # Kogito JIT Executor Kogito JIT (Just In Time) Executor is an application that allow to execute a business model on the fly on a given context. The JIT Executor is intended to be an helpful support during **_Modeling and Development phases_**; for instance, when modeling a DMN asset, the JIT Executor can be used to support live interactions with the DMN model, while still being authored. The JIT Executor is **not** recommended for Deployment solution; when looking to deploy to the Cloud, we recommend to build and deploy a standard Kogito -based project containing the assets, in order to take advantage of the all features and full capabilities of the [Kogito platform](https://docs.kogito.kie.org/latest/html_single/#con-kogito-automation_kogito-docs). @@ -16,6 +34,19 @@ run the generated application under `jitexecutor-runner/target/quarkus-app/` wit java -jar jitexecutor-runner/target/quarkus-app/quarkus-run.jar ``` +Log configuration +================= + +Rest endpoints have log configuration to eventually print out received payload, if log is set to DEBUG level (default is INFO). +This is managed in the application.properties, that is under filtered-resources. +The `quarkus.log.category."org.kie.kogito".level` is set from `${jitexecutor.log.level}`, that by default is "INFO" in the pom.xml. + +It can be overridden with commandline parameter, e.g. + +```bash +mvn clean package -Djitexecutor.log.level=DEBUG +``` + DMN === diff --git a/jitexecutor/jitexecutor-bpmn/README.md b/jitexecutor/jitexecutor-bpmn/README.md new file mode 100644 index 0000000000..09ae6c871d --- /dev/null +++ b/jitexecutor/jitexecutor-bpmn/README.md @@ -0,0 +1,29 @@ + +# Kogito JIT BPMN Executor + +## Log configuration + +Rest endpoints have log configuration to eventually print out received payload, if log is set to DEBUG level (default is INFO). +This is managed in the application.properties, that is under filtered-resources. +The `quarkus.log.category."org.kie.kogito".level` is set from `${jitexecutor.log.level}`, that by default is "INFO" in the pom.xml. + +It can be overridden with commandline parameter, e.g. + +`mvn clean package -Djitexecutor.log.level=DEBUG` diff --git a/jitexecutor/jitexecutor-bpmn/pom.xml b/jitexecutor/jitexecutor-bpmn/pom.xml index ba267ce747..21b1482580 100644 --- a/jitexecutor/jitexecutor-bpmn/pom.xml +++ b/jitexecutor/jitexecutor-bpmn/pom.xml @@ -34,6 +34,7 @@ org.kie.kogito.jitexecutor.bpmn + INFO @@ -88,4 +89,30 @@ + + + + maven-resources-plugin + + + copy-filtered-resources + process-resources + + copy-resources + + + ${project.build.directory}/classes + + + ${project.basedir}/src/main/filtered-resources + true + + + + + + + + + \ No newline at end of file diff --git a/jitexecutor/jitexecutor-bpmn/src/main/resources/application.properties b/jitexecutor/jitexecutor-bpmn/src/main/filtered-resources/application.properties similarity index 94% rename from jitexecutor/jitexecutor-bpmn/src/main/resources/application.properties rename to jitexecutor/jitexecutor-bpmn/src/main/filtered-resources/application.properties index f43a8a1a7d..a04127cb86 100644 --- a/jitexecutor/jitexecutor-bpmn/src/main/resources/application.properties +++ b/jitexecutor/jitexecutor-bpmn/src/main/filtered-resources/application.properties @@ -24,5 +24,7 @@ # quarkus.log.category."org".level=INFO +quarkus.log.category."org.kie.kogito".level=${jitexecutor.log.level} + # To avoid errors such as: # Error: com.oracle.graal.pointsto.constraints.UnresolvedElementException: Discovered unresolved type during parsing: (full_name_of_the_class). To diagnose the issue you can use the --allow-incomplete-classpath option. The missing type is then reported at run time when it is accessed the first time. \ No newline at end of file diff --git a/jitexecutor/jitexecutor-bpmn/src/main/java/org/kie/kogito/jitexecutor/bpmn/api/BPMNValidationResource.java b/jitexecutor/jitexecutor-bpmn/src/main/java/org/kie/kogito/jitexecutor/bpmn/api/BPMNValidationResource.java index aa28edef93..96e8ec7d31 100644 --- a/jitexecutor/jitexecutor-bpmn/src/main/java/org/kie/kogito/jitexecutor/bpmn/api/BPMNValidationResource.java +++ b/jitexecutor/jitexecutor-bpmn/src/main/java/org/kie/kogito/jitexecutor/bpmn/api/BPMNValidationResource.java @@ -21,6 +21,8 @@ import org.kie.kogito.jitexecutor.bpmn.JITBPMNService; import org.kie.kogito.jitexecutor.bpmn.responses.JITBPMNValidationResult; import org.kie.kogito.jitexecutor.common.requests.MultipleResourcesPayload; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import jakarta.inject.Inject; import jakarta.ws.rs.Consumes; @@ -30,9 +32,13 @@ import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.Response; +import static org.kie.kogito.jitexecutor.common.Constants.LINEBREAK; + @Path("jitbpmn/validate") public class BPMNValidationResource { + private static final Logger LOGGER = LoggerFactory.getLogger(BPMNValidationResource.class); + @Inject JITBPMNService jitbpmnService; @@ -40,6 +46,10 @@ public class BPMNValidationResource { @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public Response schema(MultipleResourcesPayload payload) { + LOGGER.debug(LINEBREAK); + LOGGER.debug("jitbpmn/validate"); + LOGGER.debug(payload.toString()); + LOGGER.debug(LINEBREAK); JITBPMNValidationResult result = jitbpmnService.validatePayload(payload); return Response.ok(result.getErrors()).build(); } diff --git a/jitexecutor/jitexecutor-common/src/main/java/org/kie/kogito/jitexecutor/common/Constants.java b/jitexecutor/jitexecutor-common/src/main/java/org/kie/kogito/jitexecutor/common/Constants.java new file mode 100644 index 0000000000..ed8079006b --- /dev/null +++ b/jitexecutor/jitexecutor-common/src/main/java/org/kie/kogito/jitexecutor/common/Constants.java @@ -0,0 +1,27 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.kie.kogito.jitexecutor.common; + +public class Constants { + + public static final String LINEBREAK = "******\n"; + + private Constants() { + } +} \ No newline at end of file diff --git a/jitexecutor/jitexecutor-dmn/README.md b/jitexecutor/jitexecutor-dmn/README.md index c23837a659..a814beedc6 100644 --- a/jitexecutor/jitexecutor-dmn/README.md +++ b/jitexecutor/jitexecutor-dmn/README.md @@ -1,11 +1,29 @@ + # Kogito JIT DMN Executor ## Log configuration Rest endpoints have log configuration to eventually print out received payload, if log is set to DEBUG level (default is INFO). This is managed in the application.properties, that is under filtered-resources. -The `quarkus.log.category."org.kie.kogito".level` is set from `${jitexecutor.dmn.log.level}`, that by default is "INFO" in the pom.xml. +The `quarkus.log.category."org.kie.kogito".level` is set from `${jitexecutor.log.level}`, that by default is "INFO" in the pom.xml. It can be overridden with commandline parameter, e.g. -`mvn clean package -Djitexecutor.dmn.log.level=DEBUG` +`mvn clean package -Djitexecutor.log.level=DEBUG` diff --git a/jitexecutor/jitexecutor-dmn/pom.xml b/jitexecutor/jitexecutor-dmn/pom.xml index daffe13ebb..f38b164c83 100644 --- a/jitexecutor/jitexecutor-dmn/pom.xml +++ b/jitexecutor/jitexecutor-dmn/pom.xml @@ -32,7 +32,7 @@ org.kie.kogito.jitexecutor.dmn - INFO + INFO diff --git a/jitexecutor/jitexecutor-dmn/src/main/filtered-resources/application.properties b/jitexecutor/jitexecutor-dmn/src/main/filtered-resources/application.properties index ea64431551..cf51111ccf 100644 --- a/jitexecutor/jitexecutor-dmn/src/main/filtered-resources/application.properties +++ b/jitexecutor/jitexecutor-dmn/src/main/filtered-resources/application.properties @@ -24,7 +24,7 @@ # quarkus.log.category."org".level=INFO -quarkus.log.category."org.kie.kogito".level=${jitexecutor.dmn.log.level} +quarkus.log.category."org.kie.kogito".level=${jitexecutor.log.level} # To avoid errors such as: # Error: com.oracle.graal.pointsto.constraints.UnresolvedElementException: Discovered unresolved type during parsing: org.kie.pmml.pmml_4_2.PMMLRequestDataBuilder. To diagnose the issue you can use the --allow-incomplete-classpath option. The missing type is then reported at run time when it is accessed the first time. diff --git a/jitexecutor/jitexecutor-dmn/src/main/java/org/kie/kogito/jitexecutor/dmn/DMNEvaluator.java b/jitexecutor/jitexecutor-dmn/src/main/java/org/kie/kogito/jitexecutor/dmn/DMNEvaluator.java index b8c849638c..979f4159bd 100644 --- a/jitexecutor/jitexecutor-dmn/src/main/java/org/kie/kogito/jitexecutor/dmn/DMNEvaluator.java +++ b/jitexecutor/jitexecutor-dmn/src/main/java/org/kie/kogito/jitexecutor/dmn/DMNEvaluator.java @@ -29,6 +29,8 @@ import org.kie.dmn.api.core.DMNModel; import org.kie.dmn.api.core.DMNResult; import org.kie.dmn.api.core.DMNRuntime; +import org.kie.dmn.core.compiler.RuntimeTypeCheckOption; +import org.kie.dmn.core.impl.DMNRuntimeImpl; import org.kie.dmn.core.internal.utils.DMNRuntimeBuilder; import org.kie.dmn.core.internal.utils.DynamicDMNContextBuilder; import org.kie.internal.io.ResourceFactory; @@ -52,6 +54,7 @@ public static DMNEvaluator fromXML(String modelXML) { private DMNEvaluator(DMNModel dmnModel, DMNRuntime dmnRuntime) { this.dmnModel = dmnModel; this.dmnRuntime = dmnRuntime; + ((DMNRuntimeImpl) this.dmnRuntime).setOption(new RuntimeTypeCheckOption(true)); } public DMNModel getDmnModel() { diff --git a/jitexecutor/jitexecutor-dmn/src/main/java/org/kie/kogito/jitexecutor/dmn/api/DMNValidationResource.java b/jitexecutor/jitexecutor-dmn/src/main/java/org/kie/kogito/jitexecutor/dmn/api/DMNValidationResource.java index fd2a31e0b8..daa5208ff2 100644 --- a/jitexecutor/jitexecutor-dmn/src/main/java/org/kie/kogito/jitexecutor/dmn/api/DMNValidationResource.java +++ b/jitexecutor/jitexecutor-dmn/src/main/java/org/kie/kogito/jitexecutor/dmn/api/DMNValidationResource.java @@ -45,13 +45,13 @@ import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.Response; +import static org.kie.kogito.jitexecutor.common.Constants.LINEBREAK; + @Path("jitdmn/validate") public class DMNValidationResource { private static final Logger LOGGER = LoggerFactory.getLogger(DMNValidationResource.class); - static final String LINEBREAK = "******\n"; - // trick for resolver/implementation for NI static final DMNValidator validator = DMNValidatorFactory.newValidator(List.of(new ExtendedDMNProfile())); diff --git a/jitexecutor/jitexecutor-dmn/src/main/java/org/kie/kogito/jitexecutor/dmn/api/JITDMNResource.java b/jitexecutor/jitexecutor-dmn/src/main/java/org/kie/kogito/jitexecutor/dmn/api/JITDMNResource.java index b99739c54d..69d4eb8b87 100644 --- a/jitexecutor/jitexecutor-dmn/src/main/java/org/kie/kogito/jitexecutor/dmn/api/JITDMNResource.java +++ b/jitexecutor/jitexecutor-dmn/src/main/java/org/kie/kogito/jitexecutor/dmn/api/JITDMNResource.java @@ -38,7 +38,7 @@ import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.Response; -import static org.kie.kogito.jitexecutor.dmn.api.DMNValidationResource.LINEBREAK; +import static org.kie.kogito.jitexecutor.common.Constants.LINEBREAK; @Path("/jitdmn") public class JITDMNResource { diff --git a/jitexecutor/jitexecutor-dmn/src/main/java/org/kie/kogito/jitexecutor/dmn/api/SchemaResource.java b/jitexecutor/jitexecutor-dmn/src/main/java/org/kie/kogito/jitexecutor/dmn/api/SchemaResource.java index b769aaa387..b1ce72029c 100644 --- a/jitexecutor/jitexecutor-dmn/src/main/java/org/kie/kogito/jitexecutor/dmn/api/SchemaResource.java +++ b/jitexecutor/jitexecutor-dmn/src/main/java/org/kie/kogito/jitexecutor/dmn/api/SchemaResource.java @@ -33,6 +33,8 @@ import org.kie.dmn.openapi.model.DMNOASResult; import org.kie.kogito.jitexecutor.common.requests.MultipleResourcesPayload; import org.kie.kogito.jitexecutor.dmn.DMNEvaluator; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.ObjectNode; @@ -46,9 +48,13 @@ import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.Response; +import static org.kie.kogito.jitexecutor.common.Constants.LINEBREAK; + @Path("jitdmn/schema") public class SchemaResource { + private static final Logger LOGGER = LoggerFactory.getLogger(SchemaResource.class); + // trick for resolver/implementation for NI static final OpenAPI x; static Schema resourceWithURI; @@ -65,6 +71,10 @@ public class SchemaResource { @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_JSON) public Response schema(String payload) { + LOGGER.debug(LINEBREAK); + LOGGER.debug("jitdmn/validate"); + LOGGER.debug(payload); + LOGGER.debug(LINEBREAK); DMNModel dmnModel = DMNEvaluator.fromXML(payload).getDmnModel(); DMNOASResult oasResult = DMNOASGeneratorFactory.generator(Collections.singletonList(dmnModel)).build(); return fullSchema(dmnModel, oasResult, true); diff --git a/jitexecutor/jitexecutor-dmn/src/main/resources/META-INF/resources/bundle.js b/jitexecutor/jitexecutor-dmn/src/main/resources/META-INF/resources/bundle.js index f3d2591433..a13ad01d97 100644 --- a/jitexecutor/jitexecutor-dmn/src/main/resources/META-INF/resources/bundle.js +++ b/jitexecutor/jitexecutor-dmn/src/main/resources/META-INF/resources/bundle.js @@ -1,3 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ !function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=474)}([function(e,t,r){"use strict";e.exports=r(236)},function(e,t,r){"use strict";r.r(t),r.d(t,"ADDITIONAL_PROPERTY_FLAG",(function(){return R})),r.d(t,"canExpand",(function(){return I})),r.d(t,"getDefaultRegistry",(function(){return $})),r.d(t,"getSchemaType",(function(){return M})),r.d(t,"getWidget",(function(){return L})),r.d(t,"hasWidget",(function(){return z})),r.d(t,"getDefaultFormState",(function(){return U})),r.d(t,"mergeDefaultsWithFormData",(function(){return V})),r.d(t,"getUiOptions",(function(){return B})),r.d(t,"getDisplayLabel",(function(){return W})),r.d(t,"isObject",(function(){return H})),r.d(t,"mergeObjects",(function(){return Q})),r.d(t,"asNumber",(function(){return K})),r.d(t,"orderProperties",(function(){return G})),r.d(t,"isConstant",(function(){return J})),r.d(t,"toConstant",(function(){return Y})),r.d(t,"isSelect",(function(){return X})),r.d(t,"isMultiSelect",(function(){return Z})),r.d(t,"isFilesArray",(function(){return ee})),r.d(t,"isFixedItems",(function(){return te})),r.d(t,"allowAdditionalItems",(function(){return re})),r.d(t,"optionsList",(function(){return ne})),r.d(t,"findSchemaDefinition",(function(){return ae})),r.d(t,"guessType",(function(){return oe})),r.d(t,"stubExistingAdditionalProperties",(function(){return ie})),r.d(t,"resolveSchema",(function(){return le})),r.d(t,"retrieveSchema",(function(){return se})),r.d(t,"mergeSchemas",(function(){return pe})),r.d(t,"deepEquals",(function(){return he})),r.d(t,"shouldRender",(function(){return ve})),r.d(t,"toIdSchema",(function(){return ye})),r.d(t,"toPathSchema",(function(){return ge})),r.d(t,"parseDateString",(function(){return be})),r.d(t,"toDateString",(function(){return Ee})),r.d(t,"utcToLocal",(function(){return we})),r.d(t,"localToUTC",(function(){return xe})),r.d(t,"pad",(function(){return Se})),r.d(t,"dataURItoBlob",(function(){return Oe})),r.d(t,"rangeSpec",(function(){return Pe})),r.d(t,"getMatchingOption",(function(){return ke})),r.d(t,"schemaRequiresTrueValue",(function(){return je}));var n=r(225),a=r.n(n),o=r(52),i=r.n(o),l=r(53),u=r.n(l),s=r(22),c=r(147),f=r.n(c),d=r(4),p=r(7),m=r.n(p),h=r(19),v=r(6),y=r(5),g=r(11),b=r(9),E=r.n(b),w=r(0),x=r.n(w),S=r(148),O=r(228),P=r.n(O),k=r(229),j=r.n(k),_=r(27),C=r(232),T=r.n(C),F=r(233),N=r.n(F);function D(e){var t=function(e,t){if("object"!==Object(h.a)(e)||null===e)return e;var r=e[a.a];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Object(h.a)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Object(h.a)(t)?t:String(t)}var R="__additional_property",A={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function I(e,t,r){if(!e.additionalProperties)return!1;var n=B(t).expandable;return!1===n?n:void 0===e.maxProperties||E()(r).length2&&void 0!==arguments[2]?arguments[2]:{},n=M(e);function a(e){if(!e.MergedWidget){var t=e.defaultProps&&e.defaultProps.options||{};e.MergedWidget=function(r){var n=r.options,a=void 0===n?{}:n,o=Object(g.a)(r,["options"]);return x.a.createElement(e,Object(v.a)({options:Object(y.a)({},t,a)},o))}}return e.MergedWidget}if("function"==typeof t||S.isForwardRef(x.a.createElement(t))||S.isMemo(t))return a(t);if("string"!=typeof t)throw new Error("Unsupported widget definition: ".concat(Object(h.a)(t)));if(r.hasOwnProperty(t)){var o=r[t];return L(e,o,r)}if(!A.hasOwnProperty(n))throw new Error('No widget for type "'.concat(n,'"'));if(A[n].hasOwnProperty(t)){var i=r[A[n][t]];return L(e,i,r)}throw new Error('No widget "'.concat(t,'" for type "').concat(n,'"'))}function z(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return L(e,t,r),!0}catch(e){if(e.message&&(e.message.startsWith("No widget")||e.message.startsWith("Unsupported widget")))return!1;throw e}}function q(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=H(e)?e:{},i=H(n)?n:{},l=t;if(H(l)&&H(o.default))l=Q(l,o.default);else if("default"in o)l=o.default;else{if("$ref"in o){var u=ae(o.$ref,r);return q(u,l,r,i,a)}if("dependencies"in o){var s=ce(o,r,i);return q(s,l,r,i,a)}te(o)?l=o.items.map((function(e,n){return q(e,m()(t)?t[n]:void 0,r,i,a)})):"oneOf"in o?o=o.oneOf[ke(void 0,o.oneOf,r)]:"anyOf"in o&&(o=o.anyOf[ke(void 0,o.anyOf,r)])}switch(void 0===l&&(l=o.default),M(o)){case"object":return E()(o.properties||{}).reduce((function(e,t){var n=q(o.properties[t],(l||{})[t],r,(i||{})[t],a);return(a||void 0!==n)&&(e[t]=n),e}),{});case"array":if(m()(l)&&(l=l.map((function(e,t){return q(o.items[t]||o.additionalItems||{},e,r)}))),m()(n)&&(l=n.map((function(e,t){return q(o.items,(l||{})[t],r,e)}))),o.minItems){if(Z(o,r))return l||[];var c=l?l.length:0;if(o.minItems>c){var f=l||[],d=m()(o.items)?o.additionalItems:o.items,p=j()(new Array(o.minItems-c),q(d,d.defaults,r));return f.concat(p)}}}return l}function U(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!H(e))throw new Error("Invalid schema: "+e);var a=se(e,r,t),o=q(a,e.default,r,t,n);return void 0===t?o:H(t)||m()(t)?V(o,t):0===t||!1===t||""===t?t:t||o}function V(e,t){if(m()(t))return m()(e)||(e=[]),t.map((function(t,r){return e[r]?V(e[r],t):t}));if(H(t)){var r=Object(v.a)({},e);return E()(t).reduce((function(r,n){return r[n]=V(e?e[n]:{},t[n]),r}),r)}return t}function B(e){return E()(e).filter((function(e){return 0===e.indexOf("ui:")})).reduce((function(t,r){var n=e[r];return"ui:widget"===r&&H(n)?(console.warn("Setting options via ui:widget object is deprecated, use ui:options instead"),Object(y.a)({},t,n.options||{},{widget:n.component})):"ui:options"===r&&H(n)?Object(y.a)({},t,n):Object(y.a)({},t,Object(d.a)({},r.substring(3),n))}),{})}function W(e,t,r){var n=B(t).label,a=void 0===n||n;return"array"===e.type&&(a=Z(e,r)||ee(e,t,r)),"object"===e.type&&(a=!1),"boolean"!==e.type||t["ui:widget"]||(a=!1),t["ui:field"]&&(a=!1),a}function H(e){return!("undefined"!=typeof File&&e instanceof File)&&("object"===Object(h.a)(e)&&null!==e&&!m()(e))}function Q(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Object(v.a)({},e);return E()(t).reduce((function(n,a){var o=e?e[a]:{},i=t[a];return e&&e.hasOwnProperty(a)&&H(i)?n[a]=Q(o,i,r):r&&m()(o)&&m()(i)?n[a]=o.concat(i):n[a]=i,n}),n)}function K(e){if(""!==e){if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;var t=Number(e),r="number"==typeof t&&!f()(t);return/\.\d*0$/.test(e)?e:r?t:e}}function G(e,t){if(!m()(t))return e;var r,n=function(e){return e.reduce((function(e,t){return e[t]=!0,e}),{})},a=n(e),o=t.filter((function(e){return"*"===e||a[e]})),i=n(o),l=e.filter((function(e){return!i[e]})),u=o.indexOf("*");if(-1===u){if(l.length)throw new Error("uiSchema order list does not contain ".concat((r=l).length>1?"properties '".concat(r.join("', '"),"'"):"property '".concat(r[0],"'")));return o}if(u!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var c=Object(s.a)(o);return c.splice.apply(c,[u,1].concat(Object(s.a)(l))),c}function J(e){return m()(e.enum)&&1===e.enum.length||e.hasOwnProperty("const")}function Y(e){if(m()(e.enum)&&1===e.enum.length)return e.enum[0];if(e.hasOwnProperty("const"))return e.const;throw new Error("schema cannot be inferred as a constant")}function X(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=se(e,t),n=r.oneOf||r.anyOf;return!!m()(r.enum)||!!m()(n)&&n.every((function(e){return J(e)}))}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!(!e.uniqueItems||!e.items)&&X(e.items,t)}function ee(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("files"===t["ui:widget"])return!0;if(e.items){var n=se(e.items,r);return"string"===n.type&&"data-url"===n.format}return!1}function te(e){return m()(e.items)&&e.items.length>0&&e.items.every((function(e){return H(e)}))}function re(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),H(e.additionalItems)}function ne(e){return e.enum?e.enum.map((function(t,r){return{label:e.enumNames&&e.enumNames[r]||String(t),value:t}})):(e.oneOf||e.anyOf).map((function(e,t){var r=Y(e);return{label:e.title||String(r),value:r}}))}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e;if(!e.startsWith("#"))throw new Error("Could not find a definition for ".concat(r,"."));e=decodeURIComponent(e.substring(1));var n=N.a.get(t,e);if(void 0===n)throw new Error("Could not find a definition for ".concat(r,"."));return n.hasOwnProperty("$ref")?ae(n.$ref,t):n}var oe=function(e){return m()(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"===Object(h.a)(e)?"object":"string":"number"};function ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=Object(y.a)({},e,{properties:Object(y.a)({},e.properties)}),E()(r).forEach((function(n){var a;e.properties.hasOwnProperty(n)||(a=e.additionalProperties.hasOwnProperty("$ref")?se({$ref:e.additionalProperties.$ref},t,r):e.additionalProperties.hasOwnProperty("type")?Object(y.a)({},e.additionalProperties):{type:oe(r[n])},e.properties[n]=a,e.properties[n][R]=!0)})),e}function le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.hasOwnProperty("$ref"))return ue(e,t,r);if(e.hasOwnProperty("dependencies")){var n=ce(e,t,r);return se(n,t,r)}return e.hasOwnProperty("allOf")?Object(y.a)({},e,{allOf:e.allOf.map((function(e){return se(e,t,r)}))}):e}function ue(e,t,r){var n=ae(e.$ref,t),a=(e.$ref,Object(g.a)(e,["$ref"]));return se(Object(y.a)({},n,a),t,r)}function se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!H(e))return{};var n=le(e,t,r);if("allOf"in e)try{n=P()(Object(y.a)({},n,{allOf:n.allOf}))}catch(e){console.warn("could not merge subschemas in allOf:\n"+e);var a=n,o=(a.allOf,Object(g.a)(a,["allOf"]));return o}var i=n.hasOwnProperty("additionalProperties")&&!1!==n.additionalProperties;return i?ie(n,t,r):n}function ce(e,t,r){var n=e.dependencies,a=void 0===n?{}:n,o=Object(g.a)(e,["dependencies"]);return"oneOf"in o?o=o.oneOf[ke(r,o.oneOf,t)]:"anyOf"in o&&(o=o.anyOf[ke(r,o.anyOf,t)]),function e(t,r,n,a){for(var o in t)if(void 0!==a[o]&&(!r.properties||o in r.properties)){var i=t[o],l=Object(g.a)(t,[o].map(D));return m()(i)?r=fe(r,i):H(i)&&(r=de(r,n,a,o,i)),e(l,r,n,a)}return r}(a,o,t,r)}function fe(e,t){if(!t)return e;var r=m()(e.required)?u()(new i.a([].concat(Object(s.a)(e.required),Object(s.a)(t)))):t;return Object(y.a)({},e,{required:r})}function de(e,t,r,n,a){var o=se(a,t,r),i=o.oneOf;if(e=pe(e,Object(g.a)(o,["oneOf"])),void 0===i)return e;if(!m()(i))throw new Error("invalid: it is some ".concat(Object(h.a)(i)," instead of an array"));var l=i.map((function(e){return e.hasOwnProperty("$ref")?ue(e,t,r):e}));return function(e,t,r,n,a){var o=a.filter((function(e){if(!e.properties)return!1;var t=e.properties[n];if(t){var a={type:"object",properties:Object(d.a)({},n,t)};return 0===Object(_.a)(r,a).errors.length}}));if(1!==o.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),e;var i=o[0],l=i.properties,u=(l[n],Object(g.a)(l,[n].map(D))),s=Object(y.a)({},i,{properties:u});return pe(e,se(s,t,r))}(e,t,r,n,l)}function pe(e,t){var r=Object(v.a)({},e);return E()(t).reduce((function(r,n){var a=e?e[n]:{},o=t[n];return e&&e.hasOwnProperty(n)&&H(o)?r[n]=pe(a,o):e&&t&&("object"===M(e)||"object"===M(t))&&"required"===n&&m()(a)&&m()(o)?r[n]=T()(a,o):r[n]=o,r}),r)}function me(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function he(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!==Object(h.a)(e)||"object"!==Object(h.a)(t))return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(me(e)||me(t)){if(!me(e)||!me(t))return!1;var a=Array.prototype.slice;return he(a.call(e),a.call(t),r,n)}if(e.constructor!==t.constructor)return!1;var o=E()(e),i=E()(t);if(0===o.length&&0===i.length)return!0;if(o.length!==i.length)return!1;for(var l,u=r.length;u--;)if(r[u]===e)return n[u]===t;r.push(e),n.push(t),o.sort(),i.sort();for(var s=o.length-1;s>=0;s--)if(o[s]!==i[s])return!1;for(var c=o.length-1;c>=0;c--)if(!he(e[l=o[c]],t[l],r,n))return!1;return r.pop(),n.pop(),!0}function ve(e,t,r){var n=e.props,a=e.state;return!he(n,t)||!he(a,r)}function ye(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"root",o={$id:t||a};if("$ref"in e||"dependencies"in e||"allOf"in e){var i=se(e,r,n);return ye(i,t,r,n,a)}if("items"in e&&!e.items.$ref)return ye(e.items,t,r,n,a);if("object"!==e.type)return o;for(var l in e.properties||{}){var u=e.properties[l],s=o.$id+"_"+l;o[l]=ye(H(u)?u:{},s,r,(n||{})[l],a)}return o}function ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a={$name:t.replace(/^\./,"")};if("$ref"in e||"dependencies"in e||"allOf"in e){var o=se(e,r,n);return ge(o,t,r,n)}if(e.hasOwnProperty("additionalProperties")&&(a.__rjsf_additionalProperties=!0),e.hasOwnProperty("items")&&m()(n))n.forEach((function(n,o){a[o]=ge(e.items,"".concat(t,".").concat(o),r,n)}));else if(e.hasOwnProperty("properties"))for(var i in e.properties)a[i]=ge(e.properties[i],"".concat(t,".").concat(i),r,(n||{})[i]);return a}function be(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!e)return{year:-1,month:-1,day:-1,hour:t?-1:0,minute:t?-1:0,second:t?-1:0};var r=new Date(e);if(f()(r.getTime()))throw new Error("Unable to parse date "+e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:t?r.getUTCHours():0,minute:t?r.getUTCMinutes():0,second:t?r.getUTCSeconds():0}}function Ee(e){var t=e.year,r=e.month,n=e.day,a=e.hour,o=void 0===a?0:a,i=e.minute,l=void 0===i?0:i,u=e.second,s=void 0===u?0:u,c=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],f=Date.UTC(t,r-1,n,o,l,s),d=new Date(f).toJSON();return c?d:d.slice(0,10)}function we(e){if(!e)return"";var t=new Date(e),r=Se(t.getFullYear(),4),n=Se(t.getMonth()+1,2),a=Se(t.getDate(),2),o=Se(t.getHours(),2),i=Se(t.getMinutes(),2),l=Se(t.getSeconds(),2),u=Se(t.getMilliseconds(),3);return"".concat(r,"-").concat(n,"-").concat(a,"T").concat(o,":").concat(i,":").concat(l,".").concat(u)}function xe(e){if(e)return new Date(e).toJSON()}function Se(e,t){for(var r=String(e);r.length context = - Map.of("A Person", Map.of("name", "John", "age", 47)); - JITDMNPayload jitdmnpayload = new JITDMNPayload(importingModelRef, List.of(model1, model2), - context); + Map.of("p1", Map.of("Name", "P3", "Interests", Arrays.asList("Ski"))); + JITDMNPayload jitdmnpayload = new JITDMNPayload(modelRef, List.of(model), + context); given() .contentType(ContentType.JSON) .body(jitdmnpayload) .when().post("/jitdmn") .then() .statusCode(200) - .body("'Local Hello'", is("function Local Hello( Person )")) - .body("'Say Hello'", is("function Say Hello( Person )")); + .body("'MyDecision'", is("The Person P3 likes 1 thing(s).")); + } - String response = given() + @Test + void collectionTypeConstraintFails() throws IOException { + String modelRef = "valid_models/DMNv1_5/TypeConstraintsChecks.dmn"; + ResourceWithURI model = new ResourceWithURI(modelRef, getModelFromIoUtils(modelRef)); + Map context = + Map.of("p1", Map.of("Name", "P3", "Interests", Arrays.asList("Ski", "Golf"))); + JITDMNPayload jitdmnpayload = new JITDMNPayload(modelRef, List.of(model), + context); + given() .contentType(ContentType.JSON) - .body(new MultipleResourcesPayload(importingModelRef, List.of(model1, model2))) - .when() - .post("/jitdmn/validate") + .body(jitdmnpayload) + .when().post("/jitdmn") .then() .statusCode(200) - .extract() - .asString(); - LOG.debug("Validate response: {}", response); - List messages = MAPPER.readValue(response, LIST_OF_MSGS); - assertEquals(0, messages.size()); + .body("'MyDecision'", nullValue()); + } - jitdmnpayload = new JITDMNPayload(importingModelRef, List.of(model1, model2), context); + @Test + void collectionAllowedValuesSucceed() throws IOException { + String modelRef = "valid_models/DMNv1_5/AllowedValuesChecksInsideCollection.dmn"; + ResourceWithURI model = new ResourceWithURI(modelRef, getModelFromIoUtils(modelRef)); + Map context = + Map.of("p1", Map.of("Name", "P3", "Interests", Arrays.asList("Golf"))); + JITDMNPayload jitdmnpayload = new JITDMNPayload(modelRef, List.of(model), + context); given() .contentType(ContentType.JSON) .body(jitdmnpayload) - .when() - .post("/jitdmn/dmnresult") + .when().post("/jitdmn") .then() .statusCode(200) - .body("decisionResults.result[0]", is("Hello John!")) - .body("decisionResults.result[1]", is("Local Hello John!")); + .body("'MyDecision'", is("The Person P3 likes 1 thing(s).")); + + context = + Map.of("p1", Map.of("Name", "P3", "Interests", Arrays.asList("Golf", "Jogging"))); + jitdmnpayload = new JITDMNPayload(modelRef, List.of(model), + context); + given() + .contentType(ContentType.JSON) + .body(jitdmnpayload) + .when().post("/jitdmn") + .then() + .statusCode(200) + .body("'MyDecision'", is("The Person P3 likes 2 thing(s).")); + } + + @Test + void collectionAllowedValuesFails() throws IOException { + String modelRef = "valid_models/DMNv1_5/AllowedValuesChecksInsideCollection.dmn"; + ResourceWithURI model = new ResourceWithURI(modelRef, getModelFromIoUtils(modelRef)); + Map context = + Map.of("p1", Map.of("Name", "P3", "Interests", Arrays.asList("Ski"))); + JITDMNPayload jitdmnpayload = new JITDMNPayload(modelRef, List.of(model), + context); + given() + .contentType(ContentType.JSON) + .body(jitdmnpayload) + .when().post("/jitdmn") + .then() + .statusCode(200) + .body("'MyDecision'", nullValue()); } @Test @@ -164,6 +207,47 @@ void dateToDateTimeFunction() throws IOException { result(model, Map.of("decisionResults.result[0]", "2021-05-31T00:00:00Z")); } + private void commonUnnamedImport(String importingModelRef, String importedModelRef) throws IOException { + ResourceWithURI model1 = new ResourceWithURI(importingModelRef, getModelFromIoUtils(importingModelRef)); + ResourceWithURI model2 = new ResourceWithURI(importedModelRef, getModelFromIoUtils(importedModelRef)); + Map context = + Map.of("A Person", Map.of("name", "John", "age", 47)); + JITDMNPayload jitdmnpayload = new JITDMNPayload(importingModelRef, List.of(model1, model2), + context); + given() + .contentType(ContentType.JSON) + .body(jitdmnpayload) + .when().post("/jitdmn") + .then() + .statusCode(200) + .body("'Local Hello'", is("function Local Hello( Person )")) + .body("'Say Hello'", is("function Say Hello( Person )")); + + String response = given() + .contentType(ContentType.JSON) + .body(new MultipleResourcesPayload(importingModelRef, List.of(model1, model2))) + .when() + .post("/jitdmn/validate") + .then() + .statusCode(200) + .extract() + .asString(); + LOG.debug("Validate response: {}", response); + List messages = MAPPER.readValue(response, LIST_OF_MSGS); + assertEquals(0, messages.size()); + + jitdmnpayload = new JITDMNPayload(importingModelRef, List.of(model1, model2), context); + given() + .contentType(ContentType.JSON) + .body(jitdmnpayload) + .when() + .post("/jitdmn/dmnresult") + .then() + .statusCode(200) + .body("decisionResults.result[0]", is("Hello John!")) + .body("decisionResults.result[1]", is("Local Hello John!")); + } + private void result(String model, Map expectedValues) { String payload = "{ \"model\": " + model + ", \"context\": {\n" + "}}"; diff --git a/jitexecutor/jitexecutor-runner/pom.xml b/jitexecutor/jitexecutor-runner/pom.xml index 867e0ca8e8..3b51f2eff1 100644 --- a/jitexecutor/jitexecutor-runner/pom.xml +++ b/jitexecutor/jitexecutor-runner/pom.xml @@ -20,8 +20,8 @@ --> + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> jitexecutor org.kie.kogito @@ -147,37 +147,4 @@ - - - native - - - native - - - - native - - - - - maven-failsafe-plugin - - - - integration-test - verify - - - - ${project.build.directory}/${project.build.finalName}-runner - - - - - - - - - \ No newline at end of file diff --git a/jitexecutor/jitexecutor-runner/src/main/docker/Dockerfile.native b/jitexecutor/jitexecutor-runner/src/main/docker/Dockerfile.native index 5ffd830dbd..2808f7174d 100644 --- a/jitexecutor/jitexecutor-runner/src/main/docker/Dockerfile.native +++ b/jitexecutor/jitexecutor-runner/src/main/docker/Dockerfile.native @@ -1,3 +1,21 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# #### # This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode # @@ -7,11 +25,11 @@ # # Then, build the image with: # -# docker build -f src/main/docker/Dockerfile.native -t quay.io/kiegroup/jit-runner-native . +# docker build -f src/main/docker/Dockerfile.native -t docker.io/apache/incubator-kie-jit-runner-native . # # Then run the container using: # -# docker run -i --rm -p 8080:8080 quay.io/kiegroup/jit-runner-native +# docker run -i --rm -p 8080:8080 docker.io/apache/incubator-kie-jit-runner-native # ### FROM registry.access.redhat.com/ubi8/ubi-minimal diff --git a/jobs-service/README.md b/jobs-service/README.md index 322da8c9b6..84b940dc7d 100644 --- a/jobs-service/README.md +++ b/jobs-service/README.md @@ -1,3 +1,21 @@ + # Jobs diff --git a/jobs-service/jobs-service-common/README.md b/jobs-service/jobs-service-common/README.md index c7e22ffbf3..1ae2372f94 100644 --- a/jobs-service/jobs-service-common/README.md +++ b/jobs-service/jobs-service-common/README.md @@ -1,3 +1,21 @@ + ## Kogito Jobs Service Documentation: diff --git a/jobs-service/jobs-service-common/src/main/java/org/kie/kogito/jobs/service/stream/JobStreams.java b/jobs-service/jobs-service-common/src/main/java/org/kie/kogito/jobs/service/stream/JobStreams.java index 4f84e71cd6..66a44d073e 100644 --- a/jobs-service/jobs-service-common/src/main/java/org/kie/kogito/jobs/service/stream/JobStreams.java +++ b/jobs-service/jobs-service-common/src/main/java/org/kie/kogito/jobs/service/stream/JobStreams.java @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + package org.kie.kogito.jobs.service.stream; import org.kie.kogito.jobs.service.model.JobDetails; diff --git a/jobs-service/jobs-service-infinispan/src/main/resources/META-INF/library.proto b/jobs-service/jobs-service-infinispan/src/main/resources/META-INF/library.proto index 7f08eddad5..e828acf53e 100644 --- a/jobs-service/jobs-service-infinispan/src/main/resources/META-INF/library.proto +++ b/jobs-service/jobs-service-infinispan/src/main/resources/META-INF/library.proto @@ -1,3 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ package job.service; /* @Indexed */ diff --git a/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V2.0.0__Create_Table.sql b/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V2.0.0__Create_Table.sql index e5a2049057..fd4ab6a37b 100644 --- a/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V2.0.0__Create_Table.sql +++ b/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V2.0.0__Create_Table.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + CREATE TYPE JOB_STATUS AS ENUM ( 'ERROR', diff --git a/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V2.0.1__job_details_increase_job_id_size.sql b/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V2.0.1__job_details_increase_job_id_size.sql index 74460ffd4d..524a044761 100644 --- a/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V2.0.1__job_details_increase_job_id_size.sql +++ b/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V2.0.1__job_details_increase_job_id_size.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + ALTER TABLE job_details ALTER COLUMN id TYPE varchar(50); diff --git a/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V2.0.2__job_details_add_fire_time_col.sql b/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V2.0.2__job_details_add_fire_time_col.sql index 4c627f45cd..dffdb3eee5 100644 --- a/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V2.0.2__job_details_add_fire_time_col.sql +++ b/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V2.0.2__job_details_add_fire_time_col.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + ALTER TABLE job_details ADD COLUMN fire_time TIMESTAMPTZ; diff --git a/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V2.0.3__Create_Table_Management.sql b/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V2.0.3__Create_Table_Management.sql index e6e16db461..30c074eb2b 100644 --- a/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V2.0.3__Create_Table_Management.sql +++ b/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V2.0.3__Create_Table_Management.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + CREATE TABLE job_service_management ( id VARCHAR(40) PRIMARY KEY, diff --git a/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V3.0.0__Create_Jobs_Table_V2.sql b/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V3.0.0__Create_Jobs_Table_V2.sql index 3c169bea0d..7fa3ca5d80 100644 --- a/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V3.0.0__Create_Jobs_Table_V2.sql +++ b/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V3.0.0__Create_Jobs_Table_V2.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + ALTER TABLE job_details RENAME TO job_details_v1; diff --git a/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V3.0.1__Migrate_Jobs_v1_to_v2_Table.sql b/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V3.0.1__Migrate_Jobs_v1_to_v2_Table.sql index e89dc72265..3246e16422 100644 --- a/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V3.0.1__Migrate_Jobs_v1_to_v2_Table.sql +++ b/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V3.0.1__Migrate_Jobs_v1_to_v2_Table.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + INSERT INTO job_details (id, correlation_id, status, last_update, fire_time, retries, execution_counter, scheduled_id, priority, trigger, recipient) SELECT job.id AS id, job.correlation_id AS correlation_id, diff --git a/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V3.0.2__Add_Execution_Timeout_Col.sql b/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V3.0.2__Add_Execution_Timeout_Col.sql index 2d68894dc6..b8f67e8872 100644 --- a/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V3.0.2__Add_Execution_Timeout_Col.sql +++ b/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V3.0.2__Add_Execution_Timeout_Col.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + ALTER TABLE job_details ADD COLUMN execution_timeout BIGINT; diff --git a/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V3.0.3__Add_Created_Col.sql b/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V3.0.3__Add_Created_Col.sql index e76162d170..f4086db91e 100644 --- a/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V3.0.3__Add_Created_Col.sql +++ b/jobs-service/jobs-service-postgresql-common/src/main/resources/db/jobs-service/V3.0.3__Add_Created_Col.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + ALTER TABLE job_details ADD COLUMN created TIMESTAMPTZ; diff --git a/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs-service-embedded/runtime/src/main/resources/application.properties b/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs-service-embedded/runtime/src/main/resources/application.properties index 58cf6e8a22..c4c93f18f6 100644 --- a/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs-service-embedded/runtime/src/main/resources/application.properties +++ b/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs-service-embedded/runtime/src/main/resources/application.properties @@ -20,8 +20,8 @@ quarkus.arc.selected-alternatives=org.kie.kogito.addons.quarkus.jobs.service.emb %dev.quarkus.log.category."org.kie.kogito.jobs".level=INFO -quarkus.datasource.jobs_service.db-kind=postgresql -quarkus.datasource.jobs_service.devservices.enabled=false +quarkus.datasource."jobs_service".db-kind=postgresql +quarkus.datasource."jobs_service".devservices.enabled=false quarkus.datasource.devservices.enabled=false quarkus.flyway.jobs_service.locations=db/jobs-service quarkus.flyway.jobs_service.migrate-at-start=true diff --git a/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/pom.xml b/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/pom.xml index e83e2ecdae..6bd0286ea2 100644 --- a/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/pom.xml +++ b/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/pom.xml @@ -1,4 +1,23 @@ + + diff --git a/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/main/resources/META-INF/beans.xml b/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/main/resources/META-INF/beans.xml index e69de29bb2..ffaca20bd4 100644 --- a/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/main/resources/META-INF/beans.xml +++ b/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/main/resources/META-INF/beans.xml @@ -0,0 +1,19 @@ + + diff --git a/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/main/resources/application.properties b/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/main/resources/application.properties index 81cb27f1db..e274ce49d1 100644 --- a/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/main/resources/application.properties +++ b/jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/main/resources/application.properties @@ -1 +1,20 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + quarkus.arc.selected-alternatives=org.kie.kogito.jobs.embedded.* \ No newline at end of file diff --git a/kogito-apps-bom/pom.xml b/kogito-apps-bom/pom.xml index bef8a8b114..90fce247cf 100644 --- a/kogito-apps-bom/pom.xml +++ b/kogito-apps-bom/pom.xml @@ -1,23 +1,21 @@ + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + --> @@ -967,7 +965,7 @@ ${project.version} javadoc - + diff --git a/kogito-apps-build-parent/pom.xml b/kogito-apps-build-parent/pom.xml index f698d6d180..2f5a4f365d 100644 --- a/kogito-apps-build-parent/pom.xml +++ b/kogito-apps-build-parent/pom.xml @@ -60,7 +60,7 @@ org.kie.kogito/integration-tests-trusty-service-quarkus:${project.version} - 999-SNAPSHOT + ${project.version} 6.4.4.Final 2.3.2 @@ -151,10 +151,8 @@ org.optaplanner - optaplanner-bom + optaplanner-quarkus ${version.org.optaplanner} - pom - import com.redislabs diff --git a/persistence-commons/README.md b/persistence-commons/README.md index 1edee8114d..9d4d01de6a 100644 --- a/persistence-commons/README.md +++ b/persistence-commons/README.md @@ -1,3 +1,21 @@ + # Kogito persistence commons This is the module that provides the persistence abstraction for the kogito apps. diff --git a/persistence-commons/persistence-commons-postgresql/src/main/resources/application.properties b/persistence-commons/persistence-commons-postgresql/src/main/resources/application.properties index 92df66eadd..c4820ddf59 100644 --- a/persistence-commons/persistence-commons-postgresql/src/main/resources/application.properties +++ b/persistence-commons/persistence-commons-postgresql/src/main/resources/application.properties @@ -1 +1,20 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + quarkus.datasource.jdbc.additional-jdbc-properties.stringtype=unspecified diff --git a/persistence-commons/persistence-commons-postgresql/src/main/resources/cache_entity_create.sql b/persistence-commons/persistence-commons-postgresql/src/main/resources/cache_entity_create.sql index 74c48518d6..b152f39073 100644 --- a/persistence-commons/persistence-commons-postgresql/src/main/resources/cache_entity_create.sql +++ b/persistence-commons/persistence-commons-postgresql/src/main/resources/cache_entity_create.sql @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + create table if not exists kogito_data_cache ( key varchar(255) not null, diff --git a/persistence-commons/persistence-commons-protobuf/src/test/resources/test.proto b/persistence-commons/persistence-commons-protobuf/src/test/resources/test.proto index 0d86e8c441..fc2732306d 100644 --- a/persistence-commons/persistence-commons-protobuf/src/test/resources/test.proto +++ b/persistence-commons/persistence-commons-protobuf/src/test/resources/test.proto @@ -1,3 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ syntax = "proto2"; package org.acme.travels.travels; diff --git a/persistence-commons/persistence-commons-protobuf/src/test/resources/test_invalid.proto b/persistence-commons/persistence-commons-protobuf/src/test/resources/test_invalid.proto index 968d6d5f6f..c41d5bcfab 100644 --- a/persistence-commons/persistence-commons-protobuf/src/test/resources/test_invalid.proto +++ b/persistence-commons/persistence-commons-protobuf/src/test/resources/test_invalid.proto @@ -1,3 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ syntax = "proto2"; package org.acme.travels.travels; diff --git a/persistence-commons/persistence-commons-redis/README.md b/persistence-commons/persistence-commons-redis/README.md index 416e49d7fd..1bb30aee10 100644 --- a/persistence-commons/persistence-commons-redis/README.md +++ b/persistence-commons/persistence-commons-redis/README.md @@ -1,3 +1,21 @@ + # Kogito persistence redis This is the module that provides support for redis. diff --git a/persistence-commons/persistence-commons-reporting-parent/persistence-commons-reporting-api/README.md b/persistence-commons/persistence-commons-reporting-parent/persistence-commons-reporting-api/README.md index 1a988c640a..c3298916b9 100644 --- a/persistence-commons/persistence-commons-reporting-parent/persistence-commons-reporting-api/README.md +++ b/persistence-commons/persistence-commons-reporting-parent/persistence-commons-reporting-api/README.md @@ -1,3 +1,21 @@ + # Reporting extension This module provides a framework to extract discrete values from a JSON column within diff --git a/pom.xml b/pom.xml index 1382b62669..f7c7f2d327 100644 --- a/pom.xml +++ b/pom.xml @@ -37,6 +37,57 @@ Kogito Apps Kogito Apps + + The Apache Software Foundation + https://apache.org/ + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + scm:git:https://github.com/apache/incubator-kie-kogito-apps.git + scm:git:https://github.com/apache/incubator-kie-kogito-apps.git + https://github.com/apache/incubator-kie-kogito-apps + + + + The Apache KIE Team + dev@kie.apache.org + https://kie.apache.org + Apache Software Foundation + http://apache.org/ + + + + + + Development List + dev-subscribe@kie.apache.org + dev-unsubscribe@kie.apache.org + dev@kie.apache.org + https://lists.apache.org/list.html?dev@kie.apache.org + + + User List + users-subscribe@kie.apache.org + users-unsubscribe@kie.apache.org + users@kie.apache.org + https://lists.apache.org/list.html?users@kie.apache.org + + + Commits List + commits-subscribe@kie.apache.org + commits-unsubscribe@kie.apache.org + commits@kie.apache.org + https://lists.apache.org/list.html?commits@kie.apache.org + + + 2024-01-16T00:00:00Z 3.4.1 @@ -58,20 +109,14 @@ - + - apache-public-repository-group - Apache Public Repository Group - https://repository.apache.org/content/groups/public/ - default - - true - never - - - true - daily - + + false + + apache.snapshots + Apache Snapshot Repository + https://repository.apache.org/snapshots @@ -104,5 +149,11 @@ trusty + + jitexecutor-native + + jitexecutor-native + + diff --git a/trusty/README.md b/trusty/README.md index 78cda08901..ab177a9333 100644 --- a/trusty/README.md +++ b/trusty/README.md @@ -1,3 +1,21 @@ + # Trusty Service Within the TrustyAI initiative, the trusty service is the main service that aims to collect tracing events emitted by one or more kogito-runtime application and to provide explainability on top of the decisions that have been by the application. diff --git a/trusty/trusty-storage/trusty-storage-infinispan/src/main/resources/META-INF/decision.proto b/trusty/trusty-storage/trusty-storage-infinispan/src/main/resources/META-INF/decision.proto index 4dae3c1352..03d8fa1817 100644 --- a/trusty/trusty-storage/trusty-storage-infinispan/src/main/resources/META-INF/decision.proto +++ b/trusty/trusty-storage/trusty-storage-infinispan/src/main/resources/META-INF/decision.proto @@ -1,3 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ package org.kie.kogito.trusty.storage.api.model.decision; /* @Indexed */ diff --git a/trusty/trusty-storage/trusty-storage-infinispan/src/main/resources/META-INF/explanation.proto b/trusty/trusty-storage/trusty-storage-infinispan/src/main/resources/META-INF/explanation.proto index 7838c19f37..93cf12800b 100644 --- a/trusty/trusty-storage/trusty-storage-infinispan/src/main/resources/META-INF/explanation.proto +++ b/trusty/trusty-storage/trusty-storage-infinispan/src/main/resources/META-INF/explanation.proto @@ -1,3 +1,21 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ package org.kie.kogito.explainability.api; /* @Indexed */