The changes have been applied and seem to work fine, the only thing
different now is that you'll need to implement the new boolean method in
the controller 'lastActionWasYes', I left it empty for now

This method returns boolean and the guards check for the String version
of the return value (being the Strings "true" and "false") to decide
which path to take next.

I tried running the app. And it already works remarkably well (apart
from the fact that choosing 'yes' may result in weird behavior because
the controller is not fully implemented yet)

I hope you can implement the rest soon, so we'll have our first real
running bpm4struts app :-)

Thanks
Wouter.

> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:andromda-devel-
> [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: Wednesday, March 24, 2004 2:48 PM
> To: [EMAIL PROTECTED]@sourceforge.net
> Cc: [EMAIL PROTECTED]
> Subject: AW: [Andromda-devel] Quiz running better but not perfectly
> 
> Hi Wouter,
> 
> 
> 
> the difficulty for me was that a transition trigger was already there
but
> in order to model a choice, I needed a second trigger on the same
> transition which is illegal in UML. But let me explain the situation
> first. Look at the class diagram of the business layer:
> 
> 
> 
> * The business layer contains a binary decision tree, made out of
> DecisionItems.
> 
> * Each DecisionItem is able to produce a prompt for the user and is
able
> to link to two other DecisionItems.
> 
> * There is a root DecisionItem (has the isRoot attribute set to true).
> 
> * In the web app, there is always a "last" or "current" decision item.
> 
> 
> 
> Now, the flow should be as follows:
> 
> 
> 
> 1) The system asks the user, using the prompt of the current
> DecisionItem.
> 
> 2) If the user answers "yes" or "no" to a prompt, the system proceeds
to
> the next Decision item via the "yesSuccessor" or "noSuccessor" link of
the
> current DecisionItem.
> 
> 4) If the successor link is not null, the system gets the next
> DecisionItem and repeats step 1.
> 
> 5) If the sucessor link to be traversed is null, then winner =
(lastAnswer
> == "yes" ? system : user).
> 



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Andromda-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to