http-runner

command
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: MIT Imports: 9 Imported by: 0

README

http-runner

Minimal example of calling external services from a Maestro workflow.

http-runner flow

This demo shows a workflow action step calling a mock vendor API through Maestro's HTTP runner.

workflow action -> HTTP runner -> vendor API -> guard evaluation -> approved

The workflow stores the HTTP response in workflow variables, then evaluates a guard to decide the next step.


What this demo shows

  • HTTP-based workflow actions
  • external service orchestration
  • storing HTTP responses in workflow variables
  • guard evaluation from vendor responses
  • workflow-driven decision making

This is the foundation for integrating:

  • KYC vendors
  • AML services
  • fraud/risk systems
  • internal verification APIs
  • compliance backoffice services

Run

From the repository root:

go run ./examples/demos/http-runner

Expected output

mock vendor started

loaded workflow "http-runner-demo" (version "1.0.0")

running workflow with HTTP runner...

completed at: approved

vendor HTTP status: 200
vendor liveness status: pass

trace:
...

Output may differ slightly as the engine evolves.


Files

File Purpose
main.go workflow execution scenario
workflow.go embedded workflow loader
workflow.yaml sample HTTP-based workflow
mock_vendor_server.go local mock vendor API

Real-world mapping

This demo roughly maps to:

Workflow step Real-world equivalent
HTTP runner call vendor/internal service
Mock vendor API Onfido / Sumsub / AML API
variables.vendor captured vendor response
Guard evaluation workflow routing decision

In production, the HTTP runner would typically call real vendor or internal APIs instead of the local httptest.Server.


Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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