Results 1 to 3 of 3

Thread: Events That Don't Match Sent To Default State??

  1. #1
    Join Date
    Dec 2004
    Location
    CA
    Posts
    208

    Default Events That Don't Match Sent To Default State??

    Greetings!

    I have two primary views in a flow each recieves its own set of events. However, if I am in view state A and I recieve an event for view State B I would like it it to be automatically routed to that state. Is there an easy setup where I can route all events that don't match a particular state to a default view state?

    Other than a decision state, I don't see this functionality in SWF. A decision state would be redundant since, I will be evaluating each event twice: once for making the decision and another for that actual state that will be processing that event.

    Curtney
    Curtney Jacobs

  2. #2
    Join Date
    Sep 2004
    Location
    Leuven, Belgium
    Posts
    1,853

    Default

    Remember that you can always include the "_currentStateId" parameters in the requests you send to SWF. If the indicated state id does not match the current state of the flow, the flow will first be switched to the specified current state before the event (specified in "_eventId") is signaled.

    Erwin

  3. #3
    Join Date
    Dec 2004
    Location
    CA
    Posts
    208

    Default

    Thanks Erwin, that did the trick.
    Curtney Jacobs

Similar Threads

  1. Replies: 12
    Last Post: Oct 30th, 2010, 12:26 AM
  2. Hibernate Long Session Per Flow?
    By akw in forum Web Flow
    Replies: 21
    Last Post: Dec 12th, 2005, 08:06 PM
  3. CommitException ??
    By vaibhavkhattri in forum Data
    Replies: 2
    Last Post: Aug 11th, 2005, 04:09 AM
  4. Somethings to think about
    By SirRuncibleSpoon in forum Swing
    Replies: 17
    Last Post: Jul 7th, 2005, 10:44 AM
  5. Stack Overflow
    By rayho222 in forum Container
    Replies: 6
    Last Post: May 17th, 2005, 03:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •