org.kie.server.client.QueryServicesClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kie-server-client Show documentation
Show all versions of kie-server-client Show documentation
KIE Execution Server Client
/*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* 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.server.client;
import java.util.List;
import java.util.Map;
import org.kie.internal.process.CorrelationKey;
import org.kie.server.api.model.definition.ProcessDefinition;
import org.kie.server.api.model.definition.ProcessInstanceQueryFilterSpec;
import org.kie.server.api.model.definition.QueryDefinition;
import org.kie.server.api.model.definition.QueryFilterSpec;
import org.kie.server.api.model.definition.SearchQueryFilterSpec;
import org.kie.server.api.model.definition.TaskQueryFilterSpec;
import org.kie.server.api.model.instance.NodeInstance;
import org.kie.server.api.model.instance.ProcessInstance;
import org.kie.server.api.model.instance.ProcessInstanceCustomVars;
import org.kie.server.api.model.instance.ProcessInstanceUserTaskWithVariables;
import org.kie.server.api.model.instance.TaskInstance;
import org.kie.server.api.model.instance.VariableInstance;
import org.kie.server.client.jms.ResponseHandler;
public interface QueryServicesClient {
public static final String QUERY_MAP_PI = "ProcessInstances";
public static final String QUERY_MAP_PI_WITH_VARS = "ProcessInstancesWithVariables";
public static final String QUERY_MAP_TASK = "UserTasks";
public static final String QUERY_MAP_TASK_WITH_VARS = "UserTasksWithVariables";
public static final String QUERY_MAP_RAW = "RawList";
public static final String QUERY_MAP_TASK_SUMMARY = "TaskSummaries";
public static final String QUERY_MAP_PI_WITH_CUSTOM_VARS = "ProcessInstancesWithCustomVariables";
public static final String QUERY_MAP_TASK_WITH_CUSTOM_VARS = "UserTasksWithCustomVariables";
public static final String QUERY_MAP_ERROR = "ExecutionErrors";
public static final String QUERY_MAP_TASK_WITH_MODIF = "UserTasksWithModifications";
public static final String QUERY_MAP_TASK_WITH_PO = "UserTasksWithPotOwners";
public static final String QUERY_MAP_PI_CUSTOM = "ProcessInstancesCustom";
public static final String SORT_BY_NAME = "ProcessName";
public static final String SORT_BY_VERSION = "ProcessVersion";
public static final String SORT_BY_PROJECT = "Project";
// runtime data searches
ProcessDefinition findProcessByContainerIdProcessId(String containerId, String processId);
List findProcessesById(String processId);
List findProcesses(Integer page, Integer pageSize);
List findProcesses(String filter, Integer page, Integer pageSize);
List findProcessesByContainerId(String containerId, Integer page, Integer pageSize);
List findProcesses(Integer page, Integer pageSize, String sort, boolean sortOrder);
List findProcesses(String filter, Integer page, Integer pageSize, String sort, boolean sortOrder);
List findProcessesByContainerId(String containerId, Integer page, Integer pageSize, String sort, boolean sortOrder);
List findProcessInstances(Integer page, Integer pageSize);
List findProcessInstancesByCorrelationKey(CorrelationKey correlationKey, Integer page, Integer pageSize);
List findProcessInstancesByProcessId(String processId, List status, Integer page, Integer pageSize);
List findProcessInstancesByProcessIdAndInitiator(String processId, String initiator, List status, Integer page, Integer pageSize);
List findProcessInstancesByProcessName(String processName, List status, Integer page, Integer pageSize);
List findProcessInstancesByContainerId(String containerId, List status, Integer page, Integer pageSize);
List findProcessInstancesByStatus(List status, Integer page, Integer pageSize);
List findProcessInstancesByInitiator(String initiator, List status, Integer page, Integer pageSize);
List findProcessInstancesByVariable(String variableName, List status, Integer page, Integer pageSize);
List findProcessInstancesByVariableAndValue(String variableName, String variableValue, List status, Integer page, Integer pageSize);
List findProcessInstances(Integer page, Integer pageSize, String sort, boolean sortOrder);
List findProcessInstancesByCorrelationKey(CorrelationKey correlationKey, Integer page, Integer pageSize, String sort, boolean sortOrder);
List findProcessInstancesByProcessId(String processId, List status, Integer page, Integer pageSize, String sort, boolean sortOrder);
List findProcessInstancesByProcessIdAndInitiator(String processId, String initiator, List status, Integer page, Integer pageSize, String sort, boolean sortOrder);
List findProcessInstancesByProcessName(String processName, List status, Integer page, Integer pageSize, String sort, boolean sortOrder);
List findProcessInstancesByContainerId(String containerId, List status, Integer page, Integer pageSize, String sort, boolean sortOrder);
List findProcessInstancesByStatus(List status, Integer page, Integer pageSize, String sort, boolean sortOrder);
List findProcessInstancesByInitiator(String initiator, List status, Integer page, Integer pageSize, String sort, boolean sortOrder);
List findProcessInstancesByVariable(String variableName, List status, Integer page, Integer pageSize, String sort, boolean sortOrder);
List findProcessInstancesByVariableAndValue(String variableName, String variableValue, List status, Integer page, Integer pageSize, String sort, boolean sortOrder);
ProcessInstance findProcessInstanceById(Long processInstanceId);
ProcessInstance findProcessInstanceById(Long processInstanceId, boolean withVars);
ProcessInstance findProcessInstanceByCorrelationKey(CorrelationKey correlationKey);
NodeInstance findNodeInstanceByWorkItemId(Long processInstanceId, Long workItemId);
List findActiveNodeInstances(Long processInstanceId, Integer page, Integer pageSize);
List findCompletedNodeInstances(Long processInstanceId, Integer page, Integer pageSize);
List findNodeInstances(Long processInstanceId, Integer page, Integer pageSize);
List findVariablesCurrentState(Long processInstanceId);
List findVariableHistory(Long processInstanceId, String variableName, Integer page, Integer pageSize);
// QueryDataService related
QueryDefinition registerQuery(QueryDefinition queryDefinition);
QueryDefinition replaceQuery(QueryDefinition queryDefinition);
void unregisterQuery(String queryName);
QueryDefinition getQuery(String queryName);
List getQueries(Integer page, Integer pageSize);
List query(String queryName, String mapper, Integer page, Integer pageSize, Class resultType);
List query(String queryName, String mapper, String orderBy, Integer page, Integer pageSize, Class resultType);
List query(String queryName, String mapper, QueryFilterSpec filterSpec, Integer page, Integer pageSize, Class resultType);
List query(String queryName, String mapper, String builder, Map parameters, Integer page, Integer pageSize, Class resultType);
List query(String containerId, String queryName, String mapper, String builder, Map parameters, Integer page, Integer pageSize, Class resultType);
List findProcessInstancesWithFilters(String queryName, ProcessInstanceQueryFilterSpec filterSpec, Integer page, Integer pageSize);
List findHumanTasksWithFilters(String queryName, TaskQueryFilterSpec filterSpec, Integer page, Integer pageSize);
void setResponseHandler(ResponseHandler responseHandler);
List queryProcessesByVariables(SearchQueryFilterSpec spec, Integer page, Integer pageSize);
default List queryProcessesByVariables(SearchQueryFilterSpec spec, Integer page, Integer pageSize, String sortBy, boolean asc) {
throw new UnsupportedOperationException();
};
List queryUserTaskByVariables(SearchQueryFilterSpec spec, Integer page, Integer pageSize);
default List queryUserTaskByVariables(SearchQueryFilterSpec spec, Integer page, Integer pageSize, String sortBy, boolean asc) {
throw new UnsupportedOperationException();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy