public interface SaWFTask
| Modifier and Type | Method and Description |
|---|---|
void |
addComment(String comment,
int level)
Adds a comment to the workflow.
|
void |
addHistory(String description)
Adds a history entry.
|
void |
executeActivate()
Set inactive process to active.
|
void |
executeApprove(ActorInfo nextActor)
Approve step.
|
void |
executeAssignToMe()
Get task from absent user, the current user acts as substitute for.
|
void |
executeChangeOwner(ActorInfo newOwner)
Change process owner.
|
void |
executeCommand(CommandInfo command,
String definition,
ActorInfo nextActor,
String comment,
Date escalationDate,
int activity)
Performs the given command.
|
void |
executeDelegate(ActorInfo delegatee)
Delegate to user.
|
void |
executeEscalation(Date escalationDate)
Escalate step.
|
void |
executeForward(int transitionId,
ActorInfo nextActor)
Forward step.
|
void |
executeForward(int transitionId,
ActorInfo nextActor,
String reason)
Forward step.
|
void |
executeHold(Date holdDate)
Set step to hold.
|
void |
executeInactivate()
Set step to inactive.
|
void |
executeNotResponsible(String comment)
Not responsible for this step.
|
void |
executePutBack()
Put step back to inbox.
|
void |
executeReassign()
Reassign task to original user after it has been taken as a substitute.
|
void |
executeReject(ActorInfo nextActor)
Reject step.
|
void |
executeRemove(String comment)
Remove step.
|
void |
executeRemoveNotice()
Remove notice.
|
void |
executeResetHold()
Resets hold.
|
void |
executeRework(ActorInfo nextActor)
Rework step.
|
void |
executeSetActivity(int activity)
Set next activity.
|
void |
executeTake()
Take step from task list.
|
void |
executeTerminate()
Terminate process.
|
InputStream |
getAttachmentContent(int element)
Reads the content of the attachment.
|
CommandInfo[] |
getCommandInfos()
Reads all possible transitions for this task.
|
CommandInfo[] |
getCommandInfos(boolean transitionsOnly)
Reads all possible transitions and optional other possible commands for
this task.
|
CommentInfo[] |
getComments()
Reads the comments.
|
HistoryInfo[] |
getHistory()
Reads the process history.
|
String |
getHistoryXML()
Reads the process history as XML.
|
String |
getHistoryXML(String language)
Reads the process history as XML.
|
String |
getHistoryXML2(String language)
Reads the second variant of process history as XML.
|
String |
getHistoryXML2(String language,
boolean isAscending)
Reads the second variant of process history as XML with ascending /
descending switch.
|
boolean |
getSync()
Reads the sync status.
|
TaskInfo |
getTaskInfo()
Reads the task info object of this task.
|
boolean |
getTrusted()
Reads the trusted status.
|
int |
getWorkingTime() |
SaPropertyValue[] |
readAttachmentMetadata()
Reads the metadata of the attachment.
|
TaskUserSelection |
readSelectableUsersForTransition(int transition)
Obtains the next tasks
TaskUserSelection for the given transition. |
void |
setAlias(ActorInfo alias)
Sets the actor to be used as alias for the next action.
|
void |
setAliasActor(ActorInfo aliasActor)
Deprecated.
this method actually sets the next actor by overwriting the nextActor field.
Use
setAlias(ActorInfo) instead. Will be removed in 8.0. |
void |
setComment(String comment)
Set comment to the next execute.
|
void |
setSync(boolean isSync)
Set sync parameter.
|
void |
setTrusted(boolean isTrusted)
Set trusted parameter.
|
void |
setWorkingTime(int workingTime) |
SaSaveInfo |
updateAttachment(Properties namevaluePairs,
InputStream[] content,
String versionComment,
String acls)
Updates the attachment in the backend system with the given metadata,
acls and content.
|
void |
updateTask(Properties values)
Updates the user defined fields of this task.
|
TaskInfo getTaskInfo() throws SaWorkflowException
SaWorkflowException - Workflow exceptionSaPropertyValue[] readAttachmentMetadata() throws SaSystemException, SaAuthenticationException, SaDDCException, SaWorkflowException
SaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionSaDDCException - SaDDCExceptionSaWorkflowException - Workflow exceptionInputStream getAttachmentContent(int element) throws SaSystemException, SaAuthenticationException, SaWorkflowException
element - position in the document structure; 0 if the document is
unstructured.SaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionSaWorkflowException - Workflow exceptionSaSaveInfo updateAttachment(Properties namevaluePairs, InputStream[] content, String versionComment, String acls) throws SaSystemException, SaAuthenticationException, SaDDCException, SaWorkflowException
namevaluePairs - A properties object containing the metadatacontent - Multiple content dataversionComment - The comment for the versionacls - ACL name stringSaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionSaDDCException - SaDDCExceptionSaWorkflowException - Workflow exceptionCommentInfo[] getComments() throws SaWorkflowException
SaWorkflowException - Workflow exceptionvoid addComment(String comment, int level) throws SaSystemException, SaAuthenticationException, SaWorkflowException
comment - Commentlevel - LevelSaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionSaWorkflowException - Workflow exceptionvoid setComment(String comment)
comment - Comment stringvoid addHistory(String description) throws SaSystemException, SaAuthenticationException, SaWorkflowException
description - CommentSaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionSaWorkflowException - Workflow exceptionHistoryInfo[] getHistory() throws SaWorkflowException
SaWorkflowException - Workflow exceptionString getHistoryXML() throws SaWorkflowException
SaWorkflowException - Workflow exceptionString getHistoryXML(String language) throws SaWorkflowException
language - LanguageSaWorkflowException - Workflow exceptionString getHistoryXML2(String language) throws SaWorkflowException
language - LanguageSaWorkflowException - Workflow exceptionString getHistoryXML2(String language, boolean isAscending) throws SaWorkflowException
language - LanguageisAscending - Is ascendingSaWorkflowException - Workflow exceptionvoid setSync(boolean isSync)
throws SaWorkflowException
isSync - Synchron workSaWorkflowException - Workflow exceptionboolean getSync()
throws SaWorkflowException
SaWorkflowException - Workflow exceptionvoid setTrusted(boolean isTrusted)
throws SaWorkflowException
isTrusted - Trusted workSaWorkflowException - Workflow exceptionboolean getTrusted()
throws SaWorkflowException
SaWorkflowException - Workflow exceptionvoid setWorkingTime(int workingTime)
throws SaWorkflowException
workingTime - the workingTime to setSaWorkflowException - Workflow exceptionint getWorkingTime()
throws SaWorkflowException
SaWorkflowException - Workflow exception@Deprecated void setAliasActor(ActorInfo aliasActor) throws SaWorkflowException
setAlias(ActorInfo) instead. Will be removed in 8.0.aliasActor - Alias actorSaWorkflowException - Workflow exceptionvoid setAlias(ActorInfo alias) throws SaWorkflowException
alias - alias actorSaWorkflowException - workflow exceptionCommandInfo[] getCommandInfos() throws SaAuthenticationException, SaSystemException, SaWorkflowException
SaSystemException - System exceptionSaAuthenticationException - Authentication exceptionSaWorkflowException - Workflow exceptionCommandInfo[] getCommandInfos(boolean transitionsOnly) throws SaAuthenticationException, SaSystemException, SaWorkflowException
transitionsOnly - if true, only transition commands will be returnedSaSystemException - System exceptionSaAuthenticationException - Authentication exceptionSaWorkflowException - Workflow exceptionTaskUserSelection readSelectableUsersForTransition(int transition) throws SaAuthenticationException, SaSystemException, SaWorkflowException
TaskUserSelection for the given transition.transition - The id of the transition one wants to obtain the user selection from.TaskUserSelection for the given transition.SaAuthenticationException - if the session is not valid anymoreSaSystemException - if an error occurred on the serverSaWorkflowException - if a workflow specific error occurredIllegalArgumentException - if the given CommandInfo does not represent a transition.void executeCommand(CommandInfo command, String definition, ActorInfo nextActor, String comment, Date escalationDate, int activity) throws SaWorkflowException
command - Required. Command object.definition - Optional. Process definition name.nextActor - Optional. Next actor / delegateecomment - Optional. CommentescalationDate - Optional. Escalation dateactivity - Optional. ActivitySaWorkflowException - Workflow exceptionvoid executeForward(int transitionId,
ActorInfo nextActor)
throws SaWorkflowException
transitionId - Transition IDnextActor - Next actorSaWorkflowException - Workflow exceptionvoid executeForward(int transitionId,
ActorInfo nextActor,
String reason)
throws SaWorkflowException
transitionId - Transition IDnextActor - Next actorreason - reason for forwardSaWorkflowException - Workflow exceptionvoid executeApprove(ActorInfo nextActor) throws SaWorkflowException
nextActor - Next actorSaWorkflowException - Workflow exceptionvoid executeReject(ActorInfo nextActor) throws SaWorkflowException
nextActor - Reject actorSaWorkflowException - Workflow exceptionvoid executeRework(ActorInfo nextActor) throws SaWorkflowException
nextActor - Rework actorSaWorkflowException - Workflow exceptionvoid executeNotResponsible(String comment) throws SaWorkflowException
comment - CommentSaWorkflowException - Workflow exceptionvoid executeTake()
throws SaWorkflowException
SaWorkflowException - Workflow exceptionvoid executeRemove(String comment) throws SaWorkflowException
comment - CommentSaWorkflowException - Workflow exceptionvoid executeRemoveNotice()
throws SaWorkflowException
SaWorkflowException - Workflow exceptionvoid executeHold(Date holdDate) throws SaWorkflowException
holdDate - Hold dateSaWorkflowException - Workflow exceptionvoid executeResetHold()
throws SaWorkflowException
SaWorkflowException - Workflow exceptionvoid executeEscalation(Date escalationDate) throws SaWorkflowException
escalationDate - Escalation dateSaWorkflowException - Workflow exceptionvoid executeInactivate()
throws SaWorkflowException
SaWorkflowException - Workflow exceptionvoid executeActivate()
throws SaWorkflowException
SaWorkflowException - Workflow exceptionvoid executeTerminate()
throws SaWorkflowException
SaWorkflowException - Workflow exceptionvoid executeChangeOwner(ActorInfo newOwner) throws SaWorkflowException
newOwner - New ownerSaWorkflowException - Workflow exceptionvoid executeSetActivity(int activity)
throws SaWorkflowException
activity - Activity IDSaWorkflowException - Workflow exceptionvoid executeDelegate(ActorInfo delegatee) throws SaWorkflowException
delegatee - DelegateeSaWorkflowException - Workflow exceptionvoid executeReassign()
throws SaWorkflowException
SaWorkflowException - Workflow exceptionvoid executeAssignToMe()
throws SaWorkflowException
SaWorkflowException - Workflow exceptionvoid executePutBack()
throws SaWorkflowException
SaWorkflowException - Workflow exceptionvoid updateTask(Properties values) throws SaWorkflowException
values - FieldvaluesSaWorkflowException - Workflow exceptionCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.