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(BpmnImportDescription bpmnDescription,
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 SaWFConnector
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWFConnector.getBoxDefinitions()
public Long getBoxCount(int boxId) throws SaAuthenticationException, SaSystemException
GetBoxCount
operation.getBoxCount
in interface SaWFConnector
boxId
- 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 SaWFConnector
ids
- Filter ID'sfilter
- HQL filterSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWFConnector.getGroupbox(int[],
java.lang.String)
public List<TaskInfo> getInbox(String filter) throws SaAuthenticationException, SaSystemException
getInbox
in interface SaWFConnector
filter
- HQL filterSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWFConnector.getInbox(java.lang.String)
public List<TaskInfo> getOrgUnitbox(int[] ids, String filter) throws SaAuthenticationException, SaSystemException
getOrgUnitbox
in interface SaWFConnector
ids
- Filter ID'sfilter
- HQL filterSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWFConnector.getOrgUnitbox(int[],
java.lang.String)
public SaWFTask getTask(TaskInfo taskInfo) throws SaAuthenticationException, SaSystemException, SaWorkflowException
getTask
in interface SaWFConnector
taskInfo
- Task informationSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exceptionSaWFConnector.getTask(com.saperion.intf.wf.TaskInfo)
public SaWFTask getTask(String taskId) throws SaAuthenticationException, SaSystemException, SaWorkflowException
getTask
in interface SaWFConnector
taskId
- Task SysRowIdSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exceptionSaWFConnector.getTask(java.lang.String)
public SaWFTask getParentTask(String taskId) throws SaAuthenticationException, SaSystemException, SaWorkflowException
getParentTask
in interface SaWFConnector
taskId
- Task SysRowIdSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exceptionSaWFConnector.getParentTask(java.lang.String)
public List<TaskInfo> getSubstitutebox(int[] ids, String filter) throws SaAuthenticationException, SaSystemException
getSubstitutebox
in interface SaWFConnector
ids
- 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 SaWFConnector
boxIds
- BoxIdsfilter
- HQL filterSaAuthenticationException
- 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 SaWFConnector
boxIds
- BoxIdsfilter
- HQL filterparameter
- Filter parameterSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWFConnector.getTaskList(int[],
java.lang.String, java.util.Map)
public List<TaskAuditInfo> getTaskAuditList(int[] boxIds, String filter) throws SaAuthenticationException, SaSystemException
getTaskAuditList
in interface SaWFConnector
boxIds
- 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 SaWFConnector
boxIds
- 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 SaWFConnector
definition
- Process definitionnextActor
- Next actorcomment
- CommentattachmentUID
- Attachment UIDSaWorkflowException
- 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 SaWFConnector
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWFConnector.logoff()
public int logon(String username, String password, int type, String client) throws SaAuthenticationException, SaSystemException
logon
in interface SaWFConnector
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
- SaSystemExceptionSaWFConnector.logon(java.lang.String,
java.lang.String, int, java.lang.String)
public int getUserId()
getUserId
in interface SaWFConnector
SaWFConnector.getUserId()
public String getXMLTaskList(List<TaskInfo> taskList)
getXMLTaskList
in interface SaWFConnector
taskList
- Task listSaWFConnector.getXMLTaskList(java.util.List)
public List<String> getProcessDefinitions() throws SaAuthenticationException, SaSystemException, SaWorkflowException
getProcessDefinitions
in interface SaWFConnector
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWorkflowException
- Workflow exceptionSaWFConnector.getProcessDefinitions()
public List<ProcessDefinitionDescriptor> getProcessDefinitions(String ddcName) throws SaAuthenticationException, SaSystemException, SaWorkflowException
getProcessDefinitions
in interface SaWFConnector
ddcName
- 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 SaWFConnector
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWFConnector.getOutOfOffice()
public String getSubstitute() throws SaAuthenticationException, SaSystemException
getSubstitute
in interface SaWFConnector
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWFConnector.getSubstitute()
public void setOutOfOffice(boolean isOutOfOffice) throws SaAuthenticationException, SaSystemException
setOutOfOffice
in interface SaWFConnector
isOutOfOffice
- True, if is OutOfOfficeSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWFConnector.setOutOfOffice(boolean)
public void setSubstitute(String name) throws SaAuthenticationException, SaSystemException
setSubstitute
in interface SaWFConnector
name
- Substitute nameSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWFConnector.setSubstitute(java.lang.String)
public List<HistoryInfo[]> getDocHistories(String documentHdoc) throws SaWorkflowException
getDocHistories
in interface SaWFConnector
documentHdoc
- Document's HDocSaWorkflowException
- Workflow exceptioncom.saperion.connector.wf.SaWFConnector#getDocHistories()
public List<String> getDocHistoriesXML(String documentHdoc) throws SaWorkflowException
getDocHistoriesXML
in interface SaWFConnector
documentHdoc
- Document's UIDSaWorkflowException
- Workflow exceptioncom.saperion.connector.wf.SaWFConnector#getDocHistoriesXML()
public List<String> getDocHistoriesXML(String documentHdoc, String language) throws SaWorkflowException
getDocHistoriesXML
in interface SaWFConnector
documentHdoc
- Document's UIDlanguage
- LanguageSaWorkflowException
- Workflow exceptionSaWFConnector.getDocHistoriesXML(java.lang.String)
public List<String> getDocHistoriesXML2(String documentHdoc, String language) throws SaWorkflowException
getDocHistoriesXML2
in interface SaWFConnector
documentHdoc
- Document's UIDlanguage
- LanguageSaWorkflowException
- Workflow exceptioncom.saperion.connector.wf.SaWFConnector#getDocHistoriesXML2(java.lang.String)
public List<String> getDocHistoriesXML2(String documentHdoc, String language, boolean isAscending) throws SaWorkflowException
getDocHistoriesXML2
in interface SaWFConnector
documentHdoc
- Document's UIDlanguage
- LanguageisAscending
- Is ascendingSaWorkflowException
- Workflow exceptioncom.saperion.connector.wf.SaWFConnector#getDocHistoriesXML2(java.lang.String,
boolean)
public WorkflowMember getMembers() throws SaAuthenticationException, SaSystemException
getMembers
in interface SaWFConnector
SaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptionSaWFConnector.getMembers()
public WorkflowMember getMember(WorkflowMember member, int depth, String filter) throws SaAuthenticationException, SaSystemException
getMember
in interface SaWFConnector
member
- workflow member, which children have to be returned.depth
- of children.filter
- filter stringSaAuthenticationException
- SaAuthenticationExceptionSaSystemException
- SaSystemExceptioncom.saperion.connector.wf.SaWFConnector#getMember(WorkflowMember,
int)
public SaClassicConnector getClassicConnector()
getClassicConnector
in interface SaWFConnector
SaWFConnector.getClassicConnector()
public void storeBpmn(BpmnImportDescription bpmnDescription, BpmnImportCallback callback) throws SaAuthenticationException, SaSystemException
SaWFConnector
storeBpmn
in interface SaWFConnector
bpmnDescription
- 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 SaWFConnector
SaSystemException
SaWFConnector.getWorkflowDdcName()
Copyright © 2016 SAPERION AG. All rights reserved.