Skip to content

Queue Workflow

The Queue Workflow node queues another workflow for execution within the automation platform, enabling orchestration of multiple workflows in sequence or parallel.

Purpose

Use this node to:

✅ Programmatically trigger another workflow from within a current workflow.
✅ Pass data between workflows for modular and scalable automation design.
✅ Build parent-child or chained workflows for complex enterprise automation scenarios.

Inputs

Field LabelInput TypeDescription
Select WorkflowTextThe ID of the workflow to queue for execution.

Outputs

This node does not produce specific outputs but sets task status and message indicating the queueing result.

Functionality

This node:

  1. Validates required input (Select Workflow).
  2. Retrieves the specified workflow by its ID.
  3. Converts the retrieved workflow into an automation task.
  4. Populates initial parameters:
    • Removes Select Workflow from data.
    • Adds all current task data as initial parameters for the queued workflow.
    • Sets TriggeredFromParentWorkflow to true for context tracking.
  5. Assigns user and company submission data from the parent workflow.
  6. Queues the new workflow using the WorkflowQueueService.
  7. Returns task success status based on whether the workflow was successfully queued.

Example Use Case

✅ Queue a “PDF Generation” workflow after completing document data preparation.
✅ Trigger a “Notify Client” workflow upon final approval in a parent workflow.
✅ Orchestrate multi-stage automation sequences by chaining workflows dynamically.

Task Success Criteria

  • Success: The target workflow is successfully queued for execution.
  • Failure: If input validation fails, the workflow is not found, conversion fails, or queueing fails, the task returns a descriptive error message indicating the failure point.

Notes

  • The output status is primarily used for logging and monitoring workflow queueing outcomes.
  • Ensure the Select Workflow input references a valid and active workflow ID in the system.
  • This node is essential for building scalable and modular automation architectures within the platform.

Tentech 2024