Scripting in B2Win Suite
This section covers the practical use of scripting inside the Workflow Builder. Scripting is available in three areas:
1. Properties
Use scripts to define dynamic property values — both global (workflow-wide) and local (per-node). Properties can depend on data from previous nodes, dates, calculations, or API calls.
See Properties.
2. Script Nodes
Several workflow nodes are configured entirely through scripting:
| Node | Description |
|---|---|
| Custom Script | Transform tabular data or files with custom logic. |
| If-Else Condition | Return true or false to route input to different output ports. |
| Switch Case | Return 0, 1, or 2 to route input to the matching output port. |
| Condition | Return true to pass input forward, or false to stop the path. |
See Script Nodes.
3. DataPrep (Custom Column)
Inside the DataPrep node, you can add a custom calculated column using a scripting expression. This lets you derive new fields from existing columns.
See In DataPrep.
Workflow Examples
For end-to-end examples combining multiple script nodes, see Workflow Applications.