StringsConvert
Strings Processor – Convert
Summary (SEO Meta Description):
The Strings Processor’s Convert action in WeHub transforms input values into different data types.
Supported types:NUMBER,STRING,BYTE,DATE,DATETIME,BOOLEAN,OBJECT,ARRAY,ANY.
Overview
The Convert action allows workflows to transform string inputs into other data types.
This is useful when preparing data for downstream processors that require strict type handling, such as numerical calculations, date parsing, or object transformations.
⚙️ Configuration Options
| Field | Type | Description | 
|---|---|---|
| Label | String | Custom name for the node (e.g., "Convert Transaction Amount"). | 
| Inputs | Mixed | Values to be converted. Each input can be cast into one of the supported types. | 
Supported Conversion Types:
- NUMBER
- STRING
- BYTE
- DATE
- DATETIME
- BOOLEAN
- OBJECT
- ARRAY
- ANY
💡 Example Use Cases
- Healthcare → Convert patient birth date strings into DATETIMEobjects.
- Finance → Transform transaction amounts from strings into NUMBERfor calculations.
- Ops → Convert configuration strings into BOOLEANflags for workflow logic.
FAQ
Q: What happens if conversion fails?
A: The node fails unless error handling is configured.
Q: Can I batch convert multiple inputs?
A: Yes, add multiple inputs with different target types.
Q: What’s the difference between DATE and DATETIME?
A: DATE stores only calendar dates, while DATETIME includes time information.
Keywords: WeHub Strings Processor, Convert String, type casting, data transformation, string to number, string to date