Skip to content

Commit c5d49c6

Browse files
authored
docs: small fixes to workflow constraints chapter (medusajs#11421)
* docs: small fixes to workflow constraints chapter * add links to plugins in nav
1 parent 2227664 commit c5d49c6

File tree

6 files changed

+13862
-13847
lines changed

6 files changed

+13862
-13847
lines changed

www/apps/book/app/learn/fundamentals/workflows/constructor-constraints/page.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ export const metadata = {
66

77
This chapter lists constraints of defining a workflow or its steps.
88

9+
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.
10+
11+
This creates restrictions related to variable manipulations, using if-conditions, and other constraints. This chapter lists these constraints and provides their alternatives.
12+
913
## Workflow Constraints
1014

1115
### No Async Functions

www/apps/book/generated/edit-dates.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const generatedEditDates = {
3636
"app/learn/fundamentals/modules/module-link-directions/page.mdx": "2024-07-24T09:16:01+02:00",
3737
"app/learn/fundamentals/admin/page.mdx": "2024-10-23T07:08:55.898Z",
3838
"app/learn/fundamentals/workflows/long-running-workflow/page.mdx": "2025-01-27T08:45:19.028Z",
39-
"app/learn/fundamentals/workflows/constructor-constraints/page.mdx": "2024-12-12T15:09:41.179Z",
39+
"app/learn/fundamentals/workflows/constructor-constraints/page.mdx": "2025-02-12T13:55:33.437Z",
4040
"app/learn/fundamentals/data-models/write-migration/page.mdx": "2024-11-11T15:27:59.794Z",
4141
"app/learn/fundamentals/data-models/manage-relationships/page.mdx": "2025-02-11T15:53:12.541Z",
4242
"app/learn/fundamentals/modules/remote-query/page.mdx": "2024-07-21T21:20:24+02:00",

www/apps/book/generated/sidebar.mjs

+11-11
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ export const generatedSidebar = [
229229
"isPathHref": true,
230230
"type": "link",
231231
"path": "/learn/fundamentals/modules/modules-directory-structure",
232-
"title": "Modules Directory Structure",
232+
"title": "Directory Structure",
233233
"children": [],
234-
"chapterTitle": "3.2.1. Modules Directory Structure"
234+
"chapterTitle": "3.2.1. Directory Structure"
235235
},
236236
{
237237
"loaded": true,
@@ -592,28 +592,28 @@ export const generatedSidebar = [
592592
"loaded": true,
593593
"isPathHref": true,
594594
"type": "link",
595-
"path": "/learn/fundamentals/workflows/variable-manipulation",
596-
"title": "Transform Variables",
595+
"path": "/learn/fundamentals/workflows/constructor-constraints",
596+
"title": "Constructor Constraints",
597597
"children": [],
598-
"chapterTitle": "3.6.1. Transform Variables"
598+
"chapterTitle": "3.6.1. Constructor Constraints"
599599
},
600600
{
601601
"loaded": true,
602602
"isPathHref": true,
603603
"type": "link",
604-
"path": "/learn/fundamentals/workflows/conditions",
605-
"title": "When-Then Conditions",
604+
"path": "/learn/fundamentals/workflows/variable-manipulation",
605+
"title": "Transform Variables",
606606
"children": [],
607-
"chapterTitle": "3.6.2. When-Then Conditions"
607+
"chapterTitle": "3.6.2. Transform Variables"
608608
},
609609
{
610610
"loaded": true,
611611
"isPathHref": true,
612612
"type": "link",
613-
"path": "/learn/fundamentals/workflows/constructor-constraints",
614-
"title": "Constructor Constraints",
613+
"path": "/learn/fundamentals/workflows/conditions",
614+
"title": "When-Then Conditions",
615615
"children": [],
616-
"chapterTitle": "3.6.3. Constructor Constraints"
616+
"chapterTitle": "3.6.3. When-Then Conditions"
617617
},
618618
{
619619
"loaded": true,

0 commit comments

Comments
 (0)