demo

command
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package main demonstrates a simple order processing workflow using Romancy.

This example shows: - Workflow and Activity definitions - Compensation functions (Saga pattern) - Event waiting (payment confirmation) - Type-safe event handling

Usage:

go run ./examples/demo/

Then use the CLI to interact:

go run ./cmd/romancy/ get <instance_id>
go run ./cmd/romancy/ event <instance_id> payment.completed '{"transaction_id":"TX-123"}'

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL