docs: small fixes to workflow constraints chapter (#11421)
* docs: small fixes to workflow constraints chapter * add links to plugins in nav
This commit is contained in:
@@ -6,6 +6,10 @@ export const metadata = {
|
||||
|
||||
This chapter lists constraints of defining a workflow or its steps.
|
||||
|
||||
Medusa creates an internal representation of the workflow definition you pass to `createWorkflow` to track and store its steps. At that point, variables in the workflow don't have any values. They only do when you execute the workflow.
|
||||
|
||||
This creates restrictions related to variable manipulations, using if-conditions, and other constraints. This chapter lists these constraints and provides their alternatives.
|
||||
|
||||
## Workflow Constraints
|
||||
|
||||
### No Async Functions
|
||||
|
||||
@@ -36,7 +36,7 @@ export const generatedEditDates = {
|
||||
"app/learn/fundamentals/modules/module-link-directions/page.mdx": "2024-07-24T09:16:01+02:00",
|
||||
"app/learn/fundamentals/admin/page.mdx": "2024-10-23T07:08:55.898Z",
|
||||
"app/learn/fundamentals/workflows/long-running-workflow/page.mdx": "2025-01-27T08:45:19.028Z",
|
||||
"app/learn/fundamentals/workflows/constructor-constraints/page.mdx": "2024-12-12T15:09:41.179Z",
|
||||
"app/learn/fundamentals/workflows/constructor-constraints/page.mdx": "2025-02-12T13:55:33.437Z",
|
||||
"app/learn/fundamentals/data-models/write-migration/page.mdx": "2024-11-11T15:27:59.794Z",
|
||||
"app/learn/fundamentals/data-models/manage-relationships/page.mdx": "2025-02-11T15:53:12.541Z",
|
||||
"app/learn/fundamentals/modules/remote-query/page.mdx": "2024-07-21T21:20:24+02:00",
|
||||
|
||||
@@ -229,9 +229,9 @@ export const generatedSidebar = [
|
||||
"isPathHref": true,
|
||||
"type": "link",
|
||||
"path": "/learn/fundamentals/modules/modules-directory-structure",
|
||||
"title": "Modules Directory Structure",
|
||||
"title": "Directory Structure",
|
||||
"children": [],
|
||||
"chapterTitle": "3.2.1. Modules Directory Structure"
|
||||
"chapterTitle": "3.2.1. Directory Structure"
|
||||
},
|
||||
{
|
||||
"loaded": true,
|
||||
@@ -588,6 +588,15 @@ export const generatedSidebar = [
|
||||
"path": "/learn/fundamentals/workflows",
|
||||
"title": "Workflows",
|
||||
"children": [
|
||||
{
|
||||
"loaded": true,
|
||||
"isPathHref": true,
|
||||
"type": "link",
|
||||
"path": "/learn/fundamentals/workflows/constructor-constraints",
|
||||
"title": "Constructor Constraints",
|
||||
"children": [],
|
||||
"chapterTitle": "3.6.1. Constructor Constraints"
|
||||
},
|
||||
{
|
||||
"loaded": true,
|
||||
"isPathHref": true,
|
||||
@@ -595,7 +604,7 @@ export const generatedSidebar = [
|
||||
"path": "/learn/fundamentals/workflows/variable-manipulation",
|
||||
"title": "Transform Variables",
|
||||
"children": [],
|
||||
"chapterTitle": "3.6.1. Transform Variables"
|
||||
"chapterTitle": "3.6.2. Transform Variables"
|
||||
},
|
||||
{
|
||||
"loaded": true,
|
||||
@@ -604,16 +613,7 @@ export const generatedSidebar = [
|
||||
"path": "/learn/fundamentals/workflows/conditions",
|
||||
"title": "When-Then Conditions",
|
||||
"children": [],
|
||||
"chapterTitle": "3.6.2. When-Then Conditions"
|
||||
},
|
||||
{
|
||||
"loaded": true,
|
||||
"isPathHref": true,
|
||||
"type": "link",
|
||||
"path": "/learn/fundamentals/workflows/constructor-constraints",
|
||||
"title": "Constructor Constraints",
|
||||
"children": [],
|
||||
"chapterTitle": "3.6.3. Constructor Constraints"
|
||||
"chapterTitle": "3.6.3. When-Then Conditions"
|
||||
},
|
||||
{
|
||||
"loaded": true,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -135,7 +135,7 @@ export const sidebar = sidebarAttachHrefCommonOptions([
|
||||
{
|
||||
type: "link",
|
||||
path: "/learn/fundamentals/modules/modules-directory-structure",
|
||||
title: "Modules Directory Structure",
|
||||
title: "Directory Structure",
|
||||
},
|
||||
{
|
||||
type: "link",
|
||||
@@ -340,6 +340,11 @@ export const sidebar = sidebarAttachHrefCommonOptions([
|
||||
path: "/learn/fundamentals/workflows",
|
||||
title: "Workflows",
|
||||
children: [
|
||||
{
|
||||
type: "link",
|
||||
path: "/learn/fundamentals/workflows/constructor-constraints",
|
||||
title: "Constructor Constraints",
|
||||
},
|
||||
{
|
||||
type: "link",
|
||||
path: "/learn/fundamentals/workflows/variable-manipulation",
|
||||
@@ -350,11 +355,6 @@ export const sidebar = sidebarAttachHrefCommonOptions([
|
||||
path: "/learn/fundamentals/workflows/conditions",
|
||||
title: "When-Then Conditions",
|
||||
},
|
||||
{
|
||||
type: "link",
|
||||
path: "/learn/fundamentals/workflows/constructor-constraints",
|
||||
title: "Constructor Constraints",
|
||||
},
|
||||
{
|
||||
type: "link",
|
||||
path: "/learn/fundamentals/workflows/compensation-function",
|
||||
|
||||
@@ -47,6 +47,11 @@ export const navDropdownItems: NavigationItem[] = [
|
||||
title: "Recipes",
|
||||
link: "/resources/recipes",
|
||||
},
|
||||
{
|
||||
type: "link",
|
||||
title: "Plugin Guides",
|
||||
link: "/resources/plugins",
|
||||
},
|
||||
{
|
||||
type: "divider",
|
||||
},
|
||||
@@ -146,7 +151,9 @@ export const navDropdownItems: NavigationItem[] = [
|
||||
link: "/learn/fundamentals/admin",
|
||||
},
|
||||
{
|
||||
type: "divider",
|
||||
type: "link",
|
||||
title: "Plugins",
|
||||
link: "/learn/fundamentals/plugins",
|
||||
},
|
||||
{
|
||||
type: "link",
|
||||
|
||||
Reference in New Issue
Block a user