configurator-variation.json 2.0 KB

123456789101112131415161718192021222324252627282930
  1. {
  2. "name": "verify-configurator-variation",
  3. "nodes": [
  4. {"id": "n1", "name": "Trigger", "type": "click-trigger", "position": {"x": 0, "y": 0}, "config": {}},
  5. {"id": "src", "name": "Src", "type": "code", "position": {"x": 0, "y": 100},
  6. "config": {"code": "return { pick: 'b' };"}},
  7. {"id": "gate", "name": "Gate", "type": "if-condition", "position": {"x": 0, "y": 200},
  8. "config": {"combineWith": "and", "conditions": [{"field": "data.result.pick", "operator": "equals", "value": "a"}]}},
  9. {"id": "cfgA", "name": "VariantA", "type": "configurator", "position": {"x": -200, "y": 300},
  10. "config": {"label": "A", "settings": [{"name": "message", "value": "variant A"}, {"name": "mode", "value": "stop"}]}},
  11. {"id": "cfgB", "name": "VariantB", "type": "configurator", "position": {"x": 200, "y": 300},
  12. "config": {"label": "B", "settings": [{"name": "message", "value": "variant B"}, {"name": "mode", "value": "stop"}]}},
  13. {"id": "target", "name": "Target", "type": "stop-and-error", "position": {"x": 0, "y": 400},
  14. "config": {"message": "unconfigured", "mode": "error"}}
  15. ],
  16. "connections": [
  17. {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "src", "targetInput": "data"},
  18. {"sourceNodeId": "src", "sourceOutput": "main", "targetNodeId": "gate", "targetInput": "data"},
  19. {"sourceNodeId": "gate", "sourceOutput": "true", "targetNodeId": "cfgA", "targetInput": "data"},
  20. {"sourceNodeId": "gate", "sourceOutput": "false", "targetNodeId": "cfgB", "targetInput": "data"},
  21. {"sourceNodeId": "src", "sourceOutput": "main", "targetNodeId": "target", "targetInput": "data"},
  22. {"sourceNodeId": "cfgA", "sourceOutput": "main", "targetNodeId": "target", "targetInput": "config"},
  23. {"sourceNodeId": "cfgB", "sourceOutput": "main", "targetNodeId": "target", "targetInput": "config"}
  24. ],
  25. "expectStatus": "completed",
  26. "expect": {
  27. "target": {"status": "completed", "output": {"stopped": true, "reason": "variant B"}}
  28. },
  29. "expectMissing": ["cfgA"]
  30. }