Class WorkflowServiceClientImpl
java.lang.Object
com.lexmark.saperion.client.implementation.workflow.WorkflowServiceClientImpl
- All Implemented Interfaces:
WorkflowServiceClient
This is the default implementation of
WorkflowServiceClient.- Author:
- jschwarz
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowServiceClientImpl(WorkflowDefinitionService workflowDefinitionService, WorkflowInboxService workflowInboxService, WorkflowProcessService workflowProcessService, WorkflowTaskService workflowTaskService) -
Method Summary
Modifier and TypeMethodDescriptionThis method returns a client offering functionality concerning workflow inboxes.Returns list of tasks that are passed their due dateReturns list of tasks that are owned by current usergetTask(TaskReferenceType reference) This method returns a client for the workflow task with the provided id.Returns workflow tasks that has reminderThis method returns a client for the workflow definition with the provided id.getWorkflowDefinition(String definition) This method returns a client for the definition with the given name.This method returns a search client for the workflow processes in the system.loadWorkflowProcess(WorkflowProcessReferenceType workflowReference) This method loads a workflow process.This method returns a resource client for the workflow definition collection.
-
Constructor Details
-
WorkflowServiceClientImpl
public WorkflowServiceClientImpl(WorkflowDefinitionService workflowDefinitionService, WorkflowInboxService workflowInboxService, WorkflowProcessService workflowProcessService, WorkflowTaskService workflowTaskService)
-
-
Method Details
-
getTask
Description copied from interface:WorkflowServiceClientThis method returns a client for the workflow task with the provided id.- Specified by:
getTaskin interfaceWorkflowServiceClient- Parameters:
reference- the task id- Returns:
- a resource client for the workflow task with the provided id
-
getWorkflowDefinition
public WorkflowDefinitionClient getWorkflowDefinition(String definition) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:WorkflowServiceClientThis method returns a client for the definition with the given name.- Specified by:
getWorkflowDefinitionin interfaceWorkflowServiceClient- Parameters:
definition- the definition name- Returns:
- the matching definition
- Throws:
com.lexmark.saperion.exceptions.EcmException- indicates an arbitrary system error
-
getWorkflowDefinition
Description copied from interface:WorkflowServiceClientThis method returns a client for the workflow definition with the provided id.- Specified by:
getWorkflowDefinitionin interfaceWorkflowServiceClient- Parameters:
reference- the workflow definition id- Returns:
- a resource client for the workflow definition with the provided id
-
searchWorkflowDefinitions
Description copied from interface:WorkflowServiceClientThis method returns a resource client for the workflow definition collection. The client can be used to search the workflow definition and list its contents.- Specified by:
searchWorkflowDefinitionsin interfaceWorkflowServiceClient- Returns:
- a client for the workflow definition collection
-
getInboxClient
Description copied from interface:WorkflowServiceClientThis method returns a client offering functionality concerning workflow inboxes.- Specified by:
getInboxClientin interfaceWorkflowServiceClient- Returns:
- a client offering functionality concerning workflow inboxes
-
loadWorkflowProcess
public WorkflowProcessType loadWorkflowProcess(WorkflowProcessReferenceType workflowReference) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:WorkflowServiceClientThis method loads a workflow process.- Specified by:
loadWorkflowProcessin interfaceWorkflowServiceClient- Parameters:
workflowReference- a reference to the workflow process to load- Returns:
- the workflow process
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
getWorkflowProcesses
Description copied from interface:WorkflowServiceClientThis method returns a search client for the workflow processes in the system.- Specified by:
getWorkflowProcessesin interfaceWorkflowServiceClient- Returns:
- the workflow process resource collection
-
getTasksReminderClient
public WorkflowTaskClient getTasksReminderClient() throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:WorkflowServiceClientReturns workflow tasks that has reminder- Specified by:
getTasksReminderClientin interfaceWorkflowServiceClient- Returns:
- List of tasks
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
getOwnedTaskClient
Description copied from interface:WorkflowServiceClientReturns list of tasks that are owned by current user- Specified by:
getOwnedTaskClientin interfaceWorkflowServiceClient- Returns:
- List of tasks
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
getOverdueTasksClient
public WorkflowTaskClient getOverdueTasksClient() throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:WorkflowServiceClientReturns list of tasks that are passed their due date- Specified by:
getOverdueTasksClientin interfaceWorkflowServiceClient- Returns:
- Throws:
com.lexmark.saperion.exceptions.EcmException
-