Stop Node

From FojiSoft Docs

The Stop Node is a control node in Pathways that immediately halts the execution of the current pathway. When this node is reached during the execution of a workflow, all further processing on the current path is stopped, and the pathway execution ends.

Configuration Options:

  • Name: A user-defined name for the Stop node to identify it within the workflow. This field is mandatory and should clearly indicate the node's purpose or location in the workflow.

Behavior:

  • When the Stop node is encountered during execution, it terminates all subsequent tasks in the current pathway, ensuring no further actions or steps are executed.
  • The Stop node does not trigger any additional logic or return any output. Its sole function is to terminate the process.

Usage Scenarios:

  • Error Handling: Use the Stop node when specific conditions are met that require the pathway to terminate without executing further tasks.
  • Finalization: Place a Stop node at the end of a branch or pathway to indicate the definitive end of processing.

Example:

If a workflow is designed to process customer orders, a Stop node can be placed to halt execution if invalid or incomplete data is detected during validation.

The Stop node ensures that the workflow stops cleanly, preventing unintended downstream actions and maintaining control over the pathway execution.