Class WorkflowStepExpression

java.lang.Object
org.ametys.cms.repository.WorkflowStepExpression
All Implemented Interfaces:
Expression

public class WorkflowStepExpression extends Object implements Expression
Constructs an Expression testing the current workflow step of a content. This can be used only to search on the current step. To search on history steps, use the CurrentStepExpression instead
  • Constructor Details

    • WorkflowStepExpression

      public WorkflowStepExpression(Expression.Operator operator, int value)
      Creates the expression.
      Parameters:
      operator - the operator to make the comparison (only Operator.EQ and Operator.NE allowed)
      value - the step value
    • WorkflowStepExpression

      public WorkflowStepExpression(Expression.Operator operator, int[] values, Expression.LogicalOperator logicalOperator)
      Creates the expression.
      Parameters:
      operator - the operator to make the comparison (only Operator.EQ and Operator.NE allowed)
      values - the tags value in a array
      logicalOperator - the logical operator to use for given value
  • Method Details

    • build

      public String build()
      Description copied from interface: Expression
      Build the expression.
      Specified by:
      build in interface Expression
      Returns:
      The XPath view of the expression.