public class SaWsWorkflowService extends AbstractService
configured
Constructor and Description |
---|
SaWsWorkflowService()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(int token,
String taskId,
SaWsCommand command,
String nextActor,
String comment,
Date escalationDate)
Executes the specified task.
|
List<SaWsBoxDefinition> |
getBoxDefinitions(int token)
Returns a list of box definitions of the current session user.
|
List<SaWsUser> |
getMembers(int token,
MemberOptions options)
Returns the members of the current workflow of the session's user.
|
boolean |
getOutOfOffice(int token)
Determines if current session's user is out of office.
|
List<String> |
getProcessDefinitions(int token)
Returns a list of process definitions as strings of the current session user.
|
String |
getSubstitute(int token)
Returns the substitute (username) as string.
|
SaWsTask |
getTask(int token,
String taskId)
Retrieves and returns the task by the given id.
|
List<SaWsTask> |
getTasks(int token,
int[] boxIds,
String filter)
Returns the filtered tasks.
|
void |
setOutOfOffice(int token,
boolean outOfOffice)
Set the "out of office" state of the current session's user.
|
void |
setSubstitute(int token,
String username)
Sets the substitute (username) for the session's user.
|
void |
start(int token,
String processName,
String nextActor,
String comment,
String attachmentId)
Starts a workflow with the specified parameters.
|
addToRequest, getConnection, getSession, isConfigured
public SaWsTask getTask(int token, String taskId) throws SaWsAuthenticationException, SaWsWorkflowException, SaWsRepositoryException, SaWsException
token
- identifies the session.taskId
- identifies the task.SaWsWorkflowException
- if a workflow error occurs.SaWsAuthenticationException
- if an authentication error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
public List<SaWsTask> getTasks(int token, int[] boxIds, String filter) throws SaWsAuthenticationException, SaWsWorkflowException, SaWsRepositoryException, SaWsException
token
- identifies the session.boxIds
- the ids of the workflow inboxes to get the tasks from.filter
- to filter the tasks.SaWsWorkflowException
- if a workflow error occurs.SaWsAuthenticationException
- if an authentication error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
public void start(int token, String processName, String nextActor, String comment, String attachmentId) throws SaWsAuthenticationException, SaWsWorkflowException, SaWsRepositoryException, SaWsException
token
- identifies the session.processName
- the name of the workflow to start.nextActor
- the name of the next actor (username).comment
- the starting comment.attachmentId
- the attachmentId (xhdoc of the document the workflow operates on).SaWsWorkflowException
- if a workflow error occurs.SaWsAuthenticationException
- if an authentication error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
public void execute(int token, String taskId, SaWsCommand command, String nextActor, String comment, Date escalationDate) throws SaWsAuthenticationException, SaWsWorkflowException, SaWsRepositoryException, SaWsException
token
- identifies the session.taskId
- identifies the task.command
- the command to execute.nextActor
- the name of the next actor.comment
- comment for this task execution.escalationDate
- the date of escalation.SaWsWorkflowException
- if a workflow error occurs.SaWsAuthenticationException
- if an authentication error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
public List<SaWsBoxDefinition> getBoxDefinitions(int token) throws SaWsAuthenticationException, SaWsRepositoryException, SaWsException
token
- identifies the session.SaWsAuthenticationException
- if an authentication error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
public List<SaWsUser> getMembers(int token, MemberOptions options) throws SaWsAuthenticationException, SaWsRepositoryException, SaWsException
token
- identifies the session.options
- the member options of the workflow.SaWsAuthenticationException
- if an authentication error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
public List<String> getProcessDefinitions(int token) throws SaWsAuthenticationException, SaWsWorkflowException, SaWsRepositoryException, SaWsException
token
- identifies the session.SaWsWorkflowException
- if a workflow error occurs.SaWsAuthenticationException
- if an authentication error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
public String getSubstitute(int token) throws SaWsAuthenticationException, SaWsRepositoryException, SaWsException
token
- identifies the session.SaWsAuthenticationException
- if an authentication error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
public void setSubstitute(int token, String username) throws SaWsAuthenticationException, SaWsRepositoryException, SaWsException
token
- identifies the session.username
- The username of the substitute.SaWsAuthenticationException
- if an authentication error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
public boolean getOutOfOffice(int token) throws SaWsAuthenticationException, SaWsRepositoryException, SaWsException
token
- identifies the session.SaWsAuthenticationException
- if an authentication error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
public void setOutOfOffice(int token, boolean outOfOffice) throws SaWsAuthenticationException, SaWsRepositoryException, SaWsException
token
- identifies the session.outOfOffice
- the "out of office" stateSaWsAuthenticationException
- if an authentication error occurs.SaWsRepositoryException
- if a repository error occurs.SaWsException
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.