public class RmiClientWorkflowDefinitionService extends Object implements WorkflowDefinitionService
WorkflowDefinitionService
provides workflow definition functionality by simply delegating by RMI.Constructor and Description |
---|
RmiClientWorkflowDefinitionService(Connection connection) |
Modifier and Type | Method and Description |
---|---|
com.lexmark.saperion.workflow.TransitionDefinitionType |
getInitialTransition(com.lexmark.saperion.workflow.WorkflowDefinitionReferenceType reference)
This method returns the initial transition definition for the referenced workflow.
|
com.lexmark.saperion.workflow.WorkflowDefinitionType |
getWorkflowDefinitionById(com.lexmark.saperion.workflow.WorkflowDefinitionReferenceType id)
This method returns further information for a workflow process given by its reference.
|
List<com.lexmark.saperion.workflow.WorkflowDefinitionListItemType> |
listWorkflowDefinitions()
This method returns a list of references for every workflow definition in the system accessible from the
current tenant.
|
com.lexmark.saperion.workflow.WorkflowProcessReferenceType |
startWorkflowProcess(com.lexmark.saperion.workflow.WorkflowDefinitionReferenceType workflowDefinitionReference,
com.lexmark.saperion.document.DocumentReferenceType documentId,
List<? extends com.lexmark.saperion.administration.ActorReferenceType> actors,
String comment)
This method starts a workflow process given a workflow definition and a document (by its id).
|
public RmiClientWorkflowDefinitionService(Connection connection)
public List<com.lexmark.saperion.workflow.WorkflowDefinitionListItemType> listWorkflowDefinitions() throws SaAuthenticationException, NativeException
WorkflowDefinitionService
listWorkflowDefinitions
in interface WorkflowDefinitionService
SaAuthenticationException
NativeException
public com.lexmark.saperion.workflow.TransitionDefinitionType getInitialTransition(com.lexmark.saperion.workflow.WorkflowDefinitionReferenceType reference) throws SaBasicException
WorkflowDefinitionService
UnknownReferenceException
.
If the initial transition was not found the method returns null
.getInitialTransition
in interface WorkflowDefinitionService
reference
- the workflow definition referencenull
if not presentUnknownReferenceException
- the referenced workflow definition does not existSaBasicException
public com.lexmark.saperion.workflow.WorkflowDefinitionType getWorkflowDefinitionById(com.lexmark.saperion.workflow.WorkflowDefinitionReferenceType id) throws NativeException, UnknownReferenceException, MalformedEntityException, SaAuthenticationException
WorkflowDefinitionService
getWorkflowDefinitionById
in interface WorkflowDefinitionService
id
- a reference of the workflow process to obtain the information forNativeException
UnknownReferenceException
MalformedEntityException
SaAuthenticationException
public com.lexmark.saperion.workflow.WorkflowProcessReferenceType startWorkflowProcess(com.lexmark.saperion.workflow.WorkflowDefinitionReferenceType workflowDefinitionReference, com.lexmark.saperion.document.DocumentReferenceType documentId, List<? extends com.lexmark.saperion.administration.ActorReferenceType> actors, String comment) throws SaBasicException
WorkflowDefinitionService
startWorkflowProcess
in interface WorkflowDefinitionService
workflowDefinitionReference
- a reference to the workflow definition to startdocumentId
- the id of the document to start the process onactors
- a list of the receivers of the next task, may be null depending on the workflow definitioncomment
- a comment for the workflow process, may be null depending on the workflow definitionSaBasicException
Copyright © 2016 SAPERION AG. All rights reserved.