A demo process showing user review, automated processing, and notifications with conditional branching.
{
"@context": "https://wrio.io/ns/workflow",
"@type": "Process",
"owner_type": "user",
"@id": "demo_request",
"name": "Demo Review Process",
"description": "A demo process showing user review, automated processing, and notifications with conditional branching.",
"version": "1.0.0",
"entry_point_id": "StartDemoRequest",
"inputs": [
{
"name": "requesterName",
"type": "string",
"label": "Requester Name"
},
{
"name": "demoType",
"type": "string",
"label": "Demo Type"
}
],
"steps": [
{
"@id": "StartDemoRequest",
"@type": "Step",
"step_type": "start",
"name": "New Request",
"transitions": [
{
"target_id": "Task_ReviewRequest"
}
],
"x": 100,
"y": 182
},
{
"@id": "Task_ReviewRequest",
"@type": "Step",
"step_type": "user_task",
"name": "Review Request",
"transitions": [
{
"target_id": "Gateway_Approved"
}
],
"x": 300,
"y": 182
},
{
"@id": "Gateway_Approved",
"@type": "Step",
"step_type": "gateway",
"name": "Is Approved?",
"transitions": [
{
"target_id": "Task_ProcessRequest",
"condition": "Task_ReviewRequest.approved == true"
},
{
"target_id": "Task_SendRejection"
}
],
"x": 500,
"y": 182
},
{
"@id": "Task_ProcessRequest",
"@type": "Step",
"step_type": "service",
"name": "Process Demo",
"action": "demo.process",
"transitions": [
{
"target_id": "Task_SendNotification"
}
],
"x": 700,
"y": 100
},
{
"@id": "Task_SendNotification",
"@type": "Step",
"step_type": "service",
"name": "Send Access Link",
"action": "mail.send",
"params": {
"template": "demo_approved"
},
"transitions": [
{
"target_id": "EndEvent_Success"
}
],
"x": 900,
"y": 100
},
{
"@id": "EndEvent_Success",
"@type": "Step",
"step_type": "end",
"name": "Approved",
"transitions": [],
"x": 1100,
"y": 100
},
{
"@id": "Task_SendRejection",
"@type": "Step",
"step_type": "service",
"name": "Send Rejection Icon",
"action": "mail.send",
"params": {
"template": "demo_rejected"
},
"transitions": [
{
"target_id": "EndEvent_Rejected"
}
],
"x": 700,
"y": 260
},
{
"@id": "EndEvent_Rejected",
"@type": "Step",
"step_type": "end",
"name": "Rejected",
"transitions": [],
"x": 1100,
"y": 260
}
],
"outputs": {
"status": "{{Gateway_Approved.target_id == 'Task_ProcessRequest' ? 'Approved' : 'Rejected'}}"
}
}No instances available in All
