From 36a08ac1334bc08f39c7ddcf6fb270bb19fb3700 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Thu, 23 Jan 2025 19:29:59 +0200 Subject: [PATCH] docs: clarify condition / variable manipulation restriction for workflows and steps (#11125) --- .../app/learn/fundamentals/workflows/conditions/page.mdx | 6 ++++++ .../fundamentals/workflows/variable-manipulation/page.mdx | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/www/apps/book/app/learn/fundamentals/workflows/conditions/page.mdx b/www/apps/book/app/learn/fundamentals/workflows/conditions/page.mdx index 2398d441cb..c40f3c765f 100644 --- a/www/apps/book/app/learn/fundamentals/workflows/conditions/page.mdx +++ b/www/apps/book/app/learn/fundamentals/workflows/conditions/page.mdx @@ -14,6 +14,12 @@ So, you can't use an if-condition that checks a variable's value, as the conditi Instead, use when-then from the Workflows SDK. It allows you to perform steps in a workflow only if a condition that you specify is satisfied. + + +Restrictions for conditions is only applicable in a workflow's definition. You can still use if-conditions in your step's code. + + + --- ## How to use When-Then? diff --git a/www/apps/book/app/learn/fundamentals/workflows/variable-manipulation/page.mdx b/www/apps/book/app/learn/fundamentals/workflows/variable-manipulation/page.mdx index a9ae233f36..48b1526ed1 100644 --- a/www/apps/book/app/learn/fundamentals/workflows/variable-manipulation/page.mdx +++ b/www/apps/book/app/learn/fundamentals/workflows/variable-manipulation/page.mdx @@ -16,6 +16,12 @@ So, you can only pass variables as parameters to steps. But, in a workflow, you Instead, use `transform` from the Workflows SDK. + + +Restrictions for variable manipulation is only applicable in a workflow's definition. You can still manipulate variables in your step's code. + + + --- ## What is the transform Utility?