@ProviderType public interface WorkflowModel extends HasMetaData
WorkflowModel represents a model/definition of a workflow.
It provides methods for retrieving the entities of the model like
WorkflowNodes and
WorkflowTransitions as well as common model attributes
like name, description or version.| Modifier and Type | Method and Description |
|---|---|
WorkflowNode |
createNode() |
WorkflowNode |
createNode(java.lang.String title,
java.lang.String type,
java.lang.String description) |
WorkflowTransition |
createTransition() |
WorkflowTransition |
createTransition(WorkflowNode from,
WorkflowNode to,
java.lang.String rule) |
VariableTemplate |
createVariableTemplate(java.lang.String name,
java.lang.String dataType) |
java.lang.String |
getDescription()
Returns the description of the
WorkflowModel. |
WorkflowNode |
getEndNode()
Returns the end
. |
java.lang.String |
getId()
Returns the ID of the
WorkflowModel. |
WorkflowNode |
getNode(java.lang.String id)
Returns the
with the given id |
java.util.List<WorkflowNode> |
getNodes()
Returns the list of
s contained by the
WorkflowModel. |
WorkflowNode |
getRootNode()
Returns the root/start
. |
java.lang.String |
getTitle()
Returns the title of the
WorkflowModel. |
java.util.List<WorkflowTransition> |
getTransitions()
Returns the list of
s contained by
the WorkflowModel. |
java.util.Map<java.lang.String,VariableTemplate> |
getVariableTemplates() |
java.lang.String |
getVersion()
Returns the version of the
WorkflowModel. |
void |
setDescription(java.lang.String description)
Sets the description of the
WorkflowModel. |
void |
setEndNode(WorkflowNode node) |
void |
setRootNode(WorkflowNode node) |
void |
setTitle(java.lang.String title)
Sets the title of the
WorkflowModel. |
void |
validate()
Validates the model.
|
getMetaDataMapjava.lang.String getId()
WorkflowModel.WorkflowModel.java.lang.String getTitle()
WorkflowModel.WorkflowModel.void setTitle(java.lang.String title)
WorkflowModel.title - The new title of the WorkflowModel.java.lang.String getDescription()
WorkflowModel.WorkflowModel.void setDescription(java.lang.String description)
WorkflowModel.description - The new description of the WorkflowModel.java.lang.String getVersion()
WorkflowModel.WorkflowModel.java.util.List<WorkflowNode> getNodes()
WorkflowNodes contained by the
WorkflowModel.WorkflowNodes of the
WorkflowModel.WorkflowNode createNode()
WorkflowNode createNode(java.lang.String title, java.lang.String type, java.lang.String description)
title - the titletype - the typedescription - the descriptionvoid setRootNode(WorkflowNode node)
node - the workflow nodevoid setEndNode(WorkflowNode node)
node - the workflow nodeWorkflowNode getNode(java.lang.String id)
WorkflowNode with the given idid - The ID of the WorkflowNode.WorkflowNode or null if not found.WorkflowNode getRootNode()
WorkflowNode.WorkflowNode.WorkflowNode getEndNode()
WorkflowNode.WorkflowNode.java.util.List<WorkflowTransition> getTransitions()
WorkflowTransitions contained by
the WorkflowModel.WorkflowTransitions of the
WorkflowModel.WorkflowTransition createTransition()
WorkflowTransition createTransition(WorkflowNode from, WorkflowNode to, java.lang.String rule)
from - the workflow node to begin the transition withto - the workflow node to end the transition withrule - the rulevoid validate()
throws ValidationException
ValidationException - in case the validation failsjava.util.Map<java.lang.String,VariableTemplate> getVariableTemplates()
Map with keys as variables' names and values as VariableTemplates .VariableTemplate createVariableTemplate(java.lang.String name, java.lang.String dataType)
name - the name of the variabledataType - the type of the variable in java fully qualified class name formatCopyright © 2010 - 2023 Adobe. All Rights Reserved