medusa
medusa copied to clipboard
[Bug]: Error: Workflow with id \"create-fulfillment-workflow\" and step definition already exists.
Package.json file
{
"name": "engage-ecommerce-api",
"version": "0.0.1",
"description": "A starter for Medusa projects.",
"author": "Medusa (https://medusajs.com)",
"license": "MIT",
"keywords": [
"sqlite",
"postgres",
"typescript",
"ecommerce",
"headless",
"medusa"
],
"scripts": {
"build": "medusa build",
"seed": "medusa exec ./src/scripts/seed.ts",
"start": "medusa start",
"dev": "medusa develop",
"debug": "DEBUG=medusa-core-utils:workflow,medusa:* medusa develop",
"test:integration:http": "TEST_TYPE=integration:http NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit",
"test:integration:modules": "TEST_TYPE=integration:modules NODE_OPTIONS=--experimental-vm-modules jest --silent --runInBand --forceExit",
"test:unit": "TEST_TYPE=unit NODE_OPTIONS=--experimental-vm-modules jest --silent --runInBand --forceExit"
},
"dependencies": {
"@medusajs/admin-sdk": "2.3.1",
"@medusajs/cli": "2.3.1",
"@medusajs/framework": "2.3.1",
"@medusajs/medusa": "2.3.1",
"@mikro-orm/core": "5.9.7",
"@mikro-orm/knex": "5.9.7",
"@mikro-orm/migrations": "5.9.7",
"@mikro-orm/postgresql": "5.9.7",
"awilix": "^8.0.1",
"multer": "^1.4.5-lts.1",
"pg": "^8.13.0",
"ulid": "^2.3.0",
"zod": "3.22.4"
},
"devDependencies": {
"@ashtoncochrane/types": "0.0.4",
"@medusajs/test-utils": "2.3.1",
"@mikro-orm/cli": "5.9.7",
"@swc/core": "1.5.7",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.13",
"@types/multer": "^1",
"@types/node": "^20.0.0",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.2.25",
"jest": "^29.7.0",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"vite": "^5.2.11"
},
"engines": {
"node": ">=20"
},
"packageManager": "[email protected]"
}
Node.js version
v22.6.0
Database and its version
PostgreSQL 16
Operating system name and version
MacOS 13.4 although deploying into node:22-slim docker container
Browser name
No response
What happended?
When attempting to run yarn start an error around step definitions already existing is being thrown. We havent touched anything to do with fulfillments nor created any workflow/step that has the create-fulfillment-workflow id. Is it potentially registering the create-fulfillment-workflow twice?
It seems to be happening when RoutesLoader in medusa/packages/src/loader.ts is being called. I console.logged the inputs being provided to this that caused the error and they are the following:
app: app # object, can provide more details if needed.
sourcePaths: ['/app/.medusa/server/src/api','/app/.medusa/server/node_modules/@medusajs/medusa/dist/api']
restrictedFields?.store: [ 'order', 'orders' ]
Expected behavior
Expect API to start successfully
Actual behavior
Error being thrown:
engage-ecommerce-api | {"level":"error","message":"An error occurred while registering API Routes. Error: Workflow with id \"create-fulfillment-workflow\" and step definition already exists.","stack":[{"columnNumber":15,"fileName":"/app/.medusa/server/node_modules/@medusajs/medusa/dist/loaders/api.js","functionName":"exports.default","lineNumber":60,"methodName":"default","native":false,"typeName":"exports"},{"columnNumber":3,"fileName":"/app/.medusa/server/node_modules/@medusajs/medusa/src/loaders/index.ts","functionName":"async loadEntrypoints","lineNumber":111,"methodName":null,"native":false,"typeName":null},{"columnNumber":31,"fileName":"/app/.medusa/server/node_modules/@medusajs/medusa/src/loaders/index.ts","functionName":"async exports.default","lineNumber":170,"methodName":"default","native":false,"typeName":"async exports"},{"columnNumber":59,"fileName":"/app/.medusa/server/node_modules/@medusajs/medusa/src/commands/start.ts","functionName":"async internalStart","lineNumber":169,"methodName":null,"native":false,"typeName":null},{"columnNumber":5,"fileName":"/app/.medusa/server/node_modules/@medusajs/medusa/src/commands/start.ts","functionName":"async start","lineNumber":293,"methodName":null,"native":false,"typeName":null}],"timestamp":"2025-01-24 12:04:36"}
Link to reproduction repo
N/A - Can give access to repo if needed
Hey @ashcochrane,
2 things:
- What changed since you started getting this error?
- Its going to be hard to reproduce this without a reproduction repo. I can't reproduce this in mine. Can you share a minimal repro repo?
A hint might be to inspect a new workflow that you added or updated an existing workflow. Sometimes incorrect workflow usage might result in errors such as this.
Additionally, the full server error log since you got the error would be helpful too
@riqwan The bug only seems to happen when running Medusa from the production build in .medusa/server - running from the typescript build in the parent directory works fine.
Please see the output log of the build and server error log
❯ yarn build
yarn run v1.22.22
$ medusa build
{"level":"info","message":"Starting build...","timestamp":"2025-01-24 13:21:52"}
{"level":"info","message":"Compiling backend source...","timestamp":"2025-01-24 13:21:52"}
{"level":"info","message":"Removing existing \".medusa/server\" folder","timestamp":"2025-01-24 13:21:52"}
The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
postgres://<redacted>:<redacted>@<redacted>:25060/engage
{"level":"info","message":"Compiling frontend source...","timestamp":"2025-01-24 13:21:57"}
{"level":"info","message":"Backend build completed successfully (4.89s)","timestamp":"2025-01-24 13:21:57"}
{"level":"info","message":"Frontend build completed successfully (32.84s)","timestamp":"2025-01-24 13:22:29"}
✨ Done in 40.83s.
❯ cd .medusa/server
❯ yarn install
[5/5] 🔨 Building fresh packages...
✨ Done in 35.29s.
❯ cp ../../.env.prod .env
❯ ls -a
. .env medusa-config.js package.json src
.. instrumentation.js node_modules public yarn.lock
❯ NODE_ENV=production
yarn run v1.22.22
$ medusa start
{"level":"info","message":"Skipping instrumentation registration. No register function found.","timestamp":"2025-01-24 13:26:05"}
postgres://<redacted>:<redacted>@<redacted>:25060/engage
{"level":"info","message":"Connection to Redis in module 'cache-redis' established","timestamp":"2025-01-24 13:26:06"}
{"level":"warn","message":"Local Event Bus installed. This is not recommended for production.","timestamp":"2025-01-24 13:26:06"}
{"level":"info","message":"Locking module: Using \"in-memory\" as default.","timestamp":"2025-01-24 13:26:09"}
{"level":"info","message":"Connection to Redis in module 'event-bus-redis' established","timestamp":"2025-01-24 13:26:32"}
{"level":"info","message":"DigitalOcean Spaces S3 client initialized.","timestamp":"2025-01-24 13:26:32"}
{"level":"info","message":"No job to load from /Users/ashtoncochrane/Git/engage/engage-ecommerce-api/.medusa/server/src/jobs. skipped.","timestamp":"2025-01-24 13:26:52"}
{"level":"info","message":"No job to load from /Users/ashtoncochrane/Git/engage/engage-ecommerce-api/.medusa/server/node_modules/@medusajs/medusa/dist/jobs. skipped.","timestamp":"2025-01-24 13:26:52"}
The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
{"level":"error","message":"Error starting server","timestamp":"2025-01-24 13:26:53"}
{"level":"error","message":"An error occurred while registering API Routes. Error: Workflow with id \"create-fulfillment-workflow\" and step definition already exists.","stack":[{"columnNumber":11,"fileName":"/Users/ashtoncochrane/Git/engage/engage-ecommerce-api/.medusa/server/node_modules/@medusajs/medusa/src/loaders/api.ts","functionName":"exports.default","lineNumber":67,"methodName":"default","native":false,"typeName":"exports"},{"columnNumber":3,"fileName":"/Users/ashtoncochrane/Git/engage/engage-ecommerce-api/.medusa/server/node_modules/@medusajs/medusa/src/loaders/index.ts","functionName":"async loadEntrypoints","lineNumber":111,"methodName":null,"native":false,"typeName":null},{"columnNumber":31,"fileName":"/Users/ashtoncochrane/Git/engage/engage-ecommerce-api/.medusa/server/node_modules/@medusajs/medusa/src/loaders/index.ts","functionName":"async exports.default","lineNumber":170,"methodName":"default","native":false,"typeName":"async exports"},{"columnNumber":59,"fileName":"/Users/ashtoncochrane/Git/engage/engage-ecommerce-api/.medusa/server/node_modules/@medusajs/medusa/src/commands/start.ts","functionName":"async internalStart","lineNumber":169,"methodName":null,"native":false,"typeName":null},{"columnNumber":5,"fileName":"/Users/ashtoncochrane/Git/engage/engage-ecommerce-api/.medusa/server/node_modules/@medusajs/medusa/src/commands/start.ts","functionName":"async start","lineNumber":293,"methodName":null,"native":false,"typeName":null}],"timestamp":"2025-01-24 13:26:53"}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Thanks @ashcochrane ! Can you share your tsconfig?
@riqwan
{
"compilerOptions": {
"target": "ES2021",
"esModuleInterop": true,
"module": "Node16",
"moduleResolution": "Node16",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"declaration": false,
"sourceMap": false,
"inlineSourceMap": true,
"outDir": "./.medusa/server",
"rootDir": "./",
"baseUrl": ".",
"jsx": "react-jsx",
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"checkJs": false
},
"ts-node": {
"swc": true
},
"include": ["**/*", ".medusa/types/*"],
"exclude": ["node_modules", ".medusa/server", ".medusa/admin", ".cache"]
}
Im trying to get a reproduction repo up for you
Hm, don't see anything wrong here. I'm unable to reproduce this either. Can you provide a repro repo?
Hi @riqwan you can find a repro repo here: https://github.com/ashcochrane/medusa-repro
Let me know if there is anything else you need
@riqwan It looks like it was this causing it:
const customer = createCustomerAccountWorkflow.runAsStep({
input: {
authIdentityId: authIdentity.id,
customerData: {
email: input.employeeData.email,
first_name: input.employeeData.first_name,
last_name: input.employeeData.last_name,
phone: input.employeeData.phone,
company_name: input.employeeData.company_name
}
}
})
Not too sure why it would work in development but then fail to register in production
You are probably calling or registering the step twice, how ? Well its simple look inside your workflow, either you are running a loop that’s doing it or you are calling this workflow runAsAStep() you have a choice register it once.
hello @ashcochrane did you find the issue? i am having the same issue here
Facing the same issue after upgrading to medusa 2.4.0
An error occurred while registering API Routes. Error: Workflow with id "create-fulfillment-workflow" and step definition already exists.
Error: An error occurred while registering API Routes. Error: Workflow with id "create-fulfillment-workflow" and step definition already exists.
at exports.default (/workspaces/medusa-ecommerce/backend/.medusa/server/node_modules/.pnpm/@[email protected]_p7ifvau2qibmgtcl6lkuq4awti/node_modules/@medusajs/medusa/src/loaders/api.ts:67:11)
at async loadEntrypoints (/workspaces/medusa-ecommerce/backend/.medusa/server/node_modules/.pnpm/@[email protected]_p7ifvau2qibmgtcl6lkuq4awti/node_modules/@medusajs/medusa/src/loaders/index.ts:111:3)
at async exports.default (/workspaces/medusa-ecommerce/backend/.medusa/server/node_modules/.pnpm/@[email protected]_p7ifvau2qibmgtcl6lkuq4awti/node_modules/@medusajs/medusa/src/loaders/index.ts:170:31)
at async internalStart (/workspaces/medusa-ecommerce/backend/.medusa/server/node_modules/.pnpm/@[email protected]_p7ifvau2qibmgtcl6lkuq4awti/node_modules/@medusajs/medusa/src/commands/start.ts:169:59)
at async start (/workspaces/medusa-ecommerce/backend/.medusa/server/node_modules/.pnpm/@[email protected]_p7ifvau2qibmgtcl6lkuq4awti/node_modules/@medusajs/medusa/src/commands/start.ts:293:5)
Facing the same issue after upgrading to medusa 2.4.0
An error occurred while registering API Routes. Error: Workflow with id "create-fulfillment-workflow" and step definition already exists. Error: An error occurred while registering API Routes. Error: Workflow with id "create-fulfillment-workflow" and step definition already exists. at exports.default (/workspaces/medusa-ecommerce/backend/.medusa/server/node_modules/.pnpm/@[email protected]_p7ifvau2qibmgtcl6lkuq4awti/node_modules/@medusajs/medusa/src/loaders/api.ts:67:11) at async loadEntrypoints (/workspaces/medusa-ecommerce/backend/.medusa/server/node_modules/.pnpm/@[email protected]_p7ifvau2qibmgtcl6lkuq4awti/node_modules/@medusajs/medusa/src/loaders/index.ts:111:3) at async exports.default (/workspaces/medusa-ecommerce/backend/.medusa/server/node_modules/.pnpm/@[email protected]_p7ifvau2qibmgtcl6lkuq4awti/node_modules/@medusajs/medusa/src/loaders/index.ts:170:31) at async internalStart (/workspaces/medusa-ecommerce/backend/.medusa/server/node_modules/.pnpm/@[email protected]_p7ifvau2qibmgtcl6lkuq4awti/node_modules/@medusajs/medusa/src/commands/start.ts:169:59) at async start (/workspaces/medusa-ecommerce/backend/.medusa/server/node_modules/.pnpm/@[email protected]_p7ifvau2qibmgtcl6lkuq4awti/node_modules/@medusajs/medusa/src/commands/start.ts:293:5)
After I downgrade to 2.3.1 the issue goes away. So definitely a bug in 2.4.0
did you guys find any fixes without downgrading?
did you guys find any fixes without downgrading?
not yet. Anything we could do to help resolve this?
Still here on v2.5.0
Fixed for me when i don't run npm install inside .medusa/server and just start.
@ikku47 works for me locally, but I am struggling to make it work while deploying to railway…any hint?
Thanks @ikku47
@ikku47 works for me locally, but I am struggling to make it work while deploying to railway…any hint?
@robypag in your railway deployment settings either update the build command to medusa build or update the postBuild.js to skip installing dependencies.
Looks like this issue should be moved to the railway template repo.
Hi guys, I ve tried everrything to reproduce this issue on my side and unfortunately no matter what I can't anymore. Could you re run a test with the latest versions please. If you could also provide a reproducible repository to reproduce the issue locally as I am really not able to get it on any of my tests
Facing the same issue on my end with v2.4.0
Fixed for me when i don't run npm install inside .medusa/server and just start.
This still works as long as I run using npx medusa start but not if I do npm/yarn/pnpm run start.
Hey folks, so we had a similar issue on the Medusa B2B starter with a colleague at work that was using npm instead of yarn
My colleague was having an error with a dependency missing, that he has installed manually @medusajs/core-flows, and with npm weirdly some dependencies are not resolved in the same way as yarn does, leading to that error
We have decided to use yarn with version 4, removed the dependency manually installed (in our specific case), reinstalled the dependencies and everything was working well
@adrien2p what do you think about this?
I'm just experiencing the same issue in 2.6.1. I've done a bit debugging and in my case this happens when I use a plugin that calls a core module's steps.
This is how I'm calling a step from Product module:
updateProductsStep({
products: [
{
id: input.productId,
title: input.title,
description: input.description,
handle,
subtitle: input.subtitle,
thumbnail: thumbnail.url_large,
},
],
});
But I remove those lines from my plugin and don't import anything from @medusajs/medusa/core-flows everything works fine. Importing from "@medusajs/core-flows has the same bad effect.
I wonder whether this is a case of a plugin re-registering core workflows twice: once in the application, and another in the plugin. This is just a hunch, because like other people in this thread I'm not touching the create-fulfillment-workflow or anything in the fulfillment module.
I have a very ugly solution that I don't quite understand but otherwise I'm blocked and wouldn't be able to use Medusa
I'm applying the following pnpm patch to @medusajs/orchestration so that my app runs:
diff --git a/dist/workflow/workflow-manager.js b/dist/workflow/workflow-manager.js
index 62aed17abe9f0528625a002e44a030ea8212877e..65bc0cc970b57d11f2df58ac0f97b0b47984f5a0 100644
--- a/dist/workflow/workflow-manager.js
+++ b/dist/workflow/workflow-manager.js
@@ -42,7 +42,8 @@ class WorkflowManager {
JSON.stringify(WorkflowManager.workflows.get(workflowId).flow_, excludeStepUuid)
: true;
if (!areStepsEqual) {
- throw new Error(`Workflow with id "${workflowId}" and step definition already exists.`);
+ console.warn(JSON.stringify({workflowId, a: JSON.stringify(finalFlow, excludeStepUuid), b: JSON.stringify(WorkflowManager.workflows.get(workflowId).flow_, excludeStepUuid)}, null, 2));
+ // throw new Error(`Workflow with id "${workflowId}" and step definition already exists.`);
}
}
const workflow = {
It looks like there are many workflows that register more than once with steps that differ slightly. This is the full dump of all workflows with issues:
{
"workflowId": "create-fulfillment-workflow",
"a": "{"action":"get-location","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-location","next":{"action":"create-fulfillment","noCompensation":false}}",
"b": "{"action":"get-location","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-location"}"
}
{
"workflowId": "create-return-fulfillment-workflow",
"a": "{"action":"get-location","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-location","next":{"action":"create-return-fulfillment","noCompensation":false}}",
"b": "{"action":"get-location","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-location"}"
}
{
"workflowId": "calculate-shipping-options-prices-workflow",
"a": "{"action":"shipping-options-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"shipping-options-query","next":{"action":"cart-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"cart-query","next":{"action":"location-fulfillment-set-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"location-fulfillment-set-query","next":{"action":"location-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"location-query","next":{"action":"calculate-shipping-options-prices","noCompensation":true}}}}}",
"b": "{"action":"shipping-options-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"shipping-options-query","next":{"action":"cart-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"cart-query","next":{"action":"location-fulfillment-set-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"location-fulfillment-set-query","next":{"action":"location-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"location-query"}}}}"
}
{
"workflowId": "list-shipping-options-for-cart-with-pricing",
"a": "{"action":"get-cart","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-cart","next":{"action":"validate-presence-of","noCompensation":true,"next":{"action":"sales_channels-fulfillment-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"sales_channels-fulfillment-query","next":{"action":"shipping-options-price-type-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"shipping-options-price-type-query","next":[{"action":"shipping-options-query-flat-rate","noCompensation":true,"async":false,"compensateAsync":false,"name":"shipping-options-query-flat-rate"},{"action":"shipping-options-query-calculated","noCompensation":true,"async":false,"compensateAsync":false,"name":"shipping-options-query-calculated","next":{"action":"calculate-shipping-options-prices","noCompensation":true}}]}}}}",
"b": "{"action":"get-cart","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-cart","next":{"action":"validate-presence-of","noCompensation":true,"next":{"action":"sales_channels-fulfillment-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"sales_channels-fulfillment-query","next":{"action":"shipping-options-price-type-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"shipping-options-price-type-query","next":{"action":"shipping-options-query-flat-rate","noCompensation":true,"async":false,"compensateAsync":false,"name":"shipping-options-query-flat-rate","next":{"action":"shipping-options-query-calculated","noCompensation":true,"async":false,"compensateAsync":false,"name":"shipping-options-query-calculated"}}}}}}"
}
{
"workflowId": "refresh-cart-shipping-methods",
"a": "{"action":"get-cart","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-cart","next":{"action":"validate","noCompensation":false,"next":{"action":"list-shipping-options-for-cart-with-pricing-as-step","name":"list-shipping-options-for-cart-with-pricing-as-step","async":false,"nested":false,"noCompensation":false,"next":[{"action":"remove-shipping-method-to-cart-step","noCompensation":false},{"action":"update-shipping-methods-step","noCompensation":false}]}}}",
"b": "{"action":"get-cart","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-cart"}"
}
{
"workflowId": "create-payment-sessions",
"a": "{"action":"get-payment-collection","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-payment-collection","next":{"action":"get-customer","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-customer","next":{"action":"create-payment-account-holder","noCompensation":false,"next":{"action":"customer-id-exists","noCompensation":true,"next":{"action":"create-remote-links","noCompensation":false,"next":[{"action":"create-payment-session","noCompensation":false},{"action":"delete-payment-sessions-as-step","name":"delete-payment-sessions-as-step","async":false,"nested":false,"noCompensation":false}]}}}}}",
"b": "{"action":"get-payment-collection","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-payment-collection","next":{"action":"get-customer","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-customer"}}"
}
{
"workflowId": "refresh-cart-items",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"fetch-variants","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-variants","next":{"action":"validate-variant-prices","noCompensation":true,"next":{"action":"update-line-items-step","noCompensation":false,"next":{"action":"refetch–cart","noCompensation":true,"async":false,"compensateAsync":false,"name":"refetch–cart","next":{"action":"refresh-cart-shipping-methods-as-step","name":"refresh-cart-shipping-methods-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"update-tax-lines-as-step","name":"update-tax-lines-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"upsert-tax-lines-as-step","name":"upsert-tax-lines-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"update-cart-promotions-as-step","name":"update-cart-promotions-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"refresh-payment-collection-for-cart-as-step","name":"refresh-payment-collection-for-cart-as-step","async":false,"nested":false,"noCompensation":false}}}}}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"fetch-variants","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-variants","next":{"action":"validate-variant-prices","noCompensation":true,"next":{"action":"update-line-items-step","noCompensation":false,"next":{"action":"refetch–cart","noCompensation":true,"async":false,"compensateAsync":false,"name":"refetch–cart"}}}}}"
}
{
"workflowId": "add-to-cart",
"a": "{"action":"get-cart","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-cart","next":{"action":"validate-cart","noCompensation":true,"next":{"action":"validate","noCompensation":false,"next":{"action":"use-remote-query","noCompensation":true,"next":{"action":"validate-variant-prices","noCompensation":true,"next":{"action":"validate-line-item-prices","noCompensation":true,"next":{"action":"get-line-item-actions-step","noCompensation":true,"next":{"action":"confirm-item-inventory-as-step","name":"confirm-item-inventory-as-step","async":false,"nested":false,"noCompensation":false,"next":[{"action":"create-line-items-step","noCompensation":false},{"action":"update-line-items-step","noCompensation":false,"next":{"action":"refresh-cart-items-as-step","name":"refresh-cart-items-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"emit-event-step","noCompensation":false}}}]}}}}}}}}",
"b": "{"action":"get-cart","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-cart"}"
}
{
"workflowId": "complete-cart",
"a": "{"action":"use-query-graph-step","noCompensation":true,"next":{"action":"cart-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"cart-query","next":{"action":"validate","noCompensation":false,"next":{"action":"shipping-options-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"shipping-options-query","next":{"action":"validate-shipping","noCompensation":true,"next":{"action":"validate-cart-payments","noCompensation":true,"next":{"action":"authorize-payment-session-step","noCompensation":false,"next":{"action":"create-orders","noCompensation":false,"next":[{"action":"create-remote-links","noCompensation":false},{"action":"update-carts","noCompensation":false},{"action":"reserve-inventory-step","noCompensation":false},{"action":"emit-event-step","noCompensation":false,"next":{"action":"register-usage","noCompensation":false,"next":{"action":"create-order","noCompensation":true}}}]}}}}}}}}",
"b": "{"action":"use-query-graph-step","noCompensation":true,"next":{"action":"cart-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"cart-query","next":{"action":"validate","noCompensation":false,"next":{"action":"shipping-options-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"shipping-options-query"}}}}"
}
{
"workflowId": "transfer-cart-customer",
"a": "{"action":"get-cart","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-cart","next":{"action":"validate","noCompensation":false,"next":{"action":"get-customer","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-customer","next":{"action":"update-carts","noCompensation":false,"next":{"action":"refresh-cart-items-as-step","name":"refresh-cart-items-as-step","async":false,"nested":false,"noCompensation":false}}}}}",
"b": "{"action":"get-cart","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-cart","next":{"action":"validate","noCompensation":false,"next":{"action":"get-customer","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-customer"}}}"
}
{
"workflowId": "update-cart",
"a": "{"action":"get-cart","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-cart","next":[{"action":"find-sales-channel","noCompensation":true},{"action":"find-or-create-customer","noCompensation":false,"next":{"action":"validate-sales-channel","noCompensation":true,"next":{"action":"get-region","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-region","next":{"action":"validate","noCompensation":false,"next":{"action":"emit-region-updated","noCompensation":false,"async":false,"compensateAsync":false,"name":"emit-region-updated","next":[{"action":"update-carts","noCompensation":false},{"action":"emit-event-step","noCompensation":false,"next":{"action":"use-query-graph-step","noCompensation":true,"next":{"action":"delete-line-items","noCompensation":false,"next":{"action":"refresh-cart-items-as-step","name":"refresh-cart-items-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"cartUpdated","noCompensation":false}}}}}]}}}}}]}",
"b": "{"action":"get-cart","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-cart","next":[{"action":"find-sales-channel","noCompensation":true},{"action":"find-or-create-customer","noCompensation":false,"next":{"action":"validate-sales-channel","noCompensation":true,"next":{"action":"get-region","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-region","next":{"action":"validate","noCompensation":false,"next":{"action":"emit-region-updated","noCompensation":false,"async":false,"compensateAsync":false,"name":"emit-region-updated"}}}}}]}"
}
{
"workflowId": "update-line-item-in-cart",
"a": "{"action":"get-cart","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-cart","next":{"action":"validate-cart","noCompensation":true,"next":{"action":"validate","noCompensation":false,"next":{"action":"fetch-variants","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-variants","next":{"action":"validate-variant-prices","noCompensation":true,"next":{"action":"confirm-item-inventory-as-step","name":"confirm-item-inventory-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"update-line-items-with-selector","noCompensation":false,"next":{"action":"refresh-cart-items-as-step","name":"refresh-cart-items-as-step","async":false,"nested":false,"noCompensation":false}}}}}}}}",
"b": "{"action":"get-cart","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-cart","next":{"action":"validate-cart","noCompensation":true,"next":{"action":"validate","noCompensation":false,"next":{"action":"fetch-variants","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-variants"}}}}"
}
{
"workflowId": "remove-customer-account",
"a": "{"action":"get-customer","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-customer","next":{"action":"delete-customers-as-step","name":"delete-customers-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"use-remote-query","noCompensation":true,"next":{"action":"set-auth-app-metadata","noCompensation":false}}}}",
"b": "{"action":"get-customer","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-customer"}"
}
{
"workflowId": "order-add-line-items",
"a": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":[{"action":"find-sales-channel","noCompensation":true},{"action":"find-one-or-any-region","noCompensation":true},{"action":"find-or-create-customer","noCompensation":false,"next":{"action":"use-remote-query","noCompensation":true,"next":{"action":"validate-variant-prices","noCompensation":true,"next":{"action":"confirm-item-inventory-as-step","name":"confirm-item-inventory-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"validate-line-item-prices","noCompensation":true,"next":{"action":"create-order-line-items-step","noCompensation":false}}}}}}]}",
"b": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query"}"
}
{
"workflowId": "create-order-refund-credit-lines",
"a": "{"action":"get-order","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-order","next":{"action":"validate-order-refund-credit-lines","noCompensation":true,"next":{"action":"create-order-change","noCompensation":false,"next":{"action":"create-order-change-actions-as-step","name":"create-order-change-actions-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"confirm-order-changes","noCompensation":false}}}}}}",
"b": "{"action":"get-order","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-order","next":{"action":"validate-order-refund-credit-lines","noCompensation":true,"next":{"action":"create-order-change","noCompensation":false,"next":{"action":"create-order-change-actions-as-step","name":"create-order-change-actions-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}}}"
}
{
"workflowId": "process-payment-workflow",
"a": "{"action":"payment-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"payment-query","next":{"action":"payment-session-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"payment-session-query","next":{"action":"cart-payment-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"cart-payment-query","next":{"action":"complete-cart-as-step","name":"complete-cart-as-step","async":false,"nested":false,"noCompensation":false,"compensateAsync":false,"continueOnPermanentFailure":true,"next":{"action":"capture-payment-workflow-as-step","name":"capture-payment-workflow-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"authorize-payment-session-step","noCompensation":false}}}}}}",
"b": "{"action":"payment-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"payment-query","next":{"action":"payment-session-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"payment-session-query","next":{"action":"cart-payment-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"cart-payment-query","next":{"action":"complete-cart-as-step","name":"complete-cart-as-step","async":false,"nested":false,"noCompensation":false,"compensateAsync":false,"continueOnPermanentFailure":true}}}}"
}
{
"workflowId": "refund-payment-workflow",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-payment-collection","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-payment-collection","next":{"action":"order","noCompensation":true,"async":false,"compensateAsync":false,"name":"order","next":{"action":"validate-refund-step","noCompensation":true,"next":{"action":"refund-payment-step","noCompensation":true,"next":{"action":"add-order-transaction","noCompensation":false,"next":{"action":"emit-event-step","noCompensation":false}}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-payment-collection","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-payment-collection","next":{"action":"order","noCompensation":true,"async":false,"compensateAsync":false,"name":"order"}}}"
}
{
"workflowId": "refund-payments-workflow",
"a": "{"action":"get-cart","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-cart","next":{"action":"validate-payments-refund-step","noCompensation":true,"next":{"action":"refund-payments-step","noCompensation":true,"next":{"action":"add-order-transaction","noCompensation":false}}}}",
"b": "{"action":"get-cart","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-cart"}"
}
{
"workflowId": "refund-captured-payments-workflow",
"a": "{"action":"get-order","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-order","next":{"action":"refund-payments-workflow-as-step","name":"refund-payments-workflow-as-step","async":false,"nested":false,"noCompensation":false}}",
"b": "{"action":"get-order","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-order"}"
}
{
"workflowId": "cancel-order",
"a": "{"action":"get-cart","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-cart","next":{"action":"cancel-validate-order","noCompensation":true,"next":[{"action":"create-order-refund-credit-lines-as-step","name":"create-order-refund-credit-lines-as-step","async":false,"nested":false,"noCompensation":false},{"action":"delete-reservations-by-line-items","noCompensation":false},{"action":"cancel-payment-step","noCompensation":true},{"action":"refund-captured-payments-workflow-as-step","name":"refund-captured-payments-workflow-as-step","async":false,"nested":false,"noCompensation":false},{"action":"emit-event-step","noCompensation":false,"next":{"action":"update-payment-collection","noCompensation":false,"next":{"action":"cancel-orders","noCompensation":false,"next":{"action":"orderCanceled","noCompensation":false}}}}]}}",
"b": "{"action":"get-cart","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-cart"}"
}
{
"workflowId": "cancel-begin-order-claim",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-cancel-begin-order-claim","noCompensation":true,"next":[{"action":"delete-return","noCompensation":false},{"action":"delete-claims","noCompensation":false},{"action":"delete-order-change","noCompensation":false},{"action":"delete-order-shipping-methods","noCompensation":false}]}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}"
}
{
"workflowId": "update-order-tax-lines",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"query-order-line-items","noCompensation":true,"async":false,"compensateAsync":false,"name":"query-order-line-items","next":{"action":"query-order-shipping-methods","noCompensation":true,"async":false,"compensateAsync":false,"name":"query-order-shipping-methods","next":{"action":"get-item-tax-lines","noCompensation":true,"next":{"action":"set-order-tax-lines-for-items","noCompensation":false}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"query-order-line-items","noCompensation":true,"async":false,"compensateAsync":false,"name":"query-order-line-items","next":{"action":"query-order-shipping-methods","noCompensation":true,"async":false,"compensateAsync":false,"name":"query-order-shipping-methods"}}}"
}
{
"workflowId": "claim-add-new-item",
"a": "{"action":"claim-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"claim-query","next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"claim-add-new-item-validation","noCompensation":true,"next":{"action":"order-add-line-items-as-step","name":"order-add-line-items-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"update-order-tax-lines-as-step","name":"update-order-tax-lines-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"create-order-change-actions-as-step","name":"create-order-change-actions-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}}}",
"b": "{"action":"claim-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"claim-query","next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}"
}
{
"workflowId": "claim-item",
"a": "{"action":"claim-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"claim-query","next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"claim-item-validation","noCompensation":true,"next":{"action":"create-order-change-actions-as-step","name":"create-order-change-actions-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}",
"b": "{"action":"claim-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"claim-query","next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}"
}
{
"workflowId": "claim-request-item-return",
"a": "{"action":"claim-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"claim-query","next":{"action":"return-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"return-query","next":{"action":"create-returns","noCompensation":false,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"update-order-changes","noCompensation":false,"next":{"action":"claim-request-item-return-validation","noCompensation":true,"next":{"action":"update-order-claim","noCompensation":false,"next":{"action":"create-order-change-actions-as-step","name":"create-order-change-actions-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}}}}}",
"b": "{"action":"claim-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"claim-query","next":{"action":"return-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"return-query","next":{"action":"create-returns","noCompensation":false,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}}}"
}
{
"workflowId": "create-or-update-order-payment-collection",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-payment-collection-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-payment-collection-query","next":{"action":"payment-collection-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"payment-collection-query","next":{"action":"update-payment-collection","noCompensation":false,"next":{"action":"create-order-payment-collection-as-step","name":"create-order-payment-collection-as-step","async":false,"nested":false,"noCompensation":false}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-payment-collection-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-payment-collection-query","next":{"action":"payment-collection-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"payment-collection-query"}}}"
}
{
"workflowId": "confirm-claim-request",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-confirm-claim-request","noCompensation":true,"next":{"action":"preview-order-change","noCompensation":true,"next":[{"action":"create-claim-items-from-change-actions","noCompensation":false},{"action":"create-return-items-from-change-actions","noCompensation":false,"next":{"action":"confirm-if-items-are-present","noCompensation":true,"next":{"action":"confirm-order-changes","noCompensation":false,"next":{"action":"update-returns","noCompensation":false,"next":{"action":"claim-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"claim-query","next":{"action":"reserve-inventory-step","noCompensation":false,"next":{"action":"claim-return-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"claim-return-shipping-option","next":{"action":"create-return-fulfillment-workflow-as-step","name":"create-return-fulfillment-workflow-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"claim-return-shipping-fulfillment-link","noCompensation":false,"async":false,"compensateAsync":false,"name":"claim-return-shipping-fulfillment-link","next":{"action":"create-or-update-order-payment-collection-as-step","name":"create-or-update-order-payment-collection-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"emit-event-step","noCompensation":false}}}}}}}}}}}]}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-confirm-claim-request","noCompensation":true,"next":{"action":"preview-order-change","noCompensation":true,"next":[{"action":"create-claim-items-from-change-actions","noCompensation":false},{"action":"create-return-items-from-change-actions","noCompensation":false,"next":{"action":"confirm-if-items-are-present","noCompensation":true,"next":{"action":"confirm-order-changes","noCompensation":false,"next":{"action":"update-returns","noCompensation":false,"next":{"action":"claim-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"claim-query","next":{"action":"reserve-inventory-step","noCompensation":false,"next":{"action":"claim-return-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"claim-return-shipping-option","next":{"action":"create-return-fulfillment-workflow-as-step","name":"create-return-fulfillment-workflow-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"claim-return-shipping-fulfillment-link","noCompensation":false,"async":false,"compensateAsync":false,"name":"claim-return-shipping-fulfillment-link"}}}}}}}}}]}}}}}"
}
{
"workflowId": "create-claim-shipping-method",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"fetch-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-option","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-create-claim-shipping-method","noCompensation":true,"next":{"action":"create-order-shipping-methods","noCompensation":false,"next":{"action":"update-order-tax-lines-as-step","name":"update-order-tax-lines-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"create-order-change-actions-as-step","name":"create-order-change-actions-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"fetch-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-option","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}}"
}
{
"workflowId": "remove-claim-shipping-method",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-remove-claim-shipping-method","noCompensation":true,"next":[{"action":"delete-order-change-actions","noCompensation":false},{"action":"delete-order-shipping-methods","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}]}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}"
}
{
"workflowId": "remove-item-claim-add-action",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"remove-item-claim-add-action-validation","noCompensation":true,"next":{"action":"delete-order-change-actions","noCompensation":false,"next":{"action":"updated-order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"updated-order-change-query","next":{"action":"remove-claim-shipping-method-as-step","name":"remove-claim-shipping-method-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"remove-item-claim-add-action-validation","noCompensation":true,"next":{"action":"delete-order-change-actions","noCompensation":false,"next":{"action":"updated-order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"updated-order-change-query"}}}}}}"
}
{
"workflowId": "remove-item-claim-action",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"remove-item-claim-action-validation","noCompensation":true,"next":{"action":"delete-order-change-actions","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}"
}
{
"workflowId": "update-claim-add-item",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"update-claim-add-item-validation","noCompensation":true,"next":{"action":"update-order-change-actions","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}"
}
{
"workflowId": "update-claim-item",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"update-claim-item-validation","noCompensation":true,"next":{"action":"update-order-change-actions","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}"
}
{
"workflowId": "update-claim-shipping-method",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"fetch-shipping-method","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-method","next":{"action":"fetch-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-option","next":{"action":"validate-update-claim-shipping-method","noCompensation":true,"next":[{"action":"update-order-change-actions","noCompensation":false},{"action":"update-order-shopping-methods","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}]}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"fetch-shipping-method","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-method","next":{"action":"fetch-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-option"}}}}"
}
{
"workflowId": "create-order-fulfillment",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"create-fulfillment-validate-order","noCompensation":true,"next":{"action":"get-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-shipping-option","next":{"action":"get-reservations","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-reservations","next":{"action":"create-fulfillment-workflow-as-step","name":"create-fulfillment-workflow-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"adjust-inventory-levels-step","noCompensation":false,"next":[{"action":"register-order-fullfillment","noCompensation":false},{"action":"create-remote-links","noCompensation":false},{"action":"update-reservations-step","noCompensation":false},{"action":"delete-reservations","noCompensation":false},{"action":"emit-event-step","noCompensation":false,"next":{"action":"fulfillmentCreated","noCompensation":false}}]}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"create-fulfillment-validate-order","noCompensation":true,"next":{"action":"get-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-shipping-option","next":{"action":"get-reservations","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-reservations"}}}}"
}
{
"workflowId": "delete-order-payment-collectionworkflow",
"a": "{"action":"payment-collection-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"payment-collection-query","next":{"action":"validate-payment-collection","noCompensation":true,"next":{"action":"remove-remote-links","noCompensation":false}}}",
"b": "{"action":"payment-collection-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"payment-collection-query"}"
}
{
"workflowId": "cancel-begin-order-exchange",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-cancel-begin-order-exchange","noCompensation":true,"next":[{"action":"delete-return","noCompensation":false},{"action":"delete-exchanges","noCompensation":false},{"action":"delete-order-change","noCompensation":false},{"action":"delete-order-shipping-methods","noCompensation":false}]}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}"
}
{
"workflowId": "confirm-exchange-request",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-confirm-exchange-request","noCompensation":true,"next":{"action":"preview-order-change","noCompensation":true,"next":[{"action":"create-exchange-items-from-change-actions","noCompensation":false},{"action":"create-return-items-from-change-actions","noCompensation":false,"next":{"action":"confirm-if-exchange-items-are-present","noCompensation":true,"next":{"action":"confirm-order-changes","noCompensation":false,"next":{"action":"update-returns","noCompensation":false,"next":{"action":"exchange-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"exchange-query","next":{"action":"reserve-inventory-step","noCompensation":false,"next":{"action":"exchange-return-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"exchange-return-shipping-option","next":{"action":"create-return-fulfillment-workflow-as-step","name":"create-return-fulfillment-workflow-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"exchange-return-shipping-fulfillment-link","noCompensation":false,"async":false,"compensateAsync":false,"name":"exchange-return-shipping-fulfillment-link","next":{"action":"create-or-update-order-payment-collection-as-step","name":"create-or-update-order-payment-collection-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"emit-event-step","noCompensation":false}}}}}}}}}}}]}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-confirm-exchange-request","noCompensation":true,"next":{"action":"preview-order-change","noCompensation":true,"next":[{"action":"create-exchange-items-from-change-actions","noCompensation":false},{"action":"create-return-items-from-change-actions","noCompensation":false,"next":{"action":"confirm-if-exchange-items-are-present","noCompensation":true,"next":{"action":"confirm-order-changes","noCompensation":false,"next":{"action":"update-returns","noCompensation":false,"next":{"action":"exchange-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"exchange-query","next":{"action":"reserve-inventory-step","noCompensation":false,"next":{"action":"exchange-return-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"exchange-return-shipping-option","next":{"action":"create-return-fulfillment-workflow-as-step","name":"create-return-fulfillment-workflow-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"exchange-return-shipping-fulfillment-link","noCompensation":false,"async":false,"compensateAsync":false,"name":"exchange-return-shipping-fulfillment-link"}}}}}}}}}]}}}}}"
}
{
"workflowId": "create-exchange-shipping-method",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"fetch-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-option","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-create-exchange-shipping-method","noCompensation":true,"next":{"action":"create-order-shipping-methods","noCompensation":false,"next":{"action":"update-order-tax-lines-as-step","name":"update-order-tax-lines-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"create-order-change-actions-as-step","name":"create-order-change-actions-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"fetch-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-option","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}}"
}
{
"workflowId": "exchange-add-new-item",
"a": "{"action":"exchange-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"exchange-query","next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"exchange-add-new-item-validation","noCompensation":true,"next":{"action":"order-add-line-items-as-step","name":"order-add-line-items-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"update-order-tax-lines-as-step","name":"update-order-tax-lines-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"create-order-change-actions-as-step","name":"create-order-change-actions-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}}}",
"b": "{"action":"exchange-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"exchange-query","next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}"
}
{
"workflowId": "exchange-request-item-return",
"a": "{"action":"exchange-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"exchange-query","next":{"action":"return-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"return-query","next":{"action":"create-returns","noCompensation":false,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","status":["pending","requested"],"next":{"action":"update-order-changes","noCompensation":false,"next":{"action":"exchange-request-item-return-validation","noCompensation":true,"next":{"action":"update-order-exchange","noCompensation":false,"next":{"action":"create-order-change-actions-as-step","name":"create-order-change-actions-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}}}}}",
"b": "{"action":"exchange-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"exchange-query","next":{"action":"return-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"return-query","next":{"action":"create-returns","noCompensation":false,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","status":["pending","requested"]}}}}}"
}
{
"workflowId": "remove-exchange-shipping-method",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-remove-exchange-shipping-method","noCompensation":true,"next":[{"action":"delete-order-change-actions","noCompensation":false},{"action":"delete-order-shipping-methods","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}]}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}"
}
{
"workflowId": "remove-item-exchange-action",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"remove-item-exchange-action-validation","noCompensation":true,"next":{"action":"delete-order-change-actions","noCompensation":false,"next":{"action":"updated-order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"updated-order-change-query","next":{"action":"remove-exchange-shipping-method-as-step","name":"remove-exchange-shipping-method-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"remove-item-exchange-action-validation","noCompensation":true,"next":{"action":"delete-order-change-actions","noCompensation":false,"next":{"action":"updated-order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"updated-order-change-query"}}}}}}"
}
{
"workflowId": "update-exchange-add-item",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"update-exchange-add-item-validation","noCompensation":true,"next":{"action":"update-order-change-actions","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}"
}
{
"workflowId": "update-exchange-shipping-method",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"fetch-shipping-method","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-method","next":{"action":"fetch-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-option","next":{"action":"validate-update-exchange-shipping-method","noCompensation":true,"next":[{"action":"update-order-change-actions","noCompensation":false},{"action":"update-order-shopping-methods","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}]}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"fetch-shipping-method","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-method","next":{"action":"fetch-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-option"}}}}"
}
{
"workflowId": "mark-order-fulfillment-as-delivered-workflow",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-fulfillment-deliverability-validation","noCompensation":true,"next":[{"action":"mark-fulfillment-as-delivered-workflow-as-step","name":"mark-fulfillment-as-delivered-workflow-as-step","async":false,"nested":false,"noCompensation":false},{"action":"register-order-delivery","noCompensation":false,"next":{"action":"emit-event-step","noCompensation":false}}]}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query"}}"
}
{
"workflowId": "cancel-begin-order-edit",
"a": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-cancel-begin-order-edit","noCompensation":true,"next":[{"action":"delete-order-change","noCompensation":false},{"action":"delete-order-shipping-methods","noCompensation":false}]}}}",
"b": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}"
}
{
"workflowId": "confirm-order-edit-request",
"a": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-confirm-order-edit-request","noCompensation":true,"next":{"action":"preview-order-change","noCompensation":true,"next":{"action":"confirm-order-changes","noCompensation":false,"next":{"action":"order-items-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-items-query","next":{"action":"delete-reservations-by-line-items","noCompensation":false,"next":{"action":"reserve-inventory-step","noCompensation":false,"next":{"action":"create-or-update-order-payment-collection-as-step","name":"create-or-update-order-payment-collection-as-step","async":false,"nested":false,"noCompensation":false}}}}}}}}}",
"b": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-confirm-order-edit-request","noCompensation":true,"next":{"action":"preview-order-change","noCompensation":true,"next":{"action":"confirm-order-changes","noCompensation":false,"next":{"action":"order-items-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-items-query"}}}}}}"
}
{
"workflowId": "create-order-edit-shipping-method",
"a": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"fetch-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-option","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"create-order-shipping-methods","noCompensation":false,"next":{"action":"update-order-tax-lines-as-step","name":"update-order-tax-lines-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"create-order-change-actions-as-step","name":"create-order-change-actions-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}}",
"b": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"fetch-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-option","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}"
}
{
"workflowId": "order-edit-add-new-item",
"a": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"order-edit-add-new-item-validation","noCompensation":true,"next":{"action":"order-add-line-items-as-step","name":"order-add-line-items-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"update-order-tax-lines-as-step","name":"update-order-tax-lines-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"create-order-change-actions-as-step","name":"create-order-change-actions-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}}",
"b": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}"
}
{
"workflowId": "order-edit-update-item-quantity",
"a": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"order-edit-update-item-quantity-validation","noCompensation":true,"next":{"action":"create-order-change-actions-as-step","name":"create-order-change-actions-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}",
"b": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}"
}
{
"workflowId": "remove-item-order edit-action",
"a": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"remove-item-order-edit-action-validation","noCompensation":true,"next":{"action":"delete-order-change-actions","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}",
"b": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}"
}
{
"workflowId": "remove-order-edit-shipping-method",
"a": "{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-remove-order-edit-shipping-method","noCompensation":true,"next":[{"action":"delete-order-change-actions","noCompensation":false},{"action":"delete-order-shipping-methods","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}]}}",
"b": "{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}"
}
{
"workflowId": "order-edit-request",
"a": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-order-edit-request","noCompensation":true,"next":{"action":"update-order-changes","noCompensation":false,"next":{"action":"create-or-update-order-payment-collection-as-step","name":"create-or-update-order-payment-collection-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}",
"b": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}"
}
{
"workflowId": "update-order-edit-add-item",
"a": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"update-order-edit-add-item-validation","noCompensation":true,"next":{"action":"update-order-change-actions","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}",
"b": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}"
}
{
"workflowId": "update-order-edit-update-quantity",
"a": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"update-order-edit-update-quantity-validation","noCompensation":true,"next":{"action":"update-order-change-actions","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}",
"b": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}"
}
{
"workflowId": "update-order-edit-shipping-method",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"fetch-shipping-method","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-method","next":{"action":"fetch-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-option","next":{"action":"validate-update-order-edit-shipping-method","noCompensation":true,"next":[{"action":"update-order-change-actions","noCompensation":false},{"action":"update-order-shopping-methods","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}]}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"fetch-shipping-method","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-method","next":{"action":"fetch-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-option"}}}}"
}
{
"workflowId": "begin-receive-return",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"begin-receive-return-validation","noCompensation":true,"next":{"action":"create-order-change","noCompensation":false}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query"}}"
}
{
"workflowId": "cancel-receive-return",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-cancel-return-shipping-method","noCompensation":true,"next":{"action":"delete-order-change","noCompensation":false}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}"
}
{
"workflowId": "cancel-return-request",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-cancel-return-shipping-method","noCompensation":true,"next":[{"action":"delete-return","noCompensation":false},{"action":"delete-order-change","noCompensation":false},{"action":"delete-order-shipping-methods","noCompensation":false}]}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}"
}
{
"workflowId": "confirm-return-receive",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-confirm-return-receive","noCompensation":true,"next":[{"action":"update-returns","noCompensation":false},{"action":"update-return-items","noCompensation":false},{"action":"confirm-order-changes","noCompensation":false},{"action":"adjust-inventory-levels-step","noCompensation":false},{"action":"emit-event-step","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}]}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}"
}
{
"workflowId": "confirm-return-request",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-confirm-return-request","noCompensation":true,"next":{"action":"preview-order-change","noCompensation":true,"next":{"action":"create-return-items-from-change-actions","noCompensation":false,"next":{"action":"confirm-if-return-items-are-present","noCompensation":true,"next":{"action":"return-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"return-shipping-option","next":{"action":"create-return-fulfillment-workflow-as-step","name":"create-return-fulfillment-workflow-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"create-remote-links","noCompensation":false,"next":[{"action":"update-returns","noCompensation":false},{"action":"confirm-order-changes","noCompensation":false},{"action":"emit-event-step","noCompensation":false,"next":{"action":"create-or-update-order-payment-collection-as-step","name":"create-or-update-order-payment-collection-as-step","async":false,"nested":false,"noCompensation":false}}]}}}}}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-confirm-return-request","noCompensation":true,"next":{"action":"preview-order-change","noCompensation":true,"next":{"action":"create-return-items-from-change-actions","noCompensation":false,"next":{"action":"confirm-if-return-items-are-present","noCompensation":true,"next":{"action":"return-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"return-shipping-option"}}}}}}}}"
}
{
"workflowId": "create-complete-return-order",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"create-return-order-validation","noCompensation":true,"next":{"action":"return-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"return-shipping-option","next":{"action":"create-return-fulfillment-workflow-as-step","name":"create-return-fulfillment-workflow-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"create-complete-return","noCompensation":false,"next":{"action":"create-remote-links","noCompensation":false,"next":{"action":"receive-return","noCompensation":false,"next":[{"action":"emit-return-requested-event","noCompensation":false,"async":false,"compensateAsync":false,"name":"emit-return-requested-event"},{"action":"emit-return-received-event","noCompensation":false,"async":false,"compensateAsync":false,"name":"emit-return-received-event"}]}}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"create-return-order-validation","noCompensation":true,"next":{"action":"return-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"return-shipping-option","next":{"action":"create-return-fulfillment-workflow-as-step","name":"create-return-fulfillment-workflow-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"create-complete-return","noCompensation":false,"next":{"action":"create-remote-links","noCompensation":false,"next":{"action":"receive-return","noCompensation":false,"next":{"action":"emit-return-requested-event","noCompensation":false,"async":false,"compensateAsync":false,"name":"emit-return-requested-event","next":{"action":"emit-return-received-event","noCompensation":false,"async":false,"compensateAsync":false,"name":"emit-return-received-event"}}}}}}}}}"
}
{
"workflowId": "create-return-shipping-method",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"fetch-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-option","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-create-return-shipping-method","noCompensation":true,"next":{"action":"create-order-shipping-methods","noCompensation":false,"next":{"action":"update-order-tax-lines-as-step","name":"update-order-tax-lines-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"create-order-change-actions-as-step","name":"create-order-change-actions-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"fetch-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-option","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}}"
}
{
"workflowId": "dismiss-item-return-request",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"dismiss-item-return-request-validation","noCompensation":true,"next":{"action":"create-order-change-actions-as-step","name":"create-order-change-actions-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}"
}
{
"workflowId": "receive-item-return-request",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"receive-item-return-request-validation","noCompensation":true,"next":{"action":"create-order-change-actions-as-step","name":"create-order-change-actions-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}"
}
{
"workflowId": "remove-item-receive-return-action",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"remove-item-receive-return-action-validation","noCompensation":true,"next":{"action":"delete-order-change-actions","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}"
}
{
"workflowId": "remove-return-shipping-method",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-remove-return-shipping-method","noCompensation":true,"next":[{"action":"delete-order-change-actions","noCompensation":false},{"action":"delete-order-shipping-methods","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}]}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}"
}
{
"workflowId": "update-return",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-update-return","noCompensation":true,"next":{"action":"update-returns","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}"
}
{
"workflowId": "remove-item-return-action",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"remove-item-return-action-validation","noCompensation":true,"next":{"action":"delete-order-change-actions","noCompensation":false,"next":{"action":"updated-order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"updated-order-change-query","next":{"action":"remove-return-shipping-method-as-step","name":"remove-return-shipping-method-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"update-return-as-step","name":"update-return-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"remove-item-return-action-validation","noCompensation":true,"next":{"action":"delete-order-change-actions","noCompensation":false,"next":{"action":"updated-order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"updated-order-change-query"}}}}}}"
}
{
"workflowId": "request-item-return",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"request-item-return-validation","noCompensation":true,"next":{"action":"create-order-change-actions-as-step","name":"create-order-change-actions-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}"
}
{
"workflowId": "update-receive-item-return-request",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"update-receive-item-return-request-validation","noCompensation":true,"next":{"action":"update-order-change-actions","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}"
}
{
"workflowId": "update-request-item-return",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"update-request-item-return-validation","noCompensation":true,"next":{"action":"update-order-change-actions","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}}"
}
{
"workflowId": "update-return-shipping-method",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"fetch-shipping-method","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-method","next":{"action":"fetch-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-option","next":{"action":"validate-update-return-shipping-method","noCompensation":true,"next":[{"action":"update-order-change-actions","noCompensation":false},{"action":"update-order-shopping-methods","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}]}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"fetch-shipping-method","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-method","next":{"action":"fetch-shipping-option","noCompensation":true,"async":false,"compensateAsync":false,"name":"fetch-shipping-option"}}}}"
}
{
"workflowId": "request-order-transfer-workflow",
"a": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"customer-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"customer-query","next":{"action":"request-order-transfer-validation","noCompensation":true,"next":{"action":"create-order-change","noCompensation":false,"next":{"action":"create-order-change-actions-as-step","name":"create-order-change-actions-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"update-order-changes","noCompensation":false,"next":{"action":"emit-event-step","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}}}",
"b": "{"action":"use-remote-query","noCompensation":true,"next":{"action":"customer-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"customer-query"}}"
}
{
"workflowId": "accept-order-transfer-workflow",
"a": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"accept-order-transfer-validation","noCompensation":true,"next":{"action":"confirm-order-changes","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}",
"b": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}"
}
{
"workflowId": "cancel-transfer-order-request",
"a": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-cancel-transfer-order-request","noCompensation":true,"next":{"action":"delete-order-change","noCompensation":false}}}}",
"b": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}"
}
{
"workflowId": "decline-transfer-order-request",
"a": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query","next":{"action":"validate-decline-transfer-order-request","noCompensation":true,"next":{"action":"decline-order-change","noCompensation":false}}}}",
"b": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"order-change-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-change-query"}}"
}
{
"workflowId": "update-order-workflow",
"a": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query","next":{"action":"update-order-validation","noCompensation":true,"next":{"action":"update-orders","noCompensation":false,"next":{"action":"register-order-change","noCompensation":false,"next":{"action":"emit-event-step","noCompensation":false,"next":{"action":"preview-order-change","noCompensation":true}}}}}}",
"b": "{"action":"order-query","noCompensation":true,"async":false,"compensateAsync":false,"name":"order-query"}"
}
{
"workflowId": "delete-product-variants",
"a": "{"action":"remove-variant-link-step","noCompensation":false,"async":false,"compensateAsync":false,"name":"remove-variant-link-step","next":{"action":"use-query-graph-step","noCompensation":true,"next":{"action":"delete-inventory-item-workflow-as-step","name":"delete-inventory-item-workflow-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"delete-product-variants","noCompensation":false,"next":{"action":"emit-event-step","noCompensation":false,"next":{"action":"productVariantsDeleted","noCompensation":false}}}}}}",
"b": "{"action":"remove-variant-link-step","noCompensation":false,"async":false,"compensateAsync":false,"name":"remove-variant-link-step"}"
}
{
"workflowId": "delete-products",
"a": "{"action":"get-products","noCompensation":true,"next":{"action":"use-query-graph-step","noCompensation":true,"next":{"action":"delete-inventory-item-workflow-as-step","name":"delete-inventory-item-workflow-as-step","async":false,"nested":false,"noCompensation":false,"next":[{"action":"remove-product-variant-link-step","noCompensation":false,"async":false,"compensateAsync":false,"name":"remove-product-variant-link-step"},{"action":"delete-products","noCompensation":false,"next":{"action":"emit-event-step","noCompensation":false,"next":{"action":"productsDeleted","noCompensation":false}}}]}}}",
"b": "{"action":"get-products","noCompensation":true,"next":{"action":"use-query-graph-step","noCompensation":true,"next":{"action":"delete-inventory-item-workflow-as-step","name":"delete-inventory-item-workflow-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"remove-product-variant-link-step","noCompensation":false,"async":false,"compensateAsync":false,"name":"remove-product-variant-link-step"}}}}"
}
{
"workflowId": "upsert-variant-prices",
"a": "{"action":"remove-variant-link-step","noCompensation":false,"async":false,"compensateAsync":false,"name":"remove-variant-link-step","next":{"action":"use-remote-query","noCompensation":true,"next":{"action":"update-price-sets","noCompensation":false,"next":{"action":"create-price-sets","noCompensation":false,"next":{"action":"create-variant-pricing-link","noCompensation":false}}}}}",
"b": "{"action":"remove-variant-link-step","noCompensation":false,"async":false,"compensateAsync":false,"name":"remove-variant-link-step"}"
}
{
"workflowId": "update-products",
"a": "{"action":"get-previous-products-variants-step","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-previous-products-variants-step","next":{"action":"update-products","noCompensation":false,"next":{"action":"get-current-sales-channel-links-step","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-current-sales-channel-links-step","next":{"action":"get-current-shipping-profile-links-step","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-current-shipping-profile-links-step","next":{"action":"upsert-variant-prices-as-step","name":"upsert-variant-prices-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"delete-sales-channel-links-step","noCompensation":false,"async":false,"compensateAsync":false,"name":"delete-sales-channel-links-step","next":{"action":"delete-shipping-profile-links-step","noCompensation":false,"async":false,"compensateAsync":false,"name":"delete-shipping-profile-links-step","next":[{"action":"create-sales-channel-links-step","noCompensation":false,"async":false,"compensateAsync":false,"name":"create-sales-channel-links-step"},{"action":"create-shipping-profile-links-step","noCompensation":false,"async":false,"compensateAsync":false,"name":"create-shipping-profile-links-step"},{"action":"emit-event-step","noCompensation":false,"next":{"action":"productsUpdated","noCompensation":false}}]}}}}}}}",
"b": "{"action":"get-previous-products-variants-step","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-previous-products-variants-step","next":{"action":"update-products","noCompensation":false,"next":{"action":"get-current-sales-channel-links-step","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-current-sales-channel-links-step","next":{"action":"get-current-shipping-profile-links-step","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-current-shipping-profile-links-step","next":{"action":"upsert-variant-prices-as-step","name":"upsert-variant-prices-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"delete-sales-channel-links-step","noCompensation":false,"async":false,"compensateAsync":false,"name":"delete-sales-channel-links-step","next":{"action":"delete-shipping-profile-links-step","noCompensation":false,"async":false,"compensateAsync":false,"name":"delete-shipping-profile-links-step","next":{"action":"create-sales-channel-links-step","noCompensation":false,"async":false,"compensateAsync":false,"name":"create-sales-channel-links-step","next":{"action":"create-shipping-profile-links-step","noCompensation":false,"async":false,"compensateAsync":false,"name":"create-shipping-profile-links-step"}}}}}}}}}"
}
{
"workflowId": "export-products",
"a": "{"action":"get-all-products","noCompensation":true,"async":true,"compensateAsync":false,"backgroundExecution":true,"next":{"action":"notify-on-failure","noCompensation":false,"next":{"action":"generate-product-csv","noCompensation":false,"next":{"action":"use-remote-query","noCompensation":true,"next":{"action":"send-notifications","noCompensation":true}}}}}",
"b": "{"action":"get-all-products","noCompensation":true,"async":true,"compensateAsync":false,"backgroundExecution":true}"
}
{
"workflowId": "import-products",
"a": "{"action":"parse-product-csv","noCompensation":true,"next":{"action":"group-products-for-batch","noCompensation":true,"next":{"action":"wait-confirmation-product-import","name":"wait-confirmation-product-import","async":true,"timeout":3600,"noCompensation":true,"next":{"action":"notify-on-failure","noCompensation":false,"next":{"action":"batch-products-as-step","name":"batch-products-as-step","async":true,"nested":false,"noCompensation":false,"compensateAsync":false,"backgroundExecution":true,"next":{"action":"send-notifications","noCompensation":true}}}}}}",
"b": "{"action":"parse-product-csv","noCompensation":true,"next":{"action":"group-products-for-batch","noCompensation":true,"next":{"action":"wait-confirmation-product-import","name":"wait-confirmation-product-import","async":true,"timeout":3600,"noCompensation":true,"next":{"action":"notify-on-failure","noCompensation":false,"next":{"action":"batch-products-as-step","name":"batch-products-as-step","async":true,"nested":false,"noCompensation":false,"compensateAsync":false,"backgroundExecution":true}}}}}"
}
{
"workflowId": "update-promotions",
"a": "{"action":"get-promotions","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-promotions","next":{"action":"update-promotions","noCompensation":false,"next":{"action":"update-promotions-status-as-step","name":"update-promotions-status-as-step","async":false,"nested":false,"noCompensation":false,"next":{"action":"promotionsUpdated","noCompensation":false}}}}",
"b": "{"action":"get-promotions","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-promotions"}"
}
{
"workflowId": "update-stock-locations-workflow",
"a": "{"action":"get-stock-location","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-stock-location","next":{"action":"upsert-stock-location-addresses-step","noCompensation":false,"next":{"action":"update-stock-locations-step","noCompensation":false}}}",
"b": "{"action":"get-stock-location","noCompensation":true,"async":false,"compensateAsync":false,"name":"get-stock-location"}"
}
@cortopy can you provide a reproducable repo for this?
thanks @riqwan for looking into this!
I have created this monorepo that reproduces the bug for me. It's a much simplified setup of what I'm buliding. There's a script that sets things up, only thing needed is pnpm and docker compose
Please do let me know if I can help in any other way or guidance on how to find a fix.
I am facing the same issue... I have also renamed all of the steps with .config({name:"another-name"}), because i thought maybe that is the error.... On local it is running fine (with redis and everything), but on prod no railway it is failing.. I tried even with new redis isntance but still the same issue.. Any solution?
Is someone even reading the issues/ trying to fix them?
I'll add myself to the list of people who are encountering this issue.
{"level":"error","message":"An error occurred while registering API Routes. Error: Workflow with id \"create-fulfillment-workflow\" and step definition already exists.","stack":[{"columnNumber":11,"fileName":"/app/.medusa/server/node_modules/@medusajs/medusa/src/loaders/api.ts","functionName":"exports.default","lineNumber":64,"methodName":"default","native":false,"typeName":"exports"},{"columnNumber":3,"fileName":"/app/.medusa/server/node_modules/@medusajs/medusa/src/loaders/index.ts","functionName":"async loadEntrypoints","lineNumber":111,"methodName":null,"native":false,"typeName":null},{"columnNumber":31,"fileName":"/app/.medusa/server/node_modules/@medusajs/medusa/src/loaders/index.ts","functionName":"async exports.default","lineNumber":170,"methodName":"default","native":false,"typeName":"async exports"},{"columnNumber":59,"fileName":"/app/.medusa/server/node_modules/@medusajs/medusa/src/commands/start.ts","functionName":"async internalStart","lineNumber":169,"methodName":null,"native":false,"typeName":null},{"columnNumber":5,"fileName":"/app/.medusa/server/node_modules/@medusajs/medusa/src/commands/start.ts","functionName":"async start","lineNumber":290,"methodName":null,"native":false,"typeName":null}],"timestamp":"2025-04-04 20:15:36"}
Using the guide to implement custom item prices, with some minor tweaks, I am now encountering this issue. Running it locally, it works. Once I deploy, it does not.
Did anyone find any solution? Or we are screwed and we can't deploy
I managed to find a solution by using pnpm's injected dependencies configuration. This worked for me in a similar setup to the reproduction repository I linked above.
I've written a long post explaining my experience with what is likely to be a complex issue.