test06_write_file.json 720 B

12345678910111213141516171819202122232425262728293031
  1. {
  2. "version": "3.15",
  3. "name": "Test06: Write File Operations",
  4. "registry": {
  5. "params": ["content(STRING)"],
  6. "vars": ["$status(STRING)"],
  7. "files": { "inputs": [], "artifacts": ["Output/*"] }
  8. },
  9. "steps": [
  10. {
  11. "id": "Write_Main",
  12. "target": "Output/test06_result.txt",
  13. "value": "=content",
  14. "next": "Write_Append"
  15. },
  16. {
  17. "id": "Write_Append",
  18. "mode": "append",
  19. "target": "Output/test06_result.txt",
  20. "value": "\"\\n--- Appended content ---\"",
  21. "next": "Set_Status"
  22. },
  23. {
  24. "id": "Set_Status",
  25. "target": "$status",
  26. "value": "\"file_written_successfully\"",
  27. "next": "Stop_End"
  28. },
  29. { "id": "Stop_End" }
  30. ]
  31. }