tc_source_maxiter.json 643 B

12345678910111213141516171819202122232425262728293031
  1. {
  2. "version": "3.16",
  3. "name": "TC Source MaxIterations: 5 items capped at 3",
  4. "registry": {
  5. "params": [],
  6. "vars": ["$items([INT])", "$results([INT])"]
  7. },
  8. "steps": [
  9. {
  10. "id": "Set_Items",
  11. "target": "$items",
  12. "value": "[10, 20, 30, 40, 50]",
  13. "next": "Loop_Items"
  14. },
  15. {
  16. "id": "Loop_Items",
  17. "mode": "serial",
  18. "source": "=$items",
  19. "maxIterations": 3,
  20. "children": ["Set_Collect"],
  21. "next": "Stop_End"
  22. },
  23. {
  24. "id": "Set_Collect",
  25. "target": "$results[_index]",
  26. "value": "=_item",
  27. "next": "RETURN"
  28. },
  29. { "id": "Stop_End" }
  30. ]
  31. }