rust-viewflow 0.1.0

Rust workflow library inspired by Viewflow, compatible with Axum and Actix-web
Documentation
# Guida all'uso

## Prerequisiti

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

## 1) Compilare e testare

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

## 2) Avviare esempio Axum

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

Endpoint: `http://127.0.0.1:3000`

## 3) Creare workflow richiesta ferie

```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":"ferie","locale":"it"}}'
```

## 4) Query workflow e task

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

## 5) Completare un task

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

## Licenza

MIT