Spanish Total.js
English
Documentation For AI agents
Contents

Subtasks

Split a task into several subtasks that run side by side.

.md Website
On this page

The Subtasks component splits one task into several subtasks, for example a review by the manager and a review by HR. Each subtask is a task of its own that continues through its own output.

Set up subtasks

  1. Drag Subtasks from the Workflows group onto the canvas and connect the task to its input.
  2. Double-click the node.
  3. In the list, select Create task for each subtask, enter its Name, optionally its Permissions, and select Save.
  4. Optionally fill in the templates. They set the fields of the main task, and the subtasks get the same values. See Task fields and templates.
  5. Select APPLY, and publish the process.

After a moment the node shows one output for each subtask and the output Check. Connect each subtask output to the next step, for example a Step form, so that the subtask waits in the Inbox.

The Check output

Whenever a subtask changes, for example when somebody approves it, the Subtasks node sends the main task through Check. The data holds:

  • attrs: the data of the main task,
  • subtasks: the list of subtasks, each with id, name, subject, result, attrs, isclosed, ischanged and its dates.

Use it to decide when the main task can continue, for example with a Flow component that checks whether all subtasks are closed. See the Flow components.

In Tasks

Subtasks appear in Tasks like other tasks. The main task stays at the Subtasks step until your process moves it on.

Made in Europe