valueanyما الذي يجب اختباره عادةً ما يكون قالب
casesarrayمطلوب[{ key, operator, value }]على الأقل واحد على الأقل واحد
{ id: "route", type: "switch", config: {
value: "{{steps.classify.output.kind}}",
cases: [
{ key: "billing", operator: "eq", value: "billing" },
{ key: "bug", operator: "eq", value: "bug" },
],
} }
edges: [
{ from: "route", to: "to_finance", branch: "billing" },
{ from: "route", to: "to_support", branch: "bug" },
{ from: "route", to: "to_inbox", branch: "default" },
]{"id": "route", "type": "switch", "config": {
"value": "{{steps.classify.output.kind}}",
"cases": [
{"key": "billing", "operator": "eq", "value": "billing"},
{"key": "bug", "operator": "eq", "value": "bug"},
],
}}
edges = [
{"from": "route", "to": "to_finance", "branch": "billing"},
{"from": "route", "to": "to_support", "branch": "bug"},
{"from": "route", "to": "to_inbox", "branch": "default"},
]ملف
حرف، ثم حروف، أرقام، _ أو -لا يجوز أن يكونوا لا next, true, false أو default( ١ بطرس ٣ : ١ ) وقد لا يتكررون ، فجميع الاربعة يرفضون الا ، لأن كل واحد يجعل الحافة غامضة .
لا يُنظر في
كل حالة تحتاج إلى حافة، وهكذا فإنّه
فبدون هذه الحافة ، سينتهي الركض هناك ، دون كلمة ، السبب نفسه ان الحالة تحتاج الى كلا الفرعين .
المخرجات
{{steps.route.output.branch}} // the case key taken, or "default"
{{steps.route.output.value}}"{{steps.route.output.branch}}" # the case key taken, or "default"
"{{steps.route.output.value}}"أول مزامر
يحاكمون حسب النظام لذا ضع المحددات أولاً