Interface ModelFormulaContextReadOnly
-
- All Known Subinterfaces:
ModelCalculationFormulaContext
,ModelEvaluationFormulaContext
,ModelFormulaContextReadWrite
public interface ModelFormulaContextReadOnly
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Object>
inputs(String stepName, String tabName)
This gives access to the previous steps saved inputs.String
label()
Map<String,Object>
outputs(String stepName, String calculationName)
This gives access to calculations' results as returned by their formula.DatamartContext.Table
table(String name)
String
uniqueName()
-
-
-
Method Detail
-
uniqueName
String uniqueName()
- Returns:
- The unique name of this model
-
label
String label()
- Returns:
- The label of this model
-
inputs
Map<String,Object> inputs(String stepName, String tabName)
This gives access to the previous steps saved inputs.Those inputs are organized per step and per tab in the step.
From a given step, it is not possible to access its inputs (for this
PublicGroovyAPI.input(String)
or theinput
binding can be used) or the next step's inputs.- Parameters:
stepName
- The name of the step as defined in the model classtabName
- The name of the tab as defined in the model class- Returns:
- The unmodifiable inputs of the tab in the step
-
outputs
Map<String,Object> outputs(String stepName, String calculationName)
This gives access to calculations' results as returned by their formula.Those outputs are organized per step and per calculation name in the step.
Only the formula-based calculations have results.
From a given step, it is not possible to access the next steps' calculations' outputs.
From a given calculation in a sequence, it is not possible to access the next calculations' outputs.
- Parameters:
stepName
- The name of the step as defined in the model classcalculationName
- The name of the calculation as defined in the model class- Returns:
- The unmodifiable ordered results of the calculation returned by its formula
-
table
DatamartContext.Table table(String name)
- Parameters:
name
- The table name in this model- Returns:
- The existing model table or
null
if it doesn't exist
-
-