Class ScriptParams

java.lang.Object
com.workfusion.rpa.helpers.ScriptParams

public class ScriptParams extends Object
This class represent wrapper and builder of variables for GROOVY script.
  • Constructor Details

    • ScriptParams

      public ScriptParams()
    • ScriptParams

      public ScriptParams(Map<String,Object> variables)
    • ScriptParams

      public ScriptParams(String name, Object value)
  • Method Details

    • create

      public static ScriptParams create(String name, Object value)
    • add

      public ScriptParams add(String name, Object value)
      Add variable to result of map of variables
      Parameters:
      name - name of groovy variable
      value - value of groovy variable
      Returns:
      this this is object
    • addAll

      public ScriptParams addAll(Map<String,Object> variables)
      Add all parameter to result of map of variables
      Parameters:
      variables - map of groovy variables
      Returns:
      this this is object
    • toMap

      public Map<String,Object> toMap()
      Build map of variables for GROOVY script
      Returns:
      map of variables for groovy script
    • empty

      public static ScriptParams empty()
      Build empty map of variable
      Returns:
      empty map
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object