Announcement Announcement Module
Collapse
No announcement yet.
Does externalRedirect end Flow? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Does externalRedirect end Flow?

    I've been trying to track down a problem for a few days now & I'm starting to go batty.

    I have the following in a flow:

    <view-state id="authorize"
    view='externalRedirect:#{payPalProcessorService.re direct(flowScope.token)}'>
    <on-render>
    ...
    </on-render>
    <transition on='done' to='confirm'>
    <evaluate expression='flowScope.purchase.setPayment(flowScop e.payment)' />
    </transition>
    ...
    </view-state>

    This redirects to PayPal to allow user to enter account info. PayPal then redirects browser to this state (using flowExecutionUrl to construct PayPal request).

    But when the flow i9s resumed I see this in the log

    DEBUG: org.springframework.webflow.mvc.servlet.FlowHandle rAdapter - Sending external redirect to 'https://www.sandbox.paypal.com/webscr?cmd=_express-checkout&token=EC-2AP85155T79940042'
    DEBUG: org.springframework.webflow.mvc.servlet.FlowHandle rMapping - Mapping request with URI '//checkout/checkout-flow' to flow with id 'checkout-flow'
    DEBUG: org.springframework.webflow.executor.FlowExecutorI mpl - Resuming flow execution with key 'e2s2
    DEBUG: org.springframework.webflow.mvc.servlet.FlowHandle rAdapter - Restarting a new execution of previously ended flow 'checkout-flow'
    DEBUG: org.springframework.webflow.mvc.servlet.FlowHandle rMapping - Mapping request with URI '/checkout/checkout-flow' to flow with id 'checkout-flow'
    DEBUG: org.springframework.webflow.executor.FlowExecutorI mpl - Launching new execution of flow 'checkout-flow' with input null

    For some reason, SWF thinks the previous flow has ended.

    How's come?

    --
    Jonathan Rosenberg

  • #2
    Here are several links. I don't know if you looked them, but I hope that will help somehow.

    http://stackoverflow.com/questions/6...-resume-a-flow
    http://stackoverflow.com/questions/1...ting-same-flow

    Probably it's worth to look at docs about 'resume' stuff:
    http://static.springsource.org/sprin...-executor.html

    Comment

    Working...
    X