diff --git a/_intellij-project/.idea/modules.xml b/_intellij-project/.idea/modules.xml index 6d69a7f4755..3a8859d17e4 100644 --- a/_intellij-project/.idea/modules.xml +++ b/_intellij-project/.idea/modules.xml @@ -6,12 +6,12 @@ - - + + diff --git a/examples/dmn-editor-standalone-on-webapp/src/withIncludedModels/index.ts b/examples/dmn-editor-standalone-on-webapp/src/withIncludedModels/index.ts index 0489488ff2b..66b600cb380 100644 --- a/examples/dmn-editor-standalone-on-webapp/src/withIncludedModels/index.ts +++ b/examples/dmn-editor-standalone-on-webapp/src/withIncludedModels/index.ts @@ -50,7 +50,7 @@ function loadEditor() { initialContent: loadFile("can-drive.dmn"), resources: new Map([ ["path1/can-drive-types.dmn", { contentType: "text", content: loadFile("can-drive-types.dmn") }], - ["path2/loan-pre-qualification.dmn", { contentType: "text", content: loadFile("loan-pre-qualification.dmn") }], + ["path2/loan-pre-qualification.dmn", { contentType: "text", content: loadFile("loan-pre-qualification.dmn") }], // Won't be available! Read comment above. ]), readOnly: false, }); diff --git a/examples/process-compact-architecture/src/main/resources/application.properties b/examples/process-compact-architecture/src/main/resources/application.properties index 6e3082e6ce1..b8fed9c6a26 100644 --- a/examples/process-compact-architecture/src/main/resources/application.properties +++ b/examples/process-compact-architecture/src/main/resources/application.properties @@ -52,7 +52,7 @@ quarkus.datasource.reactive.url=${QUARKUS_DATASOURCE_REACTIVE_URL:postgresql://0 # Keeping it disabled for simplicity. -quarkus.oidc.enabled=false +quarkus.oidc.enabled=false kogito.auth.enabled=false diff --git a/examples/process-user-tasks-subsystem/src/main/resources/META-INF/resources/index.html b/examples/process-user-tasks-subsystem/src/main/resources/META-INF/resources/index.html deleted file mode 100644 index ecd394419fc..00000000000 --- a/examples/process-user-tasks-subsystem/src/main/resources/META-INF/resources/index.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - kogito-infinispan-persistence-quarkus - 1.0-SNAPSHOT - - - - - -
-
-

Congratulations, you have created a new Quarkus application.

- -

Why do you see this?

- -

- This page is served by Quarkus. The source is in - src/main/resources/META-INF/resources/index.html. -

- -

What can I do from here?

- -

- If not already done, run the application in dev mode using: mvn compile quarkus:dev. -

-
    -
  • Add REST resources, Servlets, functions and other services in src/main/java.
  • -
  • Your static assets are located in src/main/resources/META-INF/resources.
  • -
  • Configure your application in src/main/resources/application.properties.
  • -
- -

How do I get rid of this page?

-

Just delete the src/main/resources/META-INF/resources/index.html file.

-
-
-
-

Application

-
    -
  • GroupId: org.acme
  • -
  • ArtifactId: kogito-infinispan-persistence-quarkus
  • -
  • Version: 1.0-SNAPSHOT
  • -
  • Quarkus Version: 0.19.1
  • -
-
- -
-
- - diff --git a/examples/process-user-tasks-subsystem/src/test/java/org/acme/travels/quarkus/ApprovalsProcessTest.java b/examples/process-user-tasks-subsystem/src/test/java/org/acme/travels/quarkus/ApprovalsProcessTest.java deleted file mode 100644 index a5a41285c3d..00000000000 --- a/examples/process-user-tasks-subsystem/src/test/java/org/acme/travels/quarkus/ApprovalsProcessTest.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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.acme.travels.quarkus; - -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.acme.travels.Address; -import org.acme.travels.Traveller; -import org.jbpm.process.instance.impl.humantask.HumanTaskTransition; -import org.jbpm.process.instance.impl.humantask.phases.Claim; -import org.jbpm.process.instance.impl.workitem.Complete; -import org.junit.jupiter.api.Test; -import org.kie.kogito.Model; -import org.kie.kogito.auth.IdentityProviders; -import org.kie.kogito.auth.SecurityPolicy; -import org.kie.kogito.process.Process; -import org.kie.kogito.process.ProcessInstance; -import org.kie.kogito.process.WorkItem; - -import io.quarkus.test.junit.QuarkusTest; - -import jakarta.inject.Inject; -import jakarta.inject.Named; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertNotNull; - -@QuarkusTest -public class ApprovalsProcessTest { - - @Named("approvals") - @Inject - Process approvalsProcess; - - @Test - public void testApprovalProcess() { - - assertNotNull(approvalsProcess); - - Model m = approvalsProcess.createModel(); - Map parameters = new HashMap<>(); - parameters.put("traveller", new Traveller("John", "Doe", "john.doe@example.com", "American", new Address("main street", "Boston", "10005", "US"))); - m.fromMap(parameters); - - ProcessInstance processInstance = approvalsProcess.createInstance(m); - processInstance.start(); - assertEquals(org.kie.api.runtime.process.ProcessInstance.STATE_ACTIVE, processInstance.status()); - - SecurityPolicy policy = SecurityPolicy.of(IdentityProviders.of("admin", Collections.singletonList("managers"))); - - processInstance.workItems(policy); - - List workItems = processInstance.workItems(policy); - assertEquals(1, workItems.size()); - Map results = new HashMap<>(); - results.put("approved", true); - processInstance.completeWorkItem(workItems.get(0).getId(), results, policy); - - workItems = processInstance.workItems(policy); - assertEquals(0, workItems.size()); - - policy = SecurityPolicy.of(IdentityProviders.of("john", Collections.singletonList("managers"))); - - processInstance.workItems(policy); - - workItems = processInstance.workItems(policy); - assertEquals(1, workItems.size()); - - results.put("approved", false); - processInstance.completeWorkItem(workItems.get(0).getId(), results, policy); - assertEquals(org.kie.api.runtime.process.ProcessInstance.STATE_COMPLETED, processInstance.status()); - - Model result = (Model) processInstance.variables(); - assertEquals(4, result.toMap().size()); - assertEquals(result.toMap().get("approver"), "admin"); - assertEquals(result.toMap().get("firstLineApproval"), true); - assertEquals(result.toMap().get("secondLineApproval"), false); - } - - @Test - public void testApprovalProcessViaPhases() { - - assertNotNull(approvalsProcess); - - Model m = approvalsProcess.createModel(); - Map parameters = new HashMap<>(); - parameters.put("traveller", new Traveller("John", "Doe", "john.doe@example.com", "American", new Address("main street", "Boston", "10005", "US"))); - m.fromMap(parameters); - - ProcessInstance processInstance = approvalsProcess.createInstance(m); - processInstance.start(); - assertEquals(org.kie.api.runtime.process.ProcessInstance.STATE_ACTIVE, processInstance.status()); - - SecurityPolicy policy = SecurityPolicy.of(IdentityProviders.of("admin", Collections.singletonList("managers"))); - - processInstance.workItems(policy); - - List workItems = processInstance.workItems(policy); - assertEquals(1, workItems.size()); - - processInstance.transitionWorkItem(workItems.get(0).getId(), new HumanTaskTransition(Claim.ID, null, policy)); - processInstance.transitionWorkItem(workItems.get(0).getId(), new HumanTaskTransition(Complete.ID, Collections.singletonMap("approved", true), policy)); - - workItems = processInstance.workItems(policy); - assertEquals(0, workItems.size()); - - policy = SecurityPolicy.of(IdentityProviders.of("john", Collections.singletonList("managers"))); - - processInstance.workItems(policy); - - workItems = processInstance.workItems(policy); - assertEquals(1, workItems.size()); - - processInstance.transitionWorkItem(workItems.get(0).getId(), new HumanTaskTransition(Claim.ID, null, policy)); - processInstance.transitionWorkItem(workItems.get(0).getId(), new HumanTaskTransition(Complete.ID, Collections.singletonMap("approved", false), policy)); - - assertEquals(org.kie.api.runtime.process.ProcessInstance.STATE_COMPLETED, processInstance.status()); - - Model result = (Model) processInstance.variables(); - assertEquals(4, result.toMap().size()); - assertEquals(result.toMap().get("approver"), "admin"); - assertEquals(result.toMap().get("firstLineApproval"), true); - assertEquals(result.toMap().get("secondLineApproval"), false); - } -} diff --git a/examples/process-user-tasks-subsystem/src/test/resources/application.properties b/examples/process-user-tasks-subsystem/src/test/resources/application.properties deleted file mode 100644 index e764de0f97d..00000000000 --- a/examples/process-user-tasks-subsystem/src/test/resources/application.properties +++ /dev/null @@ -1,23 +0,0 @@ -# -# 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 -quarkus.http.test-port=0 -kogito.persistence.rocksdb.clean=true -kogito.persistence.rocksdb.data.dir=pepe \ No newline at end of file