200Workflow definition found
Content-Type: application/json
{
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"workflowId": "checkout-flow",
"workflowName": "Checkout Flow",
"description": "Complete checkout workflow for processing orders",
"version": 1,
"definition": {
"steps": [
{
"stepId": "start",
"stepName": "Start",
"stepType": "START"
},
{
"stepId": "validate-cart",
"stepName": "Validate Cart",
"stepType": "AUTOMATED",
"description": "Validate cart items and check inventory"
},
{
"stepId": "payment",
"stepName": "Process Payment",
"stepType": "AUTOMATED",
"description": "Charge payment method",
"retryPolicy": {
"maxAttempts": 3,
"backoffMs": 1000
}
},
{
"stepId": "end",
"stepName": "End",
"stepType": "END"
}
],
"transitions": [
{
"transitionId": "start-to-validate",
"fromStepId": "start",
"toStepId": "validate-cart",
"trigger": "auto"
},
{
"transitionId": "validate-to-payment",
"fromStepId": "validate-cart",
"toStepId": "payment",
"trigger": "auto"
},
{
"transitionId": "payment-to-end",
"fromStepId": "payment",
"toStepId": "end",
"trigger": "auto",
"activities": [
{
"activityName": "Send Order Confirmation",
"activityType": "SEND_EMAIL",
"config": {
"to": "{{context.customerEmail}}",
"subject": "Order Confirmation #{{context.orderId}}",
"template": "order_confirmation"
}
}
]
}
]
},
"enabled": true,
"tenantId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"createdAt": "2025-12-08T10:00:00.000Z",
"updatedAt": "2025-12-08T10:00:00.000Z"
}
}404Workflow definition not found
Content-Type: application/json
{
"error": "Workflow definition not found"
}