Starting a Thread
A thread represents a workflow execution instance (e.g., an order, a support ticket).Recording 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) |