Modifier | Constructor and Description |
---|---|
protected |
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.
|
protected 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 SaWFTask
nextActor
- Next actorSaWorkflowException
- Workflow exceptionSaWFTask.executeApprove(com.saperion.intf.wf.ActorInfo)
public void executeChangeOwner(ActorInfo newOwner) throws SaWorkflowException
executeChangeOwner
in interface SaWFTask
newOwner
- 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 SaWFTask
command
- 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 SaWFTask
delegatee
- DelegateeSaWorkflowException
- Workflow exceptionSaWFTask.executeDelegate(com.saperion.intf.wf.ActorInfo)
public void executeReassign() throws SaWorkflowException
executeReassign
in interface SaWFTask
SaWorkflowException
- Workflow exceptionSaWFTask.executeReassign()
public void executeAssignToMe() throws SaWorkflowException
executeAssignToMe
in interface SaWFTask
SaWorkflowException
- Workflow exceptionSaWFTask.executeDelegate(com.saperion.intf.wf.ActorInfo)
public void executeEscalation(Date escalationDate) throws SaWorkflowException
executeEscalation
in interface SaWFTask
escalationDate
- Escalation dateSaWorkflowException
- Workflow exceptionSaWFTask.executeEscalation(java.util.Date)
public void executeForward(int transitionId, ActorInfo nextActor) throws SaWorkflowException
executeForward
in interface SaWFTask
transitionId
- 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 SaWFTask
transitionId
- 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 SaWFTask
holdDate
- Hold dateSaWorkflowException
- Workflow exceptionSaWFTask.executeHold(java.util.Date)
public void executeResetHold() throws SaWorkflowException
executeResetHold
in interface SaWFTask
SaWorkflowException
- Workflow exceptionSaWFTask.executeResetHold()
public void executeNotResponsible(String commentString) throws SaWorkflowException
executeNotResponsible
in interface SaWFTask
commentString
- CommentSaWorkflowException
- Workflow exceptionSaWFTask.executeNotResponsible(java.lang.String)
public void executePutBack() throws SaWorkflowException
executePutBack
in interface SaWFTask
SaWorkflowException
- Workflow exceptionSaWFTask.executePutBack()
public void executeReject(ActorInfo nextActor) throws SaWorkflowException
executeReject
in interface SaWFTask
nextActor
- Reject actorSaWorkflowException
- Workflow exceptionSaWFTask.executeReject(com.saperion.intf.wf.ActorInfo)
public void executeRemove(String removeComment) throws SaWorkflowException
executeRemove
in interface SaWFTask
removeComment
- CommentSaWorkflowException
- Workflow exceptionSaWFTask.executeRemove(java.lang.String)
public void executeRemoveNotice() throws SaWorkflowException
executeRemoveNotice
in interface SaWFTask
SaWorkflowException
- Workflow exceptionSaWFTask.executeRemoveNotice()
public void executeRework(ActorInfo nextActor) throws SaWorkflowException
executeRework
in interface SaWFTask
nextActor
- Rework actorSaWorkflowException
- Workflow exceptionSaWFTask.executeRework(com.saperion.intf.wf.ActorInfo)
public void executeActivate() throws SaWorkflowException
executeActivate
in interface SaWFTask
SaWorkflowException
- Workflow exceptionSaWFTask.executeActivate()
public void executeSetActivity(int activity) throws SaWorkflowException
executeSetActivity
in interface SaWFTask
activity
- Activity IDSaWorkflowException
- Workflow exceptionSaWFTask.executeSetActivity(int)
public void executeTake() throws SaWorkflowException
executeTake
in interface SaWFTask
SaWorkflowException
- Workflow exceptionSaWFTask.executeTake()
public void executeTerminate() throws SaWorkflowException
executeTerminate
in interface SaWFTask
SaWorkflowException
- Workflow exceptionSaWFTask.executeTerminate()
public void executeInactivate() throws SaWorkflowException
executeInactivate
in interface SaWFTask
SaWorkflowException
- Workflow exceptionSaWFTask.executeInactivate()
public InputStream getAttachmentContent(int element) throws SaSystemException, SaAuthenticationException, SaWorkflowException
getAttachmentContent
in interface SaWFTask
element
- 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 SaWFTask
SaAuthenticationException
- Authentication exceptionSaSystemException
- System exceptionSaWorkflowException
- Workflow exceptionSaWFTask.getCommandInfos()
public CommandInfo[] getCommandInfos(boolean transitionsOnly) throws SaAuthenticationException, SaSystemException, SaWorkflowException
getCommandInfos
in interface SaWFTask
transitionsOnly
- 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 SaWFTask
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 occurredpublic CommentInfo[] getComments() throws SaWorkflowException
getComments
in interface SaWFTask
SaWorkflowException
- Workflow exceptionSaWFTask.getComments()
public HistoryInfo[] getHistory() throws SaWorkflowException
getHistory
in interface SaWFTask
SaWorkflowException
- Workflow exceptionSaWFTask.getHistory()
public String getHistoryXML() throws SaWorkflowException
getHistoryXML
in interface SaWFTask
SaWorkflowException
- Workflow exceptionSaWFTask.getHistoryXML()
public String getHistoryXML(String language) throws SaWorkflowException
getHistoryXML
in interface SaWFTask
language
- LanguageSaWorkflowException
- Workflow exceptionSaWFTask.getHistoryXML(java.lang.String)
public String getHistoryXML2(String language) throws SaWorkflowException
getHistoryXML2
in interface SaWFTask
language
- LanguageSaWorkflowException
- Workflow exceptionSaWFTask.getHistoryXML2(java.lang.String)
public String getHistoryXML2(String language, boolean isAscending) throws SaWorkflowException
getHistoryXML2
in interface SaWFTask
language
- LanguageisAscending
- Is ascendingSaWorkflowException
- Workflow exceptionSaWFTask.getHistoryXML2(java.lang.String, boolean)
public boolean getSync() throws SaWorkflowException
getSync
in interface SaWFTask
SaWorkflowException
- Workflow exceptionSaWFTask.getSync()
public boolean getTrusted() throws SaWorkflowException
getTrusted
in interface SaWFTask
SaWorkflowException
- Workflow exceptionSaWFTask.getTrusted()
public int getWorkingTime() throws SaWorkflowException
getWorkingTime
in interface SaWFTask
SaWorkflowException
- Workflow exceptionSaWFTask.getWorkingTime()
public TaskInfo getTaskInfo() throws SaWorkflowException
getTaskInfo
in interface SaWFTask
SaWorkflowException
- Workflow exceptionSaWFTask.getTaskInfo()
public SaPropertyValue[] readAttachmentMetadata() throws SaSystemException, SaAuthenticationException, SaDDCException, SaWorkflowException
readAttachmentMetadata
in interface SaWFTask
SaSystemException
- SaSystemExceptionSaAuthenticationException
- SaAuthenticationExceptionSaDDCException
- SaDDCExceptionSaWorkflowException
- Workflow exceptionSaWFTask.readAttachmentMetadata()
public void setAliasActor(ActorInfo aliasActor) throws SaWorkflowException
setAliasActor
in interface SaWFTask
aliasActor
- Alias actorSaWorkflowException
- Workflow exceptionSaWFTask.setAliasActor(com.saperion.intf.wf.ActorInfo)
public void setAlias(ActorInfo alias) throws SaWorkflowException
setAlias
in interface SaWFTask
alias
- alias actorSaWorkflowException
- workflow exceptionSaWFTask.setAlias(com.saperion.intf.wf.ActorInfo)
public void addComment(String commentString, int level) throws SaAuthenticationException, SaSystemException, SaWorkflowException
addComment
in interface SaWFTask
commentString
- Commentlevel
- LevelSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exceptionSaWFTask.addComment(java.lang.String, int)
public void setComment(String commentString)
setComment
in interface SaWFTask
commentString
- Comment stringSaWFTask.setComment(java.lang.String)
public void addHistory(String descriptionString) throws SaAuthenticationException, SaSystemException, SaWorkflowException
addHistory
in interface SaWFTask
descriptionString
- CommentSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exceptionSaWFTask.addHistory(java.lang.String)
public void setSync(boolean isSync) throws SaWorkflowException
setSync
in interface SaWFTask
isSync
- Synchron workSaWorkflowException
- Workflow exceptionSaWFTask.setSync(boolean)
public void setTrusted(boolean isTrusted) throws SaWorkflowException
setTrusted
in interface SaWFTask
isTrusted
- Trusted workSaWorkflowException
- Workflow exceptionSaWFTask.setTrusted(boolean)
public void setWorkingTime(int time) throws SaWorkflowException
setWorkingTime
in interface SaWFTask
time
- 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 SaWFTask
namevaluePairs
- 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 SaWFTask
values
- FieldvaluesSaWorkflowException
- Workflow exceptionSaWFTask.updateTask(java.util.Properties)
Copyright © 2016 SAPERION AG. All rights reserved.