Re: AW: Workflow Extention

2002-12-06 Thread Matthias Bauer
Ok, this was not an easy one... :-)

The mistake you seem to make is the following: The actions "/login" and 
"/login/action" basically are identical in what they are doing: They map 
to the LoginAction. What you are doing in LoginAction (I am guessing 
now) is forwarding to the input mapping, in case the parameters user and 
password are not included or are not valid.

What you really want to do is: Use the action "/login" as a simple 
display action (which does not do any checks at all, but just forward to 
the right jsp page) like this:

 
 type="com.livinglogic.struts.workflow.SuccessAction">
   
   
   
 

The problem with your approach is the following: Whenever an action is 
forwarding to "mapping.getInput()" the workflow's state is not updated, 
because the action has not really been completed successfully.  If the 
state had been updated, an error would occur, when the user submits the 
form again.

--- Matthias


Jordan Thomas wrote:

OK, Here it is. The original workflow is now working but this work flow is
not. Included is a snippet form my log file.

Also here is the struts config snippet.

   
   type="scoop.web.struts.login.LoginAction"
   className="com.livinglogic.struts.workflow.ApplicationMapping"
   name="loginForm"
   scope="request"
   input="/tiles/login"
   validate="true">
   
   
   
   
   
   
   type="scoop.web.struts.login.LoginAction"
   className="com.livinglogic.struts.workflow.ApplicationMapping"
   name="loginForm"
   scope="request"
   input="/login/action"
   validate="true">
   
   
   
   
   
   

thanks again

Jordan



-Original Message-
From: Matthias Bauer [mailto:[EMAIL PROTECTED]]
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

  
  type="scoop.web.struts.registration.RegistrationAction"
  className="com.livinglogic.struts.workflow.ApplicationMapping"
  name="registrationForm"
  scope="request"
  input="/tiles/registerCompany"
  validate="true">
  
value="registration-workflow"/>
  
  
  
  
  

RE: AW: Workflow Extention

2002-12-05 Thread Jordan Thomas
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:[EMAIL PROTECTED]]
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:  Loo

Re: AW: Workflow Extention

2002-12-05 Thread Matthias Bauer
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

   
   type="scoop.web.struts.registration.RegistrationAction"
   className="com.livinglogic.struts.workflow.ApplicationMapping"
   name="registrationForm"
   scope="request"
   input="/tiles/registerCompany"
   validate="true">
   
value="registration-workflow"/>
   
   
   
   
   
   type="scoop.web.struts.registration.RegistrationAction"
   className="com.livinglogic.struts.workflow.ApplicationMapping"
   name="registrationForm"
   scope="session"
   input="/tiles/registerCompany_step1"
   validate="true">
   
value="registration-workflow"/>
   
   
   
   
   

 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: AW: Workflow Extention

2002-12-05 Thread Jordan Thomas
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















-Original Message-
From: Matthias Bauer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 27 November 2002 3:08 PM
To: [EMAIL PROTECTED]
Cc: 'Struts Users Mailing List'
Subject: Re: AW: Workflow Extention


Jordan,

I think I understand pretty well, what you are trying to do. However
according to your configuration you should not be able to execute
"/registration/2" before having executed "/registration/1".

Here are some examples:

/registration -> /registration/1 -> /registration/1->/registration/2  -
this should work
/registration -> /registration/1 -> /registration/3  - this should fail
with the last action
/registration -> /registration/1 -> /registration/2->/registration/1  -
this should fail with the last action
/registration -> /registration/1 -> /someAction->/registration/2  - this
should work, if "/someAction" is not part of the workflow

Maybe you can try these examples out and see if it works as expected.

Remark to the last example: The last example works, if "/someAction" is
not part of  the registration-workflow, because it does not change the
state of this workflow.

--- Matthias




Jordan Thomas wrote:

