Interface WorkflowTaskClient
- All Known Implementing Classes:
WorkflowTaskClientImpl
public interface WorkflowTaskClient
This client provides functionality for a given workflow task.
- Author:
- jschwarz
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This method acquires the ownership of the task for the current user.void
addComment
(String comment) This method adds a comment to the workflow task.createReminderForTask
(long date) Creates reminder for given taskdefault void
forward()
This method forwards a task.default void
forward
(int transitionId) This method finishes the task execution and forwards the workflow to the next step.default void
forward
(int transitionId, List<com.lexmark.saperion.administration.ActorReferenceType> recipients, String comment) This method finishes the task execution and forwards the workflow to the next step.void
forward
(int transitionId, List<com.lexmark.saperion.administration.ActorReferenceType> recipients, String comment, boolean sync) This method finishes the task execution and forwards the workflow to the next step.default void
This method finishes the task execution and forwards the workflow to the next step.This method returns the task's comments.Returns tasks that owned by requesterReturns List of tasks that are owned by requesterReturns List of tasks that have reminders setThis method returns the task's forward transition definitions.load()
This method returns the task's properties.void
This method revokes the ownership of the task from the current user.void
updateIndexData
(Map<String, com.lexmark.saperion.PropertyType> properties) This method updates the task's index data.updateReminderForTask
(long date) Update or reset reminder for a given task.
-
Method Details
-
acquireOwnership
void acquireOwnership() throws com.lexmark.saperion.exceptions.EcmExceptionThis method acquires the ownership of the task for the current user.- Throws:
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurred
-
addComment
This method adds a comment to the workflow task.- Parameters:
comment
- the comment- Throws:
com.lexmark.saperion.exceptions.system.SystemException
- indicates that a system exception occurredcom.lexmark.saperion.exceptions.EcmException
-
forward
void forward(int transitionId, List<com.lexmark.saperion.administration.ActorReferenceType> recipients, String comment, boolean sync) throws com.lexmark.saperion.exceptions.EcmException This method finishes the task execution and forwards the workflow to the next step.- Throws:
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurred
-
forward
default void forward(int transitionId, List<com.lexmark.saperion.administration.ActorReferenceType> recipients, String comment) throws com.lexmark.saperion.exceptions.EcmException This method finishes the task execution and forwards the workflow to the next step.- Throws:
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurred
-
forward
default void forward(List<com.lexmark.saperion.administration.ActorReferenceType> recipients) throws com.lexmark.saperion.exceptions.EcmException This method finishes the task execution and forwards the workflow to the next step.- Throws:
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurred
-
forward
default void forward(int transitionId) throws com.lexmark.saperion.exceptions.EcmException This method finishes the task execution and forwards the workflow to the next step.- Throws:
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurred
-
forward
default void forward() throws com.lexmark.saperion.exceptions.EcmExceptionThis method forwards a task. The transition is determined by the server.- Throws:
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurred
-
load
This method returns the task's properties.- Returns:
- the task's properties
- Throws:
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurred
-
getComments
This method returns the task's comments.- Returns:
- the task's comments
- Throws:
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurred
-
getTransitions
This method returns the task's forward transition definitions.- Returns:
- the task's forward transition definitions
- Throws:
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurred
-
revokeOwnership
void revokeOwnership() throws com.lexmark.saperion.exceptions.EcmExceptionThis method revokes the ownership of the task from the current user.- Throws:
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurred
-
updateIndexData
void updateIndexData(Map<String, com.lexmark.saperion.PropertyType> properties) throws com.lexmark.saperion.exceptions.EcmExceptionThis method updates the task's index data.- Parameters:
properties
- the task's index data- Throws:
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurred
-
getTasksWithReminder
Returns List of tasks that have reminders set- Returns:
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
getOwnedTasks
Returns List of tasks that are owned by requester- Returns:
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
getOverdueTasks
Returns tasks that owned by requester- Returns:
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
createReminderForTask
Creates reminder for given task- Parameters:
taskReferenceType
-date
-- Returns:
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
updateReminderForTask
Update or reset reminder for a given task.- Parameters:
taskReferenceType
-date
-- Returns:
- Throws:
com.lexmark.saperion.exceptions.EcmException
-