Daisy Open Source CMS

org.outerj.daisy.workflow
Interface WfProcessDefinition


public interface WfProcessDefinition


Method Summary
 org.outerj.daisy.i18n.I18nMessage getDescription()
           
 WfVariableDefinition getGlobalVariable(String name)
           
 List<WfVariableDefinition> getGlobalVariableDefinitions()
           
 String getId()
          A unique ID for this specific version of the workflow process.
 org.outerj.daisy.i18n.I18nMessage getLabel()
           
 String getName()
           
 List<String> getProblems()
          Returns a list of problems encountered during parsing the workflow definition.
 WfNodeDefinition getStartNode()
           
 WfTaskDefinition getStartTaskDefinition()
          A workflow process can have a "start task" to collect initial parameters for the workflow (possibly none) and to select the initial path to follow in the workflow (possibly only one option).
 WfTaskDefinition getTask(String name)
          Retrieves a task by name.
 Collection<WfTaskDefinition> getTasks()
          Returns a list of all (named) tasks in the workflow definition.
 String getVersion()
           
 org.outerx.daisy.x10Workflow.ProcessDefinitionDocument getXml()
           
 

Method Detail

getId

String getId()
A unique ID for this specific version of the workflow process.


getName

String getName()

getVersion

String getVersion()

getLabel

org.outerj.daisy.i18n.I18nMessage getLabel()

getDescription

org.outerj.daisy.i18n.I18nMessage getDescription()

getStartTaskDefinition

WfTaskDefinition getStartTaskDefinition()
A workflow process can have a "start task" to collect initial parameters for the workflow (possibly none) and to select the initial path to follow in the workflow (possibly only one option).

The start task is a task which is automatically completed upon starting the workflow, so it normally doesn't appear in anyones task list.

Returns null if there is no start task.


getStartNode

WfNodeDefinition getStartNode()

getTask

WfTaskDefinition getTask(String name)
Retrieves a task by name. Returns null if no task by the given name.


getGlobalVariableDefinitions

List<WfVariableDefinition> getGlobalVariableDefinitions()

getGlobalVariable

WfVariableDefinition getGlobalVariable(String name)

getTasks

Collection<WfTaskDefinition> getTasks()
Returns a list of all (named) tasks in the workflow definition. This includes the start task. Returns an empty collection if there are no tasks.


getProblems

List<String> getProblems()
Returns a list of problems encountered during parsing the workflow definition. It is possible that this information is only available from the WorkflowDefinition returned by WorkflowManager.deployProcessDefinition(java.io.InputStream, java.lang.String, java.util.Locale), i.o.w. right after defining it.


getXml

org.outerx.daisy.x10Workflow.ProcessDefinitionDocument getXml()

Daisy Open Source CMS