From 79fce5659c5947cffdc02487a17c0c55212e81e3 Mon Sep 17 00:00:00 2001 From: Huawei Date: Wed, 15 Jul 2026 15:20:27 +0000 Subject: [PATCH] docs: complete workflow.yaml quick reference --- suite-developer/MEMORY.md | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/suite-developer/MEMORY.md b/suite-developer/MEMORY.md index c94e178..7f20d68 100644 --- a/suite-developer/MEMORY.md +++ b/suite-developer/MEMORY.md @@ -15,25 +15,45 @@ ## Workflow.yaml 核心规则 -### 步骤定义 +### 完整结构 ```yaml +name: 套件名称 +description: 功能描述 +version: 1.0.0 +author: 作者 +tags: [标签1] +category: 业务分类 + +params: + input_path: + type: string + required: true + desc: 输入文件路径 + +base_image: gis-base:latest + steps: - - id: my-step - name: 我的步骤 - script_id: run # ✅ script_id 优先 + - id: step1 + name: 步骤1 + script_id: run params: - input: $params.input_path # ✅ 使用 $params.xxx + input: $params.input_path ``` +### 引用语法 + +| 语法 | 说明 | 示例 | +|------|------|------| +| `$params.xxx` | 引用套件输入参数 | `$params.input_path` | +| `$steps.step_id.output_name` | 引用前一步骤输出 | `$steps.step1.result_path` | + ### 常见错误 | ❌ 错误 | ✅ 正确 | |---------|--------| | `script: run.py` | `script_id: run` | -| `script: run` | `script_id: run` | | `params_mapping: {...}` | `params: {...}` | -| `$params.xxx` | `$params.xxx` | | `$inputs.xxx` | `$params.xxx` | ### 跨步骤文件共享