Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to implement workflow in Struts

 
Sri Anand
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 9264
10
Linux Mac OS X Windows
 
Sri Anand
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 9264
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic