Package com.lexmark.saperion.delegate
Class AbstractWorkflowDefinitionDelegateService
- java.lang.Object
-
- com.lexmark.saperion.delegate.AbstractDelegateService<WorkflowDefinitionService>
-
- com.lexmark.saperion.delegate.AbstractWorkflowDefinitionDelegateService
-
- All Implemented Interfaces:
com.lexmark.saperion.search.SearchExecutionService<WorkflowDefinitionListItemType>,WorkflowDefinitionService
- Direct Known Subclasses:
WorkflowDefinitionDelegateService
public abstract class AbstractWorkflowDefinitionDelegateService extends AbstractDelegateService<WorkflowDefinitionService> implements WorkflowDefinitionService
ThisWorkflowDefinitionServicesimply delegates to another instance.- Author:
- jschwarz
-
-
Constructor Summary
Constructors Constructor Description AbstractWorkflowDefinitionDelegateService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransitionDefinitionTypegetInitialTransition(WorkflowDefinitionReferenceType reference)This method returns the initial transition definition for the referenced workflow.WorkflowDefinitionTypegetWorkflowDefinitionById(WorkflowDefinitionReferenceType reference)This method returns further information for a workflow process given by its reference.com.lexmark.saperion.search.SearchResultPage<WorkflowDefinitionListItemType>search(com.lexmark.saperion.search.query.Statement statement, com.lexmark.saperion.search.PageDefinition pageDefinition)This method returns a list of references for every workflow definition in the system accessible from the current tenant.WorkflowProcessReferenceTypestartWorkflowProcess(WorkflowDefinitionReferenceType workflowDefinitionReference, WorkflowStartInputType input)This method starts a workflow process given a workflow definition and a document (by its id).-
Methods inherited from class com.lexmark.saperion.delegate.AbstractDelegateService
getDelegate, wrapSearchExecutionService
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.lexmark.saperion.workflow.WorkflowDefinitionService
startWorkflowProcess
-
-
-
-
Method Detail
-
search
public com.lexmark.saperion.search.SearchResultPage<WorkflowDefinitionListItemType> search(com.lexmark.saperion.search.query.Statement statement, com.lexmark.saperion.search.PageDefinition pageDefinition) throws com.lexmark.saperion.exceptions.EcmException
Description copied from interface:WorkflowDefinitionServiceThis method returns a list of references for every workflow definition in the system accessible from the current tenant.- Specified by:
searchin interfacecom.lexmark.saperion.search.SearchExecutionService<WorkflowDefinitionListItemType>- Specified by:
searchin interfaceWorkflowDefinitionService- Returns:
- a list of every workflow definition in the system accessible from the current tenant
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
getWorkflowDefinitionById
public WorkflowDefinitionType getWorkflowDefinitionById(WorkflowDefinitionReferenceType reference) throws com.lexmark.saperion.exceptions.EcmException
Description copied from interface:WorkflowDefinitionServiceThis method returns further information for a workflow process given by its reference.- Specified by:
getWorkflowDefinitionByIdin interfaceWorkflowDefinitionService- Parameters:
reference- the workflow definition reference in base64 encoded form of {"name":"xxx"}- Returns:
- further information for a workflow process given by its reference
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
startWorkflowProcess
public WorkflowProcessReferenceType startWorkflowProcess(WorkflowDefinitionReferenceType workflowDefinitionReference, WorkflowStartInputType input) throws com.lexmark.saperion.exceptions.EcmException
Description copied from interface:WorkflowDefinitionServiceThis method starts a workflow process given a workflow definition and a document (by its id).- Specified by:
startWorkflowProcessin interfaceWorkflowDefinitionService- Parameters:
workflowDefinitionReference- the workflow definition reference in base64 encoded form of {"name":"xxx"}input- the parameters for starting a workflow- Returns:
- a reference to the process that was started.
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
getInitialTransition
public TransitionDefinitionType getInitialTransition(WorkflowDefinitionReferenceType reference) throws com.lexmark.saperion.exceptions.EcmException
Description copied from interface:WorkflowDefinitionServiceThis method returns the initial transition definition for the referenced workflow. If the referenced workflow definition doesn't exist the method throws aResourceNotFoundException. If the initial transition was not found the method returnsnull.- Specified by:
getInitialTransitionin interfaceWorkflowDefinitionService- Parameters:
reference- the workflow definition reference in base64 encoded form of {"name":"xxx"}- Returns:
- the initial transition of the referenced workflow or
nullif not present - Throws:
com.lexmark.saperion.exceptions.EcmException
-
-