An SDK on top of our existing workflow and orchestration tooling, simplifying and improving the developer experience of managing workflows.
In the example below, we define a simple workflow with two steps.
import { createWorkflow, createWorkflowHandler, createTransformer } from "@medusajs/workflows"
const myHandler1 = createWorkflowHandler("first", myHandler1Invoke, myHandler1Compensate)