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
WorkflowDefinitionServicelistWorkflowDefinitions in interface WorkflowDefinitionServiceSaAuthenticationExceptionNativeExceptionpublic com.lexmark.saperion.workflow.TransitionDefinitionType getInitialTransition(com.lexmark.saperion.workflow.WorkflowDefinitionReferenceType reference)
throws SaBasicException
WorkflowDefinitionServiceUnknownReferenceException.
If the initial transition was not found the method returns null.getInitialTransition in interface WorkflowDefinitionServicereference - the workflow definition referencenull if not presentUnknownReferenceException - the referenced workflow definition does not existSaBasicExceptionpublic com.lexmark.saperion.workflow.WorkflowDefinitionType getWorkflowDefinitionById(com.lexmark.saperion.workflow.WorkflowDefinitionReferenceType id)
throws NativeException,
UnknownReferenceException,
MalformedEntityException,
SaAuthenticationException
WorkflowDefinitionServicegetWorkflowDefinitionById in interface WorkflowDefinitionServiceid - a reference of the workflow process to obtain the information forNativeExceptionUnknownReferenceExceptionMalformedEntityExceptionSaAuthenticationExceptionpublic 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
WorkflowDefinitionServicestartWorkflowProcess in interface WorkflowDefinitionServiceworkflowDefinitionReference - 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 definitionSaBasicExceptionCopyright © 2016 SAPERION AG. All rights reserved.