implements
Esta página aún no está disponible en tu idioma.
implements
Section: the machine’s behavior — the steps it executes
Children
runtimelifecycleschedulesflowflowsask_usingask_fromask_ofcomputedeciderecallrememberpublishlaunchwait_foron_failuretogetherfor_eachwhileuntilmatchsavequeryrungoto
Translations
- es: implementa
- fr: implémenteimplemente
- en: implements
- de: implementiert
- ja: 実装
- zh: 实现
- ko: 구현
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 implements 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}