Icon

kn_​example_​dynamic_​workflow_​variables

small workflow for dynamic variable usage

It seems a lot of things are possible with dynamic variable names. If I have more complicated loops and calculations with dynamic variable names I often 1st rename them to a standard variable name (like “_temp_var”) and make all the calculations and transformations using that and in the end rename the result back to the original name or a changed version of it.

my_variable1 -> _temp_var -> (all the manipulations you want) -> my_variable1_new

The workflow below tries to do some stuff while using the column names as variables.

https://forum.knime.com/t/using-dynamic-flow-variables-as-column-identifiers/11710/4?u=mlauber71It seems a lot of things are possible with dynamic variable names. If I have more complicated loops andcalculations with dynamic variable names I often 1st rename them to a standard variable name (like“_temp_var”) and make all the calculations and transformations using that and in the end rename the resultback to the original name or a changed version of it.my_variable1 -> _temp_var -> (all the manipulations you want) -> my_variable1_newThe workflow below tries to do some stuff while using the column names as variables. original datadefine column nameas "myValue"create columnmyValuerule based on same columnrule based on another column Table Creator Java EditVariable (simple) ConstantValue Column Rule Engine Rule Engine https://forum.knime.com/t/using-dynamic-flow-variables-as-column-identifiers/11710/4?u=mlauber71It seems a lot of things are possible with dynamic variable names. If I have more complicated loops andcalculations with dynamic variable names I often 1st rename them to a standard variable name (like“_temp_var”) and make all the calculations and transformations using that and in the end rename the resultback to the original name or a changed version of it.my_variable1 -> _temp_var -> (all the manipulations you want) -> my_variable1_newThe workflow below tries to do some stuff while using the column names as variables. original datadefine column nameas "myValue"create columnmyValuerule based on same columnrule based on another column Table Creator Java EditVariable (simple) ConstantValue Column Rule Engine Rule Engine

Nodes

Extensions

Links