maestro
latest
false
- はじめに
- 基本情報
- BPMN を使用したプロセス モデリング
- ケース管理を使用したプロセス モデリング
- Process modeling with Flow
- 基本情報
- 中心となる概念
- Node reference
- Build guides
- ベスト プラクティス
- 参照
- プロセスの実装
- プロセスの操作
- プロセスの監視
- プロセスの最適化
- 参考情報
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。
新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。
Maestro ユーザー ガイド
機能
Splits a process into two paths based on a JavaScript true/false condition.
Configuration reference
| フィールド | Required | 既定 (Default) | 説明 |
|---|---|---|---|
| 式 | はい | なし | JavaScript expression that evaluates to a boolean. Access upstream output with $vars.<nodeName>.<property>. |
| True branch label | いいえ | True | Label shown on the true/yes output handle. |
| False branch label | いいえ | False | Label shown on the false/no output handle. |
Writing condition expressions
Conditions use the same JavaScript environment as the Script node:
// Simple comparison
$vars.httpRequest1.output.statusCode === 200
// Multiple conditions
$vars.data.status === "approved" && $vars.data.amount > 1000
// Null check
$vars.script1.output != null
// String check
$vars.user.role === "admin"
// Simple comparison
$vars.httpRequest1.output.statusCode === 200
// Multiple conditions
$vars.data.status === "approved" && $vars.data.amount > 1000
// Null check
$vars.script1.output != null
// String check
$vars.user.role === "admin"
The expression accepts any JavaScript value — it doesn't need to be a strict boolean. Any truthy value takes the true branch; any falsy value takes the false branch.
例
Example 1 — Branch on HTTP status code
Expression: $vars.httpRequest1.output.statusCode === 200
- True → process the response
- False → handle the error
Example 2 — Approval gate
Expression: $vars.reviewForm1.output.approved === true
- True → continue process
- False → notify requester of rejection
Example 3 — Null guard
Expression: $vars.fetchUser1.output != null
- True → proceed with user data
- False → handle missing user
When to use this vs Switch
| Use Decision when... | Use Switch when... |
|---|---|
| You have exactly two outcomes (yes/no, pass/fail, approved/rejected) | You have three or more outcomes |
| The condition is a single boolean expression | You're matching a value against multiple cases |
関連ページ
- Switch node — for three or more branches
- Variables and data flow —
$varssyntax and expression patterns - Error handling — handling failures vs conditional branching