|
From: Erwin V. <erw...@er...> - 2005-03-29 18:24:33
|
The code that is in the sandbox right now explictly prevents a state from
transitioning to itself. The test is in the FlowSession.setCurrentState()
method:
if (this.currentState != null) {
if (this.currentState.equals(newState)) {
throw new IllegalArgumentException("The current state is already set
to '" + newState + "' -- this should not happen!");
}
}
Having a state transition to itself is dangerous business since you could
end up in an infinite loop!
Could you explain a bit more what you're trying to do? Why do you want to
keep restarting the subflow in a loop?
Erwin Vervaet
erw...@er...
----- Original Message -----
From: "Will Butler" <wil...@ra...>
To: <spr...@li...>
Sent: Tuesday, March 29, 2005 7:37 PM
Subject: [Springframework-developer] Web Flow - Sub Flows
> All,
>
> I have a web flow that has a subflow state. This subflow has an end
> state that causes the parent flow to execute the subflow again. However,
> I am getting an error that states that I cannot make the state
> transition because I am already in the state. Is it not possible for a
> state to transition back to itself?
>
> Thanks,
>
> Will
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
>
|