Skip to content

WorkflowBridge

Source: src/Cloudflare/Workers/WorkflowBridge.ts

Create a WorkflowBridge class that extends WorkflowEntrypoint and delegates the run(event, step) call to the Effect-native workflow body registered via worker.export(...).

The bridge provides WorkflowEvent and WorkflowStep as Effect services so the user writes yield* WorkflowEvent and yield* task(...) instead of receiving callback parameters.