Preview what one sub-workflow entry would decide for a document.
POST/api/v1/spawn-entries/previewworkflows:read
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
The builder's Test button: runs one spawn entry's enabled_when, count and template selection against a document you can read, and starts nothing. For template authors; needs Test Workflow Templates. A template the entry names that you cannot see is refused as not found, as the Portal does, so the preview never shows a template hidden by template-group security. An entry the step would refuse is 422 with the step's own message.
| スコープ | workflows:read |
| 非同期 | いいえ |
| MCP ツール | preview_spawn_entries |
| Portal の権限 | test_workflow_templates |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
Docwize-Version | header | string (date) | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | SpawnEntryPreviewCreateInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json SpawnEntryPreview |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | 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 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
SpawnEntryPreview
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
document_id | string | 必須 | |
is_enabled | boolean | 必須 | The entry's enabled_when result; an entry whose condition has nothing to evaluate is enabled. |
preview | object | 必須 | format spawn_selection_preview, format_version 1: the Portal's builder preview as it is. It holds enabled, count (the units counted, the children planned and unmatched), units (the first units, or the one with row_key, each with its row, the row filter's verdict and the template selection: override, from_field, rules, the applicable pool's ranking, the root and version chosen) and failure (why a real run would fail). Its identifiers are the Portal's own numbers. |
spawn_entry_id | string | 必須 |
SpawnEntryPreviewCreateInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
document_id | string | 必須 | The document to preview the entry against, as the parent's document. You must be able to read it. |
entry | object | 必須 | format spawn_entry, format_version 1: one entry as a group-mode Sub Workflow step stores it in its spawn_entries setting (id, name, enabled_when, count, template_source and its options, child_document ...). |
row_key | string または null | 任意 | Preview only the grid row (its ownid) or attachment (its document id) with this key. |
start_inputs | SpawnEntryPreviewStartInputInput の配列 | 任意 | The parent's start-input values, which from_field and override read. |
SpawnEntryPreviewStartInputInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
node_id | string | 必須 | The start input (its node_id from get_workflow_template_start_inputs). |
value | string または null | 任意 | The input's value. Give this or values, not both. |
values | string の配列 | 任意 | An input with several values. Give this or value, not both. |