Spaces:
Running
Running
Update sample_data.py
Browse files- sample_data.py +33 -39
sample_data.py
CHANGED
|
@@ -308,71 +308,65 @@ RADIAL_DIAGRAM_JSON = """
|
|
| 308 |
|
| 309 |
PROCESS_FLOW_JSON = """
|
| 310 |
{
|
| 311 |
-
"start_node": "Start
|
| 312 |
"nodes": [
|
| 313 |
{
|
| 314 |
-
"id": "
|
| 315 |
-
"label": "
|
| 316 |
"type": "io"
|
| 317 |
},
|
| 318 |
{
|
| 319 |
-
"id": "
|
| 320 |
-
"label": "
|
| 321 |
-
"type": "
|
| 322 |
},
|
| 323 |
{
|
| 324 |
-
"id": "
|
| 325 |
-
"label": "
|
| 326 |
-
"type": "
|
| 327 |
},
|
| 328 |
{
|
| 329 |
-
"id": "
|
| 330 |
-
"label": "
|
| 331 |
"type": "decision"
|
| 332 |
},
|
| 333 |
{
|
| 334 |
-
"id": "
|
| 335 |
-
"label": "
|
| 336 |
-
"type": "process"
|
| 337 |
-
},
|
| 338 |
-
{
|
| 339 |
-
"id": "run_inference",
|
| 340 |
-
"label": "Run AI Model Inference",
|
| 341 |
"type": "process"
|
| 342 |
},
|
| 343 |
{
|
| 344 |
-
"id": "
|
| 345 |
-
"label": "
|
| 346 |
-
"type": "
|
| 347 |
},
|
| 348 |
{
|
| 349 |
-
"id": "
|
| 350 |
-
"label": "
|
| 351 |
"type": "io"
|
| 352 |
},
|
| 353 |
{
|
| 354 |
-
"id": "
|
| 355 |
-
"label": "
|
| 356 |
-
"type": "
|
| 357 |
},
|
| 358 |
{
|
| 359 |
-
"id": "
|
| 360 |
-
"label": "End
|
| 361 |
"type": "end"
|
| 362 |
}
|
| 363 |
],
|
| 364 |
"connections": [
|
| 365 |
-
{"from": "
|
| 366 |
-
{"from": "
|
| 367 |
-
{"from": "
|
| 368 |
-
{"from": "
|
| 369 |
-
{"from": "
|
| 370 |
-
{"from": "
|
| 371 |
-
{"from": "
|
| 372 |
-
{"from": "
|
| 373 |
-
{"from": "
|
| 374 |
-
{"from": "
|
| 375 |
-
{"from": "log_error", "to": "end_inference_process", "label": "Error Handled"}
|
| 376 |
]
|
| 377 |
}
|
| 378 |
"""
|
|
|
|
| 308 |
|
| 309 |
PROCESS_FLOW_JSON = """
|
| 310 |
{
|
| 311 |
+
"start_node": "Start Email Send",
|
| 312 |
"nodes": [
|
| 313 |
{
|
| 314 |
+
"id": "enter_email_address",
|
| 315 |
+
"label": "Enter Email Address",
|
| 316 |
"type": "io"
|
| 317 |
},
|
| 318 |
{
|
| 319 |
+
"id": "write_message",
|
| 320 |
+
"label": "Write Message",
|
| 321 |
+
"type": "io"
|
| 322 |
},
|
| 323 |
{
|
| 324 |
+
"id": "validate_email",
|
| 325 |
+
"label": "Check Email Format",
|
| 326 |
+
"type": "process"
|
| 327 |
},
|
| 328 |
{
|
| 329 |
+
"id": "email_valid",
|
| 330 |
+
"label": "Valid Email?",
|
| 331 |
"type": "decision"
|
| 332 |
},
|
| 333 |
{
|
| 334 |
+
"id": "send_email",
|
| 335 |
+
"label": "Send Email",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 336 |
"type": "process"
|
| 337 |
},
|
| 338 |
{
|
| 339 |
+
"id": "save_to_sent",
|
| 340 |
+
"label": "Save to Sent Folder",
|
| 341 |
+
"type": "document"
|
| 342 |
},
|
| 343 |
{
|
| 344 |
+
"id": "show_success",
|
| 345 |
+
"label": "Show Success Message",
|
| 346 |
"type": "io"
|
| 347 |
},
|
| 348 |
{
|
| 349 |
+
"id": "show_error",
|
| 350 |
+
"label": "Show Error Message",
|
| 351 |
+
"type": "io"
|
| 352 |
},
|
| 353 |
{
|
| 354 |
+
"id": "end_process",
|
| 355 |
+
"label": "End Process",
|
| 356 |
"type": "end"
|
| 357 |
}
|
| 358 |
],
|
| 359 |
"connections": [
|
| 360 |
+
{"from": "Start Email Send", "to": "enter_email_address", "label": "Start"},
|
| 361 |
+
{"from": "enter_email_address", "to": "write_message", "label": "Email Entered"},
|
| 362 |
+
{"from": "write_message", "to": "validate_email", "label": "Message Written"},
|
| 363 |
+
{"from": "validate_email", "to": "email_valid", "label": "Validation Complete"},
|
| 364 |
+
{"from": "email_valid", "to": "send_email", "label": "Valid"},
|
| 365 |
+
{"from": "email_valid", "to": "show_error", "label": "Invalid"},
|
| 366 |
+
{"from": "send_email", "to": "save_to_sent", "label": "Email Sent"},
|
| 367 |
+
{"from": "save_to_sent", "to": "show_success", "label": "Saved"},
|
| 368 |
+
{"from": "show_success", "to": "end_process", "label": "Success"},
|
| 369 |
+
{"from": "show_error", "to": "end_process", "label": "Error"}
|
|
|
|
| 370 |
]
|
| 371 |
}
|
| 372 |
"""
|