Example 1: Customer Reports Order Didn't Go Through
Scenario: Customer reports order didn't go through (unhappy → happy path recovery)
Step 1: Search all order lifecycle events
@user.id:9c3d487c-69fe-41b8-8b91-f24c887ec999 @event.action:* service:workflowservice
Step 2: Check payment authorizations
@user.id:9c3d487c-69fe-41b8-8b91-f24c887ec999 @event.action:* service:payment-dgs
Look for @metadata.status: APPROVED vs DECLINED
Step 3: Analyze results
| Time (ET) | Order ID | @metadata.status | Reason |
|---|
| 8:57 AM | 6206771c... | DECLINED | DECLINED-XXX |
| 9:00 AM | 9c7a1d02... | APPROVED | - |
Conclusion: First payment declined, customer retried with different @metadata.payment_method_id and succeeded.
Example 2: Trace Complete Happy Path
Scenario: Verify customer's order was fulfilled (TB DRIVE_THRU)
Step 1: Get all workflowservice events for user
@user.id:99aa11a1-f8d9-4033-bc52-cabb2e5c42df @event.action:* service:workflowservice
Step 2: Timeline of events
| Time (ET) | @event.action | From Status | To Status |
|---|
| 9:00 PM | confirm_order | PENDING | CONFIRMED |
| 9:07 PM | commit_order | CONFIRMED | COMMITTED |
| 9:13 PM | ready_order | COMMITTED | READY |
| 9:14 PM | fulfill_order | READY | FULFILLED |
| 9:14 PM | close_order | FULFILLED | CLOSED |
Key Attributes:
@organization: tb_us@channel: WEB@order.occasion: DRIVE_THRU@store.number: 028718@order.total: 2906 (= $29.06)
Conclusion: Complete happy path - order confirmed, made, picked up, and closed.