Class WorkflowDefinitionClientImpl
java.lang.Object
com.lexmark.saperion.client.implementation.workflow.WorkflowDefinitionClientImpl
- All Implemented Interfaces:
- WorkflowDefinitionClient
This is the default implementation of 
WorkflowDefinitionClient.- Author:
- jschwarz
- 
Constructor SummaryConstructorsConstructorDescriptionWorkflowDefinitionClientImpl(WorkflowDefinitionService workflowDefinitionService, WorkflowDefinitionReferenceType reference) 
- 
Method SummaryModifier and TypeMethodDescriptionThis method returns the initial transition definition for the workflow definition.load()This method returns a representation of the workflow definition.startWorkflow(com.lexmark.saperion.document.DocumentReferenceType document, String comment, List<com.lexmark.saperion.administration.ActorReferenceType> actors) This method starts a workflow for the given document.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.lexmark.saperion.client.workflow.WorkflowDefinitionClientstartWorkflow
- 
Constructor Details- 
WorkflowDefinitionClientImplpublic WorkflowDefinitionClientImpl(WorkflowDefinitionService workflowDefinitionService, WorkflowDefinitionReferenceType reference) 
 
- 
- 
Method Details- 
loadDescription copied from interface:WorkflowDefinitionClientThis method returns a representation of the workflow definition.- Specified by:
- loadin interface- WorkflowDefinitionClient
- Returns:
- the workflow definition representation.
- Throws:
- com.lexmark.saperion.exceptions.system.SystemException- indicates that a system exception occurred
- com.lexmark.saperion.exceptions.EcmException
 
- 
getInitialTransitionpublic TransitionDefinitionType getInitialTransition() throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:WorkflowDefinitionClientThis method returns the initial transition definition for the workflow definition. The initial transition definition contains additional information which input must be provided in order to start a workflow process.- Specified by:
- getInitialTransitionin interface- WorkflowDefinitionClient
- Returns:
- the initial transition definition
- Throws:
- com.lexmark.saperion.exceptions.system.SystemException- indicates that a system exception occurred
- com.lexmark.saperion.exceptions.EcmException
 
- 
startWorkflowpublic WorkflowProcessReferenceType startWorkflow(com.lexmark.saperion.document.DocumentReferenceType document, String comment, List<com.lexmark.saperion.administration.ActorReferenceType> actors) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:WorkflowDefinitionClientThis method starts a workflow for the given document.- Specified by:
- startWorkflowin interface- WorkflowDefinitionClient
- Parameters:
- document- the document for which the workflow is started.
- comment- the workflow start comment
- actors- list of actors for the next workflow step
- Returns:
- a reference to the new process
- Throws:
- com.lexmark.saperion.exceptions.EcmException- indicates that a system exception occurred
 
 
-