----- Original Message ----- 
From: "Chad Brandon" <[EMAIL PROTECTED]>
To: "Matthias Bohlen" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>; "'Matthias Bohlen'" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, March 27, 2004 12:18 PM
Subject: Re: [Andromda-devel] RE: Animal Quiz runs now!


>
> ----- Original Message ----- 
> From: "Matthias Bohlen" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; "'Matthias Bohlen'"
> <[EMAIL PROTECTED]>; "'"Chad Brandon"'" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Saturday, March 27, 2004 8:13 AM
> Subject: RE: [Andromda-devel] RE: Animal Quiz runs now!
>
>
> The return types problem:
>
> * The UML class "DecisionService" has a method addAnimalWithQuestion()
> that has an unspecified return type.
> * When I generate, the return type suddenly becomes "VODecisionItem" and
> this forces me to return null at the end of the method.
>
> Maybe, we should define datataypes::void and let the method return that
> type?
>
> --- I do think you should define the return type as void as a best
practice
> since the method returns void.  But the method
>      should not be generated with a return type if you don't specify one,
so
> I'll take a look.

--- The reason the return type was "VODecisionItem", was because with
velocity, if you define a variable in a loop and the next one is null, the
previous
definition will be used, so since the previous operation had a return type
of "VODecisionItem" that was being used.  I fixed it so that if the return
type is
not defined then it won't be generated, and then changed the model to return
void in the addAnimalWithQuestion() like it should have.

>
> Puzzled...
> Matthias
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf
> > Of Wouter Zoons
> > Sent: Saturday, March 27, 2004 12:11 PM
> > To: 'Matthias Bohlen'; '"Chad Brandon"';
> > [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: [Andromda-devel] RE: Animal Quiz runs now!
> >
> >
> > > final success: the animal quiz sample runs without problems and
> > guesses
> > > animals like hell!
> >
> > Great!! I will check it out right-away.
> >
> >
> >
> > > See my checkin comment on the list and the TODO
> > > commment in the code - there is still some weird thing
> > going on with
> > > return types. Chad, could you have a look at it, please?
> > >
> >
> > return types ? I recently changed something with return types
> > in the bpm4struts generated controller .. I guess it's not
> > related since you ask Chad to take a look at it ?
> >
> >
> > > Wouter: compliments for your cartridge!
> > >
> >
> > thanks :-)
> >
> >
> >
> >
> > -------------------------------------------------------
> > 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
> >
>
>
>
>
>
> -------------------------------------------------------
> 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




-------------------------------------------------------
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