Development
Dummy Workflow
Dummy workflow is an example workflow to show how the workflow engine works.
The workflow consists of 3 steps:
- Step 1: Static text input (Hello, world!)
- Step 2: Text operation, reverse text
- Step 3: Print text
Workflow
Flowchart of the workflow:
Structure
Here is the JSON structure of the workflow:
{
"title": "Dummy Workflow",
"description": "This is a dummy workflow to show how the workflow engine works",
"tasks": [
{
"name": "input_text",
"type": "static_text_input",
"inputs": [
{
"name": "Text",
"value": "Hello, world!"
}
]
},
{
"name": "reverse_text",
"type": "text_operations.reverse",
"inputs": [
{
"name": "text",
"value": "{{tasks.input_text.outputs.text}}"
}
]
},
{
"name": "echo_text",
"type": "echo",
"inputs": [
{
"name": "text",
"value": "{{tasks.reverse_text.outputs.text}}"
}
]
}
]
}
Execution Process
The execution process of the workflow is as follows:
- The workflow is created via the API or UI.
- The system queues the workflow.
- Each step is executed in order.
- As each step is executed, the system updates the workflow status and the step status.
- The workflow is marked as completed when all steps are completed.
- User can be notified via webhook, email, or other means.