Package com.comalatech.workflow.model
Interface Workflow
-
public interface Workflow
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Workflow.State
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getDescription()
java.lang.String
getErrorMessage()
java.lang.String
getLabelName()
Deprecated.Since Workflows 4.9 a workflow can be associated with multiple labels, this method will only return the first one.java.util.List<java.lang.String>
getLabelNames()
The labels associated with this worklow.java.lang.String
getName()
java.util.List<java.lang.String>
getStateNames()
java.lang.String
getWorkflowMarkup()
java.util.List<? extends WorkflowParameter>
getWorkflowParameters()
java.util.List<Workflow.State>
getWorkflowStates()
boolean
isActive()
boolean
isInvertLabels()
Is the label condition inverted, ie, workflow is active for pages that don't have the labels ingetLabelNames()
-
-
-
Method Detail
-
getName
java.lang.String getName()
- Returns:
- the workflow's name
-
getWorkflowMarkup
java.lang.String getWorkflowMarkup()
- Returns:
- the workflow's markup
-
getStateNames
java.util.List<java.lang.String> getStateNames()
- Returns:
- the workflow's state names
-
getWorkflowStates
java.util.List<Workflow.State> getWorkflowStates()
-
getLabelName
java.lang.String getLabelName()
Deprecated.Since Workflows 4.9 a workflow can be associated with multiple labels, this method will only return the first one. UsegetLabelNames()
instead.- Returns:
- the label associated to this workflow (i.e. content containing this label will be subject this this workflow). Null if none.
-
getLabelNames
java.util.List<java.lang.String> getLabelNames()
The labels associated with this worklow. By default a workflow will only be active if a page has at least one of the labels specified. If the invert labels condition is set (isInvertLabels()
), a workflow will be active on a page if that page has none of the labels specified.- Returns:
- the labels associated with the workflow
- Since:
- 1.11
-
isInvertLabels
boolean isInvertLabels()
Is the label condition inverted, ie, workflow is active for pages that don't have the labels ingetLabelNames()
- Returns:
- true and label condition is inverted.
- Since:
- 1.11
-
isActive
boolean isActive()
- Returns:
- true if the workflow is active.
-
getErrorMessage
java.lang.String getErrorMessage()
- Returns:
- localised plain text error message if workflow markup is invalid
-
getDescription
java.lang.String getDescription()
- Returns:
- the description of this workflow
-
getWorkflowParameters
java.util.List<? extends WorkflowParameter> getWorkflowParameters()
-
-