booking

command
v0.3.0 Latest Latest
Warning

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

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

Documentation

Overview

Package main demonstrates human-in-the-loop workflow patterns.

This example shows: - Waiting for human approval events - Event timeout handling - Multi-step approval processes - Real-world expense approval workflow

Usage:

go run ./examples/booking/

Then approve or reject:

# Approve
go run ./cmd/romancy/ event <instance_id> approval.response '{"approved": true, "approver": "manager@example.com"}' --db booking_demo.db

# Reject
go run ./cmd/romancy/ event <instance_id> approval.response '{"approved": false, "approver": "manager@example.com", "reason": "Over budget"}'  --db booking_demo.db

Jump to

Keyboard shortcuts

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