public class SaWFConnectorImpl extends Object implements SaWFConnector
| Constructor and Description |
|---|
SaWFConnectorImpl()
Constructs the
SaWFConnectorImpl instance which provides
workflow functionalities. |
SaWFConnectorImpl(SaClassicConnector conn)
Constructor with given connector.
|
SaWFConnectorImpl(String configPath)
Constructs the
SaWFConnectorImpl instance which provides
workflow functionalities. |
| 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.
|
void |
storeBpmn(com.saperion.osgi.server.plugin.workflow.converter.BpmnImportDescription bpmnDescription,
com.saperion.osgi.server.plugin.workflow.converter.BpmnImportCallback callback)
Transforms the bpmn model to a saperion process and stores it to the system.
|
public SaWFConnectorImpl()
throws SaAuthenticationException,
SaSystemException
SaWFConnectorImpl instance which provides
workflow functionalities.SaSystemException - System exceptionSaAuthenticationException - Authentication exceptionpublic SaWFConnectorImpl(String configPath) throws SaAuthenticationException, SaSystemException
SaWFConnectorImpl instance which provides
workflow functionalities.configPath - Configuration pathSaSystemException - System exceptionSaAuthenticationException - Authentication exceptionpublic SaWFConnectorImpl(SaClassicConnector conn) throws SaAuthenticationException, SaSystemException
conn - Classic connectorSaSystemException - System exceptionSaAuthenticationException - Authentication exceptionpublic List<BoxDefinition> getBoxDefinitions() throws SaAuthenticationException, SaSystemException
getBoxDefinitions in interface SaWFConnectorSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWFConnector.getBoxDefinitions()public Long getBoxCount(int boxId) throws SaAuthenticationException, SaSystemException
GetBoxCount operation.getBoxCount in interface SaWFConnectorboxId - the workflow box idSaAuthenticationException - if an error occurs.SaSystemException - if an error occurs.SaWFConnector.getBoxDefinitions()public List<TaskInfo> getGroupbox(int[] ids, String filter) throws SaAuthenticationException, SaSystemException
getGroupbox in interface SaWFConnectorids - Filter ID'sfilter - HQL filterSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWFConnector.getGroupbox(int[],
java.lang.String)public List<TaskInfo> getInbox(String filter) throws SaAuthenticationException, SaSystemException
getInbox in interface SaWFConnectorfilter - HQL filterSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWFConnector.getInbox(java.lang.String)public List<TaskInfo> getOrgUnitbox(int[] ids, String filter) throws SaAuthenticationException, SaSystemException
getOrgUnitbox in interface SaWFConnectorids - Filter ID'sfilter - HQL filterSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWFConnector.getOrgUnitbox(int[],
java.lang.String)public SaWFTask getTask(TaskInfo taskInfo) throws SaAuthenticationException, SaSystemException, SaWorkflowException
getTask in interface SaWFConnectortaskInfo - Task informationSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWorkflowException - Workflow exceptionSaWFConnector.getTask(com.saperion.intf.wf.TaskInfo)public SaWFTask getTask(String taskId) throws SaAuthenticationException, SaSystemException, SaWorkflowException
getTask in interface SaWFConnectortaskId - Task SysRowIdSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWorkflowException - Workflow exceptionSaWFConnector.getTask(java.lang.String)public SaWFTask getParentTask(String taskId) throws SaAuthenticationException, SaSystemException, SaWorkflowException
getParentTask in interface SaWFConnectortaskId - Task SysRowIdSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWorkflowException - Workflow exceptionSaWFConnector.getParentTask(java.lang.String)public List<TaskInfo> getSubstitutebox(int[] ids, String filter) throws SaAuthenticationException, SaSystemException
getSubstitutebox in interface SaWFConnectorids - Filter ID'sfilter - HQL filterSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWFConnector.getSubstitutebox(int[],
java.lang.String)public List<TaskInfo> getTaskList(int[] boxIds, String filter) throws SaAuthenticationException, SaSystemException
getTaskList in interface SaWFConnectorboxIds - BoxIdsfilter - HQL filter. Optional WHERE condition that will be added to the original query. SaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWFConnector.getTaskList(int[],
java.lang.String)public List<TaskInfo> getTaskList(int[] boxIds, String filter, Map<String,Object> parameter) throws SaAuthenticationException, SaSystemException
getTaskList in interface SaWFConnectorboxIds - BoxIdsfilter - HQL filter. Optional WHERE condition that will be added to the original query. parameter - parameters for the filter-statement, if usedSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWFConnector.getTaskList(int[],
java.lang.String, java.util.Map)public List<TaskAuditInfo> getTaskAuditList(int[] boxIds, String filter) throws SaAuthenticationException, SaSystemException
getTaskAuditList in interface SaWFConnectorboxIds - BoxIdsfilter - HQL filterTaskAuditInfo objectsSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWFConnector.getTaskAuditList(int[],
java.lang.String)public List<TaskAuditInfo> getTaskAuditList(int[] boxIds, String filter, Map<String,Object> parameter) throws SaAuthenticationException, SaSystemException
getTaskAuditList in interface SaWFConnectorboxIds - BoxIdsfilter - HQL filterparameter - Filter parameterTaskAuditInfo objectsSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWFConnector.getTaskAuditList(int[],
java.lang.String, java.util.Map)public TaskInfo executeStartProcess(String definition, ActorInfo nextActor, String comment, String attachmentUID) throws SaWorkflowException
executeStartProcess in interface SaWFConnectordefinition - Process definitionnextActor - Next actorcomment - CommentattachmentUID - Attachment UID (a HDOC)SaWorkflowException - Workflow exceptionSaWFConnector.executeStartProcess(java.lang.String,
com.saperion.intf.wf.ActorInfo, java.lang.String, java.lang.String)public boolean logoff()
throws SaAuthenticationException,
SaSystemException
logoff in interface SaWFConnectorSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWFConnector.logoff()public int logon(String username, String password, int type, String client) throws SaAuthenticationException, SaSystemException
logon in interface SaWFConnectorusername - 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 - SaSystemExceptionSaWFConnector.logon(java.lang.String,
java.lang.String, int, java.lang.String)public int getUserId()
getUserId in interface SaWFConnectorSaWFConnector.getUserId()public String getXMLTaskList(List<TaskInfo> taskList)
getXMLTaskList in interface SaWFConnectortaskList - Task listSaWFConnector.getXMLTaskList(java.util.List)public List<String> getProcessDefinitions() throws SaAuthenticationException, SaSystemException, SaWorkflowException
getProcessDefinitions in interface SaWFConnectorSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWorkflowException - Workflow exceptionSaWFConnector.getProcessDefinitions()public List<ProcessDefinitionDescriptor> getProcessDefinitions(String ddcName) throws SaAuthenticationException, SaSystemException, SaWorkflowException
getProcessDefinitions in interface SaWFConnectorddcName - name of the DDCSaAuthenticationException - authentication error when loading definitionsSaSystemException - system error when loading definitionsSaWorkflowException - workflow error when loading definitionsSaWFConnector.getProcessDefinitions(java.lang.String)public boolean getOutOfOffice()
throws SaAuthenticationException,
SaSystemException
getOutOfOffice in interface SaWFConnectorSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWFConnector.getOutOfOffice()public String getSubstitute() throws SaAuthenticationException, SaSystemException
getSubstitute in interface SaWFConnectorSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWFConnector.getSubstitute()public void setOutOfOffice(boolean isOutOfOffice)
throws SaAuthenticationException,
SaSystemException
setOutOfOffice in interface SaWFConnectorisOutOfOffice - True, if is OutOfOfficeSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWFConnector.setOutOfOffice(boolean)public void setSubstitute(String name) throws SaAuthenticationException, SaSystemException
setSubstitute in interface SaWFConnectorname - the fullname of the substitute userSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWFConnector.setSubstitute(java.lang.String)public List<HistoryInfo[]> getDocHistories(String documentHdoc) throws SaWorkflowException
getDocHistories in interface SaWFConnectordocumentHdoc - Document's HDocSaWorkflowException - Workflow exceptionSaWFConnector.getDocHistories(String)public List<String> getDocHistoriesXML(String documentHdoc) throws SaWorkflowException
getDocHistoriesXML in interface SaWFConnectordocumentHdoc - Document's UIDSaWorkflowException - Workflow exceptionSaWFConnector.getDocHistoriesXML(String)public List<String> getDocHistoriesXML(String documentHdoc, String language) throws SaWorkflowException
getDocHistoriesXML in interface SaWFConnectordocumentHdoc - Document's UIDlanguage - LanguageSaWorkflowException - Workflow exceptionSaWFConnector.getDocHistoriesXML(java.lang.String)public List<String> getDocHistoriesXML2(String documentHdoc, String language) throws SaWorkflowException
getDocHistoriesXML2 in interface SaWFConnectordocumentHdoc - Document's UIDlanguage - LanguageSaWorkflowException - Workflow exceptionSaWFConnector.getDocHistoriesXML2(String, String)public List<String> getDocHistoriesXML2(String documentHdoc, String language, boolean isAscending) throws SaWorkflowException
getDocHistoriesXML2 in interface SaWFConnectordocumentHdoc - Document's UIDlanguage - LanguageisAscending - Is ascendingSaWorkflowException - Workflow exceptionSaWFConnector.getDocHistoriesXML2(String, String, boolean)public WorkflowMember getMembers() throws SaAuthenticationException, SaSystemException
getMembers in interface SaWFConnectorSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWFConnector.getMembers()public WorkflowMember getMember(WorkflowMember member, int depth, String filter) throws SaAuthenticationException, SaSystemException
getMember in interface SaWFConnectormember - workflow member, which children have to be returned.depth - of children.filter - filter stringSaAuthenticationException - SaAuthenticationExceptionSaSystemException - SaSystemExceptionSaWFConnector.getMember(WorkflowMember, int, String)public SaClassicConnector getClassicConnector()
getClassicConnector in interface SaWFConnectorSaWFConnector.getClassicConnector()public void storeBpmn(com.saperion.osgi.server.plugin.workflow.converter.BpmnImportDescription bpmnDescription,
com.saperion.osgi.server.plugin.workflow.converter.BpmnImportCallback callback)
throws SaAuthenticationException,
SaSystemException
SaWFConnectorstoreBpmn in interface SaWFConnectorbpmnDescription - The description of the model to import.callback - The callback object that is notified when the transformation succeeds or fails.SaAuthenticationException - authentication errorSaSystemException - remote exceptionpublic String getWorkflowDdcName() throws SaSystemException
getWorkflowDdcName in interface SaWFConnectorSaSystemExceptionSaWFConnector.getWorkflowDdcName()Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.