Callbacks

abstract Callbacks are user-defined keywords that are automatically executed at various points of the path life cycle.

Types of callbacks

  1. On Path End
    • It is called at the end of a path (even if there are errors in the path and the path stops in the middle).
  2. On Path Error
    • It is called whenever an error occurs in the path.
  3. On Path Failure
    • It is called whenever an assertion failure occurs in the path.

Callbacks Attachment

Project

Applied to all paths across all flowcharts in the project.
  1. Click on the dropdown arrow to the right of Run button and choose Callbacks.
  2. This will open up the Callbacks dialog.
  3. Attach the necessary callbacks keywords in the dialog. Click on Save.

Flowchart

Applied to all paths within a specific flowchart.
  1. Click on the dropdown arrow to the right of Run button and choose Callbacks.
  2. This will open up the Callbacks dialog.
  3. Attach the necessary callbacks keywords in the dialog. Click on Save.

Path

Applied to a specific path.
  1. In the Table View dialog, navigate to the Truth Table View or Execution Order, then click on the Edit button under callbacks column.
  2. This will open up the Callbacks dialog.
  3. Attach the necessary callbacks keywords in the dialog. Click on Save.
info When multiple callbacks are defined for the same event type, the system resolves them in the following priority order: Path > Flowchart > Project

This means:
  • If a callback is defined at the path level, it overrides the flowchart and project level callbacks for that path.
  • If no path-level callback is defined, the flowchart-level callback is used.
  • If neither path nor flowchart-level callback is defined, the project-level callback is executed.
Callback keywords don't execute during interactive runs such as Run Till Here, Run This, etc