This is an automated email from the ASF dual-hosted git repository.

fjtiradosarti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-apps.git


The following commit(s) were added to refs/heads/main by this push:
     new 9dffdaa0c Remove runtime-tools-quarkus-extension (#2037)
9dffdaa0c is described below

commit 9dffdaa0c459340c885bfcc056490f9ce75ac5e0
Author: Fabrizio Antonangeli <[email protected]>
AuthorDate: Fri Apr 19 11:21:54 2024 +0200

    Remove runtime-tools-quarkus-extension (#2037)
---
 .../resources/dev-ui/qwc-jbpm-quarkus-devui.js     | 79 ----------------------
 .../config/DevUIStaticArtifactsRecorder.java       | 45 ------------
 .../runtime/dataindex/DataIndexClient.java         | 53 ---------------
 .../extension/runtime/dataindex/jobs/Job.java      | 45 ------------
 .../runtime/dataindex/jobs/JobsResponse.java       | 40 -----------
 .../dataindex/processes/ProcessInstance.java       | 45 ------------
 .../dataindex/processes/ProcessInstancesData.java  | 45 ------------
 .../processes/ProcessInstancesResponse.java        | 40 -----------
 .../extension/runtime/dataindex/tasks/Task.java    | 45 ------------
 .../runtime/dataindex/tasks/TaskResponseData.java  | 45 ------------
 .../runtime/dataindex/tasks/TasksResponse.java     | 36 ----------
 .../runtime/rpc/JBPMDevuiJsonRPCService.java       | 79 ----------------------
 12 files changed, 597 deletions(-)

diff --git 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension-deployment/src/main/resources/dev-ui/qwc-jbpm-quarkus-devui.js
 
b/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension-deployment/src/main/resources/dev-ui/qwc-jbpm-quarkus-devui.js
deleted file mode 100644
index d4de6dd65..000000000
--- 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension-deployment/src/main/resources/dev-ui/qwc-jbpm-quarkus-devui.js
+++ /dev/null
@@ -1,79 +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.
- */
-
-import {html, LitElement} from 'lit';
-import {
-    dataIndexUrl,
-    devUIUrl,
-    extensionBasePath,
-    isTracingEnabled,
-    openapiPath,
-    trustyServiceUrl,
-    userData
-} from 'build-time-data';
-import {RouterController} from 'router-controller';
-
-export class QwcJbpmQuarkusDevui extends LitElement {
-    _routerController = new RouterController(this);
-
-    constructor() {
-        super();
-    }
-
-    render() {
-        return html`
-            <div id="envelope-app" style="height: 100%"></div>`;
-    }
-
-    async connectedCallback() {
-        super.connectedCallback();
-        await this.updateComplete
-        if (!document.querySelector('#jbpm-devui-script')) {
-            const script = document.createElement('script');
-            script.setAttribute("async", "");
-            script.setAttribute("id", "jbpm-devui-script");
-            script.setAttribute("src", 
`${extensionBasePath}/resources/webapp/standalone.js`);
-            script.addEventListener("load", () => {
-                this.initUI()
-            })
-            document.head.appendChild(script);
-        } else {
-            this.initUI();
-        }
-    }
-
-    initUI() {
-        const metadata = this._routerController.getCurrentMetaData();
-        const container = this.renderRoot.querySelector("#envelope-app");
-        RuntimeToolsDevUI.open({
-            container: container,
-            isDataIndexAvailable: true,
-            isTracingEnabled: isTracingEnabled,
-            dataIndexUrl: `${dataIndexUrl ?? "http://localhost:8180"}/graphql`,
-            trustyServiceUrl: `${trustyServiceUrl ?? "http://localhost:1336"}`,
-            page: metadata.page ?? "Processes",
-            devUIUrl: `${devUIUrl ?? window.location.origin}`,
-            openApiPath: `${openapiPath ?? "q/openapi.json"}`,
-            availablePages: ["Processes", "Jobs", "Tasks", "Forms"],
-            users: userData ?? []
-        });
-    }
-}
-
-customElements.define('qwc-jbpm-quarkus-devui', QwcJbpmQuarkusDevui);
\ No newline at end of file
diff --git 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/config/DevUIStaticArtifactsRecorder.java
 
b/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/config/DevUIStaticArtifactsRecorder.java
deleted file mode 100644
index 4c87f694c..000000000
--- 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/config/DevUIStaticArtifactsRecorder.java
+++ /dev/null
@@ -1,45 +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.kie.kogito.runtime.tools.quarkus.extension.runtime.config;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import io.quarkus.runtime.ShutdownContext;
-import io.quarkus.runtime.annotations.Recorder;
-import io.quarkus.vertx.http.runtime.devmode.FileSystemStaticHandler;
-import io.vertx.core.Handler;
-import io.vertx.ext.web.RoutingContext;
-
-@Recorder
-public class DevUIStaticArtifactsRecorder {
-
-    public Handler<RoutingContext> handler(String deploymentArtifactPath, 
ShutdownContext shutdownContext) {
-        List<FileSystemStaticHandler.StaticWebRootConfiguration> 
webRootConfigurations = new ArrayList<>();
-        webRootConfigurations.add(
-                new 
FileSystemStaticHandler.StaticWebRootConfiguration(deploymentArtifactPath, ""));
-
-        FileSystemStaticHandler fileSystemStaticHandler = new 
FileSystemStaticHandler(webRootConfigurations);
-
-        shutdownContext.addShutdownTask(new 
ShutdownContext.CloseRunnable(fileSystemStaticHandler));
-
-        return fileSystemStaticHandler;
-    }
-}
diff --git 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/DataIndexClient.java
 
b/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/DataIndexClient.java
deleted file mode 100644
index 6a9af3c58..000000000
--- 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/DataIndexClient.java
+++ /dev/null
@@ -1,53 +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.kie.kogito.runtime.tools.quarkus.extension.runtime.dataindex;
-
-import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
-import 
org.kie.kogito.runtime.tools.quarkus.extension.runtime.dataindex.jobs.JobsResponse;
-import 
org.kie.kogito.runtime.tools.quarkus.extension.runtime.dataindex.processes.ProcessInstancesResponse;
-import 
org.kie.kogito.runtime.tools.quarkus.extension.runtime.dataindex.tasks.TasksResponse;
-
-import jakarta.enterprise.context.ApplicationScoped;
-import jakarta.ws.rs.Consumes;
-import jakarta.ws.rs.POST;
-import jakarta.ws.rs.Path;
-import jakarta.ws.rs.core.MediaType;
-
-import static 
org.kie.kogito.runtime.tools.quarkus.extension.runtime.dataindex.DataIndexClient.DATA_INDEX_CONFIG_KEY;
-
-@Path("/graphql")
-@RegisterRestClient(configKey = DATA_INDEX_CONFIG_KEY)
-@ApplicationScoped
-public interface DataIndexClient {
-
-    String DATA_INDEX_CONFIG_KEY = "kogito.data-index.url";
-
-    @POST
-    @Consumes(MediaType.APPLICATION_JSON)
-    ProcessInstancesResponse queryProcessInstances(String query);
-
-    @POST
-    @Consumes(MediaType.APPLICATION_JSON)
-    TasksResponse queryTasks(String query);
-
-    @POST
-    @Consumes(MediaType.APPLICATION_JSON)
-    JobsResponse queryJobs(String query);
-}
diff --git 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/jobs/Job.java
 
b/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/jobs/Job.java
deleted file mode 100644
index 5601fb387..000000000
--- 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/jobs/Job.java
+++ /dev/null
@@ -1,45 +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.kie.kogito.runtime.tools.quarkus.extension.runtime.dataindex.jobs;
-
-public class Job {
-
-    private String id;
-
-    public Job() {
-    }
-
-    public Job(final String id) {
-        this.id = id;
-    }
-
-    public String getId() {
-        return id;
-    }
-
-    public void setId(final String id) {
-        this.id = id;
-    }
-
-    @Override
-    public String toString() {
-        return id;
-    }
-}
diff --git 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/jobs/JobsResponse.java
 
b/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/jobs/JobsResponse.java
deleted file mode 100644
index 1286f7ba1..000000000
--- 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/jobs/JobsResponse.java
+++ /dev/null
@@ -1,40 +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.kie.kogito.runtime.tools.quarkus.extension.runtime.dataindex.jobs;
-
-public class JobsResponse {
-
-    private JobsData data;
-
-    public JobsResponse() {
-    }
-
-    public JobsResponse(final JobsData data) {
-        this.data = data;
-    }
-
-    public JobsData getData() {
-        return data;
-    }
-
-    public void setData(final JobsData data) {
-        this.data = data;
-    }
-}
diff --git 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/processes/ProcessInstance.java
 
b/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/processes/ProcessInstance.java
deleted file mode 100644
index a25f9043a..000000000
--- 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/processes/ProcessInstance.java
+++ /dev/null
@@ -1,45 +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.kie.kogito.runtime.tools.quarkus.extension.runtime.dataindex.processes;
-
-public class ProcessInstance {
-
-    private String id;
-
-    public ProcessInstance() {
-    }
-
-    public ProcessInstance(final String id) {
-        this.id = id;
-    }
-
-    public String getId() {
-        return id;
-    }
-
-    public void setId(final String id) {
-        this.id = id;
-    }
-
-    @Override
-    public String toString() {
-        return id;
-    }
-}
diff --git 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/processes/ProcessInstancesData.java
 
b/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/processes/ProcessInstancesData.java
deleted file mode 100644
index 4a74a6690..000000000
--- 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/processes/ProcessInstancesData.java
+++ /dev/null
@@ -1,45 +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.kie.kogito.runtime.tools.quarkus.extension.runtime.dataindex.processes;
-
-import java.util.List;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-public class ProcessInstancesData {
-
-    @JsonProperty("ProcessInstances")
-    private List<ProcessInstance> instances;
-
-    public ProcessInstancesData() {
-    }
-
-    public ProcessInstancesData(final List<ProcessInstance> instances) {
-        this.instances = instances;
-    }
-
-    public List<ProcessInstance> getProcessInstances() {
-        return instances;
-    }
-
-    public void setProcessInstances(final List<ProcessInstance> 
processInstancesList) {
-        this.instances = processInstancesList;
-    }
-}
diff --git 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/processes/ProcessInstancesResponse.java
 
b/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/processes/ProcessInstancesResponse.java
deleted file mode 100644
index 51a64885d..000000000
--- 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/processes/ProcessInstancesResponse.java
+++ /dev/null
@@ -1,40 +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.kie.kogito.runtime.tools.quarkus.extension.runtime.dataindex.processes;
-
-public class ProcessInstancesResponse {
-
-    private ProcessInstancesData data;
-
-    public ProcessInstancesResponse() {
-    }
-
-    public ProcessInstancesResponse(final ProcessInstancesData data) {
-        this.data = data;
-    }
-
-    public ProcessInstancesData getData() {
-        return data;
-    }
-
-    public void setData(final ProcessInstancesData data) {
-        this.data = data;
-    }
-}
diff --git 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/tasks/Task.java
 
b/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/tasks/Task.java
deleted file mode 100644
index 935eceaf7..000000000
--- 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/tasks/Task.java
+++ /dev/null
@@ -1,45 +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.kie.kogito.runtime.tools.quarkus.extension.runtime.dataindex.tasks;
-
-public class Task {
-
-    private String id;
-
-    public Task() {
-    }
-
-    public Task(final String id) {
-        this.id = id;
-    }
-
-    public String getId() {
-        return id;
-    }
-
-    public void setId(final String id) {
-        this.id = id;
-    }
-
-    @Override
-    public String toString() {
-        return id;
-    }
-}
diff --git 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/tasks/TaskResponseData.java
 
b/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/tasks/TaskResponseData.java
deleted file mode 100644
index 016c095cd..000000000
--- 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/tasks/TaskResponseData.java
+++ /dev/null
@@ -1,45 +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.kie.kogito.runtime.tools.quarkus.extension.runtime.dataindex.tasks;
-
-import java.util.List;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-public class TaskResponseData {
-
-    @JsonProperty("UserTaskInstances")
-    private List<Task> tasks;
-
-    public TaskResponseData() {
-    }
-
-    public TaskResponseData(final List<Task> tasks) {
-        this.tasks = tasks;
-    }
-
-    public List<Task> getTasks() {
-        return tasks;
-    }
-
-    public void setTasks(final List<Task> userTaskInstancesList) {
-        this.tasks = userTaskInstancesList;
-    }
-}
diff --git 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/tasks/TasksResponse.java
 
b/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/tasks/TasksResponse.java
deleted file mode 100644
index 54a415dc5..000000000
--- 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/dataindex/tasks/TasksResponse.java
+++ /dev/null
@@ -1,36 +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.kie.kogito.runtime.tools.quarkus.extension.runtime.dataindex.tasks;
-
-public class TasksResponse {
-
-    private TaskResponseData data;
-
-    public TasksResponse() {
-    }
-
-    public TaskResponseData getData() {
-        return data;
-    }
-
-    public void setData(final TaskResponseData data) {
-        this.data = data;
-    }
-}
diff --git 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/rpc/JBPMDevuiJsonRPCService.java
 
b/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/rpc/JBPMDevuiJsonRPCService.java
deleted file mode 100644
index fd3f4070e..000000000
--- 
a/runtime-tools-quarkus-extension-parent/runtime-tools-quarkus-extension/src/main/java/org/kie/kogito/runtime/tools/quarkus/extension/runtime/rpc/JBPMDevuiJsonRPCService.java
+++ /dev/null
@@ -1,79 +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.kie.kogito.runtime.tools.quarkus.extension.runtime.rpc;
-
-import java.util.function.Supplier;
-
-import org.eclipse.microprofile.rest.client.inject.RestClient;
-import 
org.kie.kogito.runtime.tools.quarkus.extension.runtime.dataindex.DataIndexClient;
-import 
org.kie.kogito.runtime.tools.quarkus.extension.runtime.forms.FormsStorage;
-
-import com.fasterxml.jackson.databind.ObjectMapper;
-
-import io.smallrye.common.annotation.NonBlocking;
-
-import jakarta.enterprise.context.ApplicationScoped;
-import jakarta.inject.Inject;
-
-@ApplicationScoped
-public class JBPMDevuiJsonRPCService {
-    public static final String ALL_TASKS_IDS_QUERY = "{ \"operationName\": 
\"getAllTasksIds\", \"query\": \"query getAllTasksIds{  UserTaskInstances{ id } 
}\" }";
-    public static final String ALL_PROCESS_INSTANCES_IDS_QUERY = "{ 
\"operationName\": \"getAllProcessesIds\", \"query\": \"query 
getAllProcessesIds{  ProcessInstances{ id } }\" }";
-    public static final String ALL_JOBS_IDS_QUERY = "{ \"operationName\": 
\"getAllJobsIds\", \"query\": \"query getAllJobsIds{  Jobs{ id } }\" }";
-
-    private final ObjectMapper mapper;
-    private final DataIndexClient dataIndexClient;
-    private final FormsStorage formsStorage;
-
-    @Inject
-    public JBPMDevuiJsonRPCService(ObjectMapper mapper, @RestClient 
DataIndexClient dataIndexClient, FormsStorage formsStorage) {
-        this.mapper = mapper;
-        this.dataIndexClient = dataIndexClient;
-        this.formsStorage = formsStorage;
-    }
-
-    @NonBlocking
-    public String queryProcessInstancesCount() {
-        return doQuery(() -> 
this.dataIndexClient.queryProcessInstances(ALL_PROCESS_INSTANCES_IDS_QUERY).getData().getProcessInstances().size());
-    }
-
-    @NonBlocking
-    public String queryTasksCount() {
-        return doQuery(() -> 
this.dataIndexClient.queryTasks(ALL_TASKS_IDS_QUERY).getData().getTasks().size());
-    }
-
-    @NonBlocking
-    public String queryJobsCount() {
-        return doQuery(() -> 
this.dataIndexClient.queryJobs(ALL_JOBS_IDS_QUERY).getData().getJobs().size());
-    }
-
-    @NonBlocking
-    public String getFormsCount() {
-        return doQuery(this.formsStorage::getFormsCount);
-    }
-
-    private String doQuery(Supplier<Integer> countSupplier) {
-        try {
-            return String.valueOf(countSupplier.get());
-        } catch (Exception ex) {
-            return "-";
-        }
-    }
-}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to