com.day.cq.workflow.model
Interface WorkflowModel

All Superinterfaces:
HasMetaData
All Known Implementing Classes:
CQWorkflowModel

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.


Method Summary
 String getDescription()
          Returns the description of the WorkflowModel.
 WorkflowNode getEndNode()
          Returns the end WorkflowNode.
 String getId()
          Returns the ID of the WorkflowModel.
 WorkflowNode getNode(String id)
          Returns the WorkflowNode with the given id
 List<WorkflowNode> getNodes()
          Returns the list of WorkflowNodes contained by the WorkflowModel.
 WorkflowNode getRootNode()
          Returns the root/start WorkflowNode.
 String getTitle()
          Returns the title of the WorkflowModel.
 List<WorkflowTransition> getTransitions()
          Returns the list of WorkflowTransitions contained by the WorkflowModel.
 String getVersion()
          Returns the version of the WorkflowModel.
 void setDescription(String description)
          Sets the description of the WorkflowModel.
 void setTitle(String title)
          Sets the title of the WorkflowModel.
 
Methods inherited from interface com.day.cq.workflow.HasMetaData
getMetaData
 

Method Detail

getId

String getId()
Returns the ID of the WorkflowModel.

Returns:
The ID of the WorkflowModel.

getTitle

String getTitle()
Returns the title of the WorkflowModel.

Returns:
The title of the WorkflowModel.

setTitle

void setTitle(String title)
Sets the title of the WorkflowModel.

Parameters:
title - The new title of the WorkflowModel.

getDescription

String getDescription()
Returns the description of the WorkflowModel.

Returns:
The description of the WorkflowModel.

setDescription

void setDescription(String description)
Sets the description of the WorkflowModel.

Parameters:
description - The new description of the WorkflowModel.

getVersion

String getVersion()
Returns the version of the WorkflowModel.

Returns:
The version of the WorkflowModel.

getNodes

List<WorkflowNode> getNodes()
Returns the list of WorkflowNodes contained by the WorkflowModel.

Returns:
The list of WorkflowNodes of the WorkflowModel.

getTransitions

List<WorkflowTransition> getTransitions()
Returns the list of WorkflowTransitions contained by the WorkflowModel.

Returns:
The list of WorkflowTransitions of the WorkflowModel.

getNode

WorkflowNode getNode(String id)
Returns the WorkflowNode with the given id

Parameters:
id - The ID of the WorkflowNode.
Returns:
The WorkflowNode or null if not found.

getRootNode

WorkflowNode getRootNode()
Returns the root/start WorkflowNode.

Returns:
The root WorkflowNode.

getEndNode

WorkflowNode getEndNode()
Returns the end WorkflowNode.

Returns:
The end WorkflowNode.


Copyright © 2008 Day Management AG. All Rights Reserved.