Skip to main content

TestProgramEdge

A wire: when the run leaves block from through exit port, it goes on to block to.

  • from is a Condition block: an Action block has no exits (graph.schema, reason: invalid_port).
  • port is one of from's case ids, or else when from has hasElse: true.
  • to is any other block. Several wires may leave the same exit (all are followed), and several may come into the same block (it still runs once).
  • The same from + port + to twice is refused (reason: duplicate_edge), and so are wires that make a loop (graph.cycle).
idstringrequired
Example: e1
fromstringrequired

The Condition block the wire leaves.

Example: c_eu
portstringrequired

The case id the wire leaves from, or else.

Example: c_eu_yes
tostringrequired

The block the wire goes into.

Example: a_eu
TestProgramEdge
{
"id": "e1",
"from": "c_eu",
"port": "c_eu_yes",
"to": "a_eu"
}