Package com.saperion.connector.rmi
Class AbstractWfRMIClientCommand
java.lang.Object
com.saperion.connector.rmi.AbstractRMIClientCommand
com.saperion.connector.rmi.AbstractFolderRMIClientCommand
com.saperion.connector.rmi.AbstractDocRMIClientCommand
com.saperion.connector.rmi.AbstractQueryRMIClientCommand
com.saperion.connector.rmi.AbstractWfRMIClientCommand
- All Implemented Interfaces:
SaRMIClientCommand
- Direct Known Subclasses:
SaRMIClientCommandImpl
Class representing the workflow operations of the backend.
-
Field Summary
Fields inherited from class com.saperion.connector.rmi.AbstractRMIClientCommand
APPEND_CONTENT, appl, credentials, LOGGER, props, session, sessionInfo, sysConnector, writeBufferSize
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addComment
(String comment, String taskUID, int level) void
addHistory
(String description, String taskUID) executeCommand
(ContextInfo contextInfo) Performs the given command.getBoxCount
(int boxId, BoxCountType type, Map<String, Object> parameters) Returns the number of all elements and of all unread elements of the inbox identified by the given id.Reads the box definitions.getCommandInfos
(String taskUID) Reads all possible transitions for this task.getCommandInfos
(String taskUID, boolean transitionsOnly) Reads all possible transitions and optional other possible commands for this task.getCommentInfos
(String taskUID) Reads the comments for the given task.getCompleteHistoryInfos
(String docUID) Reads the history for the given task.getHistoryInfos
(String taskUID) Reads the history for the given task.boolean
Get the out of office status for the logged on user.getParentTask
(String taskID) Reads the parent task info for the given ID.Get the substitute for the logged on user.Reads the task info for the given ID.getTaskAuditList
(int[] ids, String filter, Map<String, Object> parameter) Reads the task audit for this user.getTaskList
(int[] ids, String filter, Map<String, Object> parameter) Reads the task for this user.Reads a list of filtered users.Reads all available workflow definitions.void
setOutOfOffice
(boolean isOutOfOffice) Set the out of office status for the logged on user.void
setSubstitute
(String substituteName) Set the substitute for the logged on user.Methods inherited from class com.saperion.connector.rmi.AbstractQueryRMIClientCommand
finishSQLTransaction, getFulltext, getHDocForSysRowId, getIdsFromQuery, getStringQueryResult, getVersionList, readDocumentMetadata, startSQLTransaction
Methods inherited from class com.saperion.connector.rmi.AbstractDocRMIClientCommand
cacheDocument, checkoutDocument, checkoutDocument, checkSapUrl, clearContent, closeDocument, createDocument, createExternalStorageFolderMapping, createLink, deleteDocument, deleteExternalStorageFolderMapping, discardDocument, dsicardCheckout, finishTransaction, getACLNames, getACLRights, getAcls, getAllACLs, getAnnotations, getExternalStorageFoldersForUpload, getExternalStorageFoldersForUpload, getExternalStorageMapping, getInvolvedUsers, getLockInfo, getLocks, getLocks, getNodeAccessData, getThumbnail, lockNode, logClientEvent, readDocumentFirst, readDocumentFirst, readDocumentNext, readVersionMetadata, readVersionMetadata, releaseDocument, removeElement, removeElement, restoreVersion, saveDocument, saveDocument, setACLName, setAnnotations, setElementMark, setVariables, startTransaction, storeDocument, storeDocument, unlockNode, updateExternalStorageUploadStatus, writeContent, writeContent, writeContent, writeContent
Methods inherited from class com.saperion.connector.rmi.AbstractFolderRMIClientCommand
addToFolder, copyFolder, createFolder, deleteFolder, getDocumentFolderCount, getDocumentFolders, getFolderChildren, getFolderClass, getFolderFromPath, getFolderInfo, getFolderParent, getFolderRights, getFolderUpdateInfo, moveFolder, moveToFolder, removeFromFolder, searchFolderClass, searchFolderDocuments, setFolderAcl, updateFolder
Methods inherited from class com.saperion.connector.rmi.AbstractRMIClientCommand
getRemoteCommand, init, reLogon, reLogonAfterConnectionFailure
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.saperion.connector.rmi.SaRMIClientCommand
changePassword, closeSession, deleteSetting, getArchivedSize, getAuthorizedUsers, getCommitMode, getCurrentUserRole, getDDC, getDeleteMode, getEventsEnabled, getFeatures, getFieldDescriptions, getFieldDescriptions, getFullTextFields, getLicenseCount, getMandant, getMember, getMembers, getRealDBName, getRMIVersion, getServerInfos, getSession, getSetting, getSystemConnector, getSystemFiles, getSystemInfo, getSystemSetting, getToken, getUserIdsForQuery, getUserSetting, invoke, isAlive, isRevisionEnabled, listActiveSessions, loadDDCNames, loadFolderDDCNames, loadSettings, loadSystemFile, loadWorkflowDDCName, logoff, logon, logon, logon, newInvoke, resolveLatestHdoc, searchSettings, sendBarcode, setEventsEnabled, setLocale, setSetting, setUsedLicense, setUserSetting, storeSystemFile
-
Constructor Details
-
AbstractWfRMIClientCommand
public AbstractWfRMIClientCommand()
-
-
Method Details
-
getTaskList
public List<TaskInfo> getTaskList(int[] ids, String filter, Map<String, Object> parameter) throws SaAuthenticationException, SaSystemExceptionReads the task for this user.- Parameters:
ids
- Array of ID'sfilter
- HQL filterparameter
- Filter parameter- Returns:
- List of TaskInfo objects
- Throws:
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemException- See Also:
-
getTaskAuditList
public List<TaskAuditInfo> getTaskAuditList(int[] ids, String filter, Map<String, Object> parameter) throws SaAuthenticationException, SaSystemExceptionReads the task audit for this user.- Parameters:
ids
- Array of ID'sfilter
- HQL filterparameter
- Filter parameter- Returns:
- List of
TaskAuditInfo
objects - Throws:
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemException- See Also:
-
getTask
Reads the task info for the given ID.- Parameters:
taskID
- Task SysRowId- Returns:
- Task info
- Throws:
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemException- See Also:
-
getParentTask
Reads the parent task info for the given ID.- Parameters:
taskID
- Task SysRowId- Returns:
- Task info
- Throws:
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemException- See Also:
-
getCommandInfos
public Collection<CommandInfo> getCommandInfos(String taskUID) throws SaAuthenticationException, SaSystemException Reads all possible transitions for this task.- Parameters:
taskUID
- Task UID- Returns:
- Command list
- Throws:
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemException- See Also:
-
getCommandInfos
public Collection<CommandInfo> getCommandInfos(String taskUID, boolean transitionsOnly) throws SaAuthenticationException, SaSystemException Reads all possible transitions and optional other possible commands for this task.- Parameters:
taskUID
- Task UIDtransitionsOnly
- if true, only transition commands will be returned- Returns:
- Command list
- Throws:
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemException- See Also:
-
getBoxDefinitions
Reads the box definitions.- Returns:
- Box definitions
- Throws:
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemException- See Also:
-
getBoxCount
public BoxCount getBoxCount(int boxId, BoxCountType type, Map<String, Object> parameters) throws SaAuthenticationException, SaSystemExceptionReturns the number of all elements and of all unread elements of the inbox identified by the given id.- Parameters:
boxId
- the workflow box idtype
- type of tasks to search forparameters
- parameters needed for searching- Returns:
- number of all elements and of all unread elements
- Throws:
SaAuthenticationException
- if an error occurs.SaSystemException
- if an error occurs.- See Also:
-
executeCommand
public String executeCommand(ContextInfo contextInfo) throws SaAuthenticationException, SaSystemException, SaWorkflowException Performs the given command. The parameters must fit to the given parameter. Unneeded parameters can be set to null.- Parameters:
contextInfo
- Context info- Returns:
- New TaskID
- Throws:
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exception- See Also:
-
addComment
public void addComment(String comment, String taskUID, int level) throws SaAuthenticationException, SaSystemException, SaWorkflowException - Parameters:
comment
- CommenttaskUID
- Task UIDlevel
- Level- Throws:
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exception- See Also:
-
addHistory
public void addHistory(String description, String taskUID) throws SaAuthenticationException, SaSystemException, SaWorkflowException - Parameters:
description
- CommenttaskUID
- Task UID- Throws:
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exception- See Also:
-
getCommentInfos
public List<CommentInfo> getCommentInfos(String taskUID) throws SaAuthenticationException, SaSystemException, SaWorkflowException Reads the comments for the given task.- Parameters:
taskUID
- Task UID- Returns:
- List of comments
- Throws:
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exception- See Also:
-
getHistoryInfos
public List<HistoryInfo> getHistoryInfos(String taskUID) throws SaAuthenticationException, SaSystemException, SaWorkflowException Reads the history for the given task.- Parameters:
taskUID
- Task UID- Returns:
- History list
- Throws:
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exception- See Also:
-
getCompleteHistoryInfos
public List<List<HistoryInfo>> getCompleteHistoryInfos(String docUID) throws SaAuthenticationException, SaSystemException, SaWorkflowException Reads the history for the given task.- Parameters:
docUID
- Document UID- Returns:
- CompleteHistoryInfo
- Throws:
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exception- See Also:
-
getWorkflowDefinitions
public List<String> getWorkflowDefinitions() throws SaAuthenticationException, SaSystemException, SaWorkflowExceptionReads all available workflow definitions.- Returns:
- Workflowdefinition list
- Throws:
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exception- See Also:
-
getOutOfOffice
Get the out of office status for the logged on user.- Returns:
- is OutOfOffice
- Throws:
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemException- See Also:
-
getSubstitute
Get the substitute for the logged on user.- Returns:
- Substitute name
- Throws:
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemException- See Also:
-
setOutOfOffice
public void setOutOfOffice(boolean isOutOfOffice) throws SaAuthenticationException, SaSystemException Set the out of office status for the logged on user.- Parameters:
isOutOfOffice
- True, if is OutOfOffice- Throws:
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemException- See Also:
-
setSubstitute
public void setSubstitute(String substituteName) throws SaAuthenticationException, SaSystemException Set the substitute for the logged on user.- Parameters:
substituteName
- Substitute name- Throws:
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemException- See Also:
-
getUsers
Reads a list of filtered users.- Parameters:
filter
- Filter- Returns:
- List of users
- Throws:
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemException- See Also:
-