Medusa v2 Workflows
Orchestrates complex, transactional e-commerce operations in Medusa v2 using steps, compensation logic, and parallel execution.
This skill empowers Claude to architect and implement robust Medusa v2 workflows, ensuring transactional integrity across multi-step commerce processes. It provides specialized guidance on creating steps with createStep, implementing rollback logic via compensation functions, managing parallel execution, and extending core commerce flows through workflow hooks. It is an essential tool for developers building custom checkout processes, complex inventory management, or third-party integrations that require reliable failure recovery and data consistency within the MedusaJS framework.
主な機能
01Implementation of transactional multi-step workflows with createWorkflow
02Hook integration for extending built-in Medusa commerce flows
03Automated compensation and rollback logic for failure recovery
0432 GitHub stars
05Data transformation and service resolution patterns within workflow steps
06Support for parallel execution and conditional branching using when()
ユースケース
01Extending core Medusa behaviors like order creation or fulfillment via workflow hooks
02Building custom checkout and payment processing flows with reliable rollback capabilities
03Syncing product data across multiple external platforms concurrently using parallel steps