<woml> | Document root | Classifies one workflow or reusable definition. |
<imports> | <woml> | Contains local module imports. |
<module> | <imports> | Imports .js, .ts, or reusable .woml source. |
<props> / <prop> | Reusable document | Declares a reusable definition's public props. |
<workflow> | <woml> | Defines one executable workflow. |
<config> | <workflow> | Defines runtime concurrency, rate, timeout, and queue policy. |
<lifecycle> | Workflow or reusable definition | Contains observational lifecycle hooks. |
<triggers> | <workflow> | Contains one or more workflow triggers. |
<manual> | <triggers> | Creates runs from keyboard input. |
<webhook> | <triggers> | Creates runs from HTTP requests. |
<schedule> | <triggers> | Creates runs from a cron schedule. |
<interval> | <triggers> | Creates runs on a fixed time grid. |
<event> | <triggers> | Subscribes to a named event. |
<slack> | Triggers or <notify> | Receives Slack messages or delivers notifications. |
<telegram> | Triggers or <notify> | Receives Telegram messages or delivers notifications. |
<discord> | Triggers or <notify> | Receives Discord messages or delivers notifications. |
<whatsapp> | Triggers or <notify> | Receives signed WhatsApp callbacks or delivers templates. |
<schema> | Webhook or event | Contains inline JSON Schema Draft 2020-12. |
<steps> | <workflow> | Contains the ordered business flow. |
<step> | A flow container or reusable root | Defines one executable operation or reusable step body. |
<script> | Step, lifecycle hook, or provider | Runs raw asynchronous JavaScript. |
<parallel> | Flow container | Runs direct child steps concurrently and joins them. |
<choose> | Flow container | Routes on strict boolean conditions. |
<when> / <otherwise> | <choose> | Define ordered conditional routes. |
<result> | Choice, switch, or relevant route arm | Publishes a stable route result. |
<switch> | Flow container | Routes an exact string to one case. |
<case> / <default> | <switch> | Define exact-string routes. |
<fork> | Flow container | Starts concurrent multi-step branches. |
<branch> | <fork> | Defines one sequential fork-owned route. |
<approval> | Flow container | Waits durably for approve/reject or timeout. |
<notify> | Approval or lifecycle hook | Delivers actionable or informational messages. |
<when-approved> / <when-rejected> | <approval> | Define approval continuations. |
<provider> | Reusable root | Defines a custom notification transport. |