Skip to main content

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

FieldTypeDescription
LabelStringCustom name for the node (e.g., "Convert Transaction Amount").
InputsMixedValues 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 DATETIME objects.
  • Finance → Transform transaction amounts from strings into NUMBER for calculations.
  • Ops → Convert configuration strings into BOOLEAN flags 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