<!-- demonstrating parallel and sequential actions -->

<actionList order="parallel" endCondition="all food cooked">

  <!-- meat and potatoes are cooked in parallel -->

  <actionList title="meat">

    <action title="cook" endCondition="cooked">

      <p>Roast meat</p>

    </action>

    <action><p>Keep warm in oven</p></action>

  </actionList>

  <actionList title="vegetables">

    <actionList title="cookVeg" endCondition="cooked">

      <action title="boil water" endCondition="water boiling">

        <p>Heat water</p>

      </action>

      <action title="cook" endCondition="potatoes cooked">

        <p>Cook potatoes</p>

      </action>

    </actionList>

    <action><p>Keep warm in oven</p></action>

  </actionList>

</actionList>

