public class WorkflowConnectorService extends ClassicConnectorService implements WorkflowService
ddcCache
Constructor and Description |
---|
WorkflowConnectorService() |
WorkflowConnectorService(javax.servlet.http.HttpSession session) |
Modifier and Type | Method and Description |
---|---|
com.saperion.connector.wf.WorkflowResult |
addComment(String taskId,
String comment)
Execute add comment.
|
com.saperion.connector.wf.WorkflowResult |
addHistory(String taskId,
String description)
Execute set history.
|
com.saperion.connector.wf.WorkflowResult |
executeActivate(String taskId)
Execute activate.
|
com.saperion.connector.wf.WorkflowResult |
executeApprove(String taskId,
String nextUser)
Execute delegate.
|
com.saperion.connector.wf.WorkflowResult |
executeAssignToMe(String taskId)
Execute AssignToMe.
|
com.saperion.connector.wf.WorkflowResult |
executeChangeOwner(String taskId,
String newOwner)
Execute change owner.
|
com.saperion.connector.wf.WorkflowResult |
executeCommand(WorkflowActionBean workflowAction)
Execute the given command.
|
com.saperion.connector.wf.WorkflowResult |
executeDelegate(String taskId,
String delegatee)
Execute delegate.
|
com.saperion.connector.wf.WorkflowResult |
executeEscalation(String taskId,
Date date)
Execute escalate.
|
com.saperion.connector.wf.WorkflowResult |
executeForward(String taskId,
String nextUser,
int transition)
Execute forward.
|
com.saperion.connector.wf.WorkflowResult |
executeHold(String taskId,
Date date)
Execute hold.
|
com.saperion.connector.wf.WorkflowResult |
executeInactivate(String taskId)
Execute inactivate.
|
com.saperion.connector.wf.WorkflowResult |
executeNotResponsible(String taskId,
String comment)
Execute not responsible.
|
com.saperion.connector.wf.WorkflowResult |
executePutBack(String taskId)
Execute putback.
|
com.saperion.connector.wf.WorkflowResult |
executeReassign(String taskId)
Execute reassign.
|
com.saperion.connector.wf.WorkflowResult |
executeReject(String taskId,
String nextUser)
Execute reject.
|
com.saperion.connector.wf.WorkflowResult |
executeRemove(String taskId,
String comment)
Execute remove.
|
com.saperion.connector.wf.WorkflowResult |
executeRemoveNotice(String taskId)
Execute remove notice.
|
com.saperion.connector.wf.WorkflowResult |
executeResetHold(String taskId)
Execute reset hold.
|
com.saperion.connector.wf.WorkflowResult |
executeRework(String taskId,
String nextUser)
Execute rework.
|
com.saperion.connector.wf.WorkflowResult |
executeSetActivity(String taskId,
int activity)
Execute set activity.
|
com.saperion.connector.wf.WorkflowResult |
executeTake(String taskId)
Execute take.
|
com.saperion.connector.wf.WorkflowResult |
executeTerminate(String taskId)
Execute terminate.
|
List<com.saperion.intf.wf.CommentInfo> |
getComments(com.saperion.intf.wf.TaskInfo taskInfo)
Retrieves the comments for the specified task.
|
List<String> |
getDefinitions()
Reads the available workflow definitions.
|
List<com.saperion.wf.ProcessDefinitionDescriptor> |
getDefinitions(String ddcName)
Reads the available workflow definitions for the specified DDC.
|
List<com.saperion.intf.wf.HistoryInfo[]> |
getDocHistories(String docHdoc)
Reads history information for a given document.
|
com.saperion.intf.wf.BoxDefinition |
getInboxDefinition()
Retrieves the definition of the current user's inbox.
|
com.saperion.intf.wf.WorkflowMember |
getMember(com.saperion.intf.wf.WorkflowMember member,
int depth,
String filter)
Reads direct workflow member.
|
com.saperion.intf.wf.WorkflowMember |
getMembers()
Reads workflow member.
|
String |
getSubstitute()
Gets the fullname of the substitute for workflows of the current user.
|
com.saperion.jcs.modules.users.api.User |
getSubstituteUser()
Gets the substitute-user for the current user.
|
com.saperion.connector.wf.SaWFTask |
getTask(String taskId)
Load the task object.
|
String |
getWfDisplayName(com.saperion.intf.wf.WorkflowMember member)
Retrieves the comments for the specified task.
|
boolean |
isWorkflowFeatureEnabled()
Checks if the workflow-feature is enabled.
|
com.saperion.connector.wf.WorkflowResult |
setComment(String taskId,
String comment)
Execute set comment.
|
void |
setSubstitute(String substituteFullname)
Sets the substitute for workflows.
|
com.saperion.connector.wf.WorkflowResult |
startWorkflow(String definition,
String actor,
String comment,
String attachmentUID)
Execute start workflow.
|
convertAuthenticationException, getCachedDDC, getConnectionProvider, getCurrentUserFromSession, getSession, getWfConnectionProvider, isActive
public WorkflowConnectorService()
public WorkflowConnectorService(javax.servlet.http.HttpSession session)
session
- HTTP sessionpublic List<String> getDefinitions() throws AuthenticationException, SystemException, WorkflowException
getDefinitions
in interface WorkflowService
AuthenticationException
- authentication exceptionSystemException
- system exceptionWorkflowException
- workflow exceptionWorkflowService.getDefinitions()
public List<com.saperion.wf.ProcessDefinitionDescriptor> getDefinitions(String ddcName) throws AuthenticationException, SystemException, WorkflowException
getDefinitions
in interface WorkflowService
ddcName
- name of the DDCAuthenticationException
- authentication exceptionSystemException
- system exceptionWorkflowException
- workflow exceptionWorkflowService.getDefinitions(java.lang.String)
public com.saperion.connector.wf.SaWFTask getTask(String taskId) throws AuthenticationException, SystemException, WorkflowException
getTask
in interface WorkflowService
taskId
- task idAuthenticationException
- authentication exceptionSystemException
- system exceptionWorkflowException
- workflow exceptionWorkflowService.getTask(java.lang.String)
public com.saperion.connector.wf.WorkflowResult executeCommand(WorkflowActionBean workflowAction) throws WorkflowException
executeCommand
in interface WorkflowService
workflowAction
- Information needed for executing workflow commandWorkflowException
- workflow exceptionWorkflowService.executeCommand(
com.saperion.ngc.resultset.WorkflowActionBean)
public com.saperion.connector.wf.WorkflowResult executeApprove(String taskId, String nextUser) throws WorkflowException
executeApprove
in interface WorkflowService
taskId
- Task IDnextUser
- Next userWorkflowException
- workflow exceptionWorkflowService.executeApprove(java.lang.String,
java.lang.String)
public com.saperion.connector.wf.WorkflowResult executeForward(String taskId, String nextUser, int transition) throws WorkflowException
executeForward
in interface WorkflowService
taskId
- Task IDnextUser
- Next usertransition
- TransitionWorkflowException
- workflow exceptionWorkflowService.executeForward(java.lang.String,
java.lang.String, int)
public com.saperion.connector.wf.WorkflowResult executeReject(String taskId, String nextUser) throws WorkflowException
executeReject
in interface WorkflowService
taskId
- Task IDnextUser
- Next userWorkflowException
- workflow exceptionWorkflowService.executeReject(java.lang.String,
java.lang.String)
public com.saperion.connector.wf.WorkflowResult executeRework(String taskId, String nextUser) throws WorkflowException
executeRework
in interface WorkflowService
taskId
- Task IDnextUser
- Next userWorkflowException
- workflow exceptionWorkflowService.executeRework(java.lang.String,
java.lang.String)
public com.saperion.connector.wf.WorkflowResult executeNotResponsible(String taskId, String comment) throws WorkflowException
executeNotResponsible
in interface WorkflowService
taskId
- Task IDcomment
- CommentWorkflowException
- workflow exceptionWorkflowService.executeNotResponsible(java.lang.String,
java.lang.String)
public com.saperion.connector.wf.WorkflowResult executeTake(String taskId) throws WorkflowException
executeTake
in interface WorkflowService
taskId
- Task IDWorkflowException
- workflow exceptionWorkflowService.executeTake(java.lang.String)
public com.saperion.connector.wf.WorkflowResult executeRemove(String taskId, String comment) throws WorkflowException
executeRemove
in interface WorkflowService
taskId
- Task IDcomment
- CommentWorkflowException
- workflow exceptionWorkflowService.executeRemove(java.lang.String,
java.lang.String)
public com.saperion.connector.wf.WorkflowResult executeRemoveNotice(String taskId) throws WorkflowException
executeRemoveNotice
in interface WorkflowService
taskId
- Task IDWorkflowException
- workflow exceptionWorkflowService.executeRemoveNotice(java.lang.String)
public com.saperion.connector.wf.WorkflowResult executeHold(String taskId, Date date) throws WorkflowException
executeHold
in interface WorkflowService
taskId
- Task IDdate
- Hold dateWorkflowException
- workflow exceptionWorkflowService.executeHold(java.lang.String,
java.util.Date)
public com.saperion.connector.wf.WorkflowResult executeResetHold(String taskId) throws WorkflowException
executeResetHold
in interface WorkflowService
taskId
- Task IDWorkflowException
- workflow exceptionWorkflowService.executeResetHold(java.lang.String)
public com.saperion.connector.wf.WorkflowResult executeEscalation(String taskId, Date date) throws WorkflowException
executeEscalation
in interface WorkflowService
taskId
- Task IDdate
- Escalation dateWorkflowException
- workflow exceptionWorkflowService.executeEscalation(java.lang.String,
java.util.Date)
public com.saperion.connector.wf.WorkflowResult executeInactivate(String taskId) throws WorkflowException
executeInactivate
in interface WorkflowService
taskId
- Task IDWorkflowException
- workflow exceptionWorkflowService.executeInactivate(java.lang.String)
public com.saperion.connector.wf.WorkflowResult executeActivate(String taskId) throws WorkflowException
executeActivate
in interface WorkflowService
taskId
- Task IDWorkflowException
- workflow exceptionWorkflowService.executeActivate(java.lang.String)
public com.saperion.connector.wf.WorkflowResult executeTerminate(String taskId) throws WorkflowException
executeTerminate
in interface WorkflowService
taskId
- Task IDWorkflowException
- workflow exceptionWorkflowService.executeTerminate(java.lang.String)
public com.saperion.connector.wf.WorkflowResult executeChangeOwner(String taskId, String newOwner) throws WorkflowException
executeChangeOwner
in interface WorkflowService
taskId
- Task IDnewOwner
- New ownerWorkflowException
- workflow exceptionWorkflowService.executeChangeOwner(java.lang.String,
java.lang.String)
public com.saperion.connector.wf.WorkflowResult executeSetActivity(String taskId, int activity) throws WorkflowException
executeSetActivity
in interface WorkflowService
taskId
- Task IDactivity
- ActivityWorkflowException
- workflow exceptionWorkflowService.executeSetActivity(java.lang.String,
int)
public com.saperion.connector.wf.WorkflowResult executeDelegate(String taskId, String delegatee) throws WorkflowException
executeDelegate
in interface WorkflowService
taskId
- Task IDdelegatee
- DelegateeWorkflowException
- workflow exceptionWorkflowService.executeDelegate(java.lang.String,
java.lang.String)
public com.saperion.connector.wf.WorkflowResult executeReassign(String taskId) throws WorkflowException
executeReassign
in interface WorkflowService
taskId
- Task IDWorkflowException
- workflow exceptionWorkflowService.executeReassign(java.lang.String)
public com.saperion.connector.wf.WorkflowResult executeAssignToMe(String taskId) throws WorkflowException
executeAssignToMe
in interface WorkflowService
taskId
- Task IDWorkflowException
- workflow exceptionWorkflowService.executeAssignToMe(java.lang.String)
public com.saperion.connector.wf.WorkflowResult executePutBack(String taskId) throws WorkflowException
executePutBack
in interface WorkflowService
taskId
- Task IDWorkflowException
- workflow exceptionWorkflowService.executePutBack(java.lang.String)
public com.saperion.connector.wf.WorkflowResult setComment(String taskId, String comment) throws WorkflowException
setComment
in interface WorkflowService
taskId
- Task IDcomment
- CommentWorkflowException
- workflow exceptionWorkflowService.setComment(java.lang.String,
java.lang.String)
public com.saperion.connector.wf.WorkflowResult addComment(String taskId, String comment) throws WorkflowException
addComment
in interface WorkflowService
taskId
- Task IDcomment
- CommentWorkflowException
- workflow exceptionWorkflowService.addComment(java.lang.String,
java.lang.String)
public com.saperion.connector.wf.WorkflowResult addHistory(String taskId, String description) throws WorkflowException, SystemException, AuthenticationException
addHistory
in interface WorkflowService
taskId
- Task IDdescription
- DescriptionWorkflowException
- workflow exceptionSystemException
- system exceptionAuthenticationException
- authentication exceptionWorkflowService.addHistory(java.lang.String,
java.lang.String)
public com.saperion.connector.wf.WorkflowResult startWorkflow(String definition, String actor, String comment, String attachmentUID) throws WorkflowException
startWorkflow
in interface WorkflowService
definition
- Definition nameactor
- Actorcomment
- CommentattachmentUID
- Attachment UIDWorkflowException
- workflow exceptionWorkflowService.startWorkflow(java.lang.String,
java.lang.String, java.lang.String, java.lang.String)
public com.saperion.intf.wf.WorkflowMember getMember(com.saperion.intf.wf.WorkflowMember member, int depth, String filter) throws WorkflowException, SystemException
getMember
in interface WorkflowService
member
- workflow member, witch direct children will be returneddepth
- depth of the returned children.filter
- filter stringWorkflowException
- workflow exceptionSystemException
- system exceptionWorkflowService.getMember(com.saperion.intf.wf.WorkflowMember,
int, java.lang.String)
public com.saperion.intf.wf.WorkflowMember getMembers() throws WorkflowException, SystemException
getMembers
in interface WorkflowService
WorkflowException
- workflow exceptionSystemException
- system exceptionWorkflowService.getMembers()
public List<com.saperion.intf.wf.HistoryInfo[]> getDocHistories(String docHdoc) throws WorkflowException
getDocHistories
in interface WorkflowService
docHdoc
- document's hDocWorkflowException
- workflow exceptionWorkflowService.getDocHistories(java.lang.String)
public List<com.saperion.intf.wf.CommentInfo> getComments(com.saperion.intf.wf.TaskInfo taskInfo) throws AuthenticationException, SystemException, WorkflowException
getComments
in interface WorkflowService
taskInfo
- taskAuthenticationException
- authentication exceptionSystemException
- system exceptionWorkflowException
- workflow exceptionWorkflowService.getComments(com.saperion.intf.wf.TaskInfo)
public String getWfDisplayName(com.saperion.intf.wf.WorkflowMember member)
getWfDisplayName
in interface WorkflowService
member
- member to get display name forWorkflowService.getWfDisplayName(WorkflowMember)
public com.saperion.intf.wf.BoxDefinition getInboxDefinition() throws AuthenticationException, SystemException
getInboxDefinition
in interface WorkflowService
AuthenticationException
- authentication exceptionSystemException
- system exceptionWorkflowService.getInboxDefinition()
public boolean isWorkflowFeatureEnabled() throws SystemException
WorkflowService
isWorkflowFeatureEnabled
in interface WorkflowService
SystemException
- system exception when checking featurepublic String getSubstitute() throws AuthenticationException, SystemException
WorkflowService
getSubstitute
in interface WorkflowService
AuthenticationException
- Authentication exceptionSystemException
- system exceptionpublic com.saperion.jcs.modules.users.api.User getSubstituteUser() throws AuthenticationException, SystemException
WorkflowService
getSubstituteUser
in interface WorkflowService
AuthenticationException
- authentication exceptionSystemException
- system exceptionpublic void setSubstitute(String substituteFullname) throws AuthenticationException, SystemException
WorkflowService
setSubstitute
in interface WorkflowService
substituteFullname
- Fullname of the substitute to store.AuthenticationException
- Authentication exceptionSystemException
- system exceptionCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.