[Opensource] workflow using addStatePairing - not quite getting it

BSC bsci at lycos.com
Thu Dec 12 00:09:10 PST 2002


Mike, Helga,

The workflow features were designed and tested using the Struts approach to form handling.  Unfortunately these features were not tested using DefaultForm.  To keep the Struts approach more streamlined you can avoid coding one form for every state pairing by passing in a null parameter to the addStatePairing method.  This allows you to define a single form class (extending ControllerForm and overriding resetController()) that will be shared by all states in the controller.




>Date: Mon, 9 Dec 2002 12:56:30 -0600 Reply-To: opensource at jcorporate.com

Aime,
Your sample matches my code, but I am using
com.jcorporate.expresso.core.controller.DefaultForm as my form bean, as
Helga Wyns suggested was possible. In State.perform(), StateForm is null. I
assume that's because DefaultForm doesn't work here and I need to have a
custom ControllerForm?

Thanks,
Mike







_____________________________________________________________
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus



More information about the Opensource mailing list