public interface SaWFConnector
Modifier and Type | Method and Description |
---|---|
TaskInfo |
executeStartProcess(String definition,
ActorInfo nextActor,
String comment,
String attachmentUID)
Start new process.
|
Long |
getBoxCount(int boxId)
Reads the count (number of workflow item) of the inbox identified by the given id.
|
List<BoxDefinition> |
getBoxDefinitions()
Reads the box definitions.
|
SaClassicConnector |
getClassicConnector()
Gets the classic connector behind this connector.
|
List<HistoryInfo[]> |
getDocHistories(String documentHdoc)
Gets the document's process histories.
|
List<String> |
getDocHistoriesXML(String documentHdoc)
Gets the document's process histories as XML.
|
List<String> |
getDocHistoriesXML(String documentHdoc,
String language)
Gets the document's process histories as XML.
|
List<String> |
getDocHistoriesXML2(String documentHdoc,
String language)
Gets the the second variant of document's process histories as XML.
|
List<String> |
getDocHistoriesXML2(String documentHdoc,
String language,
boolean isAscending)
Gets the the second variant of document's process histories as XML with ascending/descending
switch.
|
List<TaskInfo> |
getGroupbox(int[] ids,
String filter)
Read the content of the group box.
|
List<TaskInfo> |
getInbox(String filter)
Read the content of the inbox.
|
WorkflowMember |
getMember(WorkflowMember member,
int depth,
String filter)
Reads direct workflow member tree.
|
WorkflowMember |
getMembers()
Reads the workflow member tree.
|
List<TaskInfo> |
getOrgUnitbox(int[] ids,
String filter)
Read the content of the organisation unit box.
|
boolean |
getOutOfOffice()
Get the out of office status for the logged on user.
|
SaWFTask |
getParentTask(String taskId)
Get parent task direct by ID.
|
List<String> |
getProcessDefinitions()
Reads all available process definitions.
|
List<ProcessDefinitionDescriptor> |
getProcessDefinitions(String ddcName)
Returns the process definitions that are allowed to be used for documents contained
in the specified DDC.
|
String |
getSubstitute()
Get the substitute for the logged on user.
|
List<TaskInfo> |
getSubstitutebox(int[] ids,
String filter)
Read the content of the substitute box.
|
SaWFTask |
getTask(String taskId)
Get task direct by ID.
|
SaWFTask |
getTask(TaskInfo taskInfo)
Creates a task object from the given task information.
|
List<TaskAuditInfo> |
getTaskAuditList(int[] boxIds,
String filter)
Reads the task audit for this user.
|
List<TaskAuditInfo> |
getTaskAuditList(int[] boxIds,
String filter,
Map<String,Object> parameter)
Reads the task audit for this user.
|
List<TaskInfo> |
getTaskList(int[] boxIds,
String filter)
Reads the task for this user.
|
List<TaskInfo> |
getTaskList(int[] boxIds,
String filter,
Map<String,Object> parameter)
Reads the task for this user.
|
int |
getUserId()
User ID for the actual user.
|
String |
getWorkflowDdcName()
Gets the workflow ddc name
|
String |
getXMLTaskList(List<TaskInfo> taskList)
Converts a task list to xml.
|
boolean |
logoff()
Logoff from the backend system.
|
int |
logon(String username,
String password,
int type,
String client)
performs logon to the backend system.
|
void |
setOutOfOffice(boolean isOutOfOffice)
set the out of office status for the logged on user.
|
void |
setSubstitute(String name)
Set the substitute for the logged on user.
|
int logon(String username, String password, int type, String client) throws SaAuthenticationException, SaSystemException
username
- User's full namepassword
- Passwordtype
- User type that means client license type. There are possible the following integer
values:
client
- client/mandant name, used in multi-client systemsSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionboolean logoff() throws SaAuthenticationException, SaSystemException
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionint getUserId()
List<BoxDefinition> getBoxDefinitions() throws SaAuthenticationException, SaSystemException
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionLong getBoxCount(int boxId) throws SaAuthenticationException, SaSystemException
GetBoxCount
operation.boxId
- the workflow box idSaAuthenticationException
- if an error occurs.SaSystemException
- if an error occurs.List<TaskInfo> getInbox(String filter) throws SaAuthenticationException, SaSystemException
filter
- HQL filterSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionList<TaskInfo> getGroupbox(int[] ids, String filter) throws SaAuthenticationException, SaSystemException
ids
- Filter ID'sfilter
- HQL filterSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionList<TaskInfo> getSubstitutebox(int[] ids, String filter) throws SaAuthenticationException, SaSystemException
ids
- Filter ID'sfilter
- HQL filterSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionList<TaskInfo> getOrgUnitbox(int[] ids, String filter) throws SaAuthenticationException, SaSystemException
ids
- Filter ID'sfilter
- HQL filterSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionList<TaskInfo> getTaskList(int[] boxIds, String filter) throws SaAuthenticationException, SaSystemException
boxIds
- BoxIdsfilter
- HQL filter. Optional WHERE condition that will be added to the original query. SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionList<TaskInfo> getTaskList(int[] boxIds, String filter, Map<String,Object> parameter) throws SaAuthenticationException, SaSystemException
boxIds
- BoxIdsfilter
- HQL filter. Optional WHERE condition that will be added to the original query. parameter
- parameters for the filter-statement, if usedSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionList<TaskAuditInfo> getTaskAuditList(int[] boxIds, String filter) throws SaAuthenticationException, SaSystemException
boxIds
- BoxIdsfilter
- HQL filterTaskAuditInfo
objectsSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionList<TaskAuditInfo> getTaskAuditList(int[] boxIds, String filter, Map<String,Object> parameter) throws SaAuthenticationException, SaSystemException
boxIds
- BoxIdsfilter
- HQL filterparameter
- Filter parameterTaskAuditInfo
objectsSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWFTask getTask(TaskInfo taskInfo) throws SaAuthenticationException, SaSystemException, SaWorkflowException
taskInfo
- Task informationSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exceptionSaWFTask getTask(String taskId) throws SaAuthenticationException, SaSystemException, SaWorkflowException
taskId
- Task SysRowIdSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exceptionSaWFTask getParentTask(String taskId) throws SaAuthenticationException, SaSystemException, SaWorkflowException
taskId
- Task SysRowIdSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exceptionList<String> getProcessDefinitions() throws SaAuthenticationException, SaSystemException, SaWorkflowException
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exceptionList<ProcessDefinitionDescriptor> getProcessDefinitions(String ddcName) throws SaAuthenticationException, SaSystemException, SaWorkflowException
ddcName
- name of the DDCSaAuthenticationException
- authentication error when loading definitionsSaSystemException
- system error when loading definitionsSaWorkflowException
- workflow error when loading definitionsTaskInfo executeStartProcess(String definition, ActorInfo nextActor, String comment, String attachmentUID) throws SaWorkflowException
definition
- Process definitionnextActor
- Next actorcomment
- CommentattachmentUID
- Attachment UID (a HDOC)SaWorkflowException
- Workflow exceptionString getXMLTaskList(List<TaskInfo> taskList)
taskList
- Task listString getSubstitute() throws SaAuthenticationException, SaSystemException
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionvoid setSubstitute(String name) throws SaAuthenticationException, SaSystemException
name
- the fullname of the substitute userSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionWorkflowMember getMembers() throws SaAuthenticationException, SaSystemException
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionWorkflowMember getMember(WorkflowMember member, int depth, String filter) throws SaAuthenticationException, SaSystemException
member
- workflow member, which children have to be returned.depth
- of children.filter
- filter stringSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionboolean getOutOfOffice() throws SaAuthenticationException, SaSystemException
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionvoid setOutOfOffice(boolean isOutOfOffice) throws SaAuthenticationException, SaSystemException
isOutOfOffice
- True, if is OutOfOfficeSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionList<HistoryInfo[]> getDocHistories(String documentHdoc) throws SaWorkflowException
documentHdoc
- Document's HDocSaWorkflowException
- Workflow exceptionList<String> getDocHistoriesXML(String documentHdoc) throws SaWorkflowException
documentHdoc
- Document's UIDSaWorkflowException
- Workflow exceptionList<String> getDocHistoriesXML(String documentHdoc, String language) throws SaWorkflowException
documentHdoc
- Document's UIDlanguage
- LanguageSaWorkflowException
- Workflow exceptionList<String> getDocHistoriesXML2(String documentHdoc, String language) throws SaWorkflowException
documentHdoc
- Document's UIDlanguage
- LanguageSaWorkflowException
- Workflow exceptionList<String> getDocHistoriesXML2(String documentHdoc, String language, boolean isAscending) throws SaWorkflowException
documentHdoc
- Document's UIDlanguage
- LanguageisAscending
- Is ascendingSaWorkflowException
- Workflow exceptionSaClassicConnector getClassicConnector()
String getWorkflowDdcName() throws SaSystemException
SaSystemException
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.