Interface VariableContext

    • Method Detail

      • addLocalVariable

        void addLocalVariable​(@NotNull
                              @NotNull String key,
                              @NotNull
                              @NotNull String value)
        Add generated local (a.k.a CUSTOM) variable to this context. Local variables are only accessible from this context and are not persisted. Local variables hide any existing variables (but their value is not changed). However if you define a result variable with the same key after defining local variable, local variable will be removed. Calling this method second time with the same key assigns new value to the variable.
        Since:
        5.7
      • addResultVariable

        void addResultVariable​(@NotNull
                               @NotNull String key,
                               @NotNull
                               @NotNull String value)
        Add generated result variable to this context. Result variables are persisted with the result and are available in subsequent stages of the plan and in deployment version created from a result. Result variables hide any global or plan variables (but their value is not changed). If a local variable exists with the same key, it will be removed. Calling this method second time with the same key assigns new value to the variable.
        Parameters:
        key -
        value -
        Since:
        5.7
      • removeLocalVariable

        void removeLocalVariable​(@NotNull
                                 @NotNull String key)