Run a first workflow on 0.12.0
Complete example
The first replay schedules greet. After the completion event commits, the second replay reads output and completes. The workflow function performs no network or file access.
Idempotent start
start_with_id() lets a caller retry run creation. An identical run ID, WorkflowSpec, and initial input returns the original run. Any changed value returns RunConflict.
A business service may derive run ID from an order or job identity, but one ID must retain one durable meaning.
Inspect raw history
Step output is visible only after it enters history. If a process exits after the external action but before event commit, the step runs again. Include a stable idempotency key such as greeting-ada:greet in step input.
Optional SQL features
0.12.0 uses ORM 0.3.
When the application uses ORM or Boot directly, align those dependencies with 0.3.0 and 0.2.0 so two incompatible public type families are not resolved together.
Optional TypeScript adapter
NativeTsRuntime requires a host-supplied compiler path.
The compiler implements compile <entrypoint.ts> -o <artifact>. 0.12.0 has no dependency-manifest scan, so bump WorkflowSpec.version when imports or configuration change.
Next steps
- Execution model covers fixed retry, timer waits, hooks, and cleanup-aware cancellation.
- Stores and migrations records exact SQL migration prefixes.
- API reference lists the complete command set for this release.