>Yes, I see what you are saying and if I define the next state, then if I
>try to jump out of the workflow I get a an exception saying that it is
>not allowed by the workflow.
>
>What makes me think that it is disregarding the wrokflow is that I can
>enter the workflow at an point (i.e /registration/2) without having
>executed any of the other steps. Essentially, all I want to do is not
>control where the user goes but where the user came from. This way, it
>cascades backwards ensuring that the user enters in all of the data.
>
>Is this clearer? Hopefully you have an idea on how to solve this one.
>
>Cheers and thanks for the help
>
>Jordan
>
>-Ursprüngliche Nachricht-
>Von: Matthias Bauer [mailto:[EMAIL PROTECTED]]
>Gesendet: Wednesday, 27 November 2002 1:22 PM
>An: [EMAIL PROTECTED]
>Cc: 'Struts Users Mailing List'
>Betreff: Re: Workflow Extention
>
>
>Jordan,
>
>according to the configuration the user should not be able  to execute
>"/registration/1" before having executed "/registration". Also
>"/registration/2" can not be executed before "/registration/1", and so
>on.
>
>What the configuration does NOT prohibit, is to execute "/registration"
>or any other action after "/registration/1" or "/registration/2",
>because you are not defining nextState values.
>
>Do you see something else? What lets you think that "it seems to be
>disregarding the workflow"?
>
>One remark: You can as well leave away the property endWorkflow if you
>want it to be false, because this is the default.
>
>--- Matthias
>
>
>
>Jordan Thomas wrote:
>
>
>
>>Matthias,
>>
>>Ok, I tried that and it now seems to be disregarding the workflow. Can
>>you seen anything wrong with my struts-config.xml tags? (Sorry for the
>>big code chunk >:O) Essentially what (am trying to do is allow a user
>>to go to the next step or stay on the same step. I am using struts 1.1b
>>
>>Thanks
>>
>>Jordan
>>
>>--action class
>>
>>...
>>public final class NewRegistrationAction extends GenericAction {  
>>public ActionForward performAction( ActionMapping mapping, ActionForm
>>form,
>>   HttpServletRequest request, HttpServletResponse response )
>>throws IOException, ServletException {
>>...
>>
>>--struts-config.xml
>>
>>>   type="scoop.web.struts.registration.NewRegistrationAction"
>>
>>className="com.livinglogic.struts.workflow.ApplicationMapping"
>>   scope="request"
>>   input="/tiles/registrationDetails"
>>   validate="true">
>>   >value="registration-workflow"/>
>>   
>>   
>&

Re: AW: Workflow Extention

2002-11-27 Thread Matthias Bauer
Jordan,

I think I understand pretty well, what you are trying to do. However 
according to your configuration you should not be able to execute 
"/registration/2" before having executed "/registration/1".

Here are some examples:

/registration -> /registration/1 -> /registration/1->/registration/2  - 
this should work
/registration -> /registration/1 -> /registration/3  - this should fail 
with the last action
/registration -> /registration/1 -> /registration/2->/registration/1  - 
this should fail with the last action
/registration -> /registration/1 -> /someAction->/registration/2  - this 
should work, if "/someAction" is not part of the workflow

Maybe you can try these examples out and see if it works as expected.

Remark to the last example: The last example works, if "/someAction" is 
not part of  the registration-workflow, because it does not change the 
state of this workflow.

--- Matthias




Jordan Thomas wrote:

Yes, I see what you are saying and if I define the next state, then if I
try to jump out of the workflow I get a an exception saying that it is
not allowed by the workflow. 

What makes me think that it is disregarding the wrokflow is that I can
enter the workflow at an point (i.e /registration/2) without having
executed any of the other steps. Essentially, all I want to do is not
control where the user goes but where the user came from. This way, it
cascades backwards ensuring that the user enters in all of the data. 

Is this clearer? Hopefully you have an idea on how to solve this one.

Cheers and thanks for the help

Jordan

-Ursprüngliche Nachricht-
Von: Matthias Bauer [mailto:[EMAIL PROTECTED]] 
Gesendet: Wednesday, 27 November 2002 1:22 PM
An: [EMAIL PROTECTED]
Cc: 'Struts Users Mailing List'
Betreff: Re: Workflow Extention


Jordan,

according to the configuration the user should not be able  to execute 
"/registration/1" before having executed "/registration". Also 
"/registration/2" can not be executed before "/registration/1", and so
on.

What the configuration does NOT prohibit, is to execute "/registration" 
or any other action after "/registration/1" or "/registration/2", 
because you are not defining nextState values.

Do you see something else? What lets you think that "it seems to be 
disregarding the workflow"?

One remark: You can as well leave away the property endWorkflow if you 
want it to be false, because this is the default.

--- Matthias



Jordan Thomas wrote:

 

Matthias,

Ok, I tried that and it now seems to be disregarding the workflow. Can 
you seen anything wrong with my struts-config.xml tags? (Sorry for the 
big code chunk >:O) Essentially what (am trying to do is allow a user 
to go to the next step or stay on the same step. I am using struts 1.1b

Thanks

Jordan

--action class

...
public final class NewRegistrationAction extends GenericAction {  
public ActionForward performAction( ActionMapping mapping, ActionForm
form,
  HttpServletRequest request, HttpServletResponse response )
   throws IOException, ServletException {
...

--struts-config.xml


  type="scoop.web.struts.registration.NewRegistrationAction"

className="com.livinglogic.struts.workflow.ApplicationMapping"
  scope="request"
  input="/tiles/registrationDetails"
  validate="true">
  
  
  
  
  
  
  type="scoop.web.struts.registration.NewRegistrationAction"

className="com.livinglogic.struts.workflow.ApplicationMapping"
  name="registrationForm"
  scope="session"
  input="/tiles/registerCompany_step1"
  validate="true">
  
  
  
  
  
  
  
  
  type="scoop.web.struts.registration.NewRegistrationAction"

className="com.livinglogic.struts.workflow.ApplicationMapping"
  name="registrationForm"
  scope="session"
  input="/tiles/registerCompany_step2"
  validate="true">
  
  
  
  
  
  
  
  
  type="scoop.web.struts.registration.NewRegistrationAction"

className="com.livinglogic.struts.workflow.ApplicationMapping"
  name="registrationForm"
  scope="session"
  input="/tiles/registerCompany_step3"
  validate="true">
  
  
  
  
  
  
  
  
  type="scoop.web.struts.registration.NewRegistrationAction"

className="com.livinglogic.struts.workflow.ApplicationMapping"
  name="registrationForm"
  scope="session"
  

AW: Workflow Extention

2002-11-27 Thread Jordan Thomas
Yes, I see what you are saying and if I define the next state, then if I
try to jump out of the workflow I get a an exception saying that it is
not allowed by the workflow. 

What makes me think that it is disregarding the wrokflow is that I can
enter the workflow at an point (i.e /registration/2) without having
executed any of the other steps. Essentially, all I want to do is not
control where the user goes but where the user came from. This way, it
cascades backwards ensuring that the user enters in all of the data. 

Is this clearer? Hopefully you have an idea on how to solve this one.

Cheers and thanks for the help

Jordan

-Ursprüngliche Nachricht-
Von: Matthias Bauer [mailto:[EMAIL PROTECTED]] 
Gesendet: Wednesday, 27 November 2002 1:22 PM
An: [EMAIL PROTECTED]
Cc: 'Struts Users Mailing List'
Betreff: Re: Workflow Extention


Jordan,

according to the configuration the user should not be able  to execute 
"/registration/1" before having executed "/registration". Also 
"/registration/2" can not be executed before "/registration/1", and so
on.

What the configuration does NOT prohibit, is to execute "/registration" 
or any other action after "/registration/1" or "/registration/2", 
because you are not defining nextState values.

Do you see something else? What lets you think that "it seems to be 
disregarding the workflow"?

One remark: You can as well leave away the property endWorkflow if you 
want it to be false, because this is the default.

--- Matthias



Jordan Thomas wrote:

>Matthias,
>
>Ok, I tried that and it now seems to be disregarding the workflow. Can 
>you seen anything wrong with my struts-config.xml tags? (Sorry for the 
>big code chunk >:O) Essentially what (am trying to do is allow a user 
>to go to the next step or stay on the same step. I am using struts 1.1b
>
>Thanks
>
>Jordan
>
>--action class
>
> ...
>public final class NewRegistrationAction extends GenericAction {  
>public ActionForward performAction( ActionMapping mapping, ActionForm
>form,
>HttpServletRequest request, HttpServletResponse response )
> throws IOException, ServletException {
>...
>
>--struts-config.xml
>
> type="scoop.web.struts.registration.NewRegistrationAction"
> 
>className="com.livinglogic.struts.workflow.ApplicationMapping"
>scope="request"
>input="/tiles/registrationDetails"
>validate="true">
>value="registration-workflow"/>
>
>
>
>
>type="scoop.web.struts.registration.NewRegistrationAction"
> 
>className="com.livinglogic.struts.workflow.ApplicationMapping"
>name="registrationForm"
>scope="session"
>input="/tiles/registerCompany_step1"
>validate="true">
>value="registration-workflow"/>
>
>
>
>
>
>
>type="scoop.web.struts.registration.NewRegistrationAction"
> 
>className="com.livinglogic.struts.workflow.ApplicationMapping"
>name="registrationForm"
>scope="session"
>input="/tiles/registerCompany_step2"
>validate="true">
>value="registration-workflow"/>
>
>
>
>
>
>
>type="scoop.web.struts.registration.NewRegistrationAction"
> 
>className="com.livinglogic.struts.workflow.ApplicationMapping"
>name="registrationForm"
>scope="session"
>input="/tiles/registerCompany_step3"
>validate="true">
>value="registration-workflow"/>
>
>
>
>
>
>
>type="scoop.web.struts.registration.NewRegistrationAction"
> 
>className="com.livinglogic.struts.workflow.ApplicationMapping"
>name="registrationForm"
>scope="session"
>input="/tiles/registerCompany_step4"
>    validate="true">
>value="registration-workflow"/>
>
>
>
>
>
>
>type="scoop.web.struts.registration.NewRegistrationAction"
> 
>className="com.livinglogic.struts.workflow.ApplicationMapping"
>  

Re: Workflow Extention

2002-11-27 Thread Matthias Bauer
Jordan,

according to the configuration the user should not be able  to execute 
"/registration/1" before having executed "/registration". Also 
"/registration/2" can not be executed before "/registration/1", and so on.

What the configuration does NOT prohibit, is to execute "/registration" 
or any other action after "/registration/1" or "/registration/2", 
because you are not defining nextState values.

Do you see something else? What lets you think that "it seems to be 
disregarding the workflow"?

One remark: You can as well leave away the property endWorkflow if you 
want it to be false, because this is the default.

--- Matthias



Jordan Thomas wrote:

Matthias,

Ok, I tried that and it now seems to be disregarding the workflow. Can
you seen anything wrong with my struts-config.xml tags? (Sorry for the
big code chunk >:O) Essentially what (am trying to do is allow a user to
go to the next step or stay on the same step. I am using struts 1.1b

Thanks

Jordan

--action class

...
public final class NewRegistrationAction extends GenericAction {

public ActionForward performAction( ActionMapping mapping, ActionForm
form,
   HttpServletRequest request, HttpServletResponse response )
throws IOException, ServletException {
...

--struts-config.xml


   type="scoop.web.struts.registration.NewRegistrationAction"

className="com.livinglogic.struts.workflow.ApplicationMapping"
   scope="request"
   input="/tiles/registrationDetails"
   validate="true">
   
value="registration-workflow"/>
   
   
   
   
   
   type="scoop.web.struts.registration.NewRegistrationAction"

className="com.livinglogic.struts.workflow.ApplicationMapping"
   name="registrationForm"
   scope="session"
   input="/tiles/registerCompany_step1"
   validate="true">
   
value="registration-workflow"/>
   
   
   
   
   
   
   
   type="scoop.web.struts.registration.NewRegistrationAction"

className="com.livinglogic.struts.workflow.ApplicationMapping"
   name="registrationForm"
   scope="session"
   input="/tiles/registerCompany_step2"
   validate="true">
   
value="registration-workflow"/>
   
   
   
   
   
   
   
   type="scoop.web.struts.registration.NewRegistrationAction"

className="com.livinglogic.struts.workflow.ApplicationMapping"
   name="registrationForm"
   scope="session"
   input="/tiles/registerCompany_step3"
   validate="true">
   
value="registration-workflow"/>
   
   
   
   
   
   
   
   type="scoop.web.struts.registration.NewRegistrationAction"

className="com.livinglogic.struts.workflow.ApplicationMapping"
   name="registrationForm"
   scope="session"
   input="/tiles/registerCompany_step4"
   validate="true">
   
value="registration-workflow"/>
   
   
   
   
   
   
   
   type="scoop.web.struts.registration.NewRegistrationAction"

className="com.livinglogic.struts.workflow.ApplicationMapping"
   name="registrationForm"
   scope="session"
   input="/tiles/registerCompany_step5"
   validate="true">
   
value="registration-workflow"/>
   
   
   
   
   
   



-Original Message-
From: Matthias Bauer [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 26 November 2002 8:36 AM
To: Struts Users Mailing List
Subject: Re: Workflow Extention


Hi Jordan,

sorry for the late response...

You can not specify a wildcard like * for nextPath - the framework does 
not support that up to now. I would be happy to integrate it, if you can

explain a valid use case for it.

Right now I do not see a necessity for a wildcard, because you can 
always leave away the "nextPath" and the "nextState" parameters, which 
has basically the same result: The action that follows next can be any 
action.

To refer to you concrete problem: Preventing people from entering your 
workflow in the middle can be achieved by using the prevState
parameters:

If you have actions A, B, C and you want the user to execute B only if A

has been executed before and C only if B has already been executed you 
can do the following:

- equip action A with the state 1, action B with state 2
- set p

RE: Workflow Extention

2002-11-27 Thread Jordan Thomas
Matthias,

Ok, I tried that and it now seems to be disregarding the workflow. Can
you seen anything wrong with my struts-config.xml tags? (Sorry for the
big code chunk >:O) Essentially what (am trying to do is allow a user to
go to the next step or stay on the same step. I am using struts 1.1b

Thanks

Jordan

--action class

 ...
public final class NewRegistrationAction extends GenericAction {
 
public ActionForward performAction( ActionMapping mapping, ActionForm
form,
HttpServletRequest request, HttpServletResponse response )
 throws IOException, ServletException {
...

--struts-config.xml

 
















































-Original Message-
From: Matthias Bauer [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 26 November 2002 8:36 AM
To: Struts Users Mailing List
Subject: Re: Workflow Extention


Hi Jordan,

sorry for the late response...

You can not specify a wildcard like * for nextPath - the framework does 
not support that up to now. I would be happy to integrate it, if you can

explain a valid use case for it.

Right now I do not see a necessity for a wildcard, because you can 
always leave away the "nextPath" and the "nextState" parameters, which 
has basically the same result: The action that follows next can be any 
action.

To refer to you concrete problem: Preventing people from entering your 
workflow in the middle can be achieved by using the prevState
parameters:

If you have actions A, B, C and you want the user to execute B only if A

has been executed before and C only if B has already been executed you 
can do the following:

- equip action A with the state 1, action B with state 2
- set prevState=1 for action B and prevState=2 for action C

This way action B can only be executed, if the workflow is in state 1 
(i. e. action A has been executed) and action C can only be executed, if

the workflow is in state 2 (i. e. action B has been executed).

Pls. let me know, if this helps.

--- Matthias


Jordan Thomas wrote:

>Hi All,
>
>I am using the workflow extention to create my workflows. It seems that

>when I am in the middle of a workflow, there is no way to allow the 
>user to jump out of the workflow into another area of the application. 
>I have tried specifying a * and a *.do as a nextPath parameter but that

>doesn't seem to work. Does anyone know how to gain a little more 
>flexibility with this framework? All I want to do is stop people from 
>jumping steps/entering into the middle of a workflow. At the moment, it

>seems that a user needs to enter a workflow and then complete that 
>workflow before a he/she can leave it. Does anyone have any suggestions

>how I can work around this?
>
>Thanks
>
>Jordan
>
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>
>  
>




--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Workflow Extention

2002-11-26 Thread Jordan Thomas
Thanks Matthias,

I'll try it out and let you know how it goes. 

Regards

Jordan

-Original Message-
From: Matthias Bauer [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 26 November 2002 8:36 AM
To: Struts Users Mailing List
Subject: Re: Workflow Extention


Hi Jordan,

sorry for the late response...

You can not specify a wildcard like * for nextPath - the framework does 
not support that up to now. I would be happy to integrate it, if you can

explain a valid use case for it.

Right now I do not see a necessity for a wildcard, because you can 
always leave away the "nextPath" and the "nextState" parameters, which 
has basically the same result: The action that follows next can be any 
action.

To refer to you concrete problem: Preventing people from entering your 
workflow in the middle can be achieved by using the prevState
parameters:

If you have actions A, B, C and you want the user to execute B only if A

has been executed before and C only if B has already been executed you 
can do the following:

- equip action A with the state 1, action B with state 2
- set prevState=1 for action B and prevState=2 for action C

This way action B can only be executed, if the workflow is in state 1 
(i. e. action A has been executed) and action C can only be executed, if

the workflow is in state 2 (i. e. action B has been executed).

Pls. let me know, if this helps.

--- Matthias


Jordan Thomas wrote:

>Hi All,
>
>I am using the workflow extention to create my workflows. It seems that

>when I am in the middle of a workflow, there is no way to allow the 
>user to jump out of the workflow into another area of the application. 
>I have tried specifying a * and a *.do as a nextPath parameter but that

>doesn't seem to work. Does anyone know how to gain a little more 
>flexibility with this framework? All I want to do is stop people from 
>jumping steps/entering into the middle of a workflow. At the moment, it

>seems that a user needs to enter a workflow and then complete that 
>workflow before a he/she can leave it. Does anyone have any suggestions

>how I can work around this?
>
>Thanks
>
>Jordan
>
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>
>  
>




--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Workflow Extention

2002-11-25 Thread Matthias Bauer
Hi Jordan,

sorry for the late response...

You can not specify a wildcard like * for nextPath - the framework does 
not support that up to now. I would be happy to integrate it, if you can 
explain a valid use case for it.

Right now I do not see a necessity for a wildcard, because you can 
always leave away the "nextPath" and the "nextState" parameters, which 
has basically the same result: The action that follows next can be any 
action.

To refer to you concrete problem: Preventing people from entering your 
workflow in the middle can be achieved by using the prevState parameters:

If you have actions A, B, C and you want the user to execute B only if A 
has been executed before and C only if B has already been executed you 
can do the following:

- equip action A with the state 1, action B with state 2
- set prevState=1 for action B and prevState=2 for action C

This way action B can only be executed, if the workflow is in state 1 
(i. e. action A has been executed) and action C can only be executed, if 
the workflow is in state 2 (i. e. action B has been executed).

Pls. let me know, if this helps.

--- Matthias


Jordan Thomas wrote:

Hi All,

I am using the workflow extention to create my workflows. It seems that
when I am in the middle of a workflow, there is no way to allow the user
to jump out of the workflow into another area of the application. I have
tried specifying a * and a *.do as a nextPath parameter but that doesn't
seem to work. Does anyone know how to gain a little more flexibility
with this framework? All I want to do is stop people from jumping
steps/entering into the middle of a workflow. At the moment, it seems
that a user needs to enter a workflow and then complete that workflow
before a he/she can leave it. Does anyone have any suggestions how I can
work around this?

Thanks

Jordan


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

 





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Workflow Extention

2002-11-21 Thread Jordan Thomas
Hi All,

I am using the workflow extention to create my workflows. It seems that
when I am in the middle of a workflow, there is no way to allow the user
to jump out of the workflow into another area of the application. I have
tried specifying a * and a *.do as a nextPath parameter but that doesn't
seem to work. Does anyone know how to gain a little more flexibility
with this framework? All I want to do is stop people from jumping
steps/entering into the middle of a workflow. At the moment, it seems
that a user needs to enter a workflow and then complete that workflow
before a he/she can leave it. Does anyone have any suggestions how I can
work around this?

Thanks

Jordan


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Workflow Extention

2002-11-21 Thread Jordan Thomas
Hi All,

I am using the workflow extention to create my workflows. It seems that
when I am in the middle of a workflow, there is no way to allow the user
to jump out of the workflow into another area of the application. I have
tried specifying a * and a *.do as a nextPath parameter but that doesn't
seem to work. Does anyone know how to gain a little more flexibility
with this framework? All I want to do is stop people from jumping
steps/entering into the middle of a workflow. At the moment, it seems
that a user needs to enter a workflow and then complete that workflow
before a he/she can leave it. Does anyone have any suggestions how I can
work around this?

Thanks

Jordan


Jordan Thomas
Fraunhofer-Institut fuer Produktionstechnik und Automatisierung
(FhG-IPA)

Nobelstrasse 12 
D-70569 Stuttgart

Tel.: +49 (0) 711-970-1187
Fax:  +49 (0) 711-970-97-1187
Handi:+49 (0) 150-554-76776

E-mail:   [EMAIL PROTECTED]
Web:  http://www.ipa.fhg.de
 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>