thanx a lot Matthias. I will now try to implement it. -----Original Message----- From: Matthias Bauer [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 1:31 PM To: Struts Users Mailing List Subject: Re: workflow example explaination.
> But when I serached for the methods like setPrimaryWorkflow, setNewState(), > and setNextState() in SuccessAction class or GenericAction class, > I couldn't. > where are these methods & data members defined. It is the class ApplicationMapping, these methods are defined in. You also need to tell the Struts Servlet to use this mapping instead of the standard action mapping by this entry in web.xml (see the test application that is provided with the workflow extension package): <init-param> <param-name>mapping</param-name> <param-value>com.livinglogic.struts.workflow.ApplicationMapping </param-value> </init-param> Please note: this works for Struts 1.0.x only, because the action mappings are defined differently in Struts 1.1. > I'm not able to map actually. > > In the struts-config.xml, > <set-property property="primaryWorkflow" value="login" /> > <set-property property="newState" value="1" /> > <set-property property="nextState" value="2" /> > <forward name="success" path="/login.jspp" /> > > what does value "1" signify for property "newState"...? > does it efine some kind of sequence...?? What it says is: - newState: when this action is executed set the state of the "login" workflow to "1" and - nextState: any action that is following must belong to the workflow "login" and must set this workflow's state to 2 (otherwise a control flow exception is encountered) > Please explain comprehensively with the progression of screens.. Please look at the test application and work through it thoroughly. This should demonstrate the ideas behind the workflow package pretty well. --- Matthias -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> Power your enterprise with custom solutions in eLearning and Knowledge Management from NIIT - Knowledge Solutions. For details visit our website http://www.ksb.niit.com ___________________NOTICE____________________________ This electronic mail transmission contains confidential information intended only for the person(s) named. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you received this transmission in error, please notify the sender by reply e-mail and then destroy the message. Opinions, conclusions, and other information in this message that do not relate to the official business of NIIT shall be understood to be neither given nor endorsed by NIIT When addressed to NIIT clients, any information contained in this e-mail is subject to the terms and conditions in the governing client contract. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>