Class SetVariableActivity


public final class SetVariableActivity extends ControlActivity
Set value for a Variable.
  • Constructor Details

    • SetVariableActivity

      public SetVariableActivity()
      Creates an instance of SetVariableActivity class.
  • Method Details

    • withName

      public SetVariableActivity 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 SetVariableActivity 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 SetVariableActivity 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 SetVariableActivity 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.
    • variableName

      public String variableName()
      Get the variableName property: Name of the variable whose value needs to be set.
      Returns:
      the variableName value.
    • withVariableName

      public SetVariableActivity withVariableName(String variableName)
      Set the variableName property: Name of the variable whose value needs to be set.
      Parameters:
      variableName - the variableName value to set.
      Returns:
      the SetVariableActivity object itself.
    • value

      public Object value()
      Get the value property: Value to be set. Could be a static value or Expression.
      Returns:
      the value value.
    • withValue

      public SetVariableActivity withValue(Object value)
      Set the value property: Value to be set. Could be a static value or Expression.
      Parameters:
      value - the value value to set.
      Returns:
      the SetVariableActivity object itself.
    • validate

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