rust-viewflow 0.1.0

Rust workflow library inspired by Viewflow, compatible with Axum and Actix-web
Documentation
# Guia de uso

## Pré-requisitos

- Rust stable
- Cargo
- Opcional: SQLite/MySQL/PostgreSQL

## 1) Build e testes

```bash
cargo check --all-features --examples
cargo test --all-features
```

## 2) Executar exemplo Axum

```bash
cargo run --example leave_request
```

Endpoint: `http://127.0.0.1:3000`

## 3) Criar workflow de licença

```bash
curl -X POST http://127.0.0.1:3000/workflows \
  -H "Content-Type: application/json" \
  -d '{"workflow_type":"leave_request","data":{"employee_id":"emp-001","manager_id":"mgr-001","hr_id":"hr-001","start_date":"2026-03-01","end_date":"2026-03-03","reason":"férias","locale":"pt"}}'
```

## 4) Consultar workflow e tarefas

```bash
curl http://127.0.0.1:3000/workflows/{workflow_id}
curl http://127.0.0.1:3000/workflows/{workflow_id}/tasks
```

## 5) Concluir tarefa

```bash
curl -X POST http://127.0.0.1:3000/tasks/{task_id}/complete \
  -H "Content-Type: application/json" \
  -d '{"data": {"approved": true, "locale": "pt"}}'
```

## Licença

MIT