Properties in B2Win Suite
Properties let you store and retrieve values during workflow execution. You can define them in two places: Workflow Settings (global) or inside individual nodes (local).
For the scripting API reference, see Properties.
Global Properties
Defined in the Workflow Settings dialog under the Properties tab. Global properties are accessible from any node in the workflow and are re-evaluated at each iteration.
You can set a constant value:
return 50;
Or compute a value dynamically:
var date = LocalDate.now();
return date;
There are two categories of global properties:
- Black — User-defined. Can be edited and deleted.
- Gray — System-defined. Have predefined values set during execution.
Local Properties
Defined per node using the Add Property button under the node's Properties tab. Local properties are accessible only within the current node and its downstream successors in the same iteration.
Example
Name this property USD:
var table = NodeInputReader.inputAsDataFrame();
var usdRate = table.column(1).get(0);
return usdRate;
The previous node sends exchange rate data in tabular form. The script reads the table and extracts the USD exchange rate. The resulting USD property is available in this node and all successor nodes in the current iteration.