This is an old revision of the document!
Tutorial: Automation Scripting - Combinatorial Model
Learning Objectives:
- Model scripting
- Activating plugins
- Looping through DataTable
- Persisting and exporting results
Model scripting
Apache Groovy script is the scripting language for your models.
Groovy script is syntactically very similar to most of programming language that allows you to create classes, functions and basic logic and arithmetic operations.
Unlike scripting for State Model, you just write your script right in SCRIPT tab. In your script you would just loop through the rows in DataTable. Below is an example of script:
for (Map<String,String> row: $DATASET.getDataRows()) { // run testing on row // return result to client $DATASET.notifyClient(row); }