Package com.lexmark.saperion.delegate
Class AbstractWorkflowTaskDelegateService
- java.lang.Object
-
- com.lexmark.saperion.delegate.AbstractDelegateService<WorkflowTaskService>
-
- com.lexmark.saperion.delegate.AbstractWorkflowTaskDelegateService
-
- All Implemented Interfaces:
WorkflowTaskService
- Direct Known Subclasses:
WorkflowTaskDelegateService
public abstract class AbstractWorkflowTaskDelegateService extends AbstractDelegateService<WorkflowTaskService> implements WorkflowTaskService
ThisWorkflowTaskServicesimply delegates to another instance.- Author:
- jschwarz
-
-
Constructor Summary
Constructors Constructor Description AbstractWorkflowTaskDelegateService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacquireOwnership(TaskReferenceType taskReference)Acquires the ownership of a task.voidaddComment(TaskReferenceType taskReference, java.lang.String comment)Adds a comment to a workflow task.TaskTypecreateReminderForTask(TaskReferenceType taskReferenceType, long date)Creates reminder for the given taskvoidforward(TaskReferenceType taskReference, TaskForwardInputType forwardInput)Finishes the task execution and forwards the workflow to the next step.java.util.List<TaskCommentType>getComments(TaskReferenceType taskReference)Returns the task's comments.java.util.Map<java.lang.String,com.lexmark.saperion.PropertyType>getIndexData(TaskReferenceType taskReference)Returns the task's index data.java.util.List<TaskType>getOverdueTasks()Returns list of tasks that are passed their due datejava.util.List<TaskType>getOwnedTasks()Returns tasks that owned by requesterTaskTypegetProperties(TaskReferenceType taskReference)Returns the task's properties.java.util.List<TaskType>getTasksWithReminder()Returns workflow tasks that has reminderjava.util.List<TransitionDefinitionType>getTransitions(TaskReferenceType taskReference)Returns the task's transition definitions.voidrevokeOwnership(TaskReferenceType taskReference)Revokes the ownership of a task.voidupdateIndexData(TaskReferenceType taskReference, java.util.Map<java.lang.String,com.lexmark.saperion.PropertyType> properties)Updates the task's index data.TaskTypeupdateReminderForTask(TaskReferenceType taskReferenceType, long date)Update or reset reminder for a given task.-
Methods inherited from class com.lexmark.saperion.delegate.AbstractDelegateService
getDelegate, wrapSearchExecutionService
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.lexmark.saperion.workflow.WorkflowTaskService
forward
-
-
-
-
Method Detail
-
acquireOwnership
public void acquireOwnership(TaskReferenceType taskReference) throws com.lexmark.saperion.exceptions.EcmException
Description copied from interface:WorkflowTaskServiceAcquires the ownership of a task.- Specified by:
acquireOwnershipin interfaceWorkflowTaskService- 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:WorkflowTaskServiceAdds a comment to a workflow task.- Specified by:
addCommentin interfaceWorkflowTaskService- 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:WorkflowTaskServiceFinishes the task execution and forwards the workflow to the next step.- Specified by:
forwardin interfaceWorkflowTaskService- 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:WorkflowTaskServiceReturns the task's index data.- Specified by:
getIndexDatain interfaceWorkflowTaskService- 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:WorkflowTaskServiceReturns the task's properties.- Specified by:
getPropertiesin interfaceWorkflowTaskService- 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:WorkflowTaskServiceReturns the task's comments.- Specified by:
getCommentsin interfaceWorkflowTaskService- 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:WorkflowTaskServiceReturns the task's transition definitions.- Specified by:
getTransitionsin interfaceWorkflowTaskService- 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:WorkflowTaskServiceRevokes the ownership of a task.- Specified by:
revokeOwnershipin interfaceWorkflowTaskService- 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:WorkflowTaskServiceUpdates the task's index data.- Specified by:
updateIndexDatain interfaceWorkflowTaskService- 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:WorkflowTaskServiceReturns workflow tasks that has reminder- Specified by:
getTasksWithReminderin interfaceWorkflowTaskService- 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:WorkflowTaskServiceReturns tasks that owned by requester- Specified by:
getOwnedTasksin interfaceWorkflowTaskService- Returns:
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
getOverdueTasks
public java.util.List<TaskType> getOverdueTasks() throws com.lexmark.saperion.exceptions.EcmException
Description copied from interface:WorkflowTaskServiceReturns list of tasks that are passed their due date- Specified by:
getOverdueTasksin interfaceWorkflowTaskService- Returns:
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
createReminderForTask
public TaskType createReminderForTask(TaskReferenceType taskReferenceType, long date) throws com.lexmark.saperion.exceptions.EcmException
Description copied from interface:WorkflowTaskServiceCreates reminder for the given task- Specified by:
createReminderForTaskin interfaceWorkflowTaskService- Returns:
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
updateReminderForTask
public TaskType updateReminderForTask(TaskReferenceType taskReferenceType, long date) throws com.lexmark.saperion.exceptions.EcmException
Description copied from interface:WorkflowTaskServiceUpdate or reset reminder for a given task.- Specified by:
updateReminderForTaskin interfaceWorkflowTaskService- Returns:
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
-