Package com.saperion.connector.wf
Interface SaWFConnector
- 
- All Known Implementing Classes:
- SaWFConnectorImpl
 
 public interface SaWFConnectorWorkflow Connector Interface.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description TaskInfoexecuteStartProcess(java.lang.String definition, ActorInfo nextActor, java.lang.String comment, java.lang.String attachmentUID)Start new process.java.lang.LonggetBoxCount(int boxId)Reads the count (number of workflow item) of the inbox identified by the given id.java.util.List<BoxDefinition>getBoxDefinitions()Reads the box definitions.SaClassicConnectorgetClassicConnector()Gets the classic connector behind this connector.java.util.List<HistoryInfo[]>getDocHistories(java.lang.String documentHdoc)Gets the document's process histories.java.util.List<java.lang.String>getDocHistoriesXML(java.lang.String documentHdoc)Gets the document's process histories as XML.java.util.List<java.lang.String>getDocHistoriesXML(java.lang.String documentHdoc, java.lang.String language)Gets the document's process histories as XML.java.util.List<java.lang.String>getDocHistoriesXML2(java.lang.String documentHdoc, java.lang.String language)Gets the the second variant of document's process histories as XML.java.util.List<java.lang.String>getDocHistoriesXML2(java.lang.String documentHdoc, java.lang.String language, boolean isAscending)Gets the the second variant of document's process histories as XML with ascending/descending switch.java.util.List<TaskInfo>getGroupbox(int[] ids, java.lang.String filter)Read the content of the group box.java.util.List<TaskInfo>getInbox(java.lang.String filter)Read the content of the inbox.WorkflowMembergetMember(WorkflowMember member, int depth, java.lang.String filter)Reads direct workflow member tree.WorkflowMembergetMembers()Reads the workflow member tree.java.util.List<TaskInfo>getOrgUnitbox(int[] ids, java.lang.String filter)Read the content of the organisation unit box.booleangetOutOfOffice()Get the out of office status for the logged on user.SaWFTaskgetParentTask(java.lang.String taskId)Get parent task direct by ID.java.util.List<java.lang.String>getProcessDefinitions()Reads all available process definitions.java.util.List<ProcessDefinitionDescriptor>getProcessDefinitions(java.lang.String ddcName)Returns the process definitions that are allowed to be used for documents contained in the specified DDC.java.lang.StringgetSubstitute()Get the substitute for the logged on user.java.util.List<TaskInfo>getSubstitutebox(int[] ids, java.lang.String filter)Read the content of the substitute box.SaWFTaskgetTask(TaskInfo taskInfo)Creates a task object from the given task information.SaWFTaskgetTask(java.lang.String taskId)Get task direct by ID.java.util.List<TaskAuditInfo>getTaskAuditList(int[] boxIds, java.lang.String filter)Reads the task audit for this user.java.util.List<TaskAuditInfo>getTaskAuditList(int[] boxIds, java.lang.String filter, java.util.Map<java.lang.String,java.lang.Object> parameter)Reads the task audit for this user.java.util.List<TaskInfo>getTaskList(int[] boxIds, java.lang.String filter)Reads the task for this user.java.util.List<TaskInfo>getTaskList(int[] boxIds, java.lang.String filter, java.util.Map<java.lang.String,java.lang.Object> parameter)Reads the task for this user.intgetUserId()User ID for the actual user.java.lang.StringgetWorkflowDdcName()Gets the workflow ddc namejava.lang.StringgetXMLTaskList(java.util.List<TaskInfo> taskList)Converts a task list to xml.booleanlogoff()Logoff from the backend system.intlogon(java.lang.String username, java.lang.String password, int type, java.lang.String client)performs logon to the backend system.voidsetOutOfOffice(boolean isOutOfOffice)set the out of office status for the logged on user.voidsetSubstitute(java.lang.String name)Set the substitute for the logged on user.
 
- 
- 
- 
Method Detail- 
logonint logon(java.lang.String username, java.lang.String password, int type, java.lang.String client) throws SaAuthenticationException, SaSystemExceptionperforms logon to the backend system.- Parameters:
- username- User's full name
- password- Password
- type- User type that means client license type. There are possible the following integer values:
- 1 = index
- 2 = query
- 3 = univeral administrator
- 4 = web query
- 7 = web index
- 12 = workflow
- 13 = scan
- 14 = highend scan
- 15 = API query
- 16 = API index
- 17 = API scan
- 20 = basic administrator
- 29 = web workflow
- client- client/mandant name, used in multi-client systems
- Returns:
- User token for the current session.
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
 
 - 
logoffboolean logoff() throws SaAuthenticationException, SaSystemExceptionLogoff from the backend system. This command also destroys the command thread on the java broker server.- Returns:
- boolean. True, if logoff successful.
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
 
 - 
getUserIdint getUserId() User ID for the actual user.- Returns:
- User id
 
 - 
getBoxDefinitionsjava.util.List<BoxDefinition> getBoxDefinitions() throws SaAuthenticationException, SaSystemException Reads the box definitions.- Returns:
- Box definitions
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
 
 - 
getBoxCountjava.lang.Long getBoxCount(int boxId) throws SaAuthenticationException, SaSystemExceptionReads the count (number of workflow item) of the inbox identified by the given id. For more options (unread-count...) use invoke method of ClassicConnector withGetBoxCountoperation.- Parameters:
- boxId- the workflow box id
- Returns:
- the count of the inbox as Long.
- Throws:
- SaAuthenticationException- if an error occurs.
- SaSystemException- if an error occurs.
 
 - 
getInboxjava.util.List<TaskInfo> getInbox(java.lang.String filter) throws SaAuthenticationException, SaSystemException Read the content of the inbox.- Parameters:
- filter- HQL filter
- Returns:
- List of TaskInfo objects
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
 
 - 
getGroupboxjava.util.List<TaskInfo> getGroupbox(int[] ids, java.lang.String filter) throws SaAuthenticationException, SaSystemException Read the content of the group box.- Parameters:
- ids- Filter ID's
- filter- HQL filter
- Returns:
- List of TaskInfo objects
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
 
 - 
getSubstituteboxjava.util.List<TaskInfo> getSubstitutebox(int[] ids, java.lang.String filter) throws SaAuthenticationException, SaSystemException Read the content of the substitute box.- Parameters:
- ids- Filter ID's
- filter- HQL filter
- Returns:
- List of TaskInfo objects
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
 
 - 
getOrgUnitboxjava.util.List<TaskInfo> getOrgUnitbox(int[] ids, java.lang.String filter) throws SaAuthenticationException, SaSystemException Read the content of the organisation unit box.- Parameters:
- ids- Filter ID's
- filter- HQL filter
- Returns:
- List of TaskInfo objects
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
 
 - 
getTaskListjava.util.List<TaskInfo> getTaskList(int[] boxIds, java.lang.String filter) throws SaAuthenticationException, SaSystemException Reads the task for this user.- Parameters:
- boxIds- BoxIds
- filter- HQL filter. Optional WHERE condition that will be added to the original query.
 In order to add the pagination functionality like setMaxResults() and/or setFirstResult(), add the following statements to the filter:
 filter_stmt;MAXRESULTS=x ;FIRSTRESULT=y.
 ;MAXRESULTS=x - x means the limitation of the result set output.
 ;FIRSTRESULT=y - y means setting the result set cursor to the y-position.
 Adding pagination is optional feature that can be used without filter statement as well. In other words filter might consist of ;MAXRESULTS=x ;FIRSTRESULT=y string only.
 
 Examples:
 1. LASTUSER ='Bolt';MAXRESULTS=50 ;FIRSTRESULT=1 - hql query's where condition is enhanced with restriction LASTUSER ='Bolt' and the pagination functionality setMaxResults() and setFirstResult() is used;
 
 2. ;MAXRESULTS=50 - only setMaxResult() will be used.
 
 using ; ist important for applying pagination.
- Returns:
- List of TaskInfo objects
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
 
 - 
getTaskListjava.util.List<TaskInfo> getTaskList(int[] boxIds, java.lang.String filter, java.util.Map<java.lang.String,java.lang.Object> parameter) throws SaAuthenticationException, SaSystemException Reads the task for this user.- Parameters:
- boxIds- BoxIds
- filter- HQL filter. Optional WHERE condition that will be added to the original query.
 In order to add the pagination functionality like setMaxResults() and/or setFirstResult(), add the following statements to the filter:
 filter_stmt;MAXRESULTS=x ;FIRSTRESULT=y.
 ;MAXRESULTS=x - x means the limitation of the result set output.
 ;FIRSTRESULT=y - y means setting the result set cursor to the y-position.
 Adding pagination is optional feature that can be used without filter statement as well. In other words filter might consist of ;MAXRESULTS=x ;FIRSTRESULT=y string only.
 
 Examples:
 1. LASTUSER ='Bolt';MAXRESULTS=50 ;FIRSTRESULT=1 - hql query's where condition is enhanced with restriction LASTUSER ='Bolt' and the pagination functionality setMaxResults() and setFirstResult() is used;
 
 2. ;MAXRESULTS=50 - only setMaxResult() will be used.
 
 using ; ist important for applying pagination.
- parameter- parameters for the filter-statement, if used
- Returns:
- List of TaskInfo objects
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
 
 - 
getTaskAuditListjava.util.List<TaskAuditInfo> getTaskAuditList(int[] boxIds, java.lang.String filter) throws SaAuthenticationException, SaSystemException Reads the task audit for this user.- Parameters:
- boxIds- BoxIds
- filter- HQL filter
- Returns:
- List of TaskAuditInfoobjects
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
 
 - 
getTaskAuditListjava.util.List<TaskAuditInfo> getTaskAuditList(int[] boxIds, java.lang.String filter, java.util.Map<java.lang.String,java.lang.Object> parameter) throws SaAuthenticationException, SaSystemException Reads the task audit for this user.- Parameters:
- boxIds- BoxIds
- filter- HQL filter
- parameter- Filter parameter
- Returns:
- List of TaskAuditInfoobjects
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
 
 - 
getTaskSaWFTask getTask(TaskInfo taskInfo) throws SaAuthenticationException, SaSystemException, SaWorkflowException Creates a task object from the given task information.- Parameters:
- taskInfo- Task information
- Returns:
- Task object
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
- SaWorkflowException- Workflow exception
 
 - 
getTaskSaWFTask getTask(java.lang.String taskId) throws SaAuthenticationException, SaSystemException, SaWorkflowException Get task direct by ID.- Parameters:
- taskId- Task SysRowId
- Returns:
- Task information
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
- SaWorkflowException- Workflow exception
 
 - 
getParentTaskSaWFTask getParentTask(java.lang.String taskId) throws SaAuthenticationException, SaSystemException, SaWorkflowException Get parent task direct by ID.- Parameters:
- taskId- Task SysRowId
- Returns:
- Task information
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
- SaWorkflowException- Workflow exception
 
 - 
getProcessDefinitionsjava.util.List<java.lang.String> getProcessDefinitions() throws SaAuthenticationException, SaSystemException, SaWorkflowExceptionReads all available process definitions.- Returns:
- Process definitions
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
- SaWorkflowException- Workflow exception
 
 - 
getProcessDefinitionsjava.util.List<ProcessDefinitionDescriptor> getProcessDefinitions(java.lang.String ddcName) throws SaAuthenticationException, SaSystemException, SaWorkflowException Returns the process definitions that are allowed to be used for documents contained in the specified DDC. If no restrictions are configured, all process definitions will be returned.- Parameters:
- ddcName- name of the DDC
- Returns:
- Workflowdefinition list
- Throws:
- SaAuthenticationException- authentication error when loading definitions
- SaSystemException- system error when loading definitions
- SaWorkflowException- workflow error when loading definitions
 
 - 
executeStartProcessTaskInfo executeStartProcess(java.lang.String definition, ActorInfo nextActor, java.lang.String comment, java.lang.String attachmentUID) throws SaWorkflowException Start new process.- Parameters:
- definition- Process definition
- nextActor- Next actor
- comment- Comment
- attachmentUID- Attachment UID (a HDOC)
- Returns:
- Task info of new process
- Throws:
- SaWorkflowException- Workflow exception
 
 - 
getXMLTaskListjava.lang.String getXMLTaskList(java.util.List<TaskInfo> taskList) Converts a task list to xml.- Parameters:
- taskList- Task list
- Returns:
- Task XML as String
 
 - 
getSubstitutejava.lang.String getSubstitute() throws SaAuthenticationException, SaSystemExceptionGet the substitute for the logged on user.- Returns:
- Substitute name
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
 
 - 
setSubstitutevoid setSubstitute(java.lang.String name) throws SaAuthenticationException, SaSystemExceptionSet the substitute for the logged on user.- Parameters:
- name- the fullname of the substitute user
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
 
 - 
getMembersWorkflowMember getMembers() throws SaAuthenticationException, SaSystemException Reads the workflow member tree.- Returns:
- Member tree
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
 
 - 
getMemberWorkflowMember getMember(WorkflowMember member, int depth, java.lang.String filter) throws SaAuthenticationException, SaSystemException Reads direct workflow member tree.- Parameters:
- member- workflow member, which children have to be returned.
- depth- of children.
- filter- filter string
- Returns:
- Member tree
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
 
 - 
getOutOfOfficeboolean getOutOfOffice() throws SaAuthenticationException, SaSystemExceptionGet the out of office status for the logged on user.- Returns:
- is OutOfOffice
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
 
 - 
setOutOfOfficevoid setOutOfOffice(boolean isOutOfOffice) throws SaAuthenticationException, SaSystemExceptionset the out of office status for the logged on user.- Parameters:
- isOutOfOffice- True, if is OutOfOffice
- Throws:
- SaAuthenticationException- SaAuthenticationException
- SaSystemException- SaSystemException
 
 - 
getDocHistoriesjava.util.List<HistoryInfo[]> getDocHistories(java.lang.String documentHdoc) throws SaWorkflowException Gets the document's process histories.- Parameters:
- documentHdoc- Document's HDoc
- Returns:
- List of arrays of history objects
- Throws:
- SaWorkflowException- Workflow exception
 
 - 
getDocHistoriesXMLjava.util.List<java.lang.String> getDocHistoriesXML(java.lang.String documentHdoc) throws SaWorkflowExceptionGets the document's process histories as XML.- Parameters:
- documentHdoc- Document's UID
- Returns:
- List of XML strings of history objects
- Throws:
- SaWorkflowException- Workflow exception
 
 - 
getDocHistoriesXMLjava.util.List<java.lang.String> getDocHistoriesXML(java.lang.String documentHdoc, java.lang.String language) throws SaWorkflowExceptionGets the document's process histories as XML.- Parameters:
- documentHdoc- Document's UID
- language- Language
- Returns:
- List of XML strings of history objects
- Throws:
- SaWorkflowException- Workflow exception
 
 - 
getDocHistoriesXML2java.util.List<java.lang.String> getDocHistoriesXML2(java.lang.String documentHdoc, java.lang.String language) throws SaWorkflowExceptionGets the the second variant of document's process histories as XML.- Parameters:
- documentHdoc- Document's UID
- language- Language
- Returns:
- List of XML strings of history objects
- Throws:
- SaWorkflowException- Workflow exception
 
 - 
getDocHistoriesXML2java.util.List<java.lang.String> getDocHistoriesXML2(java.lang.String documentHdoc, java.lang.String language, boolean isAscending) throws SaWorkflowExceptionGets the the second variant of document's process histories as XML with ascending/descending switch.- Parameters:
- documentHdoc- Document's UID
- language- Language
- isAscending- Is ascending
- Returns:
- List of XML strings of history objects
- Throws:
- SaWorkflowException- Workflow exception
 
 - 
getClassicConnectorSaClassicConnector getClassicConnector() Gets the classic connector behind this connector. ;- Returns:
- Classic connector behind this connector
 
 - 
getWorkflowDdcNamejava.lang.String getWorkflowDdcName() throws SaSystemExceptionGets the workflow ddc name- Returns:
- the name of the workflow ddc
- Throws:
- SaSystemException
 
 
- 
 
-