Hi,
I tried to create a graphic. Personally my favorite is a table edit where we can store data if we try to change the state.
Example 1
If I edit a new/pending request then I copy the request to table edit and show the form. If the form returns then I check that the data in request and edit table are identical, change the data in the request table and remove the entry in the edit table.
Example 2
If we want to approve a pending request then we copy the request to the edit table and start voting. If the voting completed successfully then we check that the edit and request table contains the same data (a later edit stops the voting), approve the request and remove the entry in the edit table.
The reason for the edit entry can be stored in the edit table to avoid confusions (e.g. if a deletion and an approval are on the way at the same time). The reason can be for example the planned next state.
Example 1 pending --> this is a normal edit
Example 2 approved --> voting is on the way
I attached the graphic incl. the source file (*.dia).
Michael -- _______________________________________________________________
Michael Bell Humboldt-Universitaet zu Berlin
Tel.: +49 (0)30-2093 2482 ZE Computer- und Medienservice Fax: +49 (0)30-2093 2704 Unter den Linden 6 [EMAIL PROTECTED] D-10099 Berlin _______________________________________________________________
voting.dia
Description: application/dia-diagram
<<inline: voting.jpeg>>