<woml>

<woml> is the required root of every WOML document. It classifies one file as either a runnable workflow, a reusable step, or a reusable notification provider.

Why use it

Use it to give the compiler one unambiguous document boundary and profile. This lets WOML validate imports, workflow structure, and reusable definitions before anything can run.

Common use cases

  • Create a runnable workflow file.
  • Define a reusable durable step.
  • Define a reusable notification provider.

Syntax

WOML
<woml>
  <workflow id="process-order">
    <steps>
      <step id="process">
        <script>return { processed: true };</script>
      </step>
    </steps>
  </workflow>
</woml>

Rules and behavior

  • It accepts no attributes.
  • It may contain optional <imports> followed by exactly one runnable workflow or reusable definition.
  • A file cannot mix document profiles.