Interface ModelContext


public interface ModelContext
See Also:
  • Method Details

    • evaluate

      Map<String,Object> evaluate(String evaluationName, Map<String,Object> inputs)
      Parameters:
      evaluationName - name of the evaluation in the model's class
      inputs - inputs for executing the evaluation's formula
      Returns:
      an unmodifiable ordered map of element name -> result value
      Since:
      8.0 Godfather
    • evaluate

      Map<String,Object> evaluate(String evaluationName, Map<String,Object> inputs, Map<String,Object> global)
      This method is useful if the calling logic wants to keep in its global cache some data stored in api.global of the evaluated logic.
      Parameters:
      evaluationName - name of the evaluation in the model's class
      inputs - inputs for executing the evaluation's formula
      global - a map that will be exposed as api.global to the evaluated logic.
      Returns:
      an unmodifiable ordered map of element name -> result value
      Since:
      11.0 Paper Plane
    • table

      Parameters:
      name - The table name in this model
      Returns:
      The existing model table or null if it doesn't exist
      Since:
      8.2 Godfather