From 50efa30c2e30ed12a96b9d420f8552f3b40a292d Mon Sep 17 00:00:00 2001 From: liivw <164842155+liivw@users.noreply.github.com> Date: Mon, 14 Oct 2024 16:27:58 +0800 Subject: [PATCH] Update Update Task ref --- docs/reference-docs/operators/switch.md | 2 +- docs/reference-docs/system-tasks/update-task.md | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/reference-docs/operators/switch.md b/docs/reference-docs/operators/switch.md index 34134c23..c667ec00 100644 --- a/docs/reference-docs/operators/switch.md +++ b/docs/reference-docs/operators/switch.md @@ -11,7 +11,7 @@ The Switch task is used for conditional branching logic. It represents if...then A Switch task evaluates an expression, either a simple input parameter key or a complex JavaScript expression, and matches the expression output with the name of each switch case. The appropriate tasks are executed based on the matching branch, which contains a sequence of tasks. The default branch will be executed if no matching branches are found. -### Task parameters +## Task parameters Configure these parameters for the Switch task. diff --git a/docs/reference-docs/system-tasks/update-task.md b/docs/reference-docs/system-tasks/update-task.md index 4b8fa51f..654d2a22 100644 --- a/docs/reference-docs/system-tasks/update-task.md +++ b/docs/reference-docs/system-tasks/update-task.md @@ -9,10 +9,9 @@ import TabItem from '@theme/TabItem'; The Update Task is used to update the status of other tasks. The user should have access to the task being updated. -The Update Task can update the status of a task in two ways: - - - **Using the workflow ID and the reference name**—This method updates the task status by specifying the workflow execution ID and the task's reference name. - - **Using the task execution ID**—This method updates the task status directly by specifying the task's execution ID. +The status of a task can be updated in two ways: + - **Using the workflow ID and the reference name**—Update the task status by specifying the workflow execution ID and the task's reference name. + - **Using the task execution ID**—Update the task status by specifying the task's execution ID. The task can be updated only if the workflow is in “RUNNING” status. @@ -23,7 +22,7 @@ Configure these parameters for the Update Task. | Parameter | Description | Required/Optional | | --------- | ----------- | ----------------- | | inputParameters.**taskStatus** | The status of the task to be updated. Supported values: