check_case35.py 1.0 KB

123456789101112131415161718192021222324252627
  1. import json
  2. with open(r"C:\Users\11304\gitlab\cybertogether\Agent\examples\process_pipeline\output\112\case.json", "r", encoding="utf-8") as f:
  3. data = json.load(f)
  4. case_35 = next((c for c in data.get("cases", []) if c.get("index") == 35), None)
  5. if not case_35:
  6. print("case 35 NOT FOUND")
  7. else:
  8. wf = case_35.get("workflow")
  9. fr = case_35.get("fragments") or []
  10. print("title:", (case_35.get("title") or "")[:50])
  11. print("workflow exists:", wf is not None)
  12. if wf:
  13. steps = wf.get("steps", [])
  14. print("steps count:", len(steps))
  15. for s in steps:
  16. order = s.get("order")
  17. phase = s.get("phase")
  18. body_present = bool(s.get("body"))
  19. print(f" step {order}: phase={phase} body_present={body_present}")
  20. print("fragments count:", len(fr))
  21. for f in fr:
  22. fid = f.get("fragment_id")
  23. action = f.get("action")
  24. ref = (f.get("workflow_step_ref") or {}).get("step_id")
  25. print(f" {fid}: action={action} ref={ref}")