Skip to content
trestle

Processes that wait on people

Pick another answer

When work waits on a person

Approvals and customer replies usually drift into email and chat until someone remembers to chase them. Trestle brings that wait into the process, so every open request has an owner and a path forward.

  1. Monday 09:14OpenedA claim exceeds its appraisal, so an approval opens for Sam and Sam is notified.
  2. Wednesday 09:14LateTwo days reach the team’s response target, so Sam gets a late alert and the team’s notification code hands the task to Priya.
  3. Wednesday 11:02ApprovedPriya approves, and the claim moves on to be paid.
  4. Thursday 09:14Timed outHad nobody answered before the three days ran out, the claim would have been refused.
const review = await wait({
  name: 'Adjuster approves',
  party: adjuster,
  window: '3 days',
});
The wait step sets the three-day limit and what happens when it runs out, while your response target decides when the task counts as late. Notifications go through whichever notifier you connect, and your own notification code passes the task on when told it is late.
  1. How people answer

    A waiting step opens in their inbox with a form built from its schema. People can also reply through a signed link for that task, the HTTP API, the command line, or your own screens via a typed client. Duplicate answers count once.

  2. Chasing late tasks

    Trestle calls your notifier when a task opens and once more past your response target; reassigning alerts both people. If the window expires unanswered, the run follows your timeout path.

  3. Who may answer

    Rules can restrict who answers on a given run, so a manager only approves leave for people they manage.

  4. Using an AI agent instead

    The same step can go to an AI agent instead of a person, under the same rules.

Where Trestle stops

Your visit is running on Trestle.

This is the real Trestle engine running a live process in your browser tab, not a simulation. Each of the eight topic pages you open answers its question once, showing the path you have taken and the pages you have not opened yet—until you copy npm create @trestlerun to finish it.