{
"@context": "https://wrio.codes/workflow/v1",
"@type": "Process",
"id": "gartner-demo",
"name": "Enterprise Procurement Workflow (Gartner Demo)",
"description": "Multi-stage approval process with automated compliance checks and conditional risk routing.",
"version": "2.0.0",
"inputs": {
"requestId": {
"type": "string",
"title": "Request ID",
"default": "REQ-2026-001"
},
"amount": {
"type": "number",
"title": "Amount (USD)",
"default": 5000
},
"vendor": {
"type": "string",
"title": "Vendor Name",
"default": "Gartner Inc."
}
},
"steps": [
{
"id": "start",
"action": "start",
"next": "complianceCheck"
},
{
"id": "complianceCheck",
"action": "service",
"name": "Automated Compliance Check",
"inputs": {
"vendor": "${inputs.vendor}"
},
"next": "riskEvaluation"
},
{
"id": "riskEvaluation",
"action": "logic.evaluate",
"name": "Risk Assessment Gateway",
"next": {
"if": {
"field": "score",
"op": "lt",
"value": 50
},
"then": "legalReview",
"else": "managerApproval"
}
},
{
"id": "legalReview",
"action": "user.approval",
"name": "Legal Department Review",
"description": "Manual review required for high-risk vendors",
"next": "managerApproval"
},
{
"id": "managerApproval",
"action": "user.approval",
"name": "Budget Manager Approval",
"next": "erpSync"
},
{
"id": "erpSync",
"action": "service",
"name": "Sync with SAP ERP",
"next": "paymentProcessing"
},
{
"id": "paymentProcessing",
"action": "service",
"name": "Execute Payment",
"next": "end"
},
{
"id": "end",
"action": "end"
}
]
}