Interface WorkflowTaskClient
-
- All Known Implementing Classes:
WorkflowTaskClientImpl
public interface WorkflowTaskClientThis client provides functionality for a given workflow task.- Author:
- jschwarz
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidacquireOwnership()This method acquires the ownership of the task for the current user.voidaddComment(java.lang.String comment)This method adds a comment to the workflow task.TaskTypecreateReminderForTask(long date)Creates reminder for given taskdefault voidforward()This method forwards a task.default voidforward(int transitionId)This method finishes the task execution and forwards the workflow to the next step.default voidforward(int transitionId, java.util.List<com.lexmark.saperion.administration.ActorReferenceType> recipients, java.lang.String comment)This method finishes the task execution and forwards the workflow to the next step.voidforward(int transitionId, java.util.List<com.lexmark.saperion.administration.ActorReferenceType> recipients, java.lang.String comment, boolean sync)This method finishes the task execution and forwards the workflow to the next step.default voidforward(java.util.List<com.lexmark.saperion.administration.ActorReferenceType> recipients)This method finishes the task execution and forwards the workflow to the next step.java.util.List<TaskCommentType>getComments()This method returns the task's comments.java.util.List<TaskType>getOverdueTasks()Returns tasks that owned by requesterjava.util.List<TaskType>getOwnedTasks()Returns List of tasks that are owned by requesterjava.util.List<TaskType>getTasksWithReminder()Returns List of tasks that have reminders setjava.util.List<TransitionDefinitionType>getTransitions()This method returns the task's forward transition definitions.TaskTypeload()This method returns the task's properties.voidrevokeOwnership()This method revokes the ownership of the task from the current user.voidupdateIndexData(java.util.Map<java.lang.String,com.lexmark.saperion.PropertyType> properties)This method updates the task's index data.TaskTypeupdateReminderForTask(long date)Update or reset reminder for a given task.
-
-
-
Method Detail
-
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
void addComment(java.lang.String comment) throws com.lexmark.saperion.exceptions.EcmExceptionThis 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, java.util.List<com.lexmark.saperion.administration.ActorReferenceType> recipients, java.lang.String comment, boolean sync) throws com.lexmark.saperion.exceptions.EcmExceptionThis 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, java.util.List<com.lexmark.saperion.administration.ActorReferenceType> recipients, java.lang.String comment) throws com.lexmark.saperion.exceptions.EcmExceptionThis 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(java.util.List<com.lexmark.saperion.administration.ActorReferenceType> recipients) throws com.lexmark.saperion.exceptions.EcmExceptionThis 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.EcmExceptionThis 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
TaskType load() throws com.lexmark.saperion.exceptions.EcmException
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
java.util.List<TaskCommentType> getComments() throws com.lexmark.saperion.exceptions.EcmException
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
java.util.List<TransitionDefinitionType> getTransitions() throws com.lexmark.saperion.exceptions.EcmException
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(java.util.Map<java.lang.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
java.util.List<TaskType> getTasksWithReminder() throws com.lexmark.saperion.exceptions.EcmException
Returns List of tasks that have reminders set- Returns:
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
getOwnedTasks
java.util.List<TaskType> getOwnedTasks() throws com.lexmark.saperion.exceptions.EcmException
Returns List of tasks that are owned by requester- Returns:
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
getOverdueTasks
java.util.List<TaskType> getOverdueTasks() throws com.lexmark.saperion.exceptions.EcmException
Returns tasks that owned by requester- Returns:
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
createReminderForTask
TaskType createReminderForTask(long date) throws com.lexmark.saperion.exceptions.EcmException
Creates reminder for given task- Parameters:
taskReferenceType-date-- Returns:
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
updateReminderForTask
TaskType updateReminderForTask(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
-
-