Starting a Thread
A thread represents a workflow execution instance (e.g., an order, a support ticket, a user onboarding). A thread is an execution graph containing all actions performed by services involved in delivery an outcome to a customer’s requestRecording Steps
Always create the step before executing business logic:Step Methods
| Method | Description |
|---|---|
.success() | Mark step as successful |
.success(data) | Success with additional data |
.failed(data) | Mark step as failed with error data |
.addContext(data) | Add business context (analytics, debugging) |
Idempotency
Threadify automatically handles idempotency - recording the same step multiple times only stores the first execution.Next Steps
Handling Failures
Learn how to handle and record failures
Closing Threads
Complete or cancel threads manually
External References
Link to external systems like Stripe or Shopify