List the sub-workflow groups of a workflow.
GET/api/v1/workflows/{workflow_id}/spawn-groupsworkflows:read
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
The groups its Sub Workflow steps started, as the Inbox's Sub-workflows panel shows them: each with its step, status, child_counts by status, deadline, the step's entries, and can_be_managed_by_caller. Ordered by workflow_item_id, then started_at (oldest first); no other order is offered. Needs View Workflow Spawn Groups and a workflow you can see; empty while the company has no groups. get_workflow's items say which item a group belongs to.
| スコープ | workflows:read |
| 非同期 | いいえ |
| MCP ツール | list_workflow_spawn_groups |
| Portal の権限 | view_workflow_spawn_groups |
| ページング | keyset |
| 既定の並び順 | workflow_item_id,started_at |
| 並べ替えに使えるフィールド | workflow_item_id, started_at, spawn_group_id |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
workflow_id | path | string | 必須 | |
limit | query | integer | 任意 | 既定値: 50; ≥ 1 |
cursor | query | string | 任意 | |
sort | query | string | 任意 | Comma-separated sort fields, - for descending. |
Docwize-Version | header | string (date) | 任意 | |
If-None-Match | header | string | 任意 | Answers 304 when the representation is unchanged (resources that publish an ETag). |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json object |
304 | Not modified (If-None-Match matched the ETag). | |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
410 | cursor_expired | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | invalid_cursor, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
200 の本文
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
items | SpawnGroup の配列 | 必須 | |
next_cursor | string または null | 必須 | |
warnings | object の配列 | 必須 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
SpawnEntry
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
name | string | 必須 | |
spawn_entry_id | string | 必須 |
SpawnGroup
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
attempt | integer | 必須 | Which run of the step on the item this group is, from 1. ≥ -2147483648; ≤ 2147483647 |
can_be_managed_by_caller | boolean | 必須 | The caller starts the parent, or holds Manage Other Users Workflow Spawn Groups: they may cancel, force-complete and Proceed now, each with its own permission. |
can_children_be_opened_by_caller | boolean | 必須 | The caller may open any child: they may manage the group, or hold View All Workflows. |
child_counts | SpawnGroupChildCounts | 必須 | |
collect_node_run_id | string または null | 必須 | The Collect step's run while it waits for the group or runs a pass; null otherwise. |
completed_at | string (date-time) または null | 必須 | When the group was completed or cancelled; null while it is not. |
deadline_at | string (date-time) または null | 必須 | When the group's children time out; null without a deadline. |
entries | SpawnEntry の配列 または null | 必須 | The step's entries by spawn_entry_id; null when the step's settings cannot be read (the step was deleted, or its settings were edited and no longer parse). |
expected_count | integer または null | 必須 | How many children the group plans; null until planned. |
has_collect_arrived | boolean | 必須 | The group is bound to its Collect step: the step has arrived on the parent item. |
spawn_group_id | string | 必須 | |
spawn_node_id | string | 必須 | The Sub Workflow step (its node_id) that started the group. |
spawn_node_label | string または null | 必須 | The step's label; null when the step was deleted from the template. |
started_at | string (date-time) または null | 必須 | When the group was opened. |
status | string | 必須 | planning, spawning, open, collecting, collected, completed or cancelled (open enum). Force-complete takes a group that is planning, spawning or open; Proceed now only one that is open. |
workflow_id | string | 必須 | The parent workflow. |
workflow_item_id | string | 必須 | The parent's item the Sub Workflow step ran on. |
SpawnGroupChildCounts
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cancelled | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
completed | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
completed_late | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
failed | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
pending | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
running | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
starting | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
timed_out | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |