Class IfConditionActivityTypeProperties


  • public final class IfConditionActivityTypeProperties
    extends Object
    IfCondition activity properties.
    • Constructor Detail

      • IfConditionActivityTypeProperties

        public IfConditionActivityTypeProperties()
    • Method Detail

      • expression

        public Expression expression()
        Get the expression property: An expression that would evaluate to Boolean. This is used to determine the block of activities (ifTrueActivities or ifFalseActivities) that will be executed.
        Returns:
        the expression value.
      • withExpression

        public IfConditionActivityTypeProperties withExpression​(Expression expression)
        Set the expression property: An expression that would evaluate to Boolean. This is used to determine the block of activities (ifTrueActivities or ifFalseActivities) that will be executed.
        Parameters:
        expression - the expression value to set.
        Returns:
        the IfConditionActivityTypeProperties object itself.
      • ifTrueActivities

        public List<Activity> ifTrueActivities()
        Get the ifTrueActivities property: List of activities to execute if expression is evaluated to true. This is an optional property and if not provided, the activity will exit without any action.
        Returns:
        the ifTrueActivities value.
      • withIfTrueActivities

        public IfConditionActivityTypeProperties withIfTrueActivities​(List<Activity> ifTrueActivities)
        Set the ifTrueActivities property: List of activities to execute if expression is evaluated to true. This is an optional property and if not provided, the activity will exit without any action.
        Parameters:
        ifTrueActivities - the ifTrueActivities value to set.
        Returns:
        the IfConditionActivityTypeProperties object itself.
      • ifFalseActivities

        public List<Activity> ifFalseActivities()
        Get the ifFalseActivities property: List of activities to execute if expression is evaluated to false. This is an optional property and if not provided, the activity will exit without any action.
        Returns:
        the ifFalseActivities value.
      • withIfFalseActivities

        public IfConditionActivityTypeProperties withIfFalseActivities​(List<Activity> ifFalseActivities)
        Set the ifFalseActivities property: List of activities to execute if expression is evaluated to false. This is an optional property and if not provided, the activity will exit without any action.
        Parameters:
        ifFalseActivities - the ifFalseActivities value to set.
        Returns:
        the IfConditionActivityTypeProperties object itself.
      • validate

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