{
"id": 1,
"name": "Fluxo de Aprovação de Contratos",
"description": "Workflow para aprovação de novos contratos com valor acima de R$5.000",
"workspace": "ws_abc123",
"group": 5,
"reference": "wf_aprovacao_contratos_x7k",
"icon": "mdi:file-document-check",
"status": "active",
"trigger_ref": "event::c_items:contracts::create",
"version": "1.2.0",
"active_version": null,
"nodes": [
{
"id": "trigger_1",
"type": "trigger",
"label": "Contrato Criado",
"data": {
"type": "event",
"scope": "c_items:contracts",
"action": "create"
},
"position": {
"x": 100,
"y": 200
}
},
{
"id": "cond_1",
"type": "conditionals",
"label": "Valor > 5000?",
"data": {
"conditionals": {
"and": [
{
"field": "value",
"op": "gt",
"value": 5000
}
]
}
},
"position": {
"x": 350,
"y": 200
}
},
{
"id": "approval_1",
"type": "approval",
"label": "Aprovação Gestor",
"data": {
"task_name": "Aprovar contrato",
"priority": "high",
"assign_to": "user_gestor"
},
"position": {
"x": 600,
"y": 150
}
},
{
"id": "email_1",
"type": "email",
"label": "Notificar",
"data": {
"subject": "Novo contrato",
"body": "<p>Contrato registrado.</p>",
"to": [
"operacao@empresa.com"
]
},
"position": {
"x": 600,
"y": 300
}
},
{
"id": "end_1",
"type": "end",
"label": "Fim",
"position": {
"x": 850,
"y": 200
}
}
],
"edges": [
{
"id": "e1",
"source": "trigger_1",
"target": "cond_1"
},
{
"id": "e2",
"label": "Sim",
"source": "cond_1",
"target": "approval_1"
},
{
"id": "e3",
"label": "Não",
"source": "cond_1",
"target": "email_1"
},
{
"id": "e4",
"source": "approval_1",
"target": "end_1"
},
{
"id": "e5",
"source": "email_1",
"target": "end_1"
}
],
"settings": {},
"meta": {},
"created_at": "2026-01-15T10:30:00.000Z",
"updated_at": "2026-02-20T14:15:00.000Z",
"deleted_at": null
}