Class WorkflowServiceClientImpl
- java.lang.Object
-
- com.lexmark.saperion.client.implementation.workflow.WorkflowServiceClientImpl
-
- All Implemented Interfaces:
WorkflowServiceClient
public class WorkflowServiceClientImpl extends java.lang.Object implements WorkflowServiceClient
This is the default implementation ofWorkflowServiceClient
.- Author:
- jschwarz
-
-
Constructor Summary
Constructors Constructor Description WorkflowServiceClientImpl(WorkflowDefinitionService workflowDefinitionService, WorkflowInboxService workflowInboxService, WorkflowProcessService workflowProcessService, WorkflowTaskService workflowTaskService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowInboxServiceClient
getInboxClient()
This method returns a client offering functionality concerning workflow inboxes.WorkflowTaskClient
getOverdueTasksClient()
Returns list of tasks that are passed their due dateWorkflowTaskClient
getOwnedTaskClient()
Returns list of tasks that are owned by current userWorkflowTaskClient
getTask(TaskReferenceType reference)
This method returns a client for the workflow task with the provided id.WorkflowTaskClient
getTasksReminderClient()
Returns workflow tasks that has reminderWorkflowDefinitionClient
getWorkflowDefinition(WorkflowDefinitionReferenceType reference)
This method returns a client for the workflow definition with the provided id.WorkflowDefinitionClient
getWorkflowDefinition(java.lang.String definition)
This method returns a client for the definition with the given name.SearchClient<WorkflowProcessListItemType>
getWorkflowProcesses()
This method returns a search client for the workflow processes in the system.WorkflowProcessType
loadWorkflowProcess(WorkflowProcessReferenceType workflowReference)
This method loads a workflow process.SearchClient<WorkflowDefinitionListItemType>
searchWorkflowDefinitions()
This method returns a resource client for the workflow definition collection.
-
-
-
Constructor Detail
-
WorkflowServiceClientImpl
public WorkflowServiceClientImpl(WorkflowDefinitionService workflowDefinitionService, WorkflowInboxService workflowInboxService, WorkflowProcessService workflowProcessService, WorkflowTaskService workflowTaskService)
-
-
Method Detail
-
getTask
public WorkflowTaskClient getTask(TaskReferenceType reference)
Description copied from interface:WorkflowServiceClient
This method returns a client for the workflow task with the provided id.- Specified by:
getTask
in interfaceWorkflowServiceClient
- Parameters:
reference
- the task id- Returns:
- a resource client for the workflow task with the provided id
-
getWorkflowDefinition
public WorkflowDefinitionClient getWorkflowDefinition(java.lang.String definition) throws com.lexmark.saperion.exceptions.EcmException
Description copied from interface:WorkflowServiceClient
This method returns a client for the definition with the given name.- Specified by:
getWorkflowDefinition
in interfaceWorkflowServiceClient
- Parameters:
definition
- the definition name- Returns:
- the matching definition
- Throws:
com.lexmark.saperion.exceptions.EcmException
- indicates an arbitrary system error
-
getWorkflowDefinition
public WorkflowDefinitionClient getWorkflowDefinition(WorkflowDefinitionReferenceType reference)
Description copied from interface:WorkflowServiceClient
This method returns a client for the workflow definition with the provided id.- Specified by:
getWorkflowDefinition
in interfaceWorkflowServiceClient
- Parameters:
reference
- the workflow definition id- Returns:
- a resource client for the workflow definition with the provided id
-
searchWorkflowDefinitions
public SearchClient<WorkflowDefinitionListItemType> searchWorkflowDefinitions()
Description copied from interface:WorkflowServiceClient
This 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:
searchWorkflowDefinitions
in interfaceWorkflowServiceClient
- Returns:
- a client for the workflow definition collection
-
getInboxClient
public WorkflowInboxServiceClient getInboxClient()
Description copied from interface:WorkflowServiceClient
This method returns a client offering functionality concerning workflow inboxes.- Specified by:
getInboxClient
in 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:WorkflowServiceClient
This method loads a workflow process.- Specified by:
loadWorkflowProcess
in interfaceWorkflowServiceClient
- Parameters:
workflowReference
- a reference to the workflow process to load- Returns:
- the workflow process
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
getWorkflowProcesses
public SearchClient<WorkflowProcessListItemType> getWorkflowProcesses()
Description copied from interface:WorkflowServiceClient
This method returns a search client for the workflow processes in the system.- Specified by:
getWorkflowProcesses
in interfaceWorkflowServiceClient
- Returns:
- the workflow process resource collection
-
getTasksReminderClient
public WorkflowTaskClient getTasksReminderClient() throws com.lexmark.saperion.exceptions.EcmException
Description copied from interface:WorkflowServiceClient
Returns workflow tasks that has reminder- Specified by:
getTasksReminderClient
in interfaceWorkflowServiceClient
- Returns:
- List of tasks
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
getOwnedTaskClient
public WorkflowTaskClient getOwnedTaskClient() throws com.lexmark.saperion.exceptions.EcmException
Description copied from interface:WorkflowServiceClient
Returns list of tasks that are owned by current user- Specified by:
getOwnedTaskClient
in interfaceWorkflowServiceClient
- Returns:
- List of tasks
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
getOverdueTasksClient
public WorkflowTaskClient getOverdueTasksClient() throws com.lexmark.saperion.exceptions.EcmException
Description copied from interface:WorkflowServiceClient
Returns list of tasks that are passed their due date- Specified by:
getOverdueTasksClient
in interfaceWorkflowServiceClient
- Returns:
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
-