Interface TaskService

  • All Superinterfaces:
    CommandExecutor

    public interface TaskService
    extends CommandExecutor
    The Task Service Entry Point serves as facade of all the other services, providing a single entry point to access to all the services
    • Method Detail

      • activate

        void activate​(long taskId,
                      java.lang.String userId)
      • claim

        void claim​(long taskId,
                   java.lang.String userId)
      • claimNextAvailable

        void claimNextAvailable​(java.lang.String userId,
                                java.lang.String language)
      • complete

        void complete​(long taskId,
                      java.lang.String userId,
                      java.util.Map<java.lang.String,​java.lang.Object> data)
      • delegate

        void delegate​(long taskId,
                      java.lang.String userId,
                      java.lang.String targetUserId)
      • exit

        void exit​(long taskId,
                  java.lang.String userId)
      • fail

        void fail​(long taskId,
                  java.lang.String userId,
                  java.util.Map<java.lang.String,​java.lang.Object> faultData)
      • forward

        void forward​(long taskId,
                     java.lang.String userId,
                     java.lang.String targetEntityId)
      • getTaskByWorkItemId

        Task getTaskByWorkItemId​(long workItemId)
      • getTaskById

        Task getTaskById​(long taskId)
      • getTasksAssignedAsBusinessAdministrator

        java.util.List<TaskSummary> getTasksAssignedAsBusinessAdministrator​(java.lang.String userId,
                                                                            java.lang.String language)
      • getTasksAssignedAsPotentialOwner

        java.util.List<TaskSummary> getTasksAssignedAsPotentialOwner​(java.lang.String userId,
                                                                     java.lang.String language)
      • getTasksAssignedAsPotentialOwner

        @Deprecated
        java.util.List<TaskSummary> getTasksAssignedAsPotentialOwner​(java.lang.String userId,
                                                                     java.util.List<java.lang.String> groupIds,
                                                                     java.lang.String language,
                                                                     int firstResult,
                                                                     int maxResults)
        Deprecated.
      • getTasksAssignedAsPotentialOwnerByStatus

        java.util.List<TaskSummary> getTasksAssignedAsPotentialOwnerByStatus​(java.lang.String userId,
                                                                             java.util.List<Status> status,
                                                                             java.lang.String language)
      • getTasksOwned

        java.util.List<TaskSummary> getTasksOwned​(java.lang.String userId,
                                                  java.lang.String language)
      • getTasksOwnedByStatus

        java.util.List<TaskSummary> getTasksOwnedByStatus​(java.lang.String userId,
                                                          java.util.List<Status> status,
                                                          java.lang.String language)
      • getTasksByStatusByProcessInstanceId

        java.util.List<TaskSummary> getTasksByStatusByProcessInstanceId​(java.lang.String processInstanceId,
                                                                        java.util.List<Status> status,
                                                                        java.lang.String language)
      • getTasksAssignedAsPotentialOwnerByProcessId

        java.util.List<TaskSummary> getTasksAssignedAsPotentialOwnerByProcessId​(java.lang.String userId,
                                                                                java.lang.String processId)
      • getTasksByProcessInstanceId

        java.util.List<java.lang.Long> getTasksByProcessInstanceId​(java.lang.String processInstanceId)
      • addTask

        long addTask​(Task task,
                     java.util.Map<java.lang.String,​java.lang.Object> params)
      • release

        void release​(long taskId,
                     java.lang.String userId)
      • resume

        void resume​(long taskId,
                    java.lang.String userId)
      • skip

        void skip​(long taskId,
                  java.lang.String userId)
      • start

        void start​(long taskId,
                   java.lang.String userId)
      • stop

        void stop​(long taskId,
                  java.lang.String userId)
      • suspend

        void suspend​(long taskId,
                     java.lang.String userId)
      • nominate

        void nominate​(long taskId,
                      java.lang.String userId,
                      java.util.List<OrganizationalEntity> potentialOwners)
      • getContentById

        Content getContentById​(long contentId)
      • getAttachmentById

        Attachment getAttachmentById​(long attachId)
      • getTaskContent

        java.util.Map<java.lang.String,​java.lang.Object> getTaskContent​(long taskId)
      • addComment

        java.lang.Long addComment​(long taskId,
                                  Comment comment)
      • addComment

        java.lang.Long addComment​(long taskId,
                                  java.lang.String addedByUserId,
                                  java.lang.String commentText)
      • deleteComment

        void deleteComment​(long taskId,
                           long commentId)
      • getAllCommentsByTaskId

        java.util.List<Comment> getAllCommentsByTaskId​(long taskId)
      • getCommentById

        Comment getCommentById​(long commentId)
      • setExpirationDate

        void setExpirationDate​(long taskId,
                               java.util.Date date)