Interface WorkflowTaskService

    • Method Detail

      • acquireOwnership

        void acquireOwnership​(TaskReferenceType taskReference)
                       throws com.lexmark.saperion.exceptions.EcmException
        Acquires the ownership of a task.
        Parameters:
        taskReference - the reference to the task in base64 encoded form of {"id":"xxx"}
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • addComment

        void addComment​(TaskReferenceType taskReference,
                        java.lang.String comment)
                 throws com.lexmark.saperion.exceptions.EcmException
        Adds a comment to a workflow task.
        Parameters:
        taskReference - the reference to the task in base64 encoded form of {"id":"xxx"}
        comment - the comment to add
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • forward

        @Deprecated
        default void forward​(TaskReferenceType taskReference,
                             int transitionId,
                             java.util.List<com.lexmark.saperion.administration.ActorReferenceType> recipients,
                             java.lang.String comment,
                             boolean sync)
                      throws com.lexmark.saperion.exceptions.EcmException
        Finishes the task execution and forwards the workflow to the next step.
        Parameters:
        taskReference - the reference to the task in base64 encoded form of {"id":"xxx"}
        transitionId - the ID of the next transition to use when forwarding
        recipients - the recipients of the next step if required
        comment - the comment that will be shown in the history
        sync - wait for the workflow operation to complete or not
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • forward

        void forward​(TaskReferenceType taskReference,
                     TaskForwardInputType forwardInput)
              throws com.lexmark.saperion.exceptions.EcmException
        Finishes the task execution and forwards the workflow to the next step.
        Parameters:
        taskReference - the reference to the task in base64 encoded form of {"id":"xxx"}
        forwardInput - the parameters for forwarding
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • getIndexData

        java.util.Map<java.lang.String,​com.lexmark.saperion.PropertyType> getIndexData​(TaskReferenceType taskReference)
                                                                                      throws com.lexmark.saperion.exceptions.EcmException
        Returns the task's index data.
        Parameters:
        taskReference - the reference to the task in base64 encoded form of {"id":"xxx"}
        Returns:
        the task's index data
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • getProperties

        TaskType getProperties​(TaskReferenceType taskReference)
                        throws com.lexmark.saperion.exceptions.EcmException
        Returns the task's properties.
        Parameters:
        taskReference - the reference to the task in base64 encoded form of {"id":"xxx"}
        Returns:
        the task's properties
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • getComments

        java.util.List<TaskCommentType> getComments​(TaskReferenceType taskReference)
                                             throws com.lexmark.saperion.exceptions.EcmException
        Returns the task's comments.
        Parameters:
        taskReference - the reference to the task in base64 encoded form of {"id":"xxx"}
        Returns:
        the task's comments
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • getTransitions

        java.util.List<TransitionDefinitionType> getTransitions​(TaskReferenceType taskReference)
                                                         throws com.lexmark.saperion.exceptions.EcmException
        Returns the task's transition definitions.
        Parameters:
        taskReference - the reference to the task in base64 encoded form of {"id":"xxx"}
        Returns:
        the task's transition definitions
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • revokeOwnership

        void revokeOwnership​(TaskReferenceType taskReference)
                      throws com.lexmark.saperion.exceptions.EcmException
        Revokes the ownership of a task.
        Parameters:
        taskReference - the reference to the task in base64 encoded form of {"id":"xxx"}
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • updateIndexData

        void updateIndexData​(TaskReferenceType taskReference,
                             java.util.Map<java.lang.String,​com.lexmark.saperion.PropertyType> properties)
                      throws com.lexmark.saperion.exceptions.EcmException
        Updates the task's index data.
        Parameters:
        taskReference - the reference to the task in base64 encoded form of {"id":"xxx"}
        properties - the task's index data
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • getTasksWithReminder

        java.util.List<TaskType> getTasksWithReminder()
                                               throws com.lexmark.saperion.exceptions.EcmException
        Returns workflow tasks that has reminder
        Returns:
        List of tasks
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • getOwnedTasks

        java.util.List<TaskType> getOwnedTasks()
                                        throws com.lexmark.saperion.exceptions.EcmException
        Returns tasks that owned by requester
        Returns:
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • getOverdueTasks

        java.util.List<TaskType> getOverdueTasks()
                                          throws com.lexmark.saperion.exceptions.EcmException
        Returns list of tasks that are passed their due date
        Returns:
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • createReminderForTask

        TaskType createReminderForTask​(TaskReferenceType taskReferenceType,
                                       long date)
                                throws com.lexmark.saperion.exceptions.EcmException
        Creates reminder for the given task
        Parameters:
        taskReferenceType -
        date -
        Returns:
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • updateReminderForTask

        TaskType updateReminderForTask​(TaskReferenceType taskReferenceType,
                                       long date)
                                throws com.lexmark.saperion.exceptions.EcmException
        Update or reset reminder for a given task.
        Parameters:
        taskReferenceType -
        date -
        Returns:
        Throws:
        com.lexmark.saperion.exceptions.EcmException