Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorial:scripting_comb_data_model [2020/07/18 02:25] admintutorial:scripting_comb_data_model [2024/01/03 19:54] (current) – removed admin
Line 1: Line 1:
-====== Tutorial: Automation Scripting - Combinatorial Model ====== 
- 
-Learning Objectives: 
-  * Model scripting 
-  * Activating plugins 
-  * Looping through DataTable 
-  * Persisting and exporting results 
- 
-===== Model scripting ===== 
-[[https://groovy-lang.org/syntax.html | 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 [[tutorial_state_modeling | scripting for State Model]], you just write your script right in [[../data_design_ide#script | 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); 
-   } 
- 
-