org.kie.server.client.ProcessServicesClient 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.AssociatedEntitiesDefinition;
import org.kie.server.api.model.definition.ProcessDefinition;
import org.kie.server.api.model.definition.ServiceTasksDefinition;
import org.kie.server.api.model.definition.SubProcessesDefinition;
import org.kie.server.api.model.definition.TaskInputsDefinition;
import org.kie.server.api.model.definition.TaskOutputsDefinition;
import org.kie.server.api.model.definition.UserTaskDefinitionList;
import org.kie.server.api.model.definition.VariablesDefinition;
import org.kie.server.api.model.instance.NodeInstance;
import org.kie.server.api.model.instance.ProcessInstance;
import org.kie.server.api.model.instance.VariableInstance;
import org.kie.server.api.model.instance.WorkItemInstance;
import org.kie.server.client.jms.ResponseHandler;
public interface ProcessServicesClient {
// process definition
ProcessDefinition getProcessDefinition(String containerId, String processId);
SubProcessesDefinition getReusableSubProcessDefinitions(String containerId, String processId);
VariablesDefinition getProcessVariableDefinitions(String containerId, String processId);
ServiceTasksDefinition getServiceTaskDefinitions(String containerId, String processId);
AssociatedEntitiesDefinition getAssociatedEntityDefinitions(String containerId, String processId);
UserTaskDefinitionList getUserTaskDefinitions(String containerId, String processId);
TaskInputsDefinition getUserTaskInputDefinitions(String containerId, String processId, String taskName);
TaskOutputsDefinition getUserTaskOutputDefinitions(String containerId, String processId, String taskName);
// process operations
Long startProcess(String containerId, String processId);
Long startProcess(String containerId, String processId, Map variables);
Map computeProcessOutcome(String containerId, String processId, Map variables);
Long startProcess(String containerId, String processId, CorrelationKey correlationKey);
Long startProcess(String containerId, String processId, CorrelationKey correlationKey, Map variables);
Long startProcessFromNodeIds(String containerId, String processId, Map variables, String... nodes);
Long startProcessFromNodeIds(String containerId, String processId, CorrelationKey correlationKey, Map variables, String... nodes);
void abortProcessInstance(String containerId, Long processInstanceId);
void abortProcessInstances(String containerId, List processInstanceIds);
Object getProcessInstanceVariable(String containerId, Long processInstanceId, String variableName);
T getProcessInstanceVariable(String containerId, Long processInstanceId, String variableName, Class type);
Map getProcessInstanceVariables(String containerId, Long processInstanceId);
void signalProcessInstance(String containerId, Long processInstanceId, String signalName, Object event);
void signalProcessInstances(String containerId, List processInstanceId, String signalName, Object event);
void signalProcessInstanceByCorrelationKey(String containerId, CorrelationKey correlationKey, String signalName, Object event);
void signalProcessInstancesByCorrelationKeys(String containerId, List correlationKeys, String signalName, Object event);
void signal(String containerId, String signalName, Object event);
List getAvailableSignals(String containerId, Long processInstanceId);
void setProcessVariable(String containerId, Long processInstanceId, String variableId, Object value);
void setProcessVariables(String containerId, Long processInstanceId, Map variables);
ProcessInstance getProcessInstance(String containerId, Long processInstanceId);
ProcessInstance getProcessInstance(String containerId, Long processInstanceId, boolean withVars);
void completeWorkItem(String containerId, Long processInstanceId, Long id, Map results);
void abortWorkItem(String containerId, Long processInstanceId, Long id);
WorkItemInstance getWorkItem(String containerId, Long processInstanceId, Long id);
List getWorkItemByProcessInstance(String containerId, Long processInstanceId);
List findActiveNodeInstances(String containerId, Long processInstanceId, Integer page, Integer pageSize);
List findCompletedNodeInstances(String containerId, Long processInstanceId, Integer page, Integer pageSize);
List findNodeInstances(String containerId, Long processInstanceId, Integer page, Integer pageSize);
List findNodeInstancesByType(String containerId, Long processInstanceId, String entryType, Integer page, Integer pageSize);
List findVariablesCurrentState(String containerId, Long processInstanceId);
List findVariableHistory(String containerId, Long processInstanceId, String variableName, Integer page, Integer pageSize);
void setResponseHandler(ResponseHandler responseHandler);
List findProcessInstancesByParent(String containerId, Long parentProcessInstanceId, Integer page, Integer pageSize);
List findProcessInstancesByParent(String containerId, Long parentProcessInstanceId, List status, Integer page, Integer pageSize);
List findProcessInstancesByParent(String containerId, Long parentProcessInstanceId, List status, Integer page, Integer pageSize, String sort, boolean sortOrder);
List findProcessInstances(String containerId, Integer page, Integer pageSize);
List findProcessInstances(String containerId, Integer page, Integer pageSize, String sort, boolean sortOrder);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy