Skip to main content

ArrayOperations

Array Operations Processor – Transform Arrays

Summary (SEO Meta Description):
The Array Operations Processor in WeHub transforms arrays with filtering, grouping, and conversion.
Available actions: Filter, Group, and Convert to Object.


Overview

The Array Operations Processor provides tools to manipulate arrays inside workflows.
It allows filtering elements, grouping by fields, and converting arrays into objects.
This is especially useful for processing structured data such as healthcare records, financial transactions, or IoT telemetry.


⚙️ Available Actions

ActionDescription
FilterKeep only array elements that match a specific rule (equal, contains, greater, less).
GroupGroup array items by one or more field values into clustered sub-arrays.
Convert to ObjectTransform arrays into key–value object structures for easier lookups.

💡 Example Use Cases

  • Healthcare → Filter patients with status = active, group by doctorId, convert results into objects for reporting.
  • Finance → Group transactions by customerId and filter out low-value records.
  • IoT → Organize device events by region and convert event lists into lookup tables.

FAQ

Q: Can I chain multiple Array Operations?
A: Yes, combine Filter, Group, and Convert to Object for complex array transformations.

Q: Does it support nested arrays?
A: Yes, provide the correct path to target nested arrays.

Q: Can I validate array outputs?
A: Yes, all actions support optional schema validation.


Keywords: WeHub Array Operations, Filter Array, Group Array, Convert to Object, array transformation