This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes How to implement workflow in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to implement workflow in Struts" Watch "How to implement workflow in Struts" New topic
Author

How to implement workflow in Struts

Sri Anand
Ranch Hand

Joined: Mar 06, 2005
Posts: 392
I need to implement a few screens which have a workflow approach, i need to go back and forth between screens probably have to pass data between requests , can some one suggest me a proven approach i have no time for experimenting given the time lines..

we currently have Java 1.4 with struts 1.1 version for our project
[ February 01, 2008: Message edited by: Raghunandan Mamidala ]
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8839
    
    7

Google finds: Struts Workflow Extension


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Sri Anand
Ranch Hand

Joined: Mar 06, 2005
Posts: 392
I am trying understand struts work flow at

http://www.livinglogic.de/Struts/description.html

I could not figure out how properties/workflow states are set for each action as mentioned in the example in the link





<action path="/beginWf3Transition"
type="com.livinglogic.struts.workflow.test.Wf3St1Action">
<set-property property="authClass" value="com.livinglogic.struts.workflow.test.TestAuthentication" />
<set-property property="secondaryWorkflow" value="wf2" />
<set-property property="prevState" value="suspended" />
<set-property property="prevState" value="2" />
<set-property property="newState" value="suspended" />
<set-property property="primaryWorkflow" value="wf3" />
<set-property property="newState" value="1" />
<set-property property="nextState" value="2" />
<forward name="success" path="/WEB-INF/web/inHome.jsp" />
</action>


I was not able to figure out the values for each property "suspended" or "2" what these relate to they are not action names nor Jsp file names.. when i was trying to set up same for my app it was blowing off

1141 [HttpRequestHandler-74] ERROR action.ActionServlet - Parsing error processing resource path

java.lang.IllegalArgumentException: A prevState definition must belong to a workflow.
[ February 13, 2008: Message edited by: Raghunandan Mamidala ]
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8839
    
    7

I've never used the product. Just found it in a search.
Have you looked at the example application?
Their support page mentions that support is available on the struts-user mailing list.
Sri Anand
Ranch Hand

Joined: Mar 06, 2005
Posts: 392
Yes , i have that example downloaded and configured, but the the information on the tutorial isnt enough to just get started.. it looks very high level view and doesnt get it into details..the example looks very basic looking at that i wasnt able to figure out
[ February 13, 2008: Message edited by: Raghunandan Mamidala ]
 
jQuery in Action, 2nd edition
 
subject: How to implement workflow in Struts
 
Similar Threads
Struts life cycle
UI customization and user preferences
Apache ODE (Workflow engine)
Architecture Help
Dyna Form session scope