public class RmiClientWorkflowTaskService extends Object implements WorkflowTaskService
Constructor and Description |
---|
RmiClientWorkflowTaskService(Connection connection)
Creates a new RmiClientWorkflowTaskService.
|
Modifier and Type | Method and Description |
---|---|
void |
acquireOwnership(com.lexmark.saperion.workflow.TaskReferenceType taskReference,
boolean sync,
int workingTime,
String comment)
Acquires the ownership of a task.
|
void |
acquireOwnership(com.lexmark.saperion.workflow.TaskReferenceType taskReference,
String comment)
Acquires the ownership of a task.
|
void |
addComment(com.lexmark.saperion.workflow.TaskReferenceType taskReference,
String comment)
Adds a comment to a workflow task.
|
void |
addComment(com.lexmark.saperion.workflow.TaskReferenceType taskReference,
String comment,
int level)
Adds a comment to a workflow task.
|
void |
forward(com.lexmark.saperion.workflow.TaskReferenceType taskReference,
int transitionId,
List<com.lexmark.saperion.administration.ActorReferenceType> recipients,
String comment)
Finishes the task execution and forwards the workflow to the next step.
|
void |
forward(com.lexmark.saperion.workflow.TaskReferenceType taskReference,
int transitionId,
List<com.lexmark.saperion.administration.ActorReferenceType> recipients,
String comment,
boolean sync,
int workingTime)
Finishes the task execution and forwards the workflow to the next step.
|
List<com.lexmark.saperion.workflow.TaskCommentType> |
getComments(com.lexmark.saperion.workflow.TaskReferenceType taskReference)
Returns the task's comments.
|
List<com.lexmark.saperion.PropertyType> |
getIndexData(com.lexmark.saperion.workflow.TaskReferenceType taskReference)
Returns the task's index data.
|
com.lexmark.saperion.workflow.TaskType |
getProperties(com.lexmark.saperion.workflow.TaskReferenceType taskReference)
Returns the task's properties.
|
List<com.lexmark.saperion.workflow.TransitionDefinitionType> |
getTransitions(com.lexmark.saperion.workflow.TaskReferenceType taskReference)
Returns the task's transition definitions.
|
void |
revokeOwnership(com.lexmark.saperion.workflow.TaskReferenceType taskReference,
boolean sync,
int workingTime,
String comment)
Revokes the ownership of a task.
|
void |
revokeOwnership(com.lexmark.saperion.workflow.TaskReferenceType taskReference,
String comment)
Revokes the ownership of a task.
|
void |
updateIndexData(com.lexmark.saperion.workflow.TaskReferenceType taskReference,
List<com.lexmark.saperion.PropertyType> properties,
String comment)
Updates the task's index data.
|
public RmiClientWorkflowTaskService(Connection connection)
connection
- the connection to the backendpublic void acquireOwnership(com.lexmark.saperion.workflow.TaskReferenceType taskReference, boolean sync, int workingTime, String comment) throws SaAuthenticationException, SaSystemException
WorkflowTaskService
acquireOwnership
in interface WorkflowTaskService
taskReference
- the reference to the tasksync
- wait for the workflow operation to complete or notworkingTime
- working time for the current step for statisticsSaAuthenticationException
- authentication exceptionSaSystemException
- system exceptionpublic void acquireOwnership(com.lexmark.saperion.workflow.TaskReferenceType taskReference, String comment) throws SaAuthenticationException, SaSystemException
WorkflowTaskService
acquireOwnership
in interface WorkflowTaskService
taskReference
- the reference to the taskSaAuthenticationException
- authentication exceptionSaSystemException
- system exceptionpublic void addComment(com.lexmark.saperion.workflow.TaskReferenceType taskReference, String comment, int level) throws SaAuthenticationException, SaSystemException
WorkflowTaskService
addComment
in interface WorkflowTaskService
taskReference
- the reference to the taskcomment
- the comment to addlevel
- the level to add the comment toSaAuthenticationException
- authentication exceptionSaSystemException
- system exceptionpublic void addComment(com.lexmark.saperion.workflow.TaskReferenceType taskReference, String comment) throws SaAuthenticationException, SaSystemException
WorkflowTaskService
addComment
in interface WorkflowTaskService
taskReference
- the reference to the taskcomment
- the comment to addSaAuthenticationException
- authentication exceptionSaSystemException
- system exceptionpublic void forward(com.lexmark.saperion.workflow.TaskReferenceType taskReference, int transitionId, List<com.lexmark.saperion.administration.ActorReferenceType> recipients, String comment, boolean sync, int workingTime) throws SaSystemException, SaAuthenticationException
WorkflowTaskService
forward
in interface WorkflowTaskService
taskReference
- the reference to the tasktransitionId
- the ID of the next transition to use when forwardingrecipients
- the recipients of the next step if requiredcomment
- the comment that will be shown in the historysync
- wait for the workflow operation to complete or notworkingTime
- working time for the current step for statisticsSaSystemException
- system exceptionSaAuthenticationException
- authentication exceptionpublic void forward(com.lexmark.saperion.workflow.TaskReferenceType taskReference, int transitionId, List<com.lexmark.saperion.administration.ActorReferenceType> recipients, String comment) throws SaSystemException, SaAuthenticationException
WorkflowTaskService
forward
in interface WorkflowTaskService
taskReference
- the reference to the tasktransitionId
- the ID of the next transition to use when forwardingrecipients
- the recipients of the next step if requiredcomment
- the comment that will be shown in the historySaSystemException
- system exceptionSaAuthenticationException
- authentication exceptionpublic List<com.lexmark.saperion.PropertyType> getIndexData(com.lexmark.saperion.workflow.TaskReferenceType taskReference) throws SaAuthenticationException, SaSystemException
WorkflowTaskService
getIndexData
in interface WorkflowTaskService
taskReference
- the reference to the taskSaAuthenticationException
- authentication exceptionSaSystemException
public com.lexmark.saperion.workflow.TaskType getProperties(com.lexmark.saperion.workflow.TaskReferenceType taskReference) throws SaAuthenticationException, SaSystemException
WorkflowTaskService
getProperties
in interface WorkflowTaskService
taskReference
- the reference to the taskSaAuthenticationException
- authentication exceptionSaSystemException
- system exceptionpublic List<com.lexmark.saperion.workflow.TaskCommentType> getComments(com.lexmark.saperion.workflow.TaskReferenceType taskReference) throws SaAuthenticationException, SaSystemException
WorkflowTaskService
getComments
in interface WorkflowTaskService
taskReference
- the reference to the taskSaAuthenticationException
- authentication exceptionSaSystemException
- system exceptionpublic List<com.lexmark.saperion.workflow.TransitionDefinitionType> getTransitions(com.lexmark.saperion.workflow.TaskReferenceType taskReference) throws SaAuthenticationException, SaSystemException
WorkflowTaskService
getTransitions
in interface WorkflowTaskService
taskReference
- the reference to the taskSaAuthenticationException
- authentication exceptionSaSystemException
- system exceptionpublic void revokeOwnership(com.lexmark.saperion.workflow.TaskReferenceType taskReference, boolean sync, int workingTime, String comment) throws SaAuthenticationException, SaSystemException
WorkflowTaskService
revokeOwnership
in interface WorkflowTaskService
taskReference
- the reference to the tasksync
- wait for the workflow operation to complete or notworkingTime
- working time for the current step for statisticscomment
- the comment that will be shown in the historySaAuthenticationException
- authentication exceptionSaSystemException
- system exceptionpublic void revokeOwnership(com.lexmark.saperion.workflow.TaskReferenceType taskReference, String comment) throws SaAuthenticationException, SaSystemException
WorkflowTaskService
revokeOwnership
in interface WorkflowTaskService
taskReference
- the reference to the taskcomment
- the comment that will be shown in the historySaAuthenticationException
- authentication exceptionSaSystemException
- system exceptionpublic void updateIndexData(com.lexmark.saperion.workflow.TaskReferenceType taskReference, List<com.lexmark.saperion.PropertyType> properties, String comment) throws SaAuthenticationException, SaSystemException
WorkflowTaskService
updateIndexData
in interface WorkflowTaskService
taskReference
- the reference to the taskproperties
- the task's index datacomment
- the comment for the new revisionSaAuthenticationException
- authentication exceptionSaSystemException
- system exceptionCopyright © 2016 SAPERION AG. All rights reserved.