Skip to content

Check Scheme State

Group
Conditions
In the node menu
Conditions › Scheme › Check Scheme State
Where it can be used
Scheme graphs

Check Scheme State asks about the scheme itself. It can ask whether the scheme has ended, or what its result is so far: neutral, success or failure. The flow goes on through True or False, so a scheme can act on its own outcome.

A Check Scheme State of the demo scheme Scheme 5: Garden Courtship (Drafts/schemes/05-garden-courtship.json). It asks whether the result so far is a success. Only False is linked there.

Use it where a flow must act differently once the scheme has a result, for example in the closing part that runs after the End flow has started.

Use Succeed Scheme and Fail Scheme to set the result, and End to run the closing steps.

  • A result is neutral until a Succeed Scheme or Fail Scheme node has set one.
  • Has Ended is True once the End flow has started.
  • The node is offered only in scheme graphs. If it runs in a flow that has no scheme, it stops the flow.
  • Unlike the other checks of this group, it has no extra conditions and no NOT. It is also not a condition row.
LabelDraft keyTypeDefaultShown if, tooltip and notes
CheckState
  • HasEnded (Has Ended)
  • Neutral (Result Is Neutral)
  • Success (Result Is Success)
  • Failed (Result Is Failure)
"HasEnded"Has Ended: the End flow has started. Neutral: no Succeed or Fail Scheme node has run yet.
  1. True
  2. False
"type"
"Check Scheme State"
"set" keys
State
"then" keys
"True", "False"
"<alias>": {
"type": "Check Scheme State",
"then": { "True": "<alias>", "False": "<alias>" }
}