Class SaWFConnectorImpl

  • All Implemented Interfaces:
    SaWFConnector

    public class SaWFConnectorImpl
    extends java.lang.Object
    implements SaWFConnector
    Workflow connector implementation.
    Author:
    rbo
    • Constructor Summary

      Constructors 
      Constructor Description
      SaWFConnectorImpl()
      Constructs the SaWFConnectorImpl instance which provides workflow functionalities.
      SaWFConnectorImpl​(SaClassicConnector conn)
      Constructor with given connector.
      SaWFConnectorImpl​(java.lang.String configPath)
      Constructs the SaWFConnectorImpl instance which provides workflow functionalities.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TaskInfo executeStartProcess​(java.lang.String definition, ActorInfo nextActor, java.lang.String comment, java.lang.String attachmentUID)
      Start new process.
      java.lang.Long getBoxCount​(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.
      SaClassicConnector getClassicConnector()
      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.
      WorkflowMember getMember​(WorkflowMember member, int depth, java.lang.String filter)
      Reads direct workflow member tree.
      WorkflowMember getMembers()
      Reads the workflow member tree.
      java.util.List<TaskInfo> getOrgUnitbox​(int[] ids, java.lang.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​(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.String getSubstitute()
      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.
      SaWFTask getTask​(TaskInfo taskInfo)
      Creates a task object from the given task information.
      SaWFTask getTask​(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.
      int getUserId()
      User ID for the actual user.
      java.lang.String getWorkflowDdcName()
      Gets the workflow ddc name
      java.lang.String getXMLTaskList​(java.util.List<TaskInfo> taskList)
      Converts a task list to xml.
      boolean logoff()
      Logoff from the backend system.
      int logon​(java.lang.String username, java.lang.String password, int type, java.lang.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​(java.lang.String name)
      Set the substitute for the logged on user.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait