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()
This method forwards a task.
|
void |
forward(int transitionId)
This method finishes the task execution and forwards the workflow to the next step.
|
void |
forward(int transitionId,
List<ActorReferenceType> recipients,
String comment)
This method finishes the task execution and forwards the workflow to the next step.
|
void |
forward(int transitionId,
List<ActorReferenceType> recipients,
String comment,
boolean sync)
This method finishes the task execution and forwards the workflow to the next step.
|
void |
forward(List<ActorReferenceType> recipients)
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,PropertyType> properties)
This method updates the task's index data.
|
public WorkflowTaskClientImpl(WorkflowTaskService workflowTaskService, TaskReferenceType reference)
public void acquireOwnership() throws EcmException
WorkflowTaskClient
acquireOwnership
in interface WorkflowTaskClient
EcmException
- indicates that a system exception occurredpublic void addComment(String comment) throws EcmException
WorkflowTaskClient
addComment
in interface WorkflowTaskClient
comment
- the commentSystemException
- indicates that a system exception occurredEcmException
public void forward(int transitionId, List<ActorReferenceType> recipients, String comment, boolean sync) throws EcmException
WorkflowTaskClient
forward
in interface WorkflowTaskClient
EcmException
- indicates that a system exception occurredpublic void forward(int transitionId, List<ActorReferenceType> recipients, String comment) throws EcmException
WorkflowTaskClient
forward
in interface WorkflowTaskClient
EcmException
- indicates that a system exception occurredpublic void forward(List<ActorReferenceType> recipients) throws EcmException
WorkflowTaskClient
forward
in interface WorkflowTaskClient
EcmException
- indicates that a system exception occurredpublic void forward(int transitionId) throws EcmException
WorkflowTaskClient
forward
in interface WorkflowTaskClient
EcmException
- indicates that a system exception occurredpublic void forward() throws EcmException
WorkflowTaskClient
forward
in interface WorkflowTaskClient
EcmException
- indicates that a system exception occurredpublic TaskType load() throws EcmException
WorkflowTaskClient
load
in interface WorkflowTaskClient
EcmException
- indicates that a system exception occurredpublic List<TaskCommentType> getComments() throws EcmException
WorkflowTaskClient
getComments
in interface WorkflowTaskClient
EcmException
- indicates that a system exception occurredpublic List<TransitionDefinitionType> getTransitions() throws EcmException
WorkflowTaskClient
getTransitions
in interface WorkflowTaskClient
EcmException
- indicates that a system exception occurredpublic void revokeOwnership() throws EcmException
WorkflowTaskClient
revokeOwnership
in interface WorkflowTaskClient
EcmException
- indicates that a system exception occurredpublic void updateIndexData(Map<String,PropertyType> properties) throws EcmException
WorkflowTaskClient
updateIndexData
in interface WorkflowTaskClient
properties
- the task's index dataEcmException
- indicates that a system exception occurredCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.