ablative docs
↑↓ move↵ openesc close
Stack Notebook ablative.com.au

Gleam aion_flow SDK

Find typed workflow, activity, codec, signal, query, child and testing APIs.

Open .md

Install and package

The Gleam getting-started guide creates and packages a project. Hex publishes version 0.7.0; HexDocs describes that release. The APIs here follow the authorized main checkout, whose package also reports 0.7.0.

aion/workflow
Workflow definition and entry adapter, recorded activity/time/random operations, concurrency, timers, signals, children, continuation and iteration.
aion/activity
Typed activity values, codecs, retry policy, timeouts, heartbeat, labels, queues, nodes and execution tiers.
aion/codec
JSON encoding/decoding pair and DecodeError. null_codec represents a no-argument query document.
aion/signal, aion/query
Typed signal references, send and receive; read-only query handlers and dispatch.
aion/child, aion/duration
Typed child handles and result decoding; explicit time units.
aion/error, aion/agent
Typed errors at execution boundaries and the shared agent outcome codec.
aion/manifest, aion/testing
Activity declaration manifest and deterministic workflow test environment.

Define the entry

Define a typed function returning a success or error value. Supply codecs for input, output and workflow error to the workflow definition. The engine-facing entry adapter accepts the raw JSON text argument and returns encoded JSON text for success or failure.

The package descriptor names that entry function. Build the Gleam project before packaging its Erlang output.

API reference

On main, gleam/aion_flow/src/aion_flow.gleam:1–38 names the public modules. Their function declarations define the APIs in the linked reference pages. Use the matching checkout’s package and compiler when building a workflow.