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
| Action | Description | 
|---|---|
| Filter | Keep only array elements that match a specific rule (equal, contains, greater, less). | 
| Group | Group array items by one or more field values into clustered sub-arrays. | 
| Convert to Object | Transform arrays into key–value object structures for easier lookups. | 
💡 Example Use Cases
- Healthcare → Filter patients with status = active, group bydoctorId, convert results into objects for reporting.
- Finance → Group transactions by customerIdand 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