All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kie.server.client.UserTaskServicesClient Maven / Gradle / Ivy

There is a newer version: 7.74.1.Final
Show newest version
/*
 * 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.Date;
import java.util.List;
import java.util.Map;

import org.kie.server.api.model.instance.TaskAttachment;
import org.kie.server.api.model.instance.TaskComment;
import org.kie.server.api.model.instance.TaskEventInstance;
import org.kie.server.api.model.instance.TaskInstance;
import org.kie.server.api.model.instance.TaskSummary;
import org.kie.server.client.jms.ResponseHandler;

public interface UserTaskServicesClient {

    // task operations
    void activateTask(String containerId, Long taskId, String userId);

    void claimTask(String containerId, Long taskId, String userId);
    
    void claimTasks(String containerId, List taskIds, String userId);

    void completeTask(String containerId, Long taskId, String userId, Map params);

    void completeAutoProgress(String containerId, Long taskId, String userId, Map params);

    void delegateTask(String containerId, Long taskId, String userId, String targetUserId);

    void exitTask(String containerId, Long taskId, String userId);

    void failTask(String containerId, Long taskId, String userId, Map params);

    void forwardTask(String containerId, Long taskId, String userId, String targetEntityId);

    void releaseTask(String containerId, Long taskId, String userId);

    void resumeTask(String containerId, Long taskId, String userId);

    void skipTask(String containerId, Long taskId, String userId);

    void startTask(String containerId, Long taskId, String userId);

    void stopTask(String containerId, Long taskId, String userId);

    void suspendTask(String containerId, Long taskId, String userId);

    void nominateTask(String containerId, Long taskId, String userId, List potentialOwners);

    void setTaskPriority(String containerId, Long taskId, int priority);

    void setTaskExpirationDate(String containerId, Long taskId, Date date);

    void setTaskSkipable(String containerId, Long taskId, boolean skipable);

    void setTaskName(String containerId, Long taskId, String name);

    void setTaskDescription(String containerId, Long taskId, String description);
    
    void updateTask(String containerId, Long taskId, String userId, TaskInstance updatedTask);

    Long saveTaskContent(String containerId, Long taskId, Map values);

    Long saveTaskContent(String containerId, Long taskId, String userId, Map content);

    Map getTaskOutputContentByTaskId(String containerId, Long taskId);

    Map getTaskInputContentByTaskId(String containerId, Long taskId);

    void deleteTaskContent(String containerId, Long taskId, Long contentId);

    Long addTaskComment(String containerId, Long taskId, String text, String addedBy, Date addedOn);

    void deleteTaskComment(String containerId, Long taskId, Long commentId);

    List getTaskCommentsByTaskId(String containerId, Long taskId);

    TaskComment getTaskCommentById(String containerId, Long taskId, Long commentId);

    Long addTaskAttachment(String containerId, Long taskId, String userId, String name, Object attachment);

    void deleteTaskAttachment(String containerId, Long taskId, Long attachmentId);

    TaskAttachment getTaskAttachmentById(String containerId, Long taskId, Long attachmentId);

    Object getTaskAttachmentContentById(String containerId, Long taskId, Long attachmentId);

    List getTaskAttachmentsByTaskId(String containerId, Long taskId);

    TaskInstance getTaskInstance(String containerId, Long taskId);

    TaskInstance getTaskInstance(String containerId, Long taskId, boolean withInputs, boolean withOutputs, boolean withAssignments);

    List findTaskEvents(String containerId, Long taskId, Integer page, Integer pageSize);

    List findTaskEvents(String containerId, Long taskId, Integer page, Integer pageSize, String sort, boolean sortOrder);

    // task searches
    TaskInstance findTaskByWorkItemId(Long workItemId);

    TaskInstance findTaskById(Long taskId);

    TaskInstance findTaskById(Long taskId, boolean withSLA);

    List findTasksAssignedAsBusinessAdministrator(String userId, Integer page, Integer pageSize);

    List findTasksAssignedAsBusinessAdministrator(String userId, List status, Integer page, Integer pageSize);

    List findTasksAssignedAsPotentialOwner(String userId, Integer page, Integer pageSize);

    List findTasksAssignedAsPotentialOwner(String userId, List status, Integer page, Integer pageSize);

    List findTasksAssignedAsPotentialOwner(String userId, String filter, List status, Integer page, Integer pageSize);

    List findTasksAssignedAsPotentialOwner(String userId, List groups, List status, Integer page, Integer pageSize);

    List findTasksOwned(String userId, Integer page, Integer pageSize);

    List findTasksOwned(String userId, List status, Integer page, Integer pageSize);

    List findTasksByStatusByProcessInstanceId(Long processInstanceId, List status, Integer page, Integer pageSize);

    List findTasks(String userId, Integer page, Integer pageSize);

    List findTaskEvents(Long taskId, Integer page, Integer pageSize);

    List findTasksByVariable(String userId, String variableName, List status, Integer page, Integer pageSize);

    List findTasksByVariableAndValue(String userId, String variableName, String variableValue, List status, Integer page, Integer pageSize);

    List findTasksAssignedAsBusinessAdministrator(String userId, Integer page, Integer pageSize, String sort, boolean sortOrder);

    List findTasksAssignedAsBusinessAdministrator(String userId, List status, Integer page, Integer pageSize, String sort, boolean sortOrder);

    List findTasksAssignedAsPotentialOwner(String userId, Integer page, Integer pageSize, String sort, boolean sortOrder);

    List findTasksAssignedAsPotentialOwner(String userId, List status, Integer page, Integer pageSize, String sort, boolean sortOrder);

    List findTasksAssignedAsPotentialOwner(String userId, String filter, List status, Integer page, Integer pageSize, String sort, boolean sortOrder);

    List findTasksAssignedAsPotentialOwner(String userId, List groups, List status, Integer page, Integer pageSize, String sort, boolean sortOrder);

    List findTasksOwned(String userId, Integer page, Integer pageSize, String sort, boolean sortOrder);

    List findTasksOwned(String userId, List status, Integer page, Integer pageSize, String sort, boolean sortOrder);

    List findTasksByStatusByProcessInstanceId(Long processInstanceId, List status, Integer page, Integer pageSize, String sort, boolean sortOrder);

    List findTasks(String userId, Integer page, Integer pageSize, String sort, boolean sortOrder);

    List findTaskEvents(Long taskId, Integer page, Integer pageSize, String sort, boolean sortOrder);

    List findTasksByVariable(String userId, String variableName, List status, Integer page, Integer pageSize, String sort, boolean sortOrder);

    List findTasksByVariableAndValue(String userId, String variableName, String variableValue, List status, Integer page, Integer pageSize, String sort, boolean sortOrder);

    void setResponseHandler(ResponseHandler responseHandler);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy