# `Logistiki.Accounting.Pipeline`
[🔗](https://github.com/thanos/logistiki/blob/v0.1.0/lib/logistiki/accounting/pipeline.ex#L1)

The accounting pipeline: the defining mental model of Logistiki.

    Business Event
        │
        ▼
    Event Normalization
        │
        ▼
    Datalog Fact Generation
        │
        ▼
    Business Rule Evaluation
        │
        ▼
    Accounting Policy Selection
        │
        ▼
    Accounting Template Resolution
        │
        ▼
    Journal Builder
        │
        ▼
    Posting Builder
        │
        ▼
    Ledger Invariant Validation
        │
        ▼
    Ledger Backend Execution
        │
        ▼
    Projection Generation
        │
        ▼
    Audit Evidence

Each stage is represented here and recorded in the audit trail.

# `run`
*since 0.1.0* 

Runs the full accounting pipeline for `event` (a business event struct).

Returns `{:ok, %Logistiki.Accounting.Result{}}` or `{:error, %Logistiki.Error{}}`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
