Class AbstractWorkflowTaskDelegateService

    • Constructor Detail

      • AbstractWorkflowTaskDelegateService

        public AbstractWorkflowTaskDelegateService()
    • Method Detail

      • acquireOwnership

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

        public void addComment​(TaskReferenceType taskReference,
                               java.lang.String comment)
                        throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: WorkflowTaskService
        Adds a comment to a workflow task.
        Specified by:
        addComment in interface WorkflowTaskService
        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

        public void forward​(TaskReferenceType taskReference,
                            TaskForwardInputType forwardInput)
                     throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: WorkflowTaskService
        Finishes the task execution and forwards the workflow to the next step.
        Specified by:
        forward in interface WorkflowTaskService
        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

        public java.util.Map<java.lang.String,​com.lexmark.saperion.PropertyType> getIndexData​(TaskReferenceType taskReference)
                                                                                             throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: WorkflowTaskService
        Returns the task's index data.
        Specified by:
        getIndexData in interface WorkflowTaskService
        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

        public TaskType getProperties​(TaskReferenceType taskReference)
                               throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: WorkflowTaskService
        Returns the task's properties.
        Specified by:
        getProperties in interface WorkflowTaskService
        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

        public java.util.List<TaskCommentType> getComments​(TaskReferenceType taskReference)
                                                    throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: WorkflowTaskService
        Returns the task's comments.
        Specified by:
        getComments in interface WorkflowTaskService
        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

        public java.util.List<TransitionDefinitionType> getTransitions​(TaskReferenceType taskReference)
                                                                throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: WorkflowTaskService
        Returns the task's transition definitions.
        Specified by:
        getTransitions in interface WorkflowTaskService
        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

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

        public void updateIndexData​(TaskReferenceType taskReference,
                                    java.util.Map<java.lang.String,​com.lexmark.saperion.PropertyType> properties)
                             throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: WorkflowTaskService
        Updates the task's index data.
        Specified by:
        updateIndexData in interface WorkflowTaskService
        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

        public java.util.List<TaskType> getTasksWithReminder()
                                                      throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: WorkflowTaskService
        Returns workflow tasks that has reminder
        Specified by:
        getTasksWithReminder in interface WorkflowTaskService
        Returns:
        List of tasks
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • getOwnedTasks

        public java.util.List<TaskType> getOwnedTasks()
                                               throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: WorkflowTaskService
        Returns tasks that owned by requester
        Specified by:
        getOwnedTasks in interface WorkflowTaskService
        Returns:
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • getOverdueTasks

        public java.util.List<TaskType> getOverdueTasks()
                                                 throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: WorkflowTaskService
        Returns list of tasks that are passed their due date
        Specified by:
        getOverdueTasks in interface WorkflowTaskService
        Returns:
        Throws:
        com.lexmark.saperion.exceptions.EcmException