# Flow properties #

You can control a variety of flow properties with scripting\. To reference flow properties, you must set the execution method to use scripts:

    stream = modeler.script.stream()
    stream.setPropertyValue("execute_method", "Script")

The previous example uses the node property to create a list of all nodes in the flow and write that list in the flow annotations\. The annotation produced looks like this:

    This flow is called "druglearn" and contains the following nodes:
    
    type node called "Define Types"
    derive node called "Na_to_K"
    variablefile node called "DRUG1n"
    neuralnetwork node called "Drug"
    c50 node called "Drug"
    filter node called "Discard Fields"

Flow properties are described in the following table\.

<!-- <table "summary="Flow properties" id="defining_slot_parameters_in_streams__table_vhp_4bj_cdb" class="defaultstyle" "> -->

Flow properties  

Table 1\. Flow properties

| Property name                                 | Data type                                                                                                                                                                                                                                                                                                                | Property description                                                                                                        |
| --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------- |
| `execute_method`                              | `Normal`  <br>`Script`                                                                                                                                                                                                                                                                                                   |                                                                                                                             |
| `date_format`                                 | `"DDMMYY" "MMDDYY" "YYMMDD" "YYYYMMDD" "YYYYDDD" DAY MONTH "DD-MM-YY" "DD-MM-YYYY" "MM-DD-YY" "MM-DD-YYYY" "DD-MON-YY" "DD-MON-YYYY" "YYYY-MM-DD" "DD.MM.YY" "DD.MM.YYYY" "MM.DD.YYYY" "DD.MON.YY" "DD.MON.YYYY" "DD/MM/YY" "DD/MM/YYYY" "MM/DD/YY" "MM/DD/YYYY" "DD/MON/YY" "DD/MON/YYYY" MON YYYY q Q YYYY ww WK YYYY` |                                                                                                                             |
| `date_baseline`                               | *number*                                                                                                                                                                                                                                                                                                                 |                                                                                                                             |
| `date_2digit_baseline`                        | *number*                                                                                                                                                                                                                                                                                                                 |                                                                                                                             |
| `time_format`                                 | `"HHMMSS" "HHMM" "MMSS" "HH:MM:SS" "HH:MM" "MM:SS" "(H)H:(M)M:(S)S" "(H)H:(M)M" "(M)M:(S)S" "HH.MM.SS" "HH.MM" "MM.SS" "(H)H.(M)M.(S)S" "(H)H.(M)M" "(M)M.(S)S"`                                                                                                                                                         |                                                                                                                             |
| `time_rollover`                               | *flag*                                                                                                                                                                                                                                                                                                                   |                                                                                                                             |
| `import_datetime_as_string`                   | *flag*                                                                                                                                                                                                                                                                                                                   |                                                                                                                             |
| `decimal_places`                              | *number*                                                                                                                                                                                                                                                                                                                 |                                                                                                                             |
| `decimal_symbol`                              | `Default`  <br>`Period`  <br>`Comma`                                                                                                                                                                                                                                                                                     |                                                                                                                             |
| `angles_in_radians`                           | *flag*                                                                                                                                                                                                                                                                                                                   |                                                                                                                             |
| `use_max_set_size`                            | *flag*                                                                                                                                                                                                                                                                                                                   |                                                                                                                             |
| `max_set_size`                                | *number*                                                                                                                                                                                                                                                                                                                 |                                                                                                                             |
| `ruleset_evaluation`                          | `Voting`  <br>`FirstHit`                                                                                                                                                                                                                                                                                                 |                                                                                                                             |
| `refresh_source_nodes`                        | *flag*                                                                                                                                                                                                                                                                                                                   | Use to refresh import nodes automatically upon flow execution\.                                                             |
| `script`                                      | *string*                                                                                                                                                                                                                                                                                                                 |                                                                                                                             |
| `annotation`                                  | *string*                                                                                                                                                                                                                                                                                                                 |                                                                                                                             |
| `name`                                        | *string*                                                                                                                                                                                                                                                                                                                 | This property is read\-only\. If you want to change the name of a flow, you should save it with a different name\.          |
| `parameters`                                  |                                                                                                                                                                                                                                                                                                                          | Use this property to update flow parameters from within a stand\-alone script\.                                             |
| `nodes`                                       |                                                                                                                                                                                                                                                                                                                          | See detailed information that follows\.                                                                                     |
| `encoding`                                    | `SystemDefault`  <br>`"UTF-8"`                                                                                                                                                                                                                                                                                           |                                                                                                                             |
| `stream_rewriting`                            | *boolean*                                                                                                                                                                                                                                                                                                                |                                                                                                                             |
| `stream_rewriting_maximise_sql`               | *boolean*                                                                                                                                                                                                                                                                                                                |                                                                                                                             |
| `stream_rewriting_optimise_clem_ execution`   | *boolean*                                                                                                                                                                                                                                                                                                                |                                                                                                                             |
| `stream_rewriting_optimise_syntax_ execution` | *boolean*                                                                                                                                                                                                                                                                                                                |                                                                                                                             |
| `enable_parallelism`                          | *boolean*                                                                                                                                                                                                                                                                                                                |                                                                                                                             |
| `sql_generation`                              | *boolean*                                                                                                                                                                                                                                                                                                                |                                                                                                                             |
| `database_caching`                            | *boolean*                                                                                                                                                                                                                                                                                                                |                                                                                                                             |
| `sql_logging`                                 | *boolean*                                                                                                                                                                                                                                                                                                                |                                                                                                                             |
| `sql_generation_logging`                      | *boolean*                                                                                                                                                                                                                                                                                                                |                                                                                                                             |
| `sql_log_native`                              | *boolean*                                                                                                                                                                                                                                                                                                                |                                                                                                                             |
| `sql_log_prettyprint`                         | *boolean*                                                                                                                                                                                                                                                                                                                |                                                                                                                             |
| `record_count_suppress_input`                 | *boolean*                                                                                                                                                                                                                                                                                                                |                                                                                                                             |
| `record_count_feedback_interval`              | *integer*                                                                                                                                                                                                                                                                                                                |                                                                                                                             |
| `use_stream_auto_create_node_ settings`       | *boolean*                                                                                                                                                                                                                                                                                                                | If true, then flow\-specific settings are used, otherwise user preferences are used\.                                       |
| `create_model_applier_for_new_ models`        | *boolean*                                                                                                                                                                                                                                                                                                                | If true, when a model builder creates a new model, and it has no active update links, a new model applier is added\.        |
| `create_model_applier_update_links`           | `createEnabled`  <br>  <br>`createDisabled`  <br>  <br>`doNotCreate`                                                                                                                                                                                                                                                     | Defines the type of link created when a model applier node is added automatically\.                                         |
| `create_source_node_from_builders`            | *boolean*                                                                                                                                                                                                                                                                                                                | If true, when a source builder creates a new source output, and it has no active update links, a new import node is added\. |
| `create_source_node_update_links`             | `createEnabled`  <br>  <br>`createDisabled`  <br>  <br>`doNotCreate`                                                                                                                                                                                                                                                     | Defines the type of link created when an import node is added automatically\.                                               |
| `has_coordinate_system`                       | *boolean*                                                                                                                                                                                                                                                                                                                | If true, applies a coordinate system to the entire flow\.                                                                   |
| `coordinate_system`                           | *string*                                                                                                                                                                                                                                                                                                                 | The name of the selected projected coordinate system\.                                                                      |
| `deployment_area`                             | `modelRefresh`  <br>  <br>`Scoring`  <br>  <br>`None`                                                                                                                                                                                                                                                                    | Choose how you want to deploy the flow\. If this value is set to `None`, no other deployment entries are used\.             |
| `scoring_terminal_node_id`                    | *string*                                                                                                                                                                                                                                                                                                                 | Choose the scoring branch in the flow\. It can be any terminal node in the flow\.                                           |
| `scoring_node_id`                             | *string*                                                                                                                                                                                                                                                                                                                 | Choose the nugget in the scoring branch\.                                                                                   |
| `model_build_node_id`                         | *string*                                                                                                                                                                                                                                                                                                                 | Choose the modeling node in the flow\.                                                                                      |

<!-- </table "summary="Flow properties" id="defining_slot_parameters_in_streams__table_vhp_4bj_cdb" class="defaultstyle" "> -->

<!-- </article "role="article" "> -->