behaves
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
behaves
Section titled “behaves”Section: the machine’s behavior — the steps it executes
Children
Section titled “Children”includesruntimelifecycleschedulesflowflowsask_usingask_fromask_ofcomputedeciderecallrememberpublishlaunchwait_foron_failuretogethernativefor_eachwhileuntilmatchsavequeryrungoto
Translations
Section titled “Translations”- en: behaves
- de: verhält sich / verhaelt sich
- es: se comporta / comporta
- fr: se comporte / comporte
- ja: 振る舞い / 振る舞う
- ko: 동작
- zh: 行为
Example — A simple decision
Section titled “Example — A simple decision”Checks an order total and decides whether it needs a human to look at it.
machine order_check accepts total as number, is required responds with approved as boolean reason as text behaves decide review when input.total > 1000 {approved: false, reason: "needs review"} otherwise {approved: true, reason: "auto approved"} verifies test "large orders need review" given {total: 5000} expect {approved: false}