Route list items into batches by Clock schedule
Recipe ToolsMarketingData ParserUtilities
What it does
When the Clock triggers every 5 minutes, this automation parses a JSON document and sorts each item into batches based on its index position. Someone can then send those batches to downstream systems for parallel processing.
Who it's for
Operations teams who need to split large datasets into smaller groups for batch processing.
Apps used
- Scheduler by Workato
- JSON tools by Workato
- Workato List
How teams use this
Process datasets in parallel batches
Divide a JSON list into smaller groups so downstream systems can process them at the same time without overload. The schedule keeps batches moving regularly.
Route batches to separate queues
Send batch 1 and batch 2 to different approval queues based on item index so each queue handles its own group independently.
Archive older items separately
Use the index to identify and separate newer items from older ones, then archive the older batch to cold storage. Only the cutoff index needs adjustment.
How it works
- Trigger every 5 minutes. The Clock starts this automation on a 5-minute schedule so the division happens regularly without manual intervention.
- Parse the JSON document. Json Parser extracts list items from the JSON document so each item can be evaluated and sorted into the correct batch group.
- Sort items by index into batches. For each item, check its position. Items at index 0-9 go to batch 1, items at index 10-19 go to batch 2, and remaining items are held separately.