
h2. The "Tea Testing Team" example (<%= extract_index(__FILE__) + 1 %> / <%= TITLES.size %>)

<%= render_ttt_menu(__FILE__) %>

<%= description(__FILE__) %>


h3. document or program ?

Until now, the business process was defined in an XML document. Maybe you'd like to switch away from XML and have less brackets. You can use the interchangeable notation in Ruby for the process definitions.

The process thus becomes :

#:code#ruby#
class TeaTesting03 < OpenWFE::ProcessDefinition
    description "TeaTestingTeam version 0.3"
    sequence do
        reception
        concurrence do
            ted
            tang
            sequence do
                tim
                tang
            end
        end
        takeshi
        _cancel_process :if => "${f:takeshi_appreciation} == bad"
        planning
    end
end
#:code#


<%= render_next_page(__FILE__) %>
<%= render_questions %>

