Interface Workflow


  • public interface Workflow
    • Method Detail

      • getName

        String getName()
        Returns:
        the workflow's name
      • getWorkflowMarkup

        String getWorkflowMarkup()
        Returns:
        the workflow's markup
      • getStateNames

        List<String> getStateNames()
        Returns:
        the workflow's state names
      • getLabelName

        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

        List<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

        String getErrorMessage()
        Returns:
        localised plain text error message if workflow markup is invalid
      • getDescription

        String getDescription()
        Returns:
        the description of this workflow