| Constructor and Description |
|---|
SaWFTaskImpl(SaClassicConnectorImpl connector,
TaskInfo taskInfo,
String user)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addComment(String commentString,
int level)
Adds a comment to the workflow.
|
void |
addHistory(String descriptionString)
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 processName,
ActorInfo nextActor,
String commentString,
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 commentString)
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 removeComment)
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)
Sets the alias actor.
|
void |
setComment(String commentString)
Set comment to the next execute.
|
void |
setSync(boolean isSync)
Set sync parameter.
|
void |
setTrusted(boolean isTrusted)
Set trusted parameter.
|
void |
setWorkingTime(int time) |
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.
|
public SaWFTaskImpl(SaClassicConnectorImpl connector, TaskInfo taskInfo, String user) throws SaAuthenticationException, SaSystemException, SaWorkflowException
connector - Connector instancetaskInfo - Task infouser - User nameSaWorkflowException - Workflow exceptionSaSystemException - System exceptionSaAuthenticationException - Authentication exceptionpublic void executeApprove(ActorInfo nextActor) throws SaWorkflowException
executeApprove in interface SaWFTasknextActor - Next actorSaWorkflowException - Workflow exceptionSaWFTask.executeApprove(com.saperion.intf.wf.ActorInfo)public void executeChangeOwner(ActorInfo newOwner) throws SaWorkflowException
executeChangeOwner in interface SaWFTasknewOwner - New ownerSaWorkflowException - Workflow exceptionSaWFTask.executeChangeOwner(com.saperion.intf.wf.ActorInfo)public void executeCommand(CommandInfo command, String processName, ActorInfo nextActor, String commentString, Date escalationDate, int activity) throws SaWorkflowException
executeCommand in interface SaWFTaskcommand - Required. Command object.processName - Optional. Process definition name.nextActor - Optional. Next actor / delegateecommentString - Optional. CommentescalationDate - Optional. Escalation dateactivity - Optional. ActivitySaWorkflowException - Workflow exceptionSaWFTask.executeCommand(com.saperion.intf.wf.CommandInfo,
java.lang.String, com.saperion.intf.wf.ActorInfo, java.lang.String, java.util.Date, int)public void executeDelegate(ActorInfo delegatee) throws SaWorkflowException
executeDelegate in interface SaWFTaskdelegatee - DelegateeSaWorkflowException - Workflow exceptionSaWFTask.executeDelegate(com.saperion.intf.wf.ActorInfo)public void executeReassign()
throws SaWorkflowException
executeReassign in interface SaWFTaskSaWorkflowException - Workflow exceptionSaWFTask.executeReassign()public void executeAssignToMe()
throws SaWorkflowException
executeAssignToMe in interface SaWFTaskSaWorkflowException - Workflow exceptionSaWFTask.executeDelegate(com.saperion.intf.wf.ActorInfo)public void executeEscalation(Date escalationDate) throws SaWorkflowException
executeEscalation in interface SaWFTaskescalationDate - Escalation dateSaWorkflowException - Workflow exceptionSaWFTask.executeEscalation(java.util.Date)public void executeForward(int transitionId,
ActorInfo nextActor)
throws SaWorkflowException
executeForward in interface SaWFTasktransitionId - Transition IDnextActor - Next actorSaWorkflowException - Workflow exceptionSaWFTask.executeForward(int, com.saperion.intf.wf.ActorInfo)public void executeForward(int transitionId,
ActorInfo nextActor,
String reason)
throws SaWorkflowException
executeForward in interface SaWFTasktransitionId - Transition IDnextActor - Next actorreason - reason for forwardSaWorkflowException - Workflow exceptionSaWFTask.executeForward(int, com.saperion.intf.wf.ActorInfo, String)public void executeHold(Date holdDate) throws SaWorkflowException
executeHold in interface SaWFTaskholdDate - Hold dateSaWorkflowException - Workflow exceptionSaWFTask.executeHold(java.util.Date)public void executeResetHold()
throws SaWorkflowException
executeResetHold in interface SaWFTaskSaWorkflowException - Workflow exceptionSaWFTask.executeResetHold()public void executeNotResponsible(String commentString) throws SaWorkflowException
executeNotResponsible in interface SaWFTaskcommentString - CommentSaWorkflowException - Workflow exceptionSaWFTask.executeNotResponsible(java.lang.String)public void executePutBack()
throws SaWorkflowException
executePutBack in interface SaWFTaskSaWorkflowException - Workflow exceptionSaWFTask.executePutBack()public void executeReject(ActorInfo nextActor) throws SaWorkflowException
executeReject in interface SaWFTasknextActor - Reject actorSaWorkflowException - Workflow exceptionSaWFTask.executeReject(com.saperion.intf.wf.ActorInfo)public void executeRemove(String removeComment) throws SaWorkflowException
executeRemove in interface SaWFTaskremoveComment - CommentSaWorkflowException - Workflow exceptionSaWFTask.executeRemove(java.lang.String)public void executeRemoveNotice()
throws SaWorkflowException
executeRemoveNotice in interface SaWFTaskSaWorkflowException - Workflow exceptionSaWFTask.executeRemoveNotice()public void executeRework(ActorInfo nextActor) throws SaWorkflowException
executeRework in interface SaWFTasknextActor - Rework actorSaWorkflowException - Workflow exceptionSaWFTask.executeRework(com.saperion.intf.wf.ActorInfo)public void executeActivate()
throws SaWorkflowException
executeActivate in interface SaWFTaskSaWorkflowException - Workflow exceptionSaWFTask.executeActivate()public void executeSetActivity(int activity)
throws SaWorkflowException
executeSetActivity in interface SaWFTaskactivity - Activity IDSaWorkflowException - Workflow exceptionSaWFTask.executeSetActivity(int)public void executeTake()
throws SaWorkflowException
executeTake in interface SaWFTaskSaWorkflowException - Workflow exceptionSaWFTask.executeTake()public void executeTerminate()
throws SaWorkflowException
executeTerminate in interface SaWFTaskSaWorkflowException - Workflow exceptionSaWFTask.executeTerminate()public void executeInactivate()
throws SaWorkflowException
executeInactivate in interface SaWFTaskSaWorkflowException - Workflow exceptionSaWFTask.executeInactivate()public InputStream getAttachmentContent(int element) throws SaSystemException, SaAuthenticationException, SaWorkflowException
getAttachmentContent in interface SaWFTaskelement - position in the document structure; 0 if the document is
unstructured.SaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionSaWorkflowException - Workflow exceptionSaWFTask.getAttachmentContent(int)public CommandInfo[] getCommandInfos() throws SaAuthenticationException, SaSystemException, SaWorkflowException
getCommandInfos in interface SaWFTaskSaAuthenticationException - Authentication exceptionSaSystemException - System exceptionSaWorkflowException - Workflow exceptionSaWFTask.getCommandInfos()public CommandInfo[] getCommandInfos(boolean transitionsOnly) throws SaAuthenticationException, SaSystemException, SaWorkflowException
getCommandInfos in interface SaWFTasktransitionsOnly - if true, only transition commands will be returnedSaAuthenticationException - Authentication exceptionSaSystemException - System exceptionSaWorkflowException - Workflow exceptionSaWFTask.getCommandInfos(boolean)public TaskUserSelection readSelectableUsersForTransition(int transition) throws SaAuthenticationException, SaSystemException, SaWorkflowException
TaskUserSelection for the given transition.readSelectableUsersForTransition in interface SaWFTasktransition - 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 occurredpublic CommentInfo[] getComments() throws SaWorkflowException
getComments in interface SaWFTaskSaWorkflowException - Workflow exceptionSaWFTask.getComments()public HistoryInfo[] getHistory() throws SaWorkflowException
getHistory in interface SaWFTaskSaWorkflowException - Workflow exceptionSaWFTask.getHistory()public String getHistoryXML() throws SaWorkflowException
getHistoryXML in interface SaWFTaskSaWorkflowException - Workflow exceptionSaWFTask.getHistoryXML()public String getHistoryXML(String language) throws SaWorkflowException
getHistoryXML in interface SaWFTasklanguage - LanguageSaWorkflowException - Workflow exceptionSaWFTask.getHistoryXML(java.lang.String)public String getHistoryXML2(String language) throws SaWorkflowException
getHistoryXML2 in interface SaWFTasklanguage - LanguageSaWorkflowException - Workflow exceptionSaWFTask.getHistoryXML2(java.lang.String)public String getHistoryXML2(String language, boolean isAscending) throws SaWorkflowException
getHistoryXML2 in interface SaWFTasklanguage - LanguageisAscending - Is ascendingSaWorkflowException - Workflow exceptionSaWFTask.getHistoryXML2(java.lang.String, boolean)public boolean getSync()
throws SaWorkflowException
getSync in interface SaWFTaskSaWorkflowException - Workflow exceptionSaWFTask.getSync()public boolean getTrusted()
throws SaWorkflowException
getTrusted in interface SaWFTaskSaWorkflowException - Workflow exceptionSaWFTask.getTrusted()public int getWorkingTime()
throws SaWorkflowException
getWorkingTime in interface SaWFTaskSaWorkflowException - Workflow exceptionSaWFTask.getWorkingTime()public TaskInfo getTaskInfo() throws SaWorkflowException
getTaskInfo in interface SaWFTaskSaWorkflowException - Workflow exceptionSaWFTask.getTaskInfo()public SaPropertyValue[] readAttachmentMetadata() throws SaSystemException, SaAuthenticationException, SaDDCException, SaWorkflowException
readAttachmentMetadata in interface SaWFTaskSaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionSaDDCException - SaDDCExceptionSaWorkflowException - Workflow exceptionSaWFTask.readAttachmentMetadata()public void setAliasActor(ActorInfo aliasActor) throws SaWorkflowException
setAliasActor in interface SaWFTaskaliasActor - Alias actorSaWorkflowException - Workflow exceptionSaWFTask.setAliasActor(com.saperion.intf.wf.ActorInfo)public void setAlias(ActorInfo alias) throws SaWorkflowException
setAlias in interface SaWFTaskalias - alias actorSaWorkflowException - workflow exceptionSaWFTask.setAlias(com.saperion.intf.wf.ActorInfo)public void addComment(String commentString, int level) throws SaAuthenticationException, SaSystemException, SaWorkflowException
addComment in interface SaWFTaskcommentString - Commentlevel - LevelSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWorkflowException - Workflow exceptionSaWFTask.addComment(java.lang.String, int)public void setComment(String commentString)
setComment in interface SaWFTaskcommentString - Comment stringSaWFTask.setComment(java.lang.String)public void addHistory(String descriptionString) throws SaAuthenticationException, SaSystemException, SaWorkflowException
addHistory in interface SaWFTaskdescriptionString - CommentSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWorkflowException - Workflow exceptionSaWFTask.addHistory(java.lang.String)public void setSync(boolean isSync)
throws SaWorkflowException
setSync in interface SaWFTaskisSync - Synchron workSaWorkflowException - Workflow exceptionSaWFTask.setSync(boolean)public void setTrusted(boolean isTrusted)
throws SaWorkflowException
setTrusted in interface SaWFTaskisTrusted - Trusted workSaWorkflowException - Workflow exceptionSaWFTask.setTrusted(boolean)public void setWorkingTime(int time)
throws SaWorkflowException
setWorkingTime in interface SaWFTasktime - the workingTime to setSaWorkflowException - Workflow exceptionSaWFTask.setWorkingTime(int)public SaSaveInfo updateAttachment(Properties namevaluePairs, InputStream[] content, String versionComment, String acls) throws SaSystemException, SaAuthenticationException, SaDDCException, SaWorkflowException
updateAttachment in interface SaWFTasknamevaluePairs - A properties object containing the metadatacontent - Multiple content dataversionComment - The comment for the versionacls - ACL name stringSaSystemException - SaSystemExceptionSaAuthenticationException - SaAuthenticationExceptionSaDDCException - SaDDCExceptionSaWorkflowException - Workflow exceptionSaWFTask.updateAttachment(java.util.Properties,
java.io.InputStream[], java.lang.String, java.lang.String)public void updateTask(Properties values) throws SaWorkflowException
updateTask in interface SaWFTaskvalues - FieldvaluesSaWorkflowException - Workflow exceptionSaWFTask.updateTask(java.util.Properties)Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.