Interface ModelContext
public interface ModelContext
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThis method is useful if the calling logic wants to keep in its global cache some data stored in api.global of the evaluated logic.
-
Method Details
-
evaluate
- Parameters:
evaluationName
- name of the evaluation in the model's classinputs
- 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 classinputs
- inputs for executing the evaluation's formulaglobal
- 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
-