public class WorkflowTaskClientImpl extends Object implements WorkflowTaskClient
WorkflowTaskClient
.Constructor and Description |
---|
WorkflowTaskClientImpl(WorkflowTaskService workflowTaskService,
TaskReferenceType reference) |
Modifier and Type | Method and Description |
---|---|
void |
acquireOwnership()
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.
|
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.
|
List<TaskCommentType> |
getComments()
This method returns the task's comments.
|
List<TransitionDefinitionType> |
getTransitions()
This method returns the task's forward transition definitions.
|
TaskType |
load()
This method returns the task's properties.
|
void |
revokeOwnership()
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forward, forward, forward, forward
public WorkflowTaskClientImpl(WorkflowTaskService workflowTaskService, TaskReferenceType reference)
public void acquireOwnership() throws com.lexmark.saperion.exceptions.EcmException
WorkflowTaskClient
acquireOwnership
in interface WorkflowTaskClient
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurredpublic void addComment(String comment) throws com.lexmark.saperion.exceptions.EcmException
WorkflowTaskClient
addComment
in interface WorkflowTaskClient
comment
- the commentcom.lexmark.saperion.exceptions.system.SystemException
- indicates that a system exception occurredcom.lexmark.saperion.exceptions.EcmException
public void forward(int transitionId, List<com.lexmark.saperion.administration.ActorReferenceType> recipients, String comment, boolean sync) throws com.lexmark.saperion.exceptions.EcmException
WorkflowTaskClient
forward
in interface WorkflowTaskClient
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurredpublic TaskType load() throws com.lexmark.saperion.exceptions.EcmException
WorkflowTaskClient
load
in interface WorkflowTaskClient
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurredpublic List<TaskCommentType> getComments() throws com.lexmark.saperion.exceptions.EcmException
WorkflowTaskClient
getComments
in interface WorkflowTaskClient
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurredpublic List<TransitionDefinitionType> getTransitions() throws com.lexmark.saperion.exceptions.EcmException
WorkflowTaskClient
getTransitions
in interface WorkflowTaskClient
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurredpublic void revokeOwnership() throws com.lexmark.saperion.exceptions.EcmException
WorkflowTaskClient
revokeOwnership
in interface WorkflowTaskClient
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurredpublic void updateIndexData(Map<String,com.lexmark.saperion.PropertyType> properties) throws com.lexmark.saperion.exceptions.EcmException
WorkflowTaskClient
updateIndexData
in interface WorkflowTaskClient
properties
- the task's index datacom.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurredCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.