_Docs/
Get StartedModulesPlatformDeployCookbookChangelogReference
_Stack
_Modules
  • Ledger
  • Numscript
  • Connectivity
  • WalletsEE
  • FlowsEE
    • Workflows definition
    • Workflows execution
    • Stages Reference
      • Send Statement
      • Waiting for events
      • Waiting for a delay
    • Examples
      • Ledger to Ledger
      • Payment to Wallet
      • Ledger to Stripe Payout
    • Triggers
  • ReconciliationEE
  1. Modules
  2. Flows
  3. Stages Reference
  4. Waiting for events
Flows

Waiting for events

Using the wait_event stage, you can wait for an event to be submitted to a running workflow instance before continuing. This is useful for workflows that require user input, such as a manual approval of a transaction.

YAML
---
stages:
- wait_event:
    event: "payout.confirmed"

Events can be then submitted to running workflow instances using the API or fctl:

fctl orchestration instances send-event 1234-5678-9012-3456 payout.confirmed
POST/api/orchestration/instances/1234-5678-9012-3456/events
Send StatementWaiting for a delay