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

<%= render_ttt_menu(__FILE__) %>

<%= description(__FILE__) %>


h3. first run for the tea testing business process

Login as the "reception" user.

Click on the link "launch process", you should be greeted by a list of process definitions that the current user is entitled to launch.

<%= thumbnail("../images/ttt/ttesting02.png", 40, :right) %>If you click view, the process definition (XML) and it's graphical representation will be displayed.

Note that Densha produces automatically a graphical representation for the process definitions, it's done via a javascript library usable outside of Densha.

Hit "launch" for the teatesting_0.2.xml business process.

<%= thumbnail("../images/ttt/run_stores.png", 40, :left) %>
Head to the "stores" screen and there should be a workitem waiting in the "users" store for the "reception" user / participant.

The "stores" page is the entry point for Densha, it details the tasks waiting for the user.

This first workitem is issued for the "reception" user (who launched it). If you launched the business process as the "reception" user, Densha would have immediately brought you to the workitem edition screen to fill the initial entries.

<%= thumbnail("../images/ttt/wi_edition.png", 40, :right) %>
Editing the payload of workitems amounts to editing a dictionary (hash) structure. Keys are mapped to values. The top level keys are String and the keys can be strings or hashes.
This is quite primitive, but further versions of Densha shall enhance that and later in this example, you'll see how to use custom forms.

The image on the right shows the workitem being edited, with some initial data filled by the people at the reception.
They can hit "save" to pause this activity or "proceed" if the data is sufficient and the workitem should resume in the business process instance (on its way to Ted and Tang).

After a few runs of this business process in its first (0.2) version, there are already a few requests coming in :

* the reception guys would like to have an empty form, they don't like to have to type the entry names like "Country" or "Scout" by themselves, they just want to fill in the blanks
* the planning team doesn't want to be bothered with samples that have been rejected ultimately by Takeshi-san
* there is a new tester, Tim who will be coached by Mister Tang, that alone calls for a new version of the business process

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

