Class FilterActivity


public final class FilterActivity extends ControlActivity
Filter and return results from input array based on the conditions.
  • Constructor Details

    • FilterActivity

      public FilterActivity()
  • Method Details

    • withName

      public FilterActivity withName(String name)
      Set the name property: Activity name.
      Overrides:
      withName in class ControlActivity
      Parameters:
      name - the name value to set.
      Returns:
      the Activity object itself.
    • withDescription

      public FilterActivity withDescription(String description)
      Set the description property: Activity description.
      Overrides:
      withDescription in class ControlActivity
      Parameters:
      description - the description value to set.
      Returns:
      the Activity object itself.
    • withDependsOn

      public FilterActivity withDependsOn(List<ActivityDependency> dependsOn)
      Set the dependsOn property: Activity depends on condition.
      Overrides:
      withDependsOn in class ControlActivity
      Parameters:
      dependsOn - the dependsOn value to set.
      Returns:
      the Activity object itself.
    • withUserProperties

      public FilterActivity withUserProperties(List<UserProperty> userProperties)
      Set the userProperties property: Activity user properties.
      Overrides:
      withUserProperties in class ControlActivity
      Parameters:
      userProperties - the userProperties value to set.
      Returns:
      the Activity object itself.
    • items

      public Expression items()
      Get the items property: Input array on which filter should be applied.
      Returns:
      the items value.
    • withItems

      public FilterActivity withItems(Expression items)
      Set the items property: Input array on which filter should be applied.
      Parameters:
      items - the items value to set.
      Returns:
      the FilterActivity object itself.
    • condition

      public Expression condition()
      Get the condition property: Condition to be used for filtering the input.
      Returns:
      the condition value.
    • withCondition

      public FilterActivity withCondition(Expression condition)
      Set the condition property: Condition to be used for filtering the input.
      Parameters:
      condition - the condition value to set.
      Returns:
      the FilterActivity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ControlActivity
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.