Package com.saperion.ngc.model.workflow
Interface WorkflowService
-
- All Superinterfaces:
Service
- All Known Implementing Classes:
WorkflowConnectorService
public interface WorkflowService extends Service
- Author:
- tfr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.saperion.connector.wf.WorkflowResultaddComment(java.lang.String taskId, java.lang.String comment)Execute add comment.com.saperion.connector.wf.WorkflowResultaddHistory(java.lang.String taskId, java.lang.String description)Execute set history.com.saperion.connector.wf.WorkflowResultexecuteActivate(java.lang.String taskId)Execute activate.com.saperion.connector.wf.WorkflowResultexecuteApprove(java.lang.String taskId, java.lang.String nextUser)Execute delegate.com.saperion.connector.wf.WorkflowResultexecuteAssignToMe(java.lang.String taskId)Execute AssignToMe.com.saperion.connector.wf.WorkflowResultexecuteChangeOwner(java.lang.String taskId, java.lang.String newOwner)Execute change owner.com.saperion.connector.wf.WorkflowResultexecuteCommand(WorkflowActionBean workflowAction)Execute the given command.com.saperion.connector.wf.WorkflowResultexecuteDelegate(java.lang.String taskId, java.lang.String delegatee)Execute delegate.com.saperion.connector.wf.WorkflowResultexecuteEscalation(java.lang.String taskId, java.util.Date date)Execute escalate.com.saperion.connector.wf.WorkflowResultexecuteForward(java.lang.String taskId, java.lang.String nextUser, int transition)Execute forward.com.saperion.connector.wf.WorkflowResultexecuteHold(java.lang.String taskId, java.util.Date date)Execute hold.com.saperion.connector.wf.WorkflowResultexecuteInactivate(java.lang.String taskId)Execute inactivate.com.saperion.connector.wf.WorkflowResultexecuteNotResponsible(java.lang.String taskId, java.lang.String comment)Execute not responsible.com.saperion.connector.wf.WorkflowResultexecutePutBack(java.lang.String taskId)Execute putback.com.saperion.connector.wf.WorkflowResultexecuteReassign(java.lang.String taskId)Execute reassign.com.saperion.connector.wf.WorkflowResultexecuteReject(java.lang.String taskId, java.lang.String nextUser)Execute reject.com.saperion.connector.wf.WorkflowResultexecuteRemove(java.lang.String taskId, java.lang.String comment)Execute remove.com.saperion.connector.wf.WorkflowResultexecuteRemoveNotice(java.lang.String taskId)Execute remove notice.com.saperion.connector.wf.WorkflowResultexecuteResetHold(java.lang.String taskId)Execute reset hold.com.saperion.connector.wf.WorkflowResultexecuteRework(java.lang.String taskId, java.lang.String nextUser)Execute rework.com.saperion.connector.wf.WorkflowResultexecuteSetActivity(java.lang.String taskId, int activity)Execute set activity.com.saperion.connector.wf.WorkflowResultexecuteTake(java.lang.String taskId)Execute take.com.saperion.connector.wf.WorkflowResultexecuteTerminate(java.lang.String taskId)Execute terminate.java.util.List<com.saperion.intf.wf.CommentInfo>getComments(com.saperion.intf.wf.TaskInfo task)Retrieves the comments for the specified task.java.util.List<java.lang.String>getDefinitions()Reads the available workflow definitions.java.util.List<com.saperion.wf.ProcessDefinitionDescriptor>getDefinitions(java.lang.String ddcName)Reads the available workflow definitions for the specified DDC.java.util.List<com.saperion.intf.wf.HistoryInfo[]>getDocHistories(java.lang.String docHdoc)Reads history information for a given document.com.saperion.intf.wf.BoxDefinitiongetInboxDefinition()Retrieves the definition of the current user's inbox.com.saperion.intf.wf.WorkflowMembergetMember(com.saperion.intf.wf.WorkflowMember member, int depth, java.lang.String filter)Reads direct workflow member.com.saperion.intf.wf.WorkflowMembergetMembers()Reads workflow member.java.lang.StringgetSubstitute()Gets the fullname of the substitute for workflows of the current user.com.saperion.jcs.modules.users.api.UsergetSubstituteUser()Gets the substitute-user for the current user.com.saperion.connector.wf.SaWFTaskgetTask(java.lang.String taskId)Load the task object.java.lang.StringgetWfDisplayName(com.saperion.intf.wf.WorkflowMember member)Retrieves the comments for the specified task.booleanisWorkflowFeatureEnabled()Checks if the workflow-feature is enabled.com.saperion.connector.wf.WorkflowResultsetComment(java.lang.String taskId, java.lang.String comment)Execute set comment.voidsetSubstitute(java.lang.String substituteFullname)Sets the substitute for workflows.com.saperion.connector.wf.WorkflowResultstartWorkflow(java.lang.String definition, java.lang.String actor, java.lang.String comment, java.lang.String attachmentUID)Execute start workflow.
-
-
-
Method Detail
-
getDefinitions
java.util.List<java.lang.String> getDefinitions() throws AuthenticationException, SystemException, WorkflowExceptionReads the available workflow definitions.- Returns:
- Workflow definitions
- Throws:
WorkflowException- workflow exceptionSystemException- system exceptionAuthenticationException- authentication exception
-
getDefinitions
java.util.List<com.saperion.wf.ProcessDefinitionDescriptor> getDefinitions(java.lang.String ddcName) throws AuthenticationException, SystemException, WorkflowExceptionReads the available workflow definitions for the specified DDC. If the usage of workflow definitions is not restricted, all definitions will be returned.- Parameters:
ddcName- name of the DDC- Returns:
- Workflow definitions
- Throws:
WorkflowException- workflow exceptionSystemException- system exceptionAuthenticationException- authentication exception
-
getMember
com.saperion.intf.wf.WorkflowMember getMember(com.saperion.intf.wf.WorkflowMember member, int depth, java.lang.String filter) throws WorkflowException, SystemExceptionReads direct workflow member.- Parameters:
member- workflow member, witch direct children will be returneddepth- depth of the returned children.filter- filter string- Returns:
- Member tree
- Throws:
WorkflowException- workflow exceptionSystemException- system exception
-
getMembers
com.saperion.intf.wf.WorkflowMember getMembers() throws WorkflowException, SystemExceptionReads workflow member.- Returns:
- Member tree
- Throws:
SystemException- system exceptionWorkflowException- workflow exception
-
executeCommand
com.saperion.connector.wf.WorkflowResult executeCommand(WorkflowActionBean workflowAction) throws WorkflowException
Execute the given command. The parameters must fit to the given command. Unneeded parameters can be set to null.- Parameters:
workflowAction- Information needed for executing workflow command- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executeApprove
com.saperion.connector.wf.WorkflowResult executeApprove(java.lang.String taskId, java.lang.String nextUser) throws WorkflowExceptionExecute delegate.- Parameters:
taskId- Task IDnextUser- Next user- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executeForward
com.saperion.connector.wf.WorkflowResult executeForward(java.lang.String taskId, java.lang.String nextUser, int transition) throws WorkflowExceptionExecute forward.- Parameters:
taskId- Task IDnextUser- Next usertransition- Transition- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executeReject
com.saperion.connector.wf.WorkflowResult executeReject(java.lang.String taskId, java.lang.String nextUser) throws WorkflowExceptionExecute reject.- Parameters:
taskId- Task IDnextUser- Next user- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executeRework
com.saperion.connector.wf.WorkflowResult executeRework(java.lang.String taskId, java.lang.String nextUser) throws WorkflowExceptionExecute rework.- Parameters:
taskId- Task IDnextUser- Next user- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executeNotResponsible
com.saperion.connector.wf.WorkflowResult executeNotResponsible(java.lang.String taskId, java.lang.String comment) throws WorkflowExceptionExecute not responsible.- Parameters:
taskId- Task IDcomment- Comment- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executeTake
com.saperion.connector.wf.WorkflowResult executeTake(java.lang.String taskId) throws WorkflowExceptionExecute take.- Parameters:
taskId- Task ID- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executeRemove
com.saperion.connector.wf.WorkflowResult executeRemove(java.lang.String taskId, java.lang.String comment) throws WorkflowExceptionExecute remove.- Parameters:
taskId- Task IDcomment- Comment- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executeRemoveNotice
com.saperion.connector.wf.WorkflowResult executeRemoveNotice(java.lang.String taskId) throws WorkflowExceptionExecute remove notice.- Parameters:
taskId- Task ID- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executeHold
com.saperion.connector.wf.WorkflowResult executeHold(java.lang.String taskId, java.util.Date date) throws WorkflowExceptionExecute hold.- Parameters:
taskId- Task IDdate- Hold date- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executeResetHold
com.saperion.connector.wf.WorkflowResult executeResetHold(java.lang.String taskId) throws WorkflowExceptionExecute reset hold.- Parameters:
taskId- Task ID- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executeEscalation
com.saperion.connector.wf.WorkflowResult executeEscalation(java.lang.String taskId, java.util.Date date) throws WorkflowExceptionExecute escalate.- Parameters:
taskId- Task IDdate- Escalation date- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executeInactivate
com.saperion.connector.wf.WorkflowResult executeInactivate(java.lang.String taskId) throws WorkflowExceptionExecute inactivate.- Parameters:
taskId- Task ID- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executeActivate
com.saperion.connector.wf.WorkflowResult executeActivate(java.lang.String taskId) throws WorkflowExceptionExecute activate.- Parameters:
taskId- Task ID- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executeTerminate
com.saperion.connector.wf.WorkflowResult executeTerminate(java.lang.String taskId) throws WorkflowExceptionExecute terminate.- Parameters:
taskId- Task ID- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executeChangeOwner
com.saperion.connector.wf.WorkflowResult executeChangeOwner(java.lang.String taskId, java.lang.String newOwner) throws WorkflowExceptionExecute change owner.- Parameters:
taskId- Task IDnewOwner- New owner- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executeSetActivity
com.saperion.connector.wf.WorkflowResult executeSetActivity(java.lang.String taskId, int activity) throws WorkflowExceptionExecute set activity.- Parameters:
taskId- Task IDactivity- Activity- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executeDelegate
com.saperion.connector.wf.WorkflowResult executeDelegate(java.lang.String taskId, java.lang.String delegatee) throws WorkflowExceptionExecute delegate.- Parameters:
taskId- Task IDdelegatee- Delegatee- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executeReassign
com.saperion.connector.wf.WorkflowResult executeReassign(java.lang.String taskId) throws WorkflowExceptionExecute reassign.- Parameters:
taskId- Task ID- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executeAssignToMe
com.saperion.connector.wf.WorkflowResult executeAssignToMe(java.lang.String taskId) throws WorkflowExceptionExecute AssignToMe.- Parameters:
taskId- Task ID- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
executePutBack
com.saperion.connector.wf.WorkflowResult executePutBack(java.lang.String taskId) throws WorkflowExceptionExecute putback.- Parameters:
taskId- Task ID- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
setComment
com.saperion.connector.wf.WorkflowResult setComment(java.lang.String taskId, java.lang.String comment) throws WorkflowExceptionExecute set comment.- Parameters:
taskId- Task IDcomment- Comment- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
addComment
com.saperion.connector.wf.WorkflowResult addComment(java.lang.String taskId, java.lang.String comment) throws WorkflowExceptionExecute add comment.- Parameters:
taskId- Task IDcomment- Comment- Returns:
- Workflow result
- Throws:
WorkflowException- workflow exception
-
addHistory
com.saperion.connector.wf.WorkflowResult addHistory(java.lang.String taskId, java.lang.String description) throws WorkflowException, SystemException, AuthenticationExceptionExecute set history.- Parameters:
taskId- Task IDdescription- Description- Returns:
- Workflow result
- Throws:
SystemException- system exceptionWorkflowException- workflow exceptionAuthenticationException- authentication exception
-
startWorkflow
com.saperion.connector.wf.WorkflowResult startWorkflow(java.lang.String definition, java.lang.String actor, java.lang.String comment, java.lang.String attachmentUID) throws WorkflowExceptionExecute start workflow.- Parameters:
definition- Definition nameactor- Actorcomment- CommentattachmentUID- Attachment UID- Returns:
- True, if done
- Throws:
WorkflowException- workflow exception
-
getTask
com.saperion.connector.wf.SaWFTask getTask(java.lang.String taskId) throws AuthenticationException, SystemException, WorkflowExceptionLoad the task object.- Parameters:
taskId- task id- Returns:
- task
- Throws:
WorkflowException- workflow exceptionSystemException- system exceptionAuthenticationException- authentication exception
-
getDocHistories
java.util.List<com.saperion.intf.wf.HistoryInfo[]> getDocHistories(java.lang.String docHdoc) throws WorkflowExceptionReads history information for a given document.- Parameters:
docHdoc- document's hDoc- Returns:
- list of history information arrays
- Throws:
WorkflowException- workflow exception
-
getComments
java.util.List<com.saperion.intf.wf.CommentInfo> getComments(com.saperion.intf.wf.TaskInfo task) throws AuthenticationException, SystemException, WorkflowExceptionRetrieves the comments for the specified task.- Parameters:
task- task- Returns:
- list of comments
- Throws:
AuthenticationException- authentication exceptionSystemException- system exceptionWorkflowException- workflow exception
-
getWfDisplayName
java.lang.String getWfDisplayName(com.saperion.intf.wf.WorkflowMember member)
Retrieves the comments for the specified task.- Parameters:
member- member to get display name for- Returns:
- display name
-
getInboxDefinition
com.saperion.intf.wf.BoxDefinition getInboxDefinition() throws AuthenticationException, SystemExceptionRetrieves the definition of the current user's inbox.- Returns:
- BoxDefinition for user's inbox
- Throws:
AuthenticationException- authentication exceptionSystemException- system exception
-
isWorkflowFeatureEnabled
boolean isWorkflowFeatureEnabled() throws SystemExceptionChecks if the workflow-feature is enabled.- Returns:
- true, if workflow-feature is enabled
- Throws:
SystemException- system exception when checking feature
-
getSubstitute
java.lang.String getSubstitute() throws AuthenticationException, SystemExceptionGets the fullname of the substitute for workflows of the current user.- Returns:
- Fullname of the substitute user.
- Throws:
AuthenticationException- Authentication exceptionSystemException- system exception
-
getSubstituteUser
com.saperion.jcs.modules.users.api.User getSubstituteUser() throws AuthenticationException, SystemExceptionGets the substitute-user for the current user.- Returns:
- the substitute user or null if no substitute user is available
- Throws:
AuthenticationException- authentication exceptionSystemException- system exception
-
setSubstitute
void setSubstitute(java.lang.String substituteFullname) throws AuthenticationException, SystemExceptionSets the substitute for workflows.- Parameters:
substituteFullname- Fullname of the substitute to store.- Throws:
AuthenticationException- Authentication exceptionSystemException- system exception
-
-