Skip to main content

Operators in Torq: Workflow Flow Control

Learn about Torq's Operators and how to efficiently use them for workflow logic control and definition.

Updated over 2 weeks ago

Explore the Operators available in Torq, enabling you to steer and define your workflow's progression. In the Builderbox, hover over each Operator to see what they can do in your workflow.

You can disable Operators in the Designer, execute the workflow without them, and enable them later.

Operators Overview

  • If: Guides workflow direction based on the evaluation of conditions.

  • Switch: Executes one of multiple branches, prioritizing conditions from left to right. The Switch operator is available when hovering over the If operator.

  • AI Task: Uses AI to perform a specific task.

  • Loop: Repeats steps for each item in a collection, until a condition is met, or a set number of times.

    • Collect: Aggregates loop outcomes into an array.

    • Break: Terminates the loop process immediately, allowing the workflow to continue to the next step after the loop.

  • Exit: Terminates the workflow. Add parameters to the Exit operator to create an output schema for the workflow, enabling the passing of information from the workflow execution to the entity that triggered it.

  • Wait: Pauses the workflow, changing the execution status to On hold for the defined duration.

  • Workflow: Embeds a specified workflow as a subroutine.

  • Dedup: Handles recurring or duplicate entries across workflow executions, based on specified criteria and timeframes.

  • Interact: Creates interactive web pages and forms using Torq Interact to collect and display data. Also used for case management Tasks.

    • Loading screen: Updates the loading screen for a specific Interaction.

  • Transform: Transforms data using AI to create JQ code and apply it to the inputted JSON data.

You can run multiple Steps in parallel. To create parallel branches, drag a step onto the one you wish to run in parallel.

It is recommended that you rename operators with descriptive names for clarity.

QuickBuild

Operators and Steps are also accessible directly in the Designer using the QuickBuild. Click on the drop point where you want to add your next step. Click on the Operator icon or search for the Step you need, or use the Co-Builder to guide your next move in the workflow.

Disable Operators

Disabling an operator keeps it in the Designer but excludes it from workflow executions.

To disable an operator, select it in the Designer and click the Disable icon in the menu above it. The steps in the operator's scope will also be disabled.

Did this answer your question?