struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jordan Thomas" <...@ipa.fraunhofer.de>
Subject RE: AW: Workflow Extention
Date Thu, 05 Dec 2002 16:04:01 GMT
Matthias,

In addition here is the console output.

cheers

Jordan


16:59:39,370 INFO  [RequestProcessor] Processing a 'GET' for path '/login'
16:59:39,410 INFO  [Engine] action: Authtype: null
16:59:39,410 INFO  [Engine] action: Defined workflow: registration-workflow
16:59:39,420 INFO  [Engine] action:   Current state: 1
16:59:39,430 INFO  [Engine] action:   Defined next states: []
16:59:39,430 INFO  [Engine] action:   Defined next paths: []
16:59:39,440 INFO  [Engine] action: Previous primary workflow:
registration-workflow
16:59:39,470 INFO  [Engine] action: Current primary workflow: login-workflow
16:59:39,470 INFO  [Engine] action: Forward to: /tiles/login
16:59:44,387 INFO  [Engine] jsp: init
16:59:52,870 INFO  [Engine] jsp: init
16:59:57,136 INFO  [Engine] jsp: init
17:00:03,805 INFO  [RequestProcessor] Processing a 'GET' for path
'/registration'
17:00:03,815 INFO  [Engine] action: Authtype: null
17:00:03,825 INFO  [Engine] action: Defined workflow: registration-workflow
17:00:03,825 INFO  [Engine] action:   Current state: 1
17:00:03,835 INFO  [Engine] action:   Defined next states: []
17:00:03,845 INFO  [Engine] action:   Defined next paths: []
17:00:03,845 INFO  [Engine] action: Defined workflow: login-workflow
17:00:03,855 INFO  [Engine] action:   Current state: null
17:00:03,865 INFO  [Engine] action:   Defined next states: null
17:00:03,865 INFO  [Engine] action:   Defined next paths: null
17:00:03,875 INFO  [Engine] action: Previous primary workflow:
registration-workflow
17:00:03,885 INFO  [Engine] action: Current primary workflow:
registration-workflow
17:00:03,906 INFO  [Engine] action: Updating workflow: registration-workflow
17:00:03,906 INFO  [Engine] action:   Setting currentState to 1
17:00:03,916 INFO  [Engine] action:   Setting definedNextStates to []
17:00:03,926 INFO  [Engine] action:   Setting definedNextPaths to []
17:00:03,936 INFO  [Engine] action: Forward to: /tiles/registration
17:00:06,619 INFO  [RequestProcessor] Processing a 'GET' for path '/login'
17:00:06,629 INFO  [Engine] action: Authtype: null
17:00:06,639 INFO  [Engine] action: Defined workflow: registration-workflow
17:00:06,649 INFO  [Engine] action:   Current state: 1
17:00:06,659 INFO  [Engine] action:   Defined next states: []
17:00:06,659 INFO  [Engine] action:   Defined next paths: []
17:00:06,669 INFO  [Engine] action: Defined workflow: login-workflow
17:00:06,680 INFO  [Engine] action:   Current state: null
17:00:06,680 INFO  [Engine] action:   Defined next states: null
17:00:06,690 INFO  [Engine] action:   Defined next paths: null
17:00:06,700 INFO  [Engine] action: Previous primary workflow:
registration-workflow
17:00:06,700 INFO  [Engine] action: Current primary workflow: login-workflow
17:00:06,710 INFO  [Engine] action: Forward to: /tiles/login
17:00:08,212 INFO  [RequestProcessor] Processing a 'POST' for path
'/login/action'
17:00:08,222 INFO  [Engine] action: Authtype: null
17:00:08,232 INFO  [Engine] action: Defined workflow: registration-workflow
17:00:08,232 INFO  [Engine] action:   Current state: 1
17:00:08,242 INFO  [Engine] action:   Defined next states: []
17:00:08,242 INFO  [Engine] action:   Defined next paths: []
17:00:08,252 INFO  [Engine] action: Defined workflow: login-workflow
17:00:08,262 INFO  [Engine] action:   Current state: null
17:00:08,272 INFO  [Engine] action:   Defined next states: null
17:00:08,272 INFO  [Engine] action:   Defined next paths: null
17:00:08,282 INFO  [Engine] action: Previous primary workflow:
registration-workflow
17:00:08,292 INFO  [Engine] action: Current primary workflow: login-workflow
17:00:08,292 INFO  [Engine] action: Previous state does not match any
allowed previous state!



-----Original Message-----
From: Matthias Bauer [mailto:Matthias.Bauer@livinglogic.de]
Sent: Thursday, 5 December 2002 3:30 PM
To: Jordan Thomas
Cc: Struts User List
Subject: Re: AW: Workflow Extention


Jordan,

the configuration looks ok to me. Can you please send me the complete
log messages. They should look somehow like these (I took them from the
example application):

> 2002-12-05 15:27:52 action: Processing a GET for /beginWf1Transition
> 2002-12-05 15:27:52 action:  Looking for Action instance for class
> com.livinglogic.struts.workflow.test.Wf1Action
> 2002-12-05 15:27:52 action: Authtype:
> com.livinglogic.struts.workflow.test.Authentication
> 2002-12-05 15:27:52 action: Previous primary workflow: null
> 2002-12-05 15:27:52 action: Current primary workflow: wf1
> 2002-12-05 15:27:52 action: Updating workflow: wf1
> 2002-12-05 15:27:52 action:   Setting currentState to 1
> 2002-12-05 15:27:52 action:   Setting definedNextStates to [2]
> 2002-12-05 15:27:52 action:   Setting definedNextPaths to []
> 2002-12-05 15:27:52 action: Forward to: /inHome.jspp
> 2002-12-05 15:28:03 action: Processing a GET for /wf1St2Transition
> 2002-12-05 15:28:03 action:  Looking for Action instance for class
> com.livinglogic.struts.workflow.test.Wf1Action
> 2002-12-05 15:28:03 action: Authtype:
> com.livinglogic.struts.workflow.test.Authentication
> 2002-12-05 15:28:03 action: Defined workflow: wf1
> 2002-12-05 15:28:03 action:   Cleanup action names: [cleanupWf1]
> 2002-12-05 15:28:03 action:   Current state: 1
> 2002-12-05 15:28:03 action:   Defined next states: [2]
> 2002-12-05 15:28:03 action:   Defined next paths: []
> 2002-12-05 15:28:03 action: Previous primary workflow: wf1
> 2002-12-05 15:28:03 action: Current primary workflow: wf1
> 2002-12-05 15:28:03 action: Updating workflow: wf1
> 2002-12-05 15:28:03 action:   Setting currentState to 2
> 2002-12-05 15:28:03 action:   Setting definedNextStates to [3, 2]
> 2002-12-05 15:28:03 action:   Setting definedNextPaths to []
> 2002-12-05 15:28:03 action: Forward to: /inHome.jspp


--- Matthias



Jordan Thomas wrote:

>Hi Matthias
>
>OK, I have modified my workflow as I have seen the obvious errors in what I
>was trying to do. Now I have the problem that my second action (see code
>below) does not allow me to enter that step. The message that I am getting
>is "Previous state does not match any allowed previous state!". From what I
>can see, the "previousState" of the second step does match the  "newState"
>of the first step. One thing that I have noticed is that when I enter the
>first state it says "Current State: null". Any ideas?
>
>thanks
>
>Jordan
>
>    <action path="/registration/1"
>            type="scoop.web.struts.registration.RegistrationAction"
>            className="com.livinglogic.struts.workflow.ApplicationMapping"
>            name="registrationForm"
>            scope="request"
>            input="/tiles/registerCompany"
>            validate="true">
>        <set-property property="primaryWorkflow"
>value="registration-workflow"/>
>        <set-property property="newState" value="1"/>
>        <set-property property="endWorkflow" value="false"/>
>        <forward name="success" path="/tiles/registerCompany"/>
>    </action>
>    <action path="/registration/2"
>            type="scoop.web.struts.registration.RegistrationAction"
>            className="com.livinglogic.struts.workflow.ApplicationMapping"
>            name="registrationForm"
>            scope="session"
>            input="/tiles/registerCompany_step1"
>            validate="true">
>        <set-property property="primaryWorkflow"
>value="registration-workflow"/>
>        <set-property property="newState" value="2"/>
>        <set-property property="prevState" value="1"/>
>        <set-property property="endWorkflow" value="false"/>
>        <forward name="success" path="/tiles/registerCompany"/>
>    </action>
>
>
>



--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message