-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworkflow.json
More file actions
148 lines (148 loc) · 4.19 KB
/
workflow.json
File metadata and controls
148 lines (148 loc) · 4.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"meta": {
"id": "commercial-gl",
"name": "Commercial General Liability Application",
"description": "Standard GL application for small businesses",
"version": "1.0.0",
"createdAt": "2025-01-29T00:00:00Z",
"updatedAt": "2025-01-29T00:00:00Z",
"source": "acord-125-commercial-application.pdf"
},
"entryNodeId": "business-info",
"nodes": {
"business-info": {
"type": "question",
"id": "business-info",
"label": "Business Information",
"description": "Basic information about your business",
"fields": [
{
"id": "businessName",
"type": "text",
"label": "What is the name of your business?",
"validation": {"required": true},
"readOnly": false
},
{
"id": "hasEmployees",
"type": "boolean",
"label": "Does your business have employees?",
"validation": {"required": true},
"readOnly": false
},
{
"id": "annualRevenue",
"type": "currency",
"label": "What is your annual revenue?",
"currency": "USD",
"validation": {"required": true, "min": 0},
"readOnly": false
}
],
"defaultEdge": "coverage-selection",
"conditionalEdges": [
{
"targetNodeId": "employee-details",
"condition": {"fieldId": "hasEmployees", "operator": "eq", "value": true}
}
]
},
"employee-details": {
"type": "question",
"id": "employee-details",
"label": "Employee Information",
"description": "Required for workers' compensation",
"fields": [
{
"id": "employeeCount",
"type": "number",
"label": "Number of Employees",
"validation": {"required": true, "min": 1},
"readOnly": false
},
{
"id": "operatesHeavyEquipment",
"type": "boolean",
"label": "Any employees operate heavy equipment?",
"validation": {"required": true},
"readOnly": false
}
],
"defaultEdge": "coverage-selection",
"conditionalEdges": []
},
"coverage-selection": {
"type": "question",
"id": "coverage-selection",
"label": "Coverage Options",
"description": "Select your coverage level",
"fields": [
{
"id": "coverageType",
"type": "select",
"label": "Coverage Level",
"options": [
{"value": "basic", "label": "Basic"},
{"value": "standard", "label": "Standard"},
{"value": "premium", "label": "Premium"}
],
"validation": {"required": true},
"readOnly": false
}
],
"defaultEdge": "review",
"conditionalEdges": [
{
"targetNodeId": "high-risk-questions",
"condition": {"fieldId": "operatesHeavyEquipment", "operator": "eq", "value": true}
}
]
},
"high-risk-questions": {
"type": "question",
"id": "high-risk-questions",
"label": "High Risk Assessment",
"description": "Additional questions for high-risk operations",
"fields": [
{
"id": "priorIncidents",
"type": "number",
"label": "Incidents in past 3 years",
"validation": {"required": true, "min": 0},
"readOnly": false
},
{
"id": "safetyTraining",
"type": "boolean",
"label": "Staff completed safety training?",
"validation": {"required": true},
"readOnly": false
}
],
"defaultEdge": "review",
"conditionalEdges": []
},
"review": {
"type": "question",
"id": "review",
"label": "Review & Submit",
"description": "Review your application",
"fields": [
{
"id": "agreeToTerms",
"type": "boolean",
"label": "I agree to the terms and conditions",
"validation": {"required": true},
"readOnly": false
}
],
"defaultEdge": "complete",
"conditionalEdges": []
},
"complete": {
"type": "end",
"id": "complete",
"status": "complete"
}
}
}