Interface Workflow


  • public interface Workflow
    • 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. Use getLabelNames() 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 in getLabelNames()
        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()