Class VariableScopeContext

java.lang.Object
org.camunda.bpm.engine.impl.dmn.invocation.VariableScopeContext
All Implemented Interfaces:
VariableContext

public class VariableScopeContext extends Object implements VariableContext
Implementation of the VariableContext interface backed by a VariableScope.
Author:
Daniel Meyer
  • Field Details

  • Constructor Details

    • VariableScopeContext

      public VariableScopeContext(VariableScope variableScope)
  • Method Details

    • resolve

      public TypedValue resolve(String variableName)
      Description copied from interface: VariableContext
      Resolve a value in this context.
      Specified by:
      resolve in interface VariableContext
      Parameters:
      variableName - the name of the variable to resolve.
      Returns:
      the value of the variable or null in case the variable does not exist.
    • containsVariable

      public boolean containsVariable(String variableName)
      Description copied from interface: VariableContext
      Checks whether a variable with the given name is resolve through this context.
      Specified by:
      containsVariable in interface VariableContext
      Parameters:
      variableName - the name of the variable to check
      Returns:
      true if the variable is resolve.
    • keySet

      public Set<String> keySet()
      Specified by:
      keySet in interface VariableContext
      Returns:
      a set of all variable names resolvable through this Context.
    • wrap

      public static VariableScopeContext wrap(VariableScope variableScope)